Lesson 1 of 0
In Progress

Servo Movement using IR sensor

Servo Movement using IR Sensor

Servo Movement using IR Sensor

Aim:

The main aim of the project is to operate the servo motor with the help of IR sensor.

Components Required:

Sr. No Component Quantity
1 TeBoT and cable 1
2 Servo Motor 1
3 Jumper Cable(M-M) 3

Connection and Code Upload:

Step 1: Connect the TeBoT with your device and turn on it.

Step 2: Select the board and port, then upload the code.

Warning: If you face any issue while uploading the code, then first “OFF” the TeBoT. Next, turn “ON” the TeBoT. Press the “BOOT” button for a short time then press the “RESET” button once. Then release the “BOOT” button.

You will get a drive. Then upload the code.

Step 3: Connect the servo motor with TeBoT.

Servo Motor TeBoT
VCC (Red Wire) VCC (1st pin from right to left in Ultrasonic Port)
GND (Brown Wire) GND (1st pin from left to right in Ultrasonic Port)
Signal (Orange Wire) Pin No 14 (2nd pin from left to right in Ultrasonic Port)

Now, when you take your hand in front of the “IR-A2” sensor, the servo will rotate and when you take your hand away from “IR-A2” sensor, the servo will come to its original position.

Conclusion: From this project we got the idea about all components, connection of those components and made the servo movement using IR sensor.