Tag Archives: sonar

Balancing robot – without gyros

Bot balancing without gyros … for a few seconds at least No gyros, no accelerometers – only a sonar ranger and lots of code. The motors used are standard servos modified for continuous rotation, sonar sensor is a HC-SR04 as detailed in a previous post Code ? Well here’s a simplified portion of the PID […]

Posted in Arduino, robots | Also tagged , , Leave a comment

Ultrasonic robot avoids walls

Using an ultrasonic sonar ranger to avoid walls – and people’s feet – before hitting them: At first I was getting plenty of false readings, so here’s the first run, pausing and verifying before turning: With faster code, and not stopping: Improved accuracy, so it detects smaller objects like feet:

Posted in Arduino | Also tagged , Leave a comment