Hi everyone
I am building a remote control for a robot as my university project.
I went with the Agent 390 vehicle, used the 313 RPM Planetary Gear DC Motor, MDD10A motor driver, and Arduino Uno as the brain.
I did some research and found that xbee series 2 is the best choice since it can support two way communication better than series 1.
This is the part where I am lost, i found some videos where they used extra components like shields, and something called Adafruit powerboost.
Like I said, I am still a beginner and would really love some guidance from you. How should I approach it, and modules should I exactly use for this project.
Arduino Xbee wireless control car - YouTube I found this video, but unfortunately, it's unclear of what parts he used, if I can get some help in this matter I would really appreciate it
mike675:
I did some research and found that xbee series 2 is the best choice since it can support two way communication better than series 1.
Can you post your sources on this? Both the XBee S1 and S2 series are half-duplex and do not support simultaneous two way communication.
The only way to have reliable two way communication is to have two sets of XBees where each XBee is either a listener or transmitter, but never both. This will require you to bind each transmitter to its respective listener on different frequency bands so that packets from one transmitter don't interfere with packets from the other transmitter.
I know that's a rough explanation - do you have any questions on it?
No I got you.
we noticed this problem at first, but half-duplex is basically splitting the time of the full-duplex right?
in out project, we will send the instructions from the remote to the robot to move it, and occasionally we will need some info. from the robot back to us (we will be mounting a GPS module to send the location back to us)
we don't want simultaneous communication.
mike675:
we noticed this problem at first, but half-duplex is basically splitting the time of the full-duplex right?
Not necessarily
How does the robot know when it's allowed to send data back to the users? If both XBees try to send data at the exact same time, you will lose both packets.
While such a problem isn't impossible to solve, it is rather difficult (I've tried it myself). What you can do though, is determine when you need data, have a special command to query for that data, send that command, and wait for the robot to send the data (during such wait do not send any XBee commands - keep radio silence). You could even implement a timeout function and requery the bot if it doesn't respond fast enough.
Or you could get a second set of radios