| Electronic Components Datasheet Search |
|
DEV-13956 Datasheet(PDF) 5 Page - SparkFun Electronics |
|
|
|||||||||||||||||||||||||||||
DEV-13956 Datasheet(HTML) 5 Page - SparkFun Electronics |
|
5 / 26 page ![]() //Configure the humidity sensor myHumidity.begin(); lastSecond = millis(); Serial.println("Weather Shield online!"); } void loop() { //Print readings every second if (millis() lastSecond >= 1000) { digitalWrite(STAT_BLUE, HIGH); //Blink stat LED lastSecond += 1000; //Check Humidity Sensor float humidity = myHumidity.getRH(); if (humidity == 998) //Humidty sensor failed to respond { Serial.println("I2C communication to sensors is not work ing. Check solder connections."); //Try reinitializing the I2C comm and the sensors myPressure.begin(); myPressure.setModeBarometer(); myPressure.setOversampleRate(7); myPressure.enableEventFlags(); myHumidity.begin(); } else { Serial.print("Humidity = "); Serial.print(humidity); Serial.print("%,"); float temp_h = myHumidity.getTempF(); Serial.print(" temp_h = "); Serial.print(temp_h, 2); Serial.print("F,"); //Check Pressure Sensor float pressure = myPressure.readPressure(); Serial.print(" Pressure = "); Serial.print(pressure); Serial.print("Pa,"); //Check tempf from pressure sensor float tempf = myPressure.readTempF(); Serial.print(" temp_p = "); Serial.print(tempf, 2); Serial.print("F,"); //Check light sensor float light_lvl = get_light_level(); Serial.print(" light_lvl = "); Serial.print(light_lvl); Serial.print("V,"); //Check batt level float batt_lvl = get_battery_level(); Serial.print(" VinPin = "); Serial.print(batt_lvl); Serial.print("V"); Page 5 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 |