Line passing with xbee's is, sending (high or low) to I/O pin on the xbee;s. Let's say pin 10 goes high, on xbee1. The other xbee2, let's say pin 8, will go high. If pin 10 on xbee1 goes low, then xbee2 pin8 will go low. Then on xbee2 if you were to use pin 4 (high). Xbee1 pin 3 will go (high).
It's kind of like A momentary switch.
Here is what I am shooting for, use (Arduino,ping,xbee,resistor and led) will = Box1 and
(Arduino,ping,xbee,resistor and led) will = Box2.
Box1 (if ping1 > 10 will = (High or Low), that will all so send (High or Low) to Box2, with line passing to xbee2.
Box2 (if ping2 > 10 will = High or Low), that will all so send (High or Low) to Box1, with line passing to xbee1.
1 = High and 0 = Low
If box1 ping is 7 = 1 If box1 ping is 78 = 0
If box2 ping is 5 = 1 If box1 ping is 36 = 0
Box1 Box2
ping = 1 allso send 1 to box2 input xbee2 = 1
input from xbee1 ping = 1 allso send 1 to box1
H
If (inputxbee1 and pin =1) If (inputxbee2 and ping = 1)
digitalWrite led1 = 1 digitalWrite led1 = 1
====================================================================
Box1(ping1)(inputxbee1)(Led1)Box2(ping2)(inputxbee2)
(Led2)
if 1 0 0 0 1 0
if 0 1 0 1 0 0
if 1 1 1 1 1 1
This is how the program should work.
