Distance measure with servo motor and ultrasonic sensor
Ultrasonic sensors can gauge the distance to a wide scope of items paying little mind to shape, shading or surface. They are additionally ready to gauge a drawing nearer or subsiding object. By utilizing "non-contact" ultrasonic sensors, distances can be estimated without harm to the article.
COMPONENT REQUIREMENT:
1. ARDUINO UNO 2. ULTRASONIC SENSOR 3. BREADBOARD 4. SERVO MOTOR 5. CARD BOARD 6. JUMPER WIRE
PROCEDURE:
STEP - 1
Take the card board and mark the measurement in centimeter (cm). Cut the rectangle shape in card board to glue the servo motor with a needle.
STEP - 2Fix the ultrasonic sensor into the breadboard and connect the jumper wire. Spot the red jumper wire as positive and black jumper wire as negative.
STEP - 3
Connect the wire as given below,
* Ultrasonic sensor VCC to Positive of the breadboard
* Ultrasonic sensor Trig to Arduino Pin-6
* Ultrasonic sensor Echo to Pin-7
* Ultrasonic sensor GND to Negative of the breadboard
* Breadboard positive ( Red jumper wire ) to Arduino 5V
* Breadboard negative ( Black jumper wire ) to Arduino GND
STEP - 4
Connect the measurement board jumper wire into the Arduino board as given below,
* Servo motor yellow jumper wire to Arduino Pin-10
* Servo motor Red jumper wire to Positive
* Servo motor Brown jumper wire to Negative
STEP - 5
No comments