Arduino Wireless Serial Communication

by ehsmaes in Circuits > Arduino

192907 Views, 137 Favorites, 0 Comments

Arduino Wireless Serial Communication

DSC_0134[1].jpg
There are many ways to communicate with remote Arduinos. I have found that many of them hit a slightly higher price point than what I would like. Also, ethernet shields (and wifi dito?) consume many valuable hardware pins. I will describe how to communicate host to Arduino using commercially available wireless serial ports. They are cheap(ish) and only use the rx/tx pins. The drawback is that the air-protocol isn't encrypted so I wouldn't use it for sensitive applications. I use it to control lighting. I would be more impressed than offended if a neighbour hacked my indoor lighting. Serial ports (even wireless) are designed for point to point communication. It is possible to use in one-to many or other constellations but certaing design consideration have to be taken. My Arduino library referenced in step 5 supports one-to many.

The described project is for one-way or two-way communication using (i. e. transciever). If you know you will only send commands "blindly" you can attach a transmitter to the PC end and a receiver to the Arduino. Those modules are really cheap.

What You Need

DSC_0122[1].jpg
  1. USB serial adapter
  2. Two or more Wireless RS232 modules (e. g. EWRF 3022)
  3. Arduino. It's a Nano in the picture but any model should due.
  4. A gadget box
  5. Soldering equipment
  6. Basic Arduino skills

Attach the USB Module to the Transciever

52cdbce2dbf3ec2859000094.jpg
DSC_0128[1].jpg
The VBUS connector on the USB module provides +5v for the transciever. Cross rx/tx lines. See pictures.

Fit the Modules in the Box

DSC_0125[1].jpg
DSC_0124[1].jpg
DSC_0129[1].jpg
DSC_0132[1].jpg
For the PC-end I added a small enclosure. Drill a hole for the antenna and dremel an opening for the USB socket.

Attach the Second Transciever to the Arduino

52cdbd51dbf3ec98ad0000b3.jpg
DSC_0134[1].jpg
Attach vcc, gnd and rx/tx (crossed) of the transciever module to the Arduino

Load the Software

Flash the Arduino sketch of choice, which uses serial communication with a PC.

If you want to write your own interaction you may want to check my CmdCallBack library out. The library makes it easy to link commands with parameter with callback functions in the sketch. I might make a separate Instructable about that.

Try It Out!