| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
XBeeSensor
Example XBee sensor code for ATTiny85 + XBee S2 + various sensors.
The core code is compatible with ATTiny85 and ATTiny84 MCU's and is interchangable. Core function is:
Code variants incuded in this pack are:
Xbee runs in transparent mode, with pin sleep enabled. Using the endpoint device firmware profile ATTiny uses sleep mode in-between sample intervals (set to 15min, but configurable via the INTERVAL constant).
Hardware can be powered by a number of supplies. Running experiments with 3.6v lipo, single AA with 3v3 booster, and 2xAA's with no regulator. Watch out for Xbee's 3v3 max supply voltage! Generally, best performance seems to come from a 2xAA config and 15min sample interval. Paper calculation showing 2 years +.
Code wakes up Xbee and sends data string to XBee co-ordinator in the format:
dataset,value,vcc,xbeeaddress
Where:
dataset = String to denote the sensor dataset (ie temperature, humidity etc) value = the raw sensor value vcc = current supply voltage of sensor (useful for monitoring battery life of remote sensors) xbeeaddress = the lower half of the 64bit unique address. Allows for multiple datasets of the same name across different xbee sensors.
Hardware
The 2x Fritzing sketches are fully tested and are currently used to capture reads. These can be ordered directly via Fritzing.
Credits
Without these guys, neither the inspiration or solution would exist:
| Back | FazBrowse Home | New Git URL |