Instructables
Picture of 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
 
Remove these adsRemove these ads by Signing Up

Step 1: Parts List!

Picture of Parts List!
corrugated-cardboard-closeup.jpeg
2N2219.jpeg
China2010527935225.jpeg
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!

Picture of 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
Ian114875 months ago

what is the resister for

Very interesting.
ezekiel1812 years ago
I wouldn`t ignore the diode if you want the transistor to work for long.
Coolnventions (author) 2 years ago
Thanks man
tigerbomb82 years ago
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);

}
are u an Indian??
Coolnventions (author) 2 years ago
TYPO: 100OMH Resister