Skip to content

Latest commit

 

History

History

Ultrasonic_with_Servo_and_LED

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Ultrasonic Sensor with Servo, LED, and Buzzer

A simple Ultrasonic Sensor showcase which infinitely moves from left to right using a Servo Motor. If an object is detected along its path, the LED and Buzzer will go HIGH.

❓ How to use

  1. Download and install Arduino IDE.

  2. Include Servo.h library.

  3. Modify object distance detection to your liking.

    if (distance <= N) : Line 53 & 74

  4. Before uploading the code, make sure that you have selected the correct BOARD and PORT of your Arduino by going to Tools->Board and Tools->Port.

    Verify and Upload