Step 3: The Program and Programmation ....

Now lets the program:
removing jumper SW1 prog to isolate the IR sensor during programming
connect the ISP programmer (follow the sequence of pin)
see below for the type of control
plug the LiPo battery (watch polarity!)
Roule-Robot.hex file is the one you need to load the microcontroller is already compiled there is more than load it into flash memory

Start BASCOM AVR (I use the demo version is sufficient)

Load the program Roule-Robot.bas (if you want to change the program according to your taste)

then configure the chip as follows:
ATtiny select, with the button dat Ship
go to the Options menu and then compile and Ship
and enter the following values:
HW stack to 16
Soft Stack 16
framesize to 16
in the program menu you can select an alternative program as STK200/STK300 if you have this type of program or make one like que'jai make the picture attached, or better, use a USB programmer.
Then go to the menu (green icon) chip program or press F4
normally the ship is known, if not recognized, click the small green icon (next to last in the top right) then go to the menu Lock and Fuse Bits
Fusebit turn off F
Fusebit E off
DCBA Fusebit of 1001: int, RC Osc 4.8 MHz; Startup: 14CK + 64 ms

ATTENTION especially not to change the fuses and others do not select an external oscillator
otherwise it is not possible to communicate with the ship so to program,See the screen shot fuses.

Now click the FlashROM and click on the green icon at the top Auto Ship program
Normally everything should be fine and after checking BASCOM displays OK at the bottom of the window
if this is the case pa s double-check everything including the PCB and start over.
Then disconnect the battery disconnect reset the timer pro SW1 in its place and
Robot roll is ready to ride :)
choose a clean flat and smooth terrain connecting the battery you have 3 seconds to put down RR on the flore
You can also test the IR detector, passing his hand before the red LED should light,

If the red LED stays on continuously, two possible causes:
1 a battery is flat
2 LED IR radiation by the way the back to avoid this, I glued the black tape on it.

UPDATE 07/2015 Kicad zipped (SMD with minor changes) and DIL version files are joint :

see the video:

:Have a great time ! :)

some links:

<p>Good work with little bot ^_^ </p>
<p>Hi Mohamed</p><p>Thank You</p><p>you can looking to this instructable to:</p><p>https://www.instructables.com/id/How-to-make-worlds-smallest-line-follower-robot-ro/</p>
<p>Wow so impressive , I need to do one some time </p>
<p>Hi, </p><p>In part list you mentioned just one capacity but in schematics there are three, also their values are different. So, which ones should i use?</p>
<p>Hi</p><p>thank you for pointing :)</p><p><br>I forgot to mention the two 100 nano Farad capacitor </p><p>C1 used for the auto reset with R1<br>and C3 decouples the power and it is not obligatory but it adds an additional filter for the noise peaks<br></p>
<p>Why do you use Tantalum capacitor? Is there any specific reason?</p>
<p>Hi </p><p>not really, it's just a matter of size, they are smaller in equal capacity </p>
<p>very nice cool........how u use bascom ..</p>
<p>did a search on google with the subject: Bascom Avr tutorials</p><p>or these links:</p><p>https://saheeed.files.wordpress.com/2010/01/bascom-avr-tutorial.pdf</p><p>https://youtu.be/R0k960NDRzk</p>
<p>you can download it from this link:</p><p><a href="http://mcselec.com/index.php?option=com_docman&Itemid=54" rel="nofollow">http://mcselec.com/index.php?option=com_docman&amp;Ite...</a></p><p>I compiled the program with BASCOM April, I flash the HEX program in the ATtiny13 with is ISP interface and USBasp programmer</p><p></p><p>and this link we talk of using BASCOM with Arduino:</p><p>http://avrhelp.mcselec.com/index.html?arduino.htm</p>
<p>I added the Robot2RouesDIL8Tiny13.zip7 file for the construction of robot DIL 8 Version </p><p>I </p>
<p>Hello I want to build this robot. but I cant work with SMD components. can you please share the circuit diagram if it is possible for you ? otherwise its okay. </p><p>thanks in advance. :)</p>
Nice Robot
look at this instructables to:<br>https://www.instructables.com/id/How-to-make-worlds-smallest-line-follower-robot-ro/
Thank you for your interest to robots
<p>nice instructable. i've been trying to run a small dc motor with my attiny85 using arduino as an ISP but i don't seem to be doing it right. </p><p>Any ideas on how to code and wire up the attiny to run a vibrator motor?</p>
<br> Hi<br> Sorry for my late reply, I live in France and I am often on sites FR, it faudrit you post me your Arduino code so that I can help you<br> <br> Mic100
i clicked the link to download zip and an error saying that the link has been reported as unsafe. Just thought you should know.
<br>Hi <br>Thank you for that link (veryvery interested) <br>Mic
Hi<br> Thank you for pointing me this error I do not understand because when I click the link I do not have the &quot;unsafe file&quot;<br> I think this is the message sent by the server only as a precaution when a file is not downloaded because it often has no information about the file.<br> I'll notify the site administrator error.<br> meanwhile you can try this link:<br> <a href="http://db.tt/krAckIw7" rel="nofollow">http://db.tt/krAckIw7</a><br>
Hi. <br>Your robot is nice too. <br>Also you can use some techniques for your designs: <br>http://www.tandfonline.com/eprint/IfdSEGpdu3DcHYrkd9wJ/full <br>
Where would i find a schematic for this? <br>Thanks, <br>Sam
Hi <br>there's 2 ways <br>1) in zip file at the end of this instructable <br>2) by folowing this link: http://www.kicadlib.org/ <br>look at the bottom of the page &quot;RouleBot&quot; in Example Circuits chapter <br>Mic
hi can you provide me detail for some discussion <br> <br>email: subhashish09@gmail.com
Hi <br>for what detail can you tell me ?
Bonjour a tous :), <br>je viens de decouvrir le site du groupe Instructables Francais, alors pour ceux qui sont interresse, a la fin de mon instructable il y a un fichier ZIP qui contient le PDF en Francais et en Anglais et les schemas et PCB pour le Logiciel (gratuit) de conception electronique Kicad. <br> <br>
Very interesting. I presume english is not your native language coz the translater (Google?) has kinda meashed up yr description.<br><br>e.g. Auto Ship Program?<br>Ship button?<br>would Ship be 'boot' then you probably translated from Dutch or German :-)<br>Anyway, great tutorial but would be better with a better translation :-)<br><br>Need some help?
yes I'm French <br>Auto Ship Program is Erase and program ship green icone
Ship = Boat ( <em>bateau&nbsp; / navire</em>) or Mail ( <em>exp&eacute;diez</em> )<br> Chip = Integrated Circuit Component ( <em>morceau de silicium</em> )<br> <br> I believe you wanted <strong>Auto Chip Program</strong> and <strong>Erase Chip</strong> in your descriptions.<br> <br> L'&eacute;criture correcte est (<strong>Auto Chip Program</strong>) et (<strong>Erase Chip</strong>)<br> <br> I use this web page which also performs a &quot;back translation&quot; to let me know if it is correct.<br> http://text-to-speech.imtranslator.net/default.asp<br> <br> J'utilise cette page Web qui ex&eacute;cute aussi une 'traduction contraire'. Cela me permet de voir si c'&eacute;tait correct.
ok <br>merci pour le lien :) <br>
l'autre mot pour IC en francais, c'est &quot;le puce&quot;<br>ie. the other word for IC in french is 'flea'.<br><br>I suppose it is because it is small like a flea, and will jump if you try to pick it up with tweezers. No-one really uses 'morceau de silicium' because it is too long.<br><br>I like your instructible. Good job.<br>
I'm French and sometimes I try to write in Englishman without the translator of Internet and Chip becomes Ship this is alike, now I understood Chip want IC Integrated Circuit en Fran&ccedil;ais they also say puce (flea)
Ah ! ben enfin une r&eacute;alisation en fran&ccedil;ais !<br>Bravo !<br>Dommage qu'il n'y ai pas aussi les commentaires en Fran&ccedil;ais.<br>Continuez !<br>:))
merci :) <br>j'utilise souvent Google translation pour traduire <br>et maintenant j'ai ce nouveau lien de askjerry, <br>je vais le tester <br>sur Kicad librairies, il y a aussi des r&eacute;alisations en Fran&ccedil;ais <br>en bas de la page
wah alil nice bot
Nice design. I am also glad to see that I am not the only person who uses BASCOM to program in BASIC. <br><br>Design agr&eacute;able. Je suis heureuse aussi de voir que je ne suis pas la seule personne qui utilise BASCOM pour programmer en BASIC.
Yes it's easy to use it :)
Ah, I see u might be French :-)
Salut, <br>merci pour ce tuto, <br>mais peux tu le faire en fran&ccedil;ais aussi?<br>=D
Salut,<br>&agrave; la fin du tuto il y a le fichier zip , tu le d&eacute;compresses <br>et dans le dossier Images il y a le pdf en Fran&ccedil;ais et en Anglais.<br>a+
Bonjour.<br> <br> Je suis americain.<br> <br> However, I only know a petit amount of fran&ccedil;ais.
Bonjour aux Am&eacute;ricains :) <br> <br>in which region of America ? <br>Me I live in the north west of France in the Pays de Loire <br> <br>Google translation is good to talk in another language, <br>I use it in case of difficulty
Je suis de <a href="http://www.youtube.com/watch?v=g4IiccUjGps" rel="nofollow">New York</a>.<br> <br> <br>
Ok, merci beaucoup et bonne continuation!
I have downloaded the zip file but cannot find the KICAD files.
hi <br> sorry: ( <br> I had packed in the zip I have to redo it <br> you can download it at the end of my instructablesous name: <br> RouleBot122ATtiny13-a.zip
Thank you Mic100. Nice instructable and pretty board.I really need to learn KICAD. I have 10 attiny85's I need to do something with.
cool stuff, really awesome project!
Great. I love it, a real programmable micro robot.<br><br>I have only started soldering and have enough difficulty with the normal size components. I so admire anyone who has mastered the art of SMD work.<br>
Yes you must take your time and learn well before using soldering SMD components, but you can do the same with an ATtiny13 pin DIL format you just need to put more powerful engines :)

About This Instructable




More by Mic100:mini animated LED Christmas Tree 32 x 32mm Wooden Puzzle Cube 3D   (3D Puzzle Cube constructed with Sketchup 2013 suite) PUZZLE CUBE 3D with SketchUp 2013 
Add instructable to: