Controlling the speed of motor using SR04 Ultrasonic sensor

Thread Starter

saiteja12

Joined Jan 4, 2017
17
Actually I want to build a project. using arduino uno and sr 04 ultra sonic sensor, I want to control the speed of a dc motor. When the distance is very small, the motor stops rotating. When there is no obstacle, the motor start rotating. Can someone help me in doing this. I want arduino code and required components.
 

DNA Robotics

Joined Jun 13, 2014
670
Start with the SR 04 shield & sketch and an LCD to see the numbers. When you get that working, add the motors, control board & their sample code & use the SR 04 numbers to control it.
 
Top