🚦 3 Blink XBee... w/o libraries

20250722_131601-ezgif.com-optimize

This project involves the use of API Frames to send instructions from one XBee to another. The state of individual pins is done by switching the D1, D2, D3 pins of the XBee to HIGH and then LOW. This in turn turns a LED with resistor on or off.

Start by clearing your XBees to "Default" using XCTU. Then, update only:

ID - PAN ID Any four digit number, just make both XBees the same.
CE - Coordinator Enable (or not), make one "Coordinator" and the other "End Device".
AP - API ENABLE on the Coordinator and the second XBee set to "API Disabled".

Note: Feel free to put in a name in the NI field. This is optional for this project.

The build:
On the Coordinator/Arduino use TX→RX and RX→TX while running XBees.
On the XBee w/LEDs use pins D1, D2, D3 with LED and (3) 220Ω resistors to ground.
On both XBee use 3.3V to run all XBees and GND all XBees as well.

Actual hexidecimal output by the coordinator XBee:

Wireless3Blink

Arduino (coordinator) code:
Wireless3Blink.ino (1.6 KB)

Video of this code at work:

1 Like