Electronic Components Datasheet Search
  English  ▼

X  

DEV-13956 Datasheet(PDF) 20 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) 20 Page - SparkFun Electronics

Back Button DEV-13956 Datasheet HTML 16Page - SparkFun Electronics DEV-13956 Datasheet HTML 17Page - SparkFun Electronics DEV-13956 Datasheet HTML 18Page - SparkFun Electronics DEV-13956 Datasheet HTML 19Page - SparkFun Electronics DEV-13956 Datasheet HTML 20Page - SparkFun Electronics DEV-13956 Datasheet HTML 21Page - SparkFun Electronics DEV-13956 Datasheet HTML 22Page - SparkFun Electronics DEV-13956 Datasheet HTML 23Page - SparkFun Electronics DEV-13956 Datasheet HTML 24Page - SparkFun Electronics Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 26 page
background image
dspeed sensor
pinMode(RAIN, INPUT_PULLUP); // input from wind meters rain 
gauge sensor
pinMode(REFERENCE_3V3, INPUT);
pinMode(LIGHT, INPUT);
//Configure the pressure sensor
  myPressure.begin(); // Get sensor online
  myPressure.setModeBarometer(); // Measure pressure in Pascal
s from 20 to 110 kPa
  myPressure.setOversampleRate(7); // Set Oversample to the re
commended 128
  myPressure.enableEventFlags(); // Enable all three pressure 
and temp event flags 
//Configure the humidity sensor
  myHumidity.begin();
  seconds =0;
  lastSecond = millis();
// attach external interrupt pins to IRQ functions
attachInterrupt(0, rainIRQ, FALLING);
attachInterrupt(1, wspeedIRQ, FALLING);
// turn on interrupts
interrupts();
  Serial.println("Weather Shield online!");
} 
void loop()
{ 
//Keep track of which minute it is
if(millis() ­ lastSecond >= 1000)
  { 
digitalWrite(STAT1, HIGH); //Blink stat LED
    lastSecond += 1000;
//Take a speed and direction reading every second for 2 mi
nute average
if(++seconds_2m > 119) seconds_2m =0;
//Calc the wind speed and direction every second for 120 s
econd to get 2 minute average
float currentSpeed = get_wind_speed();
//float currentSpeed = random(5); //For testing
int currentDirection = get_wind_direction();
    windspdavg[seconds_2m] = (int)currentSpeed;
    winddiravg[seconds_2m] = currentDirection;
//if(seconds_2m % 10 == 0) displayArrays(); //For testing
//Check to see if this is a gust for the minute
if(currentSpeed > windgust_10m[minutes_10m])
    { 
      windgust_10m[minutes_10m] = currentSpeed;
      windgustdirection_10m[minutes_10m] = currentDirection;
    } 
//Check to see if this is a gust for the day
if(currentSpeed > windgustmph)
    { 
Page 20 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