| Electronic Components Datasheet Search |
|
DEV-13956 Datasheet(PDF) 9 Page - SparkFun Electronics |
|
|
|||||||||||||||||||||||||||||
DEV-13956 Datasheet(HTML) 9 Page - SparkFun Electronics |
|
9 / 26 page ![]() byte seconds; //When it hits 60, increase the current minute byte seconds_2m; //Keeps track of the "wind speed/dir avg" ove r last 2 minutes array of data byte minutes; //Keeps track of where we are in various arrays of data byte minutes_10m; //Keeps track of where we are in wind gust/d ir over last 10 minutes array of data long lastWindCheck = 0; volatile long lastWindIRQ = 0; volatile byte windClicks = 0; //We need to keep track of the following variables: //Wind speed/dir each update (no storage) //Wind gust/dir over the day (no storage) //Wind speed/dir, avg over 2 minutes (store 1 per second) //Wind gust/dir over last 10 minutes (store 1 per minute) //Rain over the past hour (store 1 per minute) //Total rain over date (store one per day) byte windspdavg[120]; //120 bytes to keep track of 2 minute av erage #define WIND_DIR_AVG_SIZE 120 int winddiravg[WIND_DIR_AVG_SIZE]; //120 ints to keep track o f 2 minute average float windgust_10m[10]; //10 floats to keep track of 10 minut e max int windgustdirection_10m[10]; //10 ints to keep track of 10 m inute max volatile float rainHour[60]; //60 floating numbers to keep tra ck of 60 minutes of rain //These are all the weather values that wunderground expects: int winddir = 0; // [0360 instantaneous wind direction] float windspeedmph = 0; // [mph instantaneous wind speed] float windgustmph = 0; // [mph current wind gust, using softwa re specific time period] int windgustdir = 0; // [0360 using software specific time pe riod] float windspdmph_avg2m = 0; // [mph 2 minute average wind spee d mph] int winddir_avg2m = 0; // [0360 2 minute average wind directi on] float windgustmph_10m = 0; // [mph past 10 minutes wind gust m ph ] int windgustdir_10m = 0; // [0360 past 10 minutes wind gust d irection] float humidity = 0; // [%] float tempf = 0; // [temperature F] float rainin = 0; // [rain inches over the past hour)] the accumulated rainfall in the past 60 min volatile float dailyrainin = 0; // [rain inches so far today i n local time] //float baromin = 30.03;// [barom in] It's hard to calculat e baromin locally, do this in the agent float pressure = 0; //float dewptf; // [dewpoint F] It's hard to calculate dewpo int locally, do this in the agent float batt_lvl = 11.8; //[analog value from 0 to 1023] float light_lvl = 455; //[analog value from 0 to 1023] // volatiles are subject to modification by IRQs volatile unsigned long raintime, rainlast, raininterval, rain; Page 9 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 |