License

DIY Line Follower Robot

1 year ago 2336
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

Description

enter image description here Introduction: Since a lot of our followers asked for a tutorial to guide them to make a basic Robot we decided to provide this instructable that describe a step by step making of LINE FOLLOWER Robot, so you will find all the necessary software and hardware parts to make your own Robot following these steps

Note: In this project the main part was made using EasyEDA Platform, so I advice you could click directly the following link the PCB automatically: Direct link for Line follower Robot project and custom PCB on the same platform.

Description: A Robot is any machine which is completely automatic, it starts on its own, decides its own way of work, stops on its own it is a system that contains sensors, control systems, manipulators, power supplies and software all working together to perform a task automatically with speed and precision. There are as many different types of robots as there are tasks for them to perform.

Any robot has these essential characteristics: Sensing, Movement, Energy and Intelligence.

Step 1: What Is a Line Follower Robot?

enter image description here

Named line follower robot simply because it follows the black track that you design for it so we need two DC motors to make it move and for sure some sensors like the IR transceiver to detect the line and follow it, without forgetting the processing unit which is an Arduino Nano in our project, Arduino is the most popular development kit based on a microcontroller, but you can use other microcontrollers(pls check out the in-depth introduction to microcontrollers, where you can learn a lot from) to be able to drive the wheels depending on the sensors signals and to do so, we need an L293 motor driver which allows us to control the direction and the speed of DC motors. So if you want to make the robot turn left you should slow down the left motor and speed up the right motor, the opposed case for turning right and keep both motors running at the same speed for straight movement.

enter image description here

But how to find the black line! To make the robot follow the line, IR sensors are employed with the fact that black surface absorbs light and white surface reflects light. The sensors are mounted on left front end and right front end of the robot keeping the black line lies in between them until sensors are getting the reflected light, the comparator sends logic 1 to the microcontroller and the microcontroller in turn switches ON the motor associated with the sensor and when any of the sensors comes up on the black line the microcontroller stops the motor associated with that sensors and make the robot turn in the direction of the black line.

When the robot reaches end point and both the sensors are getting black surface, robot stops.

enter image description here

Step 2: Design of the Mechanism

A Robot should have a structure to hold the electronic parts so we did some software design for the robot I mean the robot mechanism and to do this I used SolidWorks software to make the upper base and the lower base for the robot so you can find and I provided the (.dxf) files if you want to make some CNC laser cutting and produce your own mechanism.

Step 3: The PCB Design Using EasyEDA Platform

Get schematic & PCB

enter image description here

About EasyEDA! EasyEDA is a free online Electronic design automation community that allows the creation, testing and editing of schematics and PCBs. Find the link to the EasyEDA platform here.

This online program is supported in all platforms even android, with EasyEDA you can make a Schematic Capture for your documents, Circuit Simulation, Online PCB Designing with the ability of importing PCB and Schematic files, so from this point we can understand that we can create the PCB in this online designer or just make it with another software and upload a gerber file to easyEDA to place an order.

enter image description here

How to custom PCB on EasyEDA! As usual we need to run the EasyEDA platform from here, then start a new project and import the necessary components like Arduino Nano, L293 motor driver the header connectors etc and connect them together to make the circuit showed in the picture, after that just click on convert project to PCB then you will get your PCB design area. Click directly the following link the PCB automatically: Direct link for Line follower Robot project

You can also check the PCB before ordering PCBs using the PCB viewer, and I provided a picture that shows the PCB that we designed.

After finishing the design, go to fabrication output and set some parameters, for me I prefer the black color for my PCB. Do the payment and wait for the delivery.

enter image description here

Five days later, I’ve got my PCBs and it is really awesome with the black color the circular shape the name of our robot PICTO92 and all the tags that I’ve made, actually this is not the first time the EasyEDA impress me this high quality making was expected.

Step 4: Reviewing the Components

enter image description here

In order to make this project you will need the following components:

The Plexiglas mechanism PCB from EasyEDA Two DC motors with two wheels One Arduino Nano Four infrared sensors (TCRT5000) L293 motor driver Four LEDs 3mm Four 330 Ohm resistors Header connectors 9V battery for power supply

Step 5: The Assemble

enter image description here

All what you need know is to solder the components to the PCB and complet the circuit as showed in the picture. We provided some Labels on the PCB to guide while soldering the components.

enter image description here

After that, use the screws to attach the DC motors and IR sensors to plexiglass structure and some jumper wires will help you to connect the sensors and motors to your PCB through header connectors.

enter image description here

As showed in the pictures, the Blue LED indicates the power supply presence and two Red LEDs placed in both sides to indicate motor power supply presence.

Step 6: The Code and Validation Test

enter image description here

After assembling the robot, the last part is the source code to control the Robot and make it follow the tracks the you design for it, and in order to make your assignment much more easier, we made the code for you and as you can see in the picture the code is well commented and full of guidance to allow you adapting it to suite your needs, so you can modify it depending on your Robot structure and technology. you can download the source code from here.

enter image description here

I made a black track to test the robot; As you can see in the pictures the robot reached the finish line successfully so we can say that we made it. Our robot showed a great behavior while moving and turns in both direction while following the track with no problem.

The DIY Line Follower Robot project is created by Mohamed Belkhir

Documents

The Schematic 2

BOM

ID Name Designator Footprint Quantity Manufacturer Part Manufacturer Supplier Supplier Part Price LCSC Assembly Mounted LCSC
1 ARDUINO NANO U1 ARDUINO_NANO 1 RS-Online
2 9V Power supply P1 HDR-1X2/2.54 1 Header-Female-2.54_1x2 EasyEDA LCSC C49661
3 L293D U2 DIP16 1
4 leftMotor P2 HDR-1X2/2.54 1 Header-Female-2.54_1x2 EasyEDA LCSC C49661
5 rightMotor P3 HDR-1X2/2.54 1 Header-Female-2.54_1x2 EasyEDA LCSC C49661
6 leftSensor P4,P10 HDR-1X2/2.54 2 Header-Female-2.54_1x2 EasyEDA LCSC C49661
7 rightSensor P5,P11 HDR-1X2/2.54 2 Header-Female-2.54_1x2 EasyEDA LCSC C49661
8 SIG SIG8 HDR-1X1/2.54 1 Header-Male-2.54_1x1 EasyEDA LCSC C81276
9 SIG2 SIG7 HDR-1X1/2.54 1 Header-Male-2.54_1x1 EasyEDA LCSC C81276
10 jump P6 HDR-1X2/2.54 1 Header-Female-2.54_1x2 EasyEDA LCSC C49661
11 servo Motor P7 HDR-1X2/2.54 1 Header-Female-2.54_1x2 EasyEDA LCSC C49661
12 ultrasonic Sensor P8 HDR-4X1/2.54 1 Header-Female-2.54_1x4 EasyEDA LCSC C44527
13 NO P9 HDR-1X1/2.54 1 Header-Male-2.54_1x1 EasyEDA LCSC C81276
14 330 R1,R2,R3,R4 AXIAL-0.3 4
15 RM LED1 LED-3MM/2.54 1 204-10UYC/S530-A3 EVERLIGHT LCSC C73643
16 OBSD LED2 LED-3MM/2.54 1 204-10UYC/S530-A3 EVERLIGHT LCSC C73643
17 RUN LED3 LED-3MM/2.54 1 204-10UYC/S530-A3 EVERLIGHT LCSC C73643
18 LM LED4 LED-3MM/2.54 1 204-10UYC/S530-A3 EVERLIGHT LCSC C73643
19 SIG4 SIG5 HDR-1X1/2.54 1 Header-Male-2.54_1x1 EasyEDA LCSC C81276
20 SIG3 SIG6 HDR-1X1/2.54 1 Header-Male-2.54_1x1 EasyEDA LCSC C81276

Attachments

None

Members / Participants(1)

Success
The owner does not allow comments in this project now

Comments (0)

goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.