Wednesday, February 12, 2014

day 11 ultrasonic






Ultrasonic Sensor
The Ultrasonic Sensor is a transducer, it can send and receive signals. By sending a signal it can count how long it takes for the signal to come back. The time it takes for the signal to come back multiplied by the speed of sound is the distance.




To enhance the robot I am now able to stop a curtain distance from the walls instead of hitting them. Here is an example of such code.

No comments:

Post a Comment