| Electronic Components Datasheet Search |
|
DEV-13956 Datasheet(PDF) 13 Page - SparkFun Electronics |
|
|
|||||||||||||||||||||||||||||
DEV-13956 Datasheet(HTML) 13 Page - SparkFun Electronics |
|
13 / 26 page ![]() //Find the largest windgust in the last 10 minutes windgustmph_10m =0; windgustdir_10m =0; //Step through the 10 minutes for(int i =0; i <10; i++) { if(windgust_10m[i] > windgustmph_10m) { windgustmph_10m = windgust_10m[i]; windgustdir_10m = windgustdirection_10m[i]; } } //Calc humidity humidity = myHumidity.getRH(); //float temp_h = myHumidity.readTemperature(); //Serial.print(" TempH:"); //Serial.print(temp_h, 2); //Calc tempf from pressure sensor tempf = myPressure.readTempF(); //Serial.print(" TempP:"); //Serial.print(tempf, 2); //Total rainfall for the day is calculated within the inte rrupt //Calculate amount of rainfall for the last 60 minutes rainin =0; for(int i =0; i <60; i++) rainin += rainHour[i]; //Calc pressure pressure = myPressure.readPressure(); //Calc dewptf //Calc light level light_lvl = get_light_level(); //Calc battery level batt_lvl = get_battery_level(); } //Returns the voltage of the light sensor based on the 3.3V ra il //This allows us to ignore what VCC might be (an Arduino plugg ed into USB has VCC of 4.5 to 5.2V) float get_light_level() { float operatingVoltage = analogRead(REFERENCE_3V3); float lightSensor = analogRead(LIGHT); operatingVoltage = 3.3 / operatingVoltage; //The referenc e voltage is 3.3V lightSensor = operatingVoltage * lightSensor; return(lightSensor); } //Returns the voltage of the raw pin based on the 3.3V rail //This allows us to ignore what VCC might be (an Arduino plugg ed into USB has VCC of 4.5 to 5.2V) //Battery level is connected to the RAW pin on Arduino and is Page 13 of 26 |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |