book collections email follower instructable user

Step 9: Ultrasonic Sensors

Picture of Ultrasonic Sensors

The ultrasonic sensor code is particular to each setup and bug type. Therefore we will not be including it in this instructable. However the overall logic is the same for all types of movement: change the Setpoint variable to be more than 0 and the robot will travel one way, change it to be below 0 and the robot will travel the other way. You can also multiply constants to each wheel's speed to get the robot to turn left and right.

(Update: Upon further consideration this section will be detailed soon)