Step 7: The Arduino

The first thing you should do in this step is follow the instructions to assemble your RBBB. Those instructions are available here. You will need to snip part of the board off like it says you can do at the bottom of the instructions because you will not be needing it.  "If you dont’ need the power jack or regulator just snip them both off. The easiest way to cut the board is with a large pair of tin snips, but hack saws, jewelers saws and band saws also work well." Do not solder any headers onto the board besides the ones used for the FTDI programming port. 

Next solder a 9 pin strip of female headers on the left side of the board from pins labeled "5v" to "A0". This will mate with the sensor plug later. Solder a 4 pin strip of female headers on the right side of the board from pins labeled "D5" to "D8". These pins will be used to control the motor controller. Finally solder a 2 pin strip of female headers on the front right of the board on the GND and 5V pins. These will supply power to the motor controller.

You can ignore the fact that the motor controller and top deck in the photos. We will get to those.


<p>Does the chassis material have to be clear. Our 3d Printer does not print acrylic. Only colored material, atleast that is what my instructor tells me</p>
<p>What kind of changes do i need to make in my program if i want my robot to follow white line???</p><p>thank you. </p>
Oppsite of black line<br>
<p>sir,i have ardino uno and moter driver can i make these type of bot using these parts </p>
<p>Can the arduino Nano be used in place of the ATMEGA328???</p>
<p>Where do we get those clear square plastic platforms you have in the image. I do not see this on the things to get list. </p>
Can any one share the code of maze solver?? Pls
<p>if there are white lines and black background instead of black lines and white background where i have to make changes in program..</p>
<p>have u got the solution of this question of your's?? if yes please tell me.</p><p>thank you.</p>
<p>hey i want to make this bot solve a maze thats not for streight lines but for curved lines. what all changes will be there?</p>
<p>To be honest the code is written pretty .. ehm .. *not-so-nice-words* ... BUT when I will find the part about optimizing to ideal route it will surely be helpful and I thank you for that.<br>....<br>we are doing a school project where we have similar robot and we are navigating it through complete mess of loops, dead ends, loops and dead end loops and .. did I mention loops? </p>
<p>Please! You can for mo know: What software to read file &quot;pde&quot; :((</p>
<p>hello,mr.admin,i want to make this project,can you plz provide me the proper circuit of this line maze solver robot working over arudino and its master programing as soon as possible,it will be great help admin</p>
Mr Patric, I like your project. I want to make it but haven't analogsensor. can I use Digital sensor QTR-8RC
<p>Sir,I had tried working Hard to make this BOT and it turned out pretty well.It took more than a month and a half to make it.Finally made it.I just made minute changes in the code.The results were actually amazing.....here is the link of the vid.....Sorry about the middle finger in the video.Those were for my friends they thought that I couldn't make it.....Would soon write Instructable on it....Thank you for this....</p><p><a href="https://drive.google.com/open?id=0B-f1xWTJwulda2QwQVYwMm1scXM&authuser=0" rel="nofollow">https://drive.google.com/open?id=0B-f1xWTJwulda2Qw...</a></p>
<p>can you please give me the code. i have tried making my robot find the shortest path. i would appreciate some help.</p><p>please mail the code alokgrao@gmail.com</p><p>thanks</p>
<p>BTW Ajay, where did you find those sensor arrays?</p>
<p>pololu.com qtr-8ra I think is the model number for the analog sensors.</p>
<p>Nice job!</p>
<p>Dear Patrick,</p><p>Nice work !!!</p><p>I'm trying to make this robot but getting problem with related to algo i think there is some error in code. can you send me the modified code so ill complete my project.</p>
<p>I made this robot but with slightly different parts, (used uno and 12v motor).</p><p>The problem is that my bot is not running fine. While debugging and viewing the output of rightcenter sensor the reading is constant at 1023 and does not change regardless of what I do. </p><p>I think the sensor is faulty.</p>
<p>I made this robot but with slightly different parts, (used uno and 12v motor).</p><p>The problem is that my bot is not running fine. While debugging and viewing the output of rightcenter sensor the reading is constant at 1023 and does not change regardless of what I do. </p><p>I think the sensor is faulty.</p>
<p>very helpful post..thanks !</p>
<p>Got code?</p>
<p>i want to know how would i convert the long path &quot;LLLBSR.....&quot;</p><p>into the direct path in coding</p><p>and thanks for this great post</p>
<p>Now make it so you can place the robot on any point of the maze after it has found the end and it works out where in the maze it is (drives around until it finds a bit it recognizes) then drives straight to the exit once it has got its bearings.</p>
Hii sir can you send me the full code because I'm trying to making this my email id is pratikjaiswal.pj28@gmail.com<br>Thanks in advance
<p>well, the instructions were pretty useful but i am facing a problem with this.</p><p>what should i do if a maze have a single solution(exit) but multiple paths. my bot used two different paths when i used right and left in different runs.</p><p>and definitely the both the paths are of different lengths hence not traversing the shortest one.</p>
<p>i wanted use arudino cc intstead of arduino RBB</p><p>will it work if i use external IR sensors </p>
<p>Hey man. I think I found a way to solve (some) looping mazes as well. If the robot has turned left/right (depending on the rule) more than 4 times in a row (which would be the case in a loop), then switch the rule. If it was left-hand rule, switch to right-hand rule and vice versa. This would enable certain looping mazes to be solved.</p>
<p>Please someone mail me the code, please i cant get it dominguezfernandez94@gmail.com please i will apreciate that</p>
<p>Could you repost the code. </p>
<p>brilliant work you have done.. can this project use only 5 sensor.. help is needed..</p>
<p>urgent help... can i use arduino mega, and digital line sensor instead of analog line sensor, also can i use 12v dcmotor for for this project .. i provide link of component that i want to use and need your advice does it can be use..</p><p><a href="http://cytron.com.my/p-mdd10a" rel="nofollow">http://cytron.com.my/p-mdd10a</a></p><p><a href="http://cytron.com.my/p-lss05" rel="nofollow">http://cytron.com.my/p-lss05</a></p>
hi. I dont get the exact parts which you used. firstly, can i use a arduino uno instead of the one which you used?<br><br>can i use regular DC motors? (http://www.rhydolabz.com/index.php?main_page=product_info&amp;cPath=121&amp;products_id=815)<br><br>and can i use a motor driver (http://www.rhydolabz.com/index.php?main_page=product_info&amp;cPath=108&amp;products_id=858)<br><br>if yes, could you please guide me through the process, it would be of great help.<br>thanks
<p>dear can you send me its complete codes ?</p>
That motor driver will work, but you do not want that motor. That motor operates at 12 volts. You would have to get a 12v battery pack and regulate it down to 5v for the other parts. I would find a 5v motor.
<p>need its complete codding please .</p>
<p>I can't get the code. Can somebody reupload it please.</p>
<p>To which pin in arduino should we connect the 2nd pin right next to VCC </p>
<p>Sir,you didn't mentioned the value of the Cap on the Motor Controller Ckt.Also you have not included that in your PCB.Is is not necessary??</p>
<p>Plz give me code with atmega avr 16/32..if it's teotorial i'll highly appreciate that.</p>
<p>Hey Patrick, the link for the code has expired. Do you think we can get an updated one?</p>
<p>the code not download, please help me!!</p>
<p>Mate can u explain the this value for me ? because im not using the same sensor </p><p>(leftCenterReading&gt;200 || <br>rightCenterReading&gt;200 <br>why is 200? </p>
<p>Well done. Honestly I have to say that was the best tutorial I could find on a line solving robot but I have one question. Where can I get the code because the code no longer exist anymore. Can you help me out there. Thanks. :)</p>
<p>Nevermind I found the code I believe something must be wrong with my internet. Wish me good luck improving it. :)</p>
<p>Great Work...<br>Can i use EEPROM library to store the path?<br>U didn't used an LCD... So, were u testing the path and storing the character using serial monitor all the time?</p>
<p>A question:</p><p>how is your PWM pin?</p>

About This Instructable




More by patrickmccb:Maze Solving Robot Pong 
Add instructable to: