Step 8: RUN

Put 4 AA batteries into the battery holder, make a path, and turn on the robot.
If the robot does not work check soldering carefully.
Now you must adjust potentiometers to robot be able to detect black and white areas. Turn all potentiometers to leftmost position then turn back about 90 degrees to the right. Hold the robot on the line, move it over a turning if the motors state does not changed change the potentiometers value.
Now put the robot on the path to follow it.
<p>I have fully assembled the entire model...PIC also got programmed after a lot of hurdles...But now when i turn on my robot, the custom motion LEDs light up and can be modified through push button switches, but I am not getting any feedback from the motors....Please suggest the specific component or part which should be debugged. BTW, I have checked all the connections of L298, the seem to be fine. Is there any other part related to motor movement?</p>
<p>If the LEDs light up it means the PIC works check L298 connections, test it by applying 5V to its inputs.</p>
<p>picture with white background</p>
<p>i checked my l298 wirings according to the diagram given by you. thanks for that....all my wirings were fine..and like you said, I tried connecting VCC to the logic inputs but nothing happened. What could this mean? Also, please find some time to chat with me regarding this model debugging, I have spent a lot of time debugging this till now and so far everything seems fine, however I would like you to assist me in this. Please chat with me on Google Chat. My email id- utkarsh.naveen@gmail.com</p>
<p>i want to add that whenever I short VCC to the logic input, the respective LED starts glowing which is leading to the conclusion that L298 might be working, but somehow my motors aren't powering up(MAYBE). Please give your opinion on this</p>
<p>when you connect vcc to the l298 inputs leds glowing because the leds are connected the the l298 inputs and pic outputs. pic can turn leds on or off so the pic program works correctrly and connectiong from pic to leds are correct, leds glow when you connect vcc to l298 inputs so connection for l298 to leds are ok and so connection from pic to l298 is ok too. when you connect vcc to l298 inputs and motors are not working it means that your l298 does not power the motors try applying power to your motors and test them, check output power of you l298 when applying vcc to its inputs by a voltmeter. send me the photos of you boards.</p>
<p>i tried measuring the voltage of motors, it was 0.0V, both normal and high input conditions. I think this means that something is faulty in L298 part. A note for the pictures. I have connected all the boards using LED legs and female sockets. Red wire going is the VCC connection of top board with the rear board. </p>
<p>would you test this for me.. in my board.. The two terminals of motor have 0 ohm resistance in between them... Is that the same in your model.</p>
Sir, where is the LS port the bottom board? I cant find it in the pdf that you have given' thanks
Beside L Sensor
<p>thanks sir' can I use 1/2W resistors instead of 1/4W? </p>
<p>sir, can you please show the actual picture on how you solder the rear part of the car? the one with the motor driver part. And also the connections of the batteries and the motors cause I can't figure it out.. thanks!</p>
<p>I just have the photos that exists here, solder terminals with the same name together. The circuit diagram of L298 motor driver (you can find it in above comments) can help you a lot.</p>
<p>Sir, does the motors will start when I placed the battery supply on the circuit board even though there is no PIC? I'm curious if the circuit that I built is already functioning even there is no program yet. thanks'</p>
<p>no, the PIC activates the motors.</p>
<p>is your 4 batteries connected in series?</p>
<p>yes and just end points used for powering, midpoints a just for fastening battery holder to the pcb. you can ignore them.</p>
<p>Sir' is it okay to use a 9V battery? if yes, how to connect it? thanks</p>
<p>yes, (+) --&gt; +3V, (-) --&gt; -3V</p>
<p>i want to make the line follower track the line backwards based on a momentary input switch...is it possible....??</p>
This robot follows any line (black or white) no switch needed. BTW you can change the PIC code to have a customized robot, you can program anything you want. Without the code it is just 4 sensors, 2 motors. The code defines the relation of sensors to motors action.
<p>no, what i meant to ask was that i want to make it start retracing its path backwards when I TAP a momentary/switch..</p>
<p>As I mntioned you must edit the progrm.</p>
<p>please suggest a good ide for pic programming....i think i should learn this programming....It is similar to java ..no???</p>
<p>HiTech C, mikroC for PIC, PIC Basic Pro, ..., Just search the internet for best. C is more similar to java.</p>
<p>ok i will do it....thank you</p>
sry....i just found it
<p>How do I wire the LS port on the front board to the bottom board? Please clarify all the front-bottom board connections.</p>
Just connect LS on the front board to LS on the bottom board with a piece of wire. Take a look at the PDF file of PCB drawings.
there is no LS on the bottom board..........you may check the pdf yourself
<p>i have seen the entire circuit thoroughly.......it needs only 3 AA batteries right..........i don't see the use of a 4th AA battery because it will just be left unconnected.......and the circuit only requires one 3V Supply and one 1.5V Supply.</p>
No, the circuit supply is 6V. The power comes from ends of battery holder and its mid-pins only used for fastening it.
<p>then the 3V and 1.5V terminals on silkscreen are for??also./...where do i wire the 6V +,- terminals on the circuit??</p>
<p>Solder + of your battery holder to +3V on the bottom board, and + on the top board.</p><p>Solder - of your battery holder to -3V on the bottom board, and - on the top board.</p><p>Solder + on the back of bottom board to to + on the rear board.</p><p>Solder - on the back of bottom board to to - on the rear board.</p><p>IGNORE +1.5V, -1.5V and 0V terminal they are not connected to anywhere.</p>
<p>Hi</p><p>How can I increase speed of motor? (robot should follow the line at the same time.)</p><p>There should be some methods. Can you enlighten me?</p>
Use a faster motor &amp; gearbox. Less gears, less power, more speed.
<p>I'd like to know that if I could achieve the same level of line following by using an Adruino ; because it's been only about an year or two since I have started electronics and I actually don't know anything about using PIC microcontrolers. :-)</p>
You can use any microcontroller you want, design a new circuit for your arduino and change the code for it, it's very easy!
<p>Is it going to affect the performance of the robot I mean PIC microcontrolers v/s Arduino . Besides, I'm a bit new to electronics and don't actually know how to program the PIC microcontrolers so, I'll not be able to understand the program for them that you have given in the instructable. Please explain me the logic of your program of the line follower :-)</p>
<p>Both work same. The code is written in Basic language, and all variables and symbols names are obviousse. The symbols are ti micro pins. Other parts of code that you don't understand is for configuring PIC and you don't need them for Arduino. Only parts that you understand is enough.</p>
<p>Thanks a lot! :-)</p>
<p>sir, i'm little confused with the battery connections. some explanation would be great :-)</p>
<p>Just use battery holder ends. (posetive pole is +3V and negetive pole is -3V) I marked others (+1.5V, -1.5V, 0V) just for fastening battery holder.</p>
<p>Please tell me the &quot;cheaper &quot;alternatives for TCRT5000 which are not hard to find online.......</p>
<p>Make your own, with a 3mm IR transmitter LED, a 3mm IR phototransistor, and a piece of plastic strip as a well between them.</p>
So it's just that basic???.... Only an infrared led and phototransistor simply held by a piece of plastic??? If that's so.... Does usage of tcrt5000 give any advantages???..... Alsoi would like to have a real-time chat with you regarding this project.... Please take some of your precious time out for me. I just want to have a 5 min chat with you.... Be it Gmail or whatsapp.... My email Id:<br>utkarsh.naveen@gmail.com
<p>Yes, That's it. You can make it yourself. Look at its datasheet.</p>
<p>yep....just took a close look at it......it really is nothing but a pair of ir leds......:) thnx for being so helpful.............</p>
<p>is it necessary for the motor to have a gearbox??</p>

About This Instructable



Bio: I'm a mechanical engineer, and I like computer programming, mechanics, electronics and specially the robotics.
More by vahid_you2004:Serial Port over WiFi Cheap Logic Analyzer Cheap STK500 AVR programmer for Atmel Studio 
Add instructable to: