i was watching some videos and i came across this robot called the dog robot. using some ultrasonic beacon's to know were to go here is the link to know how to make them.
so i had this question, can this be attached to and EZ-B?
Upgrade to ARC Pro
ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.
I would think so. the Hasbro r2d2 has this same feature. he will follow you around.
-with the ezb you can use the ping radar to scan for you
-as you move away the reading will drop
-you can write a script for the robot to move forward when the variable drops.
off the top of my head
if(adc, 1 < 50)
forward 100
if(adc, 1 > 50)
stop()
or something super easy like that to start off.
There's probably a better way for the script but you get the idea
You would also want it to turn to find you if you moved to the side, otherwise it would continue forwards until it got close to something else. But the answer is yes it can be done.
Rich, wouldn't that cause the robot to stop once and then get stuck in a stop loop? This is what I got from the script(my own words):
If ping sensor reads less than 50
Go forward
Loop point
If ping sensor reads more than 50
Stop
Else
Goto the loop point
The script will move the bot forward, but as soon as the robot gets close, it will stop, and then will keep looping around if ping equals more than 50 stop. It will never engage forward again.
Oh and just noticed, shouldn't it be if it equals more than 50 go forward and less than backward?
It would be part of a much larger script, but yes, on it's own it would move forwards until it found something then stop, once stopped it will break free from the loop and just end the script.
sorry i confused the link of the video... the vid is this one
still no go.
Here you go...
I would think so. the Hasbro r2d2 has this same feature. he will follow you around.
-with the ezb you can use the ping radar to scan for you -as you move away the reading will drop -you can write a script for the robot to move forward when the variable drops.
off the top of my head
if(adc, 1 < 50) forward 100 if(adc, 1 > 50) stop() or something super easy like that to start off.
Slight corrections... based on the ping sensor that comes with the EZ-Kit
Ping will increase as you get further away Ping is on 2 digital ports and used GetPing()
Very quickly before I head off to get some sleep (something I should have done 45 minutes ago!)
There's probably a better way for the script but you get the idea
You would also want it to turn to find you if you moved to the side, otherwise it would continue forwards until it got close to something else. But the answer is yes it can be done.
Rich, wouldn't that cause the robot to stop once and then get stuck in a stop loop? This is what I got from the script(my own words):
If ping sensor reads less than 50 Go forward
Loop point
If ping sensor reads more than 50 Stop Else Goto the loop point
The script will move the bot forward, but as soon as the robot gets close, it will stop, and then will keep looping around if ping equals more than 50 stop. It will never engage forward again.
Oh and just noticed, shouldn't it be if it equals more than 50 go forward and less than backward?
It would be part of a much larger script, but yes, on it's own it would move forwards until it found something then stop, once stopped it will break free from the loop and just end the script.
and what about the more than less than being switched?