I want to create the following:
To have a Xbee(series 1) control a RC tank(2 motors and an analog distance sensor) and receiving it’s data from a Xbee(series 1) connected to a computer.
Currently I have 2 Xbee series 1 radio’s, One connected to a computer and one connected to the robot(okay LED’s for testing but it’s the same).
The problem is that I’m lost how to set up the radio’s.
I know that the sender radio needs to send any serial data over RF to the other one. And the receiver needs to interperted this data and switch the IO or read the ADC en send the value back.
I need the following IO:
2 IO direction control for motor 1.
2 IO direction control for motor 2.
1 Analog for distance sensor.
2 PWM output for motor speed(Or at least one, then both motors run at same speed).
Can someone help me or point me in the right direction(or say it’s impossible and why)?
That all sounds perfectly possible. You’ll need to read the product manual to see how it all works, and you might also like to look at the pinned posts at the top of this forum for other resources.
Then if you have any specific questions, I’m sure we’ll be happy to try to help.