The main weather station application utilizing Sensors library and AVR C++ utilities library.
More...
The main weather station application utilizing Sensors library and AVR C++ utilities library.
Setup:
- Receives temperature and humidity from a Hideki Thermo/Hygro sensor connected to the AVR's input capture pin (ICP).
- Receives temperature and humidity from a DHT22 sensor connected to the AVR's digital I/O pin PD2.
- Receives temperature and pressure from a Bosch BMP180 sensor connected to the AVR's I2C (TWI) interface.
- Receives ambient_temperature and object_temperature from a Melexis MLX90614 sensor connected to the AVR's I2C (TWI) interface.
- Receives sensor_resistance from a Figaro TGS 2600 sensor connected to the AVR's Analog to Digital Conversion pin 0 (ADC0).
The received sensor values are transmitted over the UART interface and / or over Ethernet using UDP messages as JSON object.
JSON Schema:
{
"type": "object",
"patternProperties": {
"^rf433_[0-6]$": {
"type": "object",
"properties": {
"temperature": {
"description":
"Temperature (in °C) from wireless sensor.",
"type": "number"
},
"humidity": {
"description": "Humidity (in %) from wireless sensor.",
"type": "integer",
"minimum": 0,
"maximum": 100
},
"battery": {
"description": "Battery status.",
"type": "boolean"
}
}
}
},
"properties": {
"dht22": {
"type": "object",
"properties": {
"temperature": {
"description":
"Temperature (in °C) from DHT22 sensor.",
"type": "number"
},
"humidity": {
"description": "Humidity (in %) from DHT22 sensor.",
"type": "number",
"minimum": 0,
"maximum": 100
}
}
},
"bmp180": {
"type": "object",
"properties": {
"temperature": {
"description":
"Temperature (in °C) from BMP180 sensor.",
"type": "number"
},
"pressure": {
"description":
"Barometric pressure (in hPa) from BMP180 sensor.",
"type": "number"
}
}
},
"mlx90614": {
"type": "object",
"properties": {
"ambient_temperature": {
"description":
"Ambient temperature (in °C) from MLX90614 sensor.",
"type": "number"
},
"object_temperature": {
"description":
"Object temperature (in °C) from MLX90614 sensor.",
"type": "number"
}
}
},
"tgs2600": {
"type": "object",
"properties": {
"sensor_resistance": {
"description":
"Sensor resistance in Ohm from TGS 2600 sensor.",
"type": "integer",
"minimum": 0
}
}
}
}
}
- See also
- Sensors::HidekiSensor
-
Avr::Dht22
-
Sensors::Tgs2600