Electronic Components Datasheet Search
  English  ▼

X  

DEV-13956 Datasheet(PDF) 13 Page - SparkFun Electronics

Part # DEV-13956
Description  Arduino Weather Shield Hookup Guide V12
PDF  26 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SPARKFUN [SparkFun Electronics]
Direct Link  https://www.sparkfun.com/
Logo SPARKFUN - SparkFun Electronics

DEV-13956 Datasheet(HTML) 13 Page - SparkFun Electronics

Back Button DEV-13956 Datasheet HTML 9Page - SparkFun Electronics DEV-13956 Datasheet HTML 10Page - SparkFun Electronics DEV-13956 Datasheet HTML 11Page - SparkFun Electronics DEV-13956 Datasheet HTML 12Page - SparkFun Electronics DEV-13956 Datasheet HTML 13Page - SparkFun Electronics DEV-13956 Datasheet HTML 14Page - SparkFun Electronics DEV-13956 Datasheet HTML 15Page - SparkFun Electronics DEV-13956 Datasheet HTML 16Page - SparkFun Electronics DEV-13956 Datasheet HTML 17Page - SparkFun Electronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 26 page
background image
//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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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