This post explores how to establish a communication between multiplethat are connected with sensors to one receiving Xbee that is connected with computer. Xbee 802.15.4 with chip antenna is used in this example.
This example is applied to WIRELESS JOYSLIPPERS. For detail of the physical construction, please see the Wireless Joyslippers post.
This example involves two Xbees sending sensor () inputs to one Xbee that is connected to a computer with USB dongle.
Here is how the AT command is setup for each Xbee.
The Sender1 and Sender2 Xbee’s IR rate is different. This is because I experienced data colliding when the rate is set to same. With this current setup, the collusion problem is reduced, though, data is still a bit jumpy time to time and I need a better solution to avoid the data collusion. I will keep updated with coming improvements.
Here is how the sensor Xbees are set up on breadboard. It is same as XBEE DIRECT (SENSOR-XBEE-COMP)
JOYSLIPPERS have two pressure sensors on each slipper. We are using one Xbee on each slipper to wirelessly send sensor data to a computer via receiver Xbee connected with USB dongle.
Here is the processing sketch for receiving 4 sensor data from JOYSLIPPER, that is a simple modification of XbeeApiExample.
insert video here