Doppler effect with PING)))
iMMOS
Posts: 14
I was wondering if a ping sensor could could be useful to determine the speed of robots such as the BOE BOT.has anyone tried this before?Is it doable?
Comments
1. Measure time (could just be 2hz "ticks" or similar)
2. take a Ping reading
3. save distance
4. wait 1/2 second
5. Measure time
6. take a Ping reading
7. difference between two readings / time = speed
Not sure it's worth it though as the boe-bot moves relatively slowly, and the ultrasonics may give you spurious readings on occasion. Encoders would probably be a more reliable measurement of true speed.
That said, I have often used a trick with ultrasonics not to determine speed, but to see if a 'bot is "stalled" -- if the ultrasonics return a distance of 150cm, and the 'bot is moving forward at full speed, then the next distance reading should be significantly less than the first reading. If it is about the same, then the 'bot must be stalled. Again, this kind of trick only works if the 'bot is always in an environment where the "walls" are less than the maximum readable distance of the sensor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php