Close
0%
0%

Arduino Light Tracking Robot with LDR

Hey there, here in this article, I’m going to guide you to make an Arduino Light Following Robot. This is very easy to make (for beginners)

Similar projects worth following
0 followers
Things used in this project
Hardware components
•• ARDUINO UNO
• L293D MOTOR DRIVER
• LDR Sensor Module
• DC MOTOR
• Propeller
• 18650 LI-ION BATTERY
• 18650 LI-ION BATTERY HOLDER
• CHASSIS FOR BODY
• PCB BOARD BY JLCPCB
JUMPER WIRES

SOFTWARE COMPONENTS
• ARDUINO IDE
• EASYEDA
• JLCPCB
Hand tools
• Soldering iron
• Drill Machine
• Glue Gun

Before starting let’s see first What you will learn from this instructable:

· Making the right hardware selection for your project depending on its functionalities.

· Prepare the circuit diagram to connect all the chosen components.

· Assemble all the project parts (mechanical and electronic assembly).

· Finally designing your own ARDUINO-based Light Tracking Robot.

Mechanical Part

  Our first step will be to make the robot body. so, here we have to make a DIY chassis and assemble TT gear Motor with the robot chassis.

Electronics Part

Now we are going to assemble all the components with the PCB. I have made a PCB file to make it easy to assemble and ordered my PCB from JLCPCB. They are very professional in PCB making and the build time was short. I received my item within 7 working days.

After getting the PCB it was just a less than 2 minutes job to assemble all the components in a proper way.

Arduino Coding

Now I had to upload the code to the Arduino UNO.So I have attached the USB cable that comes with the Arduino UNO board and follows the steps mentioned below

· Open Arduino IDE on your PC

· Connect ARDUINO with PC via USB Cable

· Go to Tools > manage libraries > Search for AF Motor driver and download

· Go to Tools > Board > and select Arduino\Genuino UNO

· Go to Tools > Port > Select proper COM port

· Now Verify the code and then upload it

Assemble all parts together

Here in this part, I am going to assemble all the parts like wheels, chassis encloser together and insert the 18650 li-ion battery on the battery holder.

And here is how it finally looks like…

Now the robot is ready to go…

About JLCPCB

JLCPCB (Shenzhen JIALICHUANG Electronic Technology Development Co., Ltd.), is the largest PCB prototype enterprise in China and a high-tech manufacturer specializing

in quick PCB prototype and small-batch PCB production. With over 10 years of experience in PCB manufacturing, JLCPCB has more than 200, 000 customers at home and abroad,

with over 8, 000 online orders of PCB prototyping and small quantity PCB production per day. The annual production capacity is 200, 000 sq.m. for various of 1-layer,

2-layer or multi-layer PCBs. JLCPCB is a professional PCB manufacturer featured of large scale, well equipment, strict management, and superior quality.

ino - 2.04 kB - 04/23/2021 at 16:40

Download

JPEG Image - 453.62 kB - 04/23/2021 at 16:39

Preview
Download

  • 1 × arduino uno
  • 1 × L293D Motor Driver
  • 1 × drill machine
  • 4 × TT gear motor
  • 1 × glue gun

  • 1
    Arduino Code Upload

    ***Please don’t forget to remove/detach the remove the yellow jumper cap from the motor driver before uploading the sketch/code. Re-Connect it after the code has been uploaded successfully.

  • 2
    Troubleshoot:
    • The programmer is not responding: If you face this error then it may be because of the Motor Driver. Make sure that you have removed or detached the yellow cap of the motor driver before uploading the code & attach it again once you have done uploading.
    • The motor is not rotating in the right direction: If you face this issue then you don’t need to modify any code. You just have to Interchange the motor wires. In a simple way, I can say just connect the Motor to the Motor driver
    • Not following the light or running before you have applied the light: This will happen when the LDR sensor modules are not calibrated properly. Put lights on the sensor &  Calibrate them by rotating the potentiometer attached with them. 

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates