DIY MOTOR CONTROLLER! I use a Basic Stamp 2! I want it to be able to control 3 motors!

Okey guys, I'm having a little problem here, I'm low on cash and I want to build a DIY motor controller.

However, I need it to be able to control three or four motors.

Even the cheap Pololu MOTOR CONTROLLER (EDIT) won't fit the bill!!!

If I buy two, It'll end up spending around AU$83 !!!

And the ones I found on instructables are manually controlled (By hand)!!!

And I want to put my new soldering iron to the test!!!

Can somebody give me the list of parts, where to get them (in Australia) and the schematic for it?

I'm really desperate!!!

Please help!

 

This is a much smaller problem than you think…

4 motors with fwd and rev… First off, you need a couple lm293 motor controllers -easy-peasy off-the-shelf… Now, since we are talking 8 output pins, which is a lot, just use a I/O expander. Done! -4 motors with fwd and rev, with only 2 output pins for scl and sda on the ol’ I2C lines. Of course, you could add as many I/O expanders and motor drivers as you want. I think with this I/O expander you can have up to 8 on one I2C line which is 16 motors.

'ting!

it’s not! He’s just saying

it’s not!

He’s just saying that to control those two motor driver (for a total of 4 motors) you need 8 pins from your MCU. Since these are a lot, you MAY want to use an I/O expander, which is basically a chip that offers you more I/O pins to work on. If the 8 pins are not a problem for you then just go with the two motor controllers he listed.

:slight_smile:

Its not a challange when
Its not a challange when what it is that you want somone to do a job for you. Try to understand, try to learn, try to set it up yourself. Its alot more rewarding for yourself and everyone else to help if you try to learn.

that’s the way you do it!

that’s the way you do it! :smiley:

and by the way…i was not criticising! Just tried to make Ctc’s explanation easier…

it is an I2C device, thus
it is an I2C device, thus you need to connect the I2C pins of the chip to the I2C pins on the MCU (sda and scl)

Hmm between the two pins on

Hmm between the two pins on your BS you mean? I don’t know!

You should check schematics for both so that you can get “pinout” diagrams to understand which pin does which. Anyway for I2C one is called SCL and the other is SDA.

**Backing up a bit **

Backing up a bit

Before mentioning what motor controller can be used, it would be helpful to know what motors are being used.

An L293D won’t drive scooter motors (for very long).

Great little motors. I have

Great little motors. I have stacks of them and run them off 74*s or 293s.

IMG_3402.jpg

 

 

If you want to go for an industrial look, you can unscrew the top canister and expose the geary guts...here's a picture of a robot that I made a while ago, with this done. I know. .it looks cool .. right??

 

I could tell you but that

I could tell you but that way i would teach you to learn it by yourself.

Check the datasheet for that chip, you’ll find every information you need to make it work. Really, datasheet are the keys to make everything work properly, like Oddbot taught me! SDA and SCL are just the two pins used by I2C communication (have a look at it on wikipedia).


Btw…i’m not trying to be harsh, i just want you to learn reading datasheets. Believe me, it pays you back, a lot!!! If it wasn’t for Oddbot’s advice i’d still be asking people around the forums how to make that ISD chip work, instead i read the datasheets like he told me and i’ve learned lots of things!

Good job! :=) Show it to us!

Good job!

:=) Show it to us!

yay! that is way under the
yay! that is way under the 80 AUD you would have paid for the other one! Cool!

DONT SHOUT OR MAKE !!! IN
DONT SHOUT OR MAKE !!! IN THE POSTS SPECIALLY NOT IN TOPIC HEADLINES; GODDAMMIT!!!

!!!
BUT I WANT PPL TO READ MEH POSTS!!!

I don’t get it. I was
I don’t get it. I was looking at this datasheet (http://www.datasheetcatalog.org/datasheet/texasinstruments/l293d.pdf) and i don’t get why you have connected the top left pin of the driver on the left to the vreg, and connected Vcc1 to 1,2EN

How to do it

you gotta get one of those … Board Of Education. they can control servos, and motors. the BS2 plugs right into it. $90 at

http://www.parallax.com/Store/Microcontrollers/BASICStampProgrammingKits/tabid/136/CategoryID/9/List/0/SortField/0/Level/a/ProductID/294/Default.aspx

and it can do a lot of other stuff as well. it lets the BS2 interface with a PC to be programmed, with a camera’s USB cord.

maybe…but that’s so
maybe…but that’s so expensive, and ninja was trying to build some cheap diy alternative to that.

**OK, it’s clear now **
:=)