Examples | Shop
 
Wireless Microcontroller Networking
 
This example application demonstrates how simple it is to communicate wirelessly between different microcontrollers all on one wireless network using the DS-FWCM (Fast Wireless Control Modules).
This application has been set up as a small sample of the FWCM’s networking power. In fact you could wirelessly network 255 microcontrollers together!
In this example, an OOPic-C*, Basic Stamp 2p** and BX-24*** are used. Each controller is connected to a FWCM. The OOPic-C also has an SRF08 ultrasonic range finder and the BS2p has a serial 4 x 20 LCD screen attached. The BX-24 is connected to as PC comms port running the BX24 debug window.
The OOPic-C reads values from the SRF08 over its I2C network. These readings are then written to the FWCM(1) to be sent to the BS2p connected FWCM(2).
FWCM(1) continues to send the data byte until it receives confirmation of receipt from FWCM(2). The OOPic-C will then take another SRF08 reading and write this to FWCM(1).
When FWCM(2) receives a reading the BS2p reads the data from the FWCM(2) and prints this information to the serial LCD module. If this sonar value drops below a value of 30cm, the BS2p sends an alarm data value to the FWCM(2) which sends the data onto the FWCM(3) connected to the BX-24. FWCM(2) and the BS2p will continue to send this data until confirmation is received that data was transferred without error from FWCM(3).
The BX-24 reads the necessary data from FWCM(3) again over the I2C network, and prints all information to the debug window on the PC screen.
This example shows how to write to different FWCM Nodes on the wireless network enabling error free data over the wireless network, from one micro to another.
Download the code here.
* OOPic is a trademark of Savage innovations
** Basic Stamp 2p is a trademark of Parallax Inc
*** BX-24 is a Trademark of Netmedia
Download the code here.

Examples | Shop