Let's Make Robots!

Motor control

Nick's picture

 I have the following small problems:

In the beggining I had them posted in the wrong place,

 So i moved them here:

Problem one: i tried hooking up two motors.

they both had one wire soldered up to V2, and the other one to outputs (6 and 7). i now typed this code:

main:

high 6

high 7

pause 3000

low 6

low 7

pause 1000

goto main

notning happened. any ideas? 

PS: i dont have a motor drive.

 


Now for the next important question, 

 

does this look about right?

Picture_028.jpg

I just dont want to make my picaxe 28x1 go up in flames.

its a 5V regulator by the way. And yes, i am going to put a 9volter in there.

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Nick's picture
im still amazed at howmany people that ansered this foum topic, i thought you guys would all get P.O.ed at me after seeming this dull^^. i must thank you all for your suegestions, and because of everybodys help, im on my way to my first robot!(not including NXT)
Nick's picture
ok, will du, as soon as i think of a way to hook up wheeles. meanwhile, after having a rough day at school(tests,tsets and tests,) im gonna go play wii
Setix's picture

Hey Nick.

When these guys talk about gears on motors, they're talking about a "gearbox" which is very similar to the picture you posted, but for 1 thing: you see where the little gears attached to the motor drive the larger ones and there is a medium sized gear on top of the big one? Well normally that gear wouldnt be there and instead would have a shaft, just like the motor without the gears.

to attach wheels, some of us use hubs that come with wheels..you might be able to canabalize some wheels and hubs off of an old remote controlled car or truck, You might want to check a thrift store or goodwill. Goodluck bro 

 

Chris the Carpenter's picture

Hey,

Forget all this gear ratio stuff and speed and torque and whatever... Some gears are better than no gears --Glue some wheels to the outputs, wire up some batteries and see if it goes. After that start sticking a bunch of weight on it -Batteries, the picaxe board, etc. and see if it still goes. Once you have anything at all that will make some batteries and a brain go around, start playing with the high/low commands and learn from there. Don't forget to use the L293D motor controller on your board. 

If it doesn't go, well, start mowing some grass or shoveling snow because you are going to need a few bucks to buy some proper motors. Untill then, use EVERYTHING you have to learn from. --And this is a guy who named his kid MacGyver. By the way, you are too young to remember MacGyver so really your first task is to go here and watch some episodes. --Best show ever!! 

Nick's picture

im still a bit confused, so im just going for THe L23D motor drive, just like the start here.

BTW: are these good geared motors?

Picture_030.jpg

jklug80's picture

Yes, No, and Maybe. It depends on the RPM of the motors, the required speed of the bot, and the required torque of the bot. If you have a heavy robot you need more torque than speed. If your bot is light and you want it to mvoe fast, you want a motor with faster RPM and a gear ratio that keeps the RPM high. If you look at a car the lower gears may have a 200-1 ratio. In other words while you are moving slower the engine turns at 2000 RPM but the tires rotate only 10 times per minute. At a higher gear the gear may be a 1-1 ratio (every time the motor turns the tires turn at the same rate so at 2000RPM the tires are turning at 2000RPM).

Why would you do this? Well when the car is stopped a 1-1 ratio would put a LOT of force on the engine to try to turn the tired from a stopped state. With little torque the engine wouldn't be able to budge the car and your transmission goes BOOM! When travelling at high speeds you need a smaller gear ratio or you engine would over heat from turning too fast. When moving quickly you don't need the torue (unless you are going up a steep hill).

Long story short this gear box may or may not work. It depends on the RPM of the motors and the ratio of the gears that are attached.

GroG's picture

Hi Nick,

For reference I made a motor control component node.  It might be too much information for you at this point, but use it as a reference.  In turn, I need your help to point out parts you do not understand, need more explanation, or areas where I have made general assumptions which beginners might not get. I would like it to be useful from absolute beginners to EE majors, so any input, questions, or suggestions you might have would be greatly appreciated.

GroG
my robots
my garden

Chris the Carpenter's picture

Yup Rik,

I didn't notice the profile... Wow, '96 --That's after I graduated! Man, I'm old.

Allright Nick, everything ELSE (except the beer) still stands. I really can't stress it enough, the picaxe manuals are gold. The BASIC one has great snippits of code to study and the ones for the picaxe boards are great when you need to double check a pin arrangement or whatever.

And for the record, I was about 12 when I first played around with BASIC. Of course then it was on a TRS-80. --Do a google search for that if you want a laugh at us old folks.

Keep it up, dude you'll get it.

jklug80's picture

I was 8 when I wrote my first program on an Apple IIe. Then it was on to basic using an IBM clone running Win 3.1. Man those were the days. PCs were stupid and that's the way we liked it!

 Anyway to keep this mildly on topic. Don't try to start big. If you scan the forums people who tried to start big got frustrated and never made a robot. Those that started making an LED light up using a PICAXE then made it blink, then added a motor, then... went on to make some nice bots. ALWAYS start small. You have a lot to learn and trying to skip past the beginner stuff will only make it take 10 times longer to make something it will also frustrate you to no end.

There are a few tutorials about how to make a LED blink or even light up using a breadboard on this website. I highly recommend you look through the tutorials and start small.

Nick's picture

I know iv sort of been taking the easy way out... and im sorry for asking for the info

to be served on a gloden plater. ill try better.

just one question: are you sure about needing gearboxes? and why? i hooked the up to a 4.5 V batterie, and they maneged to drag pretty fast....