#include <Wire.h>
#include <SFE_BMP180.h>
#include "RTClib.h"
#include <SPI.h>
|
#define | LOG_INTERVAL 1000 |
|
#define | SYNC_INTERVAL 1000 |
|
#define | redLEDpin 3 |
|
#define | greenLEDpin 2 |
|
#define | photocellPin 0 |
|
#define | tempPin 1 |
|
#define | BANDGAPREF 14 |
|
#define | aref_voltage 3.3 |
|
#define | bandgap_voltage 1.1 |
|
|
byte | read_data () |
| Read data from the DTH11 Sensor. More...
|
|
String | DTH11Loop () |
| Read Humidity data from the DTH11 Sensor. More...
|
|
String | BaroRead (SFE_BMP180 &pressure_sensor) |
| Read data from the SFE BMP180 Barometric Pressure Sensors. More...
|
|
String | TimeRead (RTC_DS1307 &rtc_clock) |
| Read the current from the Real Time Clock. More...
|
|
String | LightSensorRead (int light_sensor_pin) |
| Read data from and analog light sensor. More...
|
|
String | TemperatureRead (int temp_sensor_pin, float ref_voltage) |
| Read data from analog three pin temperature sensor. More...
|
|
void | setup (void) |
|
void | loop () |
|
|
SFE_BMP180 | pressure |
|
uint32_t | syncTime = 0 |
|
RTC_DS1307 | RTC |
|
const int | chipSelect = 10 |
|
int | avail = 0 |
|
char | t_str [] = "GET" |
|
char | buff [64] |
|
int | DHpin = 8 |
|
byte | dat [5] |
|
String BaroRead |
( |
SFE_BMP180 & |
pressure_sensor | ) |
|
|
inline |
Read data from the SFE BMP180 Barometric Pressure Sensors.
- Parameters
-
pressure_sensor | The pressure sensors class that is currently active |
- Returns
- Barometric pressure in millibar
Read Humidity data from the DTH11 Sensor.
- Returns
- Humidity data in percentage (%)
String LightSensorRead |
( |
int |
light_sensor_pin | ) |
|
|
inline |
Read data from and analog light sensor.
- Parameters
-
light_sensor_pin | Pin that the light sensor is currently attached to |
- Returns
- Light sensor reading in arbitrary units
Read data from the DTH11 Sensor.
- Returns
String TemperatureRead |
( |
int |
temp_sensor_pin, |
|
|
float |
ref_voltage |
|
) |
| |
|
inline |
Read data from analog three pin temperature sensor.
- Parameters
-
temp_sensor_pin | Pin that the temperature sensor is currently attached to |
ref_voltage | External reference voltage used to calibrate sensor |
- Returns
- Temperature sensor reading in degree Farenheit
String TimeRead |
( |
RTC_DS1307 & |
rtc_clock | ) |
|
|
inline |
Read the current from the Real Time Clock.
- Parameters
-
rtc_clock | Real Time Clock class that is currently active |
- Returns
- The current time in the following format Year/Month/Day Hour:Minute:Second