Hey guys I would just like to hear your suggestions on how you would program a robot so that if the rf receiver goes out of range have the robot stop so that it doesnt run away from me?
I mean press the button and off it goes but now its out of range how do I stop it :o
Thanks.
I would monitor the RSSI.
so that if the rf receiver goes out of range
Which RF receiver? What range? How fast can the robot go out of range?
Hey aarg thanks going to see if I can find one that has rssi output.
Paul I have the below:
http://www.seeedstudio.com/wiki/index.php?title=315Mhz_RF_link_kits_-_with_encoder_and_decoder
http://www.hobbytronics.co.za/p/28/433mhz-rf-link-kit
Im trying to get about 70meters, with the 433Mhz pair im getting about 30meters without antennas at the moment and low voltage on the transmitter.
As for how fast it can go out of range, it drives more or less average human walking speed thats I think 7kmh.
Thanks.
As for how fast it can go out of range, it drives more or less average human walking speed thats I think 7kmh.
So, the robot should never travel more than 100 meters/30 seconds without receiving a "Carry on, you're doing a great job" type of message. If it doesn't get that, it should stop.
Ok I get it I actually tried something similar using a counter to stop it if no signal is received but then I was sending signals every 10us and that made it very jerky as the rf tends to miss 1 or so msgs now and then.
What would the best timer be - millis, micros or just a counter++?
Also your plan will work but thats obviously only based on when you standing still what happens when you walk with the robot, you would have to be pressing the button every 30seconds haha
Do you think theres away around that?
Thanks for your replys.
Send a signal say every 100ms according to what button has been pushed. If none, send a "stop" message. If the receiver gets nothing for 500ms, it will stop. You can use millis() for that- reset the counter when you get a message.
Ok thanks all will give it another try.