Arduino Sensor messaging
Version 3.6 Alpha; Message format may (and will) probably change between LamPI releases
Introduction
When using the Arduino as a sensor 'shield' for 433MHz messages, the board will transmit the values of on-board sensors over the air in the well-known WT440 message format. Unless the Arduino Repeater, the Arduino Sensor does not need a receiver installed. Instead it will only use the on board sensors nd transmit their value over the air to another Arduino Gateway or Raspberry wih connected receiver device.
The Address that will be used by the Arduino Sensor is configurable in the 433Sensor.h file at compile time. This way, every Arduino Sensor can use its own address to send sensor values and can be recognized uniquely by the LamPI-node daemon.
Alternatively, you can send on an address that is shared with another Arduino Sensor in order to get more readings and the daemon will sort of average-out both values.
Message Format
The standard WT440 only supports temperature reading, the WT440h also reports humidity. And by using some unused bits we can also report airpressure and use BMP180 sensors for example.
- Temperature and Humidity -> Use the standard WT440 message format
- Temperature Only -> Use the standard WT440 message format
- Temperature and Airpressure -> Use the special format of the WT440
- special value of 0x7 used for the constant value to code airpressure
- Airpressure is coded as: sensor-value / 100 - 930
- Battery Status (%), xx.y % format is sent over the air as xxy (so divide by 10)
The channel settings are as follows:
- Channel 0: HTU21d reading, the constant in the 433 message is coded standard as 0x6 (B110)
- Channel 1: BMP085 reading, the constant in the 433message is coded as 0x7 (B111) and the airpressure is coded as
value = sensorvalue/100 - 930;
- Channel 2 and up: ds18b20 sensors reading (there might be more on that bus). Constant is coded 0x6, and humidity is 0 (not used).
Further reading
- For more information about Raspberry and Arduino Gateway, visit the dedicated page on the Hardware Guide.
- For more information on the 433 MHz messaging formats recognized by the Arduino receiver, visit the 433messaging page
- For more information on the Arduino sensor read its page