In this project you can see how can we control servo motor using arduino and ultrasonic sensor.
How the project work :
when ultrasonic sensor read 5cm distance ore less servo will rotate in 120 degree , else servo will rotate 0 degree
Arduino will print the distance on serial print . You can change the code easy if you need to do other things.
|
|
Scooped by
Gumersindo Fernández
onto tecno4 January 6, 2017 10:49 AM
|
Your new post is loading...