Ultrasonic Servo?

May 29th, 2014

I am currently adding support for ultrasonic range sensors to the RoboPi firmware (Parallax Ping, SeeedStudio and HC-SR04), and it is going quite well!

Yesterday I had a bit of fun controlling a servo position based on the distance reading from an inexpensive HC-SR04 sensor! Move my hand closer or away and the servo turns left to right, and centers if my hand is too far away.

The servo was more jittery than I’d like, so I am investigating weather it is a timing issue, or an issue with the inexpensive Tower MG-995 servos I am currently using. Time to pull out a scope or logic analyzer!

p.s.

In case you are curious about the PropPlug in the photo, I develop the RoboPi Linux libraries under Ubuntu on a beefy development box, and re-compile (and re-test) on a Raspberry Pi before release.

For more, please see:

“The Better Mousetrap Servo Tester”

“HexPi – Hexapd Pi Robot”

“RoboPi”

Comments are closed.