This example explains how to send sensor input (analog) wirelessly to computer via(Series 1 802.15.4) without using microcontrollers.
You need to set up the AT command for both receiver and sender.
You can use X-CTU or some kind of terminal software, Rob Faludi’s Xbee Terminal Max. I am using a small Max Patch made by Ingo Randolf. You can download this max patch from here>>
Screen shot of serialterminal_Xbee patch
|ATID||1234||1234||PAN ID. it should be the same|
|ATMY||0||2||address. should be different|
|ATDL||0||0||0 is the broadcast mode|
|ATD0||-||2||pin0 config: analog in mode.|
|ATIR||-||14||sample rate. 20 millisecond.|
|ATIT||-||2||sample before transmit 2|
AT command setup example
Connect the sensor to Xbee as following, and power the Xbee and sensor.
If you are supplying power bigger than 3.3V such as 9V battery or three AA batteries, you need to use 3.3v voltage regulator to supply 3.3V. You can also check the SEWABLE 3.3V REGULATOR post.
For testing, I am using Dicimila’s 3.3v power supply. Easy way to get 3.3V.
Here, you can see I am receiving address of the sender and analog value (the first one)
It helps to use ATRE (firmware reset) before starting a new project. Sometimes the AT command setup you put in the last project conflicts with the project you are working on and resulting to make you shout “…why does it NOT work??”