Arduino: How to make your first robot with..

fritsl's picture

When writing this, LMR only offers "Start here" - instructions on how to make your first robot, using Picaxe.

"Nebster" wrote to me, and asked if I could do a parallel, using Arduino, and I think that is actually a very good idea (now that Picaxe refuses to pay me commission, haha)

Focus should be on making first timers get a robot up and running at a low cost, and most importantly learn how to hook up motors, a servo, and a analogue input in "no time".

Design should be the same as the "start here" robot. Both because this IMHO gives users a good all around start, and because it will make it easier for the newbee to compare and chose solution.

However, I do not have as much time as when I made the Picaxe starter-robot.. So I am asking you for help, save me some learning experiences, cut some corners, please provide input;

 

I am planning to use a Diecimila, and the L298 Compact Motor Driver Kit, since the Arduino motor shield is still not ready to just buy for a newbee.

Apart from this, the design will be the same; 2 motors, servo, Sharp IR, lots of tape, and no real body.

The programming example will be just as brief, however, it will be a bit longer, because it is C, and the setup will be a bit more complex.

Any comments, or should I just go on with it & order? :)

Thanks.

 

CaptainTuna's picture

I agree with you about the

I agree with you about the components. I just want to say it would be cool to have a table that compares picaxe to arduino so one can choose the one most suitable for him. I think you should go on with the order. :)
Nicola's picture

there's already something

there's already something here, altough i disagree a little with the conclusion :)

Fritsl the setup looks good. An alternative could be to use a plain L293D with a board like this one. I've used Arduino with L293D and there are no problems with it.

Note that Arduino don't run with 5v but with 7 to 12V, so you'll not be able to feed it with that controller 5v output (if you were planning to).

voodoobot's picture

This looks like a promissing

This looks like a promissing motor controller as well by the guys at pololu http://www.pololu.com/catalog/product/713


 

TheCowGod's picture

Wow, Frits is really going

Wow, Frits is really going to buy an Arduino? I never thought I'd see the day :)

As for the power source that the Arduino needs, I've always used it with 7+ volts (usually a 9V battery). But it does provide a 5v output pin (connected to the output of its onboard voltage regulator), and I read somewhere that you can feed it 5v power via that pin. I tried it once and couldn't get it to work though, so your mileage may vary.

The other alternative is to get one of the smaller 3.3v Arduino clones -- you can feed those anything from 3.3v up to 12v. I haven't used any Arduino boards other than the Diecimila, but I've been meaning to try out the Arduino Pro Mini. It's only $19, though it does require the one-time investment of buying the $14 USB interface, but then you can use that USB interface with all the Arduino Pros you buy in the future (and LilyPads, and other similar Arduino boards without onboard USB). The main downside is that, since it runs at 3.3v, it can't interface with 5v sensors without using a $2 Logic Level Converter, so things start to get more complicated. The Arduino Pro also requires soldering to attach connectors, and of course can't use shields since it's a different shape, size, and voltage. It might be best to stick with the standard Diecimila for a beginner project. As Sparkfun say on the Arduino Pro page: "We recommend first time Arduino users start with the Diecimila. It's a great board that will get you up and running quickly. The Arduino Pro series is meant for users that understand the limitations of system voltage (3.3V), lack of connectors, and USB off board."

Dan

fritsl's picture

Thank you all :)It has saved

Thank you all :)

It has saved me a lot of time & trouble..

There is a conclusion here; This sh*t is not ready for a newbee yet :) I could simply not make an easy "start here" with this.

So.. What will happen is either:

  • guibot will get the time to make one. He will try, we have talked on PM about him making one. But it is not sure that he get's the time.. Anyone else out there? You will make something that will help thousands!! Nerd credit for ever!
  • OR
  •  The Arduino motor shield will be done for marketing.. and that would lift the product up to a .. erh down to a decent level where you could expect people who have never even soldered before still can make a robot in an afternoon with this. Then I will make the walkthrough.

Still I will get some of that Arduino, Dan :) It is just SO hard to find time.. but I guess it starts with placing an order :)

Boy, tonight I decided that I wanted to read all unread on LMR, it is just not possible to follow it all and make robots and have a life and make them walkthroughs and.. :D

guibot's picture

I think it will be a bit

I think it will be a bit "advanced" for beginners, but, IMHO I also think it´s a good thing to take the beginners into a higher level.

So this will be a possible setup:

1 Arduino Diecimila
1 Motor Driver (custom made or SolarBotics ?)
2 Wheels + 2 Gear Motors
1 SRF05
1 Servo

I will use my custom made motor driver (simple one), and also must finnish the walkthrough (will try to do it ths week).

fritsl's picture

Cool!

Cool!
Nicola's picture

I could also write an

I could also write an Arduino + L293D + breadboard "start here" tutorial if it's needed :)
webmaster's picture

Yes, indeed. One could say

Yes, indeed. One could say that 2 is one too many.. But to be honest, show me the newbee that would not like a choice? That also goes for the work that I have done - I would LOVe if somebody would make alternatives, also with Picaxe. It can only be better that way.

Imagine if we had 10 different good start up-tutorials! What a nice place this would be. 

And.. also to be honest; It is never certain that what people INTEND to make get's done - so the more intentions, the better chance that we actually get some good instructions.

If we ever get more than mine up there, we would provide people with more inspiration, so yes, unless we get to have 3 excactly the same ways of doing everything, and they alle are as good as the others, it can only be a benefit to have more

(So it would be GREAT if you would) - I personally will make the robot(s) described, I cannot wait, get us going, I would love to just order parts and make what you show me :)

Thanks!

Nebster's picture

hi guys i only just found

hi guys i only just found this forum page and started to read and followed up on links etc.

coincidentally i have all the parts required to make an arduino robot however i dont have the skills to do it all like programming... the programming....   and building and troubleshooting etc. id need some to just tell me "oh yeah to fix that blah blah blah". or    "that command your looking for is the blahh command". you know.

i could make to tutorial so when i start (if assigned to me) i will open up a page to get help from you guys.

my parts include:
arduino decimal
2 geared motors + tracks
sharp IR sensor
1 servo (i attempted to mod the other, oops)
and a motor controller

so i guess i could give it a go but as you say frits there just isnt enough time with study and work and school. i have school holidays coming up so i could get started then. 

Evan

guibot's picture

or another very simple one

or another very simple one would be something like this, it was my first and a really good project to start!
fritsl's picture

Yes, go for it!Guys, to put

Yes, go for it!

Guys, to put it short; Noone told me what to do, and noone will tell you what to do.

i know I have inspired a lot of people by making an easy tutorial for beginners. And I know you can do the same; There is a great need for it, it is the most inspiring thing one can make; Basic tutorials on how to make a simple robot. It helps people evolve. And it is fun to see how your work means that you can kick back and see others robots, made with the aid you provided.

So stop talking, just make that tutorial if you want. I want to follow any tutorial you make, and I know others will - just look at all the robots made because of my "Start here" project. We need more!

Thanks :)
Nebster's picture

oh my god frits you are so

oh my god frits you are so right !

thank you for inspiring me. i will make a start on it however it will be about 2 months before i can post it because i have a hell of a lot to learn. thank you. it will have the same design as your start here one aswell.

i will get started then. =)

fritsl's picture

That's the spirit, boy :)I

That's the spirit, boy :)

I cannot, and will not decide "who is to be making the official Arduino first-robot". Just like nobody decided who should make the first Yellow Drum Machine, you know :) 

The one that does the job get's the credit, fame & glory :) 

It should be done for your own reasons whatever they are. I personally think it is a good way to learn, remember, and at the same time get lots of friends, help people.. it just feels god to know that you have inspired people.

And it is also fun to make them instructions, I think. You know people will be reading and following what you do, that is fun.It is also very time consuming, but hey - what are hobbies for ;)

And there is not such a thing as one too many instructions. Good, easy, newbee tutorials are by far the most popular pages on LMR.

 

.. and me, personally, I would really .. really.. love to try to follow intructions made on some sort of easy level, to get started with Arduino! So please make them tutorials :) I promise to try every one if we ever get more than one!

 

.. And if nobdy else does it, I will eventually pick up a board, and make a tutorial myself.

Nebster's picture

ok ill do it but i cant

ok ill do it but i cant start right away because i still have to order some parts in.

but hey i will give it ago but unfortunatly i dont think it will be a cheap build. mostly because im in australia but because i like a flash robot. =)

any support would be gladly accepted, or advice etc.

guibot's picture

You are absolutely right

You are absolutely right fritsl!!!!  
I will make the easiest Arduino Bot Tutorial ever made  :D
fritsl's picture

I am not just saying it; I

I am not just saying it; I CANNOT WAIT! :D
Nebster's picture

ok i just have on problem.

ok i just have on problem. what about a good non solder non serial motor driver. not controller.

ive looked into all the one on LMR and none suit my fancy. so what do you guys think?

Chriskid's picture

For a motor driver, use the

For a motor driver, use the one from the tutorial that guibot posted about a week ago. Its called the.... L2-somethingorrather.
buhatkj's picture

Yeh I had the same issue. 

Yeh I had the same issue.  I got one of those pololu serial ones, but can't make the thing work.  pololu and dimension engineering both make more expensive and powerful ones that operate on PWM, but they are prolly overkill for smaller bots.  I think the best choice is the solarbotics one frits posted about a little while ago, but it's a kit, you have to solder it together.  Honestly it would be pretty hard to get much done with NO soldering.  The best I can figure is to just have to do simpler soldering, kits made with all through-hole parts. 

I am tempted to try and make a better one, and have PCB's made and start assembling and selling them myself.  Or maybe just horde them for my army of tiny robotic minions.  Either one will do.

:-)

fritsl's picture

Remember, dear member of

Remember, dear member of LMR; If you want to start a business, we will support you! And you can get all the exposure that LMR can offer, for free. That's membership benefit :)

We are not afraid of supporting members businesses 110%, as long as it is obvious that you are a member because you are into robot building, and not because you want to sell stuff as the primary focus.

That's what friends are for, as they say :D

BaseOverApex's picture

Design

Show me your PCB design and I'll see if I can make the boards up.
buhatkj's picture

something i want to try

well yeh, I'll order some stuff, make a few prototypes and see where it goes.  Designing a PCB is something I've been wanting to try! 

:-)

robologist's picture

No solder, pin signal h-bridges

Here's one by Pololu, for 2 motors :

http://www.pololu.com/catalog/product/712

It has a max PWM of of 10 kHz though, which is annoying to listen to. But for a on/off switching, or lower frequency it  might be ok. Also, some of Pololus stuff has some soldering, so it might be good to email them to see if this is completely assembled, to be sure.

From  Solutions Cubed for 1 motor :

http://www.solutions-cubed.com/solutions%20cubed/SB1_2005.htm 

Not sure what max switching frequency is, but looks fully assembled.

From New Micros :  http://www.newmicros.com/

have to go to the site, then click the h-bridge button on the side (scroll down) to see NMIH-0010 (for 2 motors, 754410 based, 1 A), NMIH-0030 (for 1 motor, 3A, 2 kHz max PWM), NMIH-0050 (1 motor, 5 A) , D-Rex (2 motor, need male pins to interface, 7A)

Remember for all sites, to check availability and shipping costs before ordering.

 

Nebster's picture

cool beans well i have given

cool beans well i have given up, awe.
its too hard and i think guibot would do a much better job because he has experience already.
however when his tutorial comes out or whoevers i will have an arduino bot up and running.

Evan

guibot's picture

Evan, just give a little

Evan, just give a little more time, maybe today or tomorrow I will have it complete.   :)

i happened to see this thread

while cruising you guys site, i found this thread.. Arduino is my favorite controller.. i currently have three bots all running on arduinos. 

 

As for a the motor shield.. you should check out ladyada's at adafruit.com.  I use it on all of my bots.. you can get it as a kit to solder together or you can buy it preassembled.  

 

If no one else writes a tutorial on a "budget" robot with arduino, i would be glad to help out.  I have written several articles in the past, and one that is currently running on uchobby.com.  

 

If anyone is interested in my writing a tutorial, give me a shout out.

 

Great site you have going here, nice to see this many people interested in the home robotics thing.

 

guibot's picture

Hi grinan!! and

Hi grinan!! and welcome!!!

Like fritsl said, no one will tell us who will make the first tutorial.. we all are free to contribute!!   

Please make yours if you feel so! I would be glad to see more than one also!!

And for the adafruit shield, I have one once, but unfortunatelly burned out due to a stupid mistake, witch turns out to be a happy accident because I figured a way to make my own motor controller board. And IMHO the adafruit shield has a small / big limitation, it gets all your digital pins, even if you only want to connect one motor and one servo, you can´t use your digital pins any more. You still have the 6 analog pins free to use, wich can limit your needs.

I think the good point with this shield is, easy to assemble, and very easy to use  ;)

Nebster's picture

hey welcome and thanks for

hey welcome and thanks for the offer. you can make a tutorial if you want but just wait till guibot has made his so that their not the same. i have not yet mastered (or familierised) my with the arduino and i would personally like tutorials to help reach the status.

Evan

guibot's picture

Thank you for waiting for me

Thank you for waiting for me Nebster!!!   :)

All I can say is: the fotos have been taken, the texts have been written, and I am finnishing editing a small video..   :D

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.