Editor Version ×

1.Easy to use and quick to get started

2.The process supports design scales of 300 devices or 1000 pads

3.Supports simple circuit simulation

4.For students, teachers, creators


1.Brand new interactions and interfaces

2.Smooth support for design sizes of over 30,000 devices or 100,000 pads

3.More rigorous design constraints, more standardized processes

4.For enterprises, more professional users

STD DIY Line Follower Robot

Project Status: Ongoing


  • 10.3k
  • 0
  • 8
Creation time: 2017-03-06 03:54:33
Update time: 2020-01-03 01:13:35
![enter image description here][1] 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][2] Platform, so I advice you could click directly the following link the PCB automatically: [**Direct link for Line follower Robot project**][3] and [custom PCB][4] 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][5] 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][6], 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][7] 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][8] **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][9] **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][10] 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][11] **How to custom PCB on EasyEDA!** As usual we need to run the EasyEDA platform from [here][12], 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][13] You can also check the PCB before [ordering PCBs][14] 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][15] 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][16] In order to make this project you will need the following components: The Plexiglas mechanism [PCB from EasyEDA][17] [Two DC motors with two wheels][18] [One Arduino Nano][19] [Four infrared sensors (TCRT5000)][20] [L293 motor driver][21] [Four LEDs 3mm][22] [Four 330 Ohm resistors][23] [Header connectors][24] [9V battery for power supply][25] **Step 5: The Assemble** ![enter image description here][26] 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][27] 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][28] 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][29] 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][30] 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** [1]: https://cdn.instructables.com/FA3/4W9I/IZSU5KHR/FA34W9IIZSU5KHR.MEDIUM.jpg?width=614 [2]: https://easyeda.com [3]: https://easyeda.com/BEE_MB/PICTO-25990e2b03d14fbd9441ad11ef61027c [4]: https://easyeda.com/order [5]: https://cdn.hackaday.io/images/6003091488573200318.png [6]: http://predictabledesigns.com/introduction-to-microcontrollers/ [7]: https://cdn.hackaday.io/images/8272171488573216966.png [8]: https://cdn.hackaday.io/images/8377791488573265873.png [9]: https://cdn.hackaday.io/images/2126831488573520237.png [10]: https://easyeda.com/order [11]: https://cdn.hackaday.io/images/9011931488573601950.png [12]: https://easyeda.com [13]: https://easyeda.com/BEE_MB/PICTO-25990e2b03d14fbd9441ad11ef61027c [14]: https://jlcpcb.com [15]: https://cdn.hackaday.io/images/2770911488573669718.jpg [16]: https://cdn.instructables.com/FQ8/QPGK/IZSU5T3I/FQ8QPGKIZSU5T3I.MEDIUM.jpg?width=614 [17]: https://easyeda.com [18]: https://www.amazon.com/gp/product/B00U4HP2Z2/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B00U4HP2Z2&linkCode=as2&tag=megadas-20&linkId=611ee775d0bc559003c9fbb604743981 [19]: https://www.amazon.com/gp/product/B00UACD13Q/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=megadas-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B00UACD13Q&linkId=48c47481cd0c05b397ef72bf26c567a0 [20]: https://www.amazon.com/gp/product/B00YM50PQS/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=megadas-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B00YM50PQS&linkId=b3cb7d7b99244988575a9c93dbd8565e [21]: https://www.amazon.com/gp/product/B00NAY2URO/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=megadas-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B00NAY2URO&linkId=8507c17c67783e6a22f6e22feea6be78 [22]: https://www.amazon.com/gp/product/B01AUI4W5U/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=megadas-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01AUI4W5U&linkId=48cc5a6e048ee295fa153c0e4db56126 [23]: https://www.amazon.com/gp/product/B00CVZ4134/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=megadas-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B00CVZ4134&linkId=0d56b3756663e5ecd9917b513ec9b875 [24]: https://www.amazon.com/gp/product/B00UVPT5RI/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=megadas-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B00UVPT5RI&linkId=2c4f1ec6ca2d6c89031ae6be70381241 [25]: https://www.amazon.com/gp/product/B018N7YZL6/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=megadas-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B018N7YZL6&linkId=25814393c9e6fb1796299d01a31be38e [26]: https://cdn.hackaday.io/images/8707491488573822177.PNG [27]: https://cdn.hackaday.io/images/3655481488573865543.PNG [28]: https://cdn.hackaday.io/images/6871261488573949973.PNG [29]: https://cdn.hackaday.io/images/8372091488574020301.PNG [30]: https://cdn.hackaday.io/images/2130521488574089959.PNG
Design Drawing
schematic diagram
1 /
1 /
The preview image was not generated, please save it again in the editor.
ID Name Designator Footprint Quantity
2 9V Power supply P1 HDR-1X2/2.54 1
3 L293D U2 DIP16 1
4 leftMotor P2 HDR-1X2/2.54 1
5 rightMotor P3 HDR-1X2/2.54 1
6 leftSensor P4,P10 HDR-1X2/2.54 2
7 rightSensor P5,P11 HDR-1X2/2.54 2
8 SIG SIG8 HDR-1X1/2.54 1
9 SIG2 SIG7 HDR-1X1/2.54 1
10 jump P6 HDR-1X2/2.54 1
11 servo Motor P7 HDR-1X2/2.54 1
12 ultrasonic Sensor P8 HDR-4X1/2.54 1
13 NO P9 HDR-1X1/2.54 1
14 330 R1,R2,R3,R4 AXIAL-0.3 4
15 RM LED1 LED-3MM/2.54 1
16 OBSD LED2 LED-3MM/2.54 1
17 RUN LED3 LED-3MM/2.54 1
18 LM LED4 LED-3MM/2.54 1
19 SIG4 SIG5 HDR-1X1/2.54 1
20 SIG3 SIG6 HDR-1X1/2.54 1


Project Attachments
Project Members
Target complaint
Related Projects
Change a batch
Add to album ×


reminder ×

Do you need to add this project to the album?


周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675


周一至周五 9:00~18:00
  • 立创EDA微信号


  • QQ交流群


  • 立创EDA公众号