Sunday, May 17, 2015

Control the motor and arduino: 1. ultrasonic sensor

I used the ultrasonic sensor that measured distance, so if object get closer the LED light up according to the distance from the sensor.



I connected the sensor and LED on breadboard.
At first, it just turn on the LED light if the distance get closed.


1. Turn on the LED depending on a distance


2. LED flickered depending on a distance

No comments:

Post a Comment