Home/Support/Support Forum/Wireless Relay using Digital I/O Line Passing in AT mode?

Wireless Relay using Digital I/O Line Passing in AT mode?

0 votes
Looking for programming help. I have 3 XBee pro S2C (lets call them G, H1, and H2 just for labeling) modules. I am looking for 1 input on "G" to be an output on the other 2 "H1, H2". Also I would like 1 input on the 2 to be and output on the 1. Here is what I am using.

I am using the sparkfun USB Explorer Board for each and the Beefcake Relay to be what needs to be switched on each.

XBEE "G" I have a button on PIN 11 (DI4) to ground (Input). I also have the Relay control on PIN 20 (DO 0).
Programming I have them on 802.15.4 TH Pro. Everything is default except. D0 is set to DO Low. D4 is set to DI. IC set to 10 (D4 Change detect).

XBEE "H1 and H2" I have wired the same. Button on PIN 20 (DI0) and Relay on PIN 11 (DO4). Programming I have them on 802.15.4 TH Pro. Everything is default except. D0 is set to DI. D4 is set to DO Low. IC set to 1 (D0 Change detect).

I have set G as coordinator and the other 2 as end points. I have set them all to end points. I Have even tried to just get G to connect to H1 by setting the destination on each and eliminating the H2 just to start. when I press the button I am getting an RSSI light on the receiving xbee. It is not activating the Relay though.

I have also set the DO to High and that manually turns the Relay on but it will not change the state.

Anyone have any advice for my stuck project and where I have messed up getting the output to change state?
asked Feb 21, 2017 in IEEE 802.15.4 by walte1fr New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
First off, you need to use the DL/DH/MY/SL and SH commands to tell the Input who to send the change detect to.

Next, the modules can only provide 4mA of current at best with a voltage change from 0 - 1.2V. If your relay requires more current or a higher voltage, then you are going to need to add some additional circuitry.
answered Feb 21, 2017 by mvut Veteran of the Digi Community (12,779 points)
...