loading

Hi! This is a line follower robot that requires no programming, instead, the behaviour of the robot is determined by an electronic circuit. This build is fairly simple and if you have all the materials it will most likely take less than 2 hours to build and test it.

Tools needed:

  • Soldering Iron and solder
  • Wire Snips
  • Needle Nose Pliers
  • Hot Glue Gun

Materials needed:

  • 1 x Perfboard / Dot PCB
  • 2 x low-voltage small DC motors
  • 2 x plastic bottle caps
  • 1 x Double AA battery holder
  • 1 x 5mm LED
  • 2 x CNY70 infrared sensors
  • 2 x 220 ohm resistors
  • 2 x 10k ohm resistors
  • 2 x 1k ohm resistors
  • 1 x 10k trimpot
  • 1 x Dual Operational Amplifier IC such as the LM358
  • 2 x BC547 NPN transistor (could be another NPN transistor)
  • 1 x pin strip
  • Some cables, I used some from an UTP/Ethernet cable

Step 1: Making the Circuit

The circuit for this robot consists of 3 parts. The first is the CNY70 sensors, and the circuit for them is in the first image. Where it says A0, the voltage changes analogically to the amount of light reflected on the surface. To distinguish between black and white surface, we will need a comparator which outputs a HIGH or LOW voltage depending on the voltage threshold determined with the trimpot. The second image shows the circuit for the comparator, you can later adjust the trimpot to set the correct sensitivity for your surface. In the last image, there is the circuit to drive two motors from the output of the comparator and using 2 transistors to manage the current.

VERY IMPORTANT: You should connect the left sensor with the right motor and the right sensor with the left motor, you can see an explanation of why this will make the robot work in the pictures.

Tip: You can solder a LED on the front just as a supporting point so that the sensors don't scrape with the floor.

Step 2: Assemble and Test the Robot

The battery holder and the motors can be hot glued to the board. Two bottle caps can work as wheels and if they slip a simple rubber band wrapped around will fix it. The caps can be screwed on in some motors or hot glued.

You can now test your robot, don't forget to connect your motors and put on batteries. Also, make sure to turn the trimpot to the position where the robot works the best.

Good luck!

<p>Hi Mati , i have some problems with this circuit , it does not work with me,</p><p>can you help me or send a clear draw please?</p><p>I need it quickly.</p>
<p>Hi, you need to have 2 CNY70's or reflectance IR sensors. The schematic for the CNY of the first picture needs to be made twice for the 2 sensors, so you will need 2 resistors for each sensor and they need to be connected like in the drawing. Each of the 2 circuits for a CNY has a place (A0 in the picture) which is the output of the sensor. You would need to connect the A0 from the picture of both sensors to the &quot;CNY output&quot; 1 and 2 from the second picture. Then the &quot;Comparator output&quot; goes to the &quot;Comparated output&quot; from the third picture. I hope that clears any confusion regarding the connections between the pictures. Remember to double check the circuit with the schematic and to turn the trimpot to the right sensitivity.</p>
<p>Thinks for your help mati,</p><p>I turn the circuit on and it's work very well but i still have one problem , i used this dc motors in picture instead of servo motors but the motors didn't self starting it need a bush to start can you explain why, please?</p><p>and lastly i send you a request friend on Facebook can you accept it </p><p>My profile(Zaid M. Zahira).</p>
<p>Hi! If you are using 2 AA batteries then the voltage that can be applied to the motors will be at most 3v. If your motors have a higher rated voltage then it may not be enough to make them spin, thats the reason why I put low-voltage motors in the materials list. You may want to try connecting the motors to a 9v battery or any power source with a voltage higher than 3v to check if they work better that way and consider getting some motors for lower voltages, in my case I used modified servos that are rated at 5v, so 3v still makes them spin, but for example, some 12v motors may not spin at all.</p>
<p>how did you modify the servo motor?</p>
<p>You can search on Instructables for a tutorial to modify a servo, here is one of them: <a href="https://www.instructables.com/id/How-to-Make-a-TowerPro-Micro-Servo-Spin-360/" rel="nofollow">https://www.instructables.com/id/How-to-Make-a-Tow...</a></p><p>You can also use any kind of DC motor, just check that they work when connected to 2 AA bateries.</p>

About This Instructable

2,150views

22favorites

License:

Bio: I'm a 17 years old electronics engineering student
More by Mati_DIY:Simple Line Follower Robot With No Programming - Analog Line Follower How to make a PIC programmer - PicKit 2 'clone' Line Follower Robot with Arduino - Very Fast and Very Simple 
Add instructable to: