Introduction: Arduino Motor Control Kit

The aim of this project is to make a Arduino Motor Control Shield, that is cheap, ergonomic and easy to make. I was thinking, why not use cardboard instead of a pcb, after all its easy to use for almost everyone!

The Motor plugs into the green screw terminals, and the shield is powered by 1 9V battery. You could also stack 2 shields and share one battery to power 2 motors without bulk.


PS im 15 years old

Step 1: Parts List!

So here is what you need. About 5$ max in parts from Radio Shack


1 Transistor (I use 2N2219)
100 OHM Resister
1 Piece Cardboard
1 Screw Terminal
1 9V Snap
Misc Wire
Basic Soldering Stuff


Step 2: Cut the CardBoard

Put the cardboard on the Arduino and cut out a shape that fits on like a shield, put 2 dots, one for ground and one at an digital PWM Pin, then punch out the holes.

Step 3: Wiring!

Put the parts through the cardboard, and wire it up in the back(IGNORE THE DIODE) , test then solder

Make sure the output pins fit when put on the arduino

Step 4: Programming

Here comes the fun part!

Screw in you motor, and attach your shield to the Arduino

If you dont want to figure out this yourself, then here is a simple code I made for you guys:

REPLACE 11 WITH THE PWM PIN YOU USED

int rowPin1 = 11

void setup() {
 
pinMode(rowPin1, OUTPUT);

}
void loop()
{
 
digitalWrite(rowPin1, HIGH);
delay(5000);
digitalWrite(rowPin1, HIGH);
delay(5000);
digitalWrite(rowPin1, HIGH);

}





Picture Credit:
http://www.basicmicro.com/Resistor-1K-Ohm-14-Watt_p_118.html
http://www.atomicmall.com/view.php?id=81932
http://catalog.ecvv.com/Electronic-Components/Screw-Terminal/
aksoapy.com

Comments

author
Ian11487 (author)2014-04-27

what is the resister for

author
Blazing_Joe (author)2013-10-10

Very interesting.

author
ezekiel181 (author)2012-05-10

I wouldn`t ignore the diode if you want the transistor to work for long.

author
Coolnventions (author)2012-05-10

Thanks man

author
tigerbomb8 (author)2012-05-10

the code you posted is only turning the motor on.

this code with put the motor at 100%, 50%, 0% :)


int motorPin = 11;

void setup() {

pinMode(11, OUTPUT);

}
void loop()
{
analogWrite(motorPin, 255); // Motor 100%
delay(5000);
analogWrite(motorPin, 127); // Motor 50% (almost)
delay(5000);
analogWrite(motorPin, 0);; // Motor 0%
delay(2500);

}

author
Pranavthegreat (author)2012-05-09

are u an Indian??

author
Coolnventions (author)2012-05-08

TYPO: 100OMH Resister

About This Instructable

7,329views

20favorites

License:

More by Coolnventions:Arduino Rocket GuidanceMake an Indestructible Flash DriveFlashlight Air Gun (Can break Sound Barrier)
Add instructable to: