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

Share

    Recommendations

    • PCB Contest

      PCB Contest
    • Big and Small Contest

      Big and Small Contest
    • Make it Glow Contest 2018

      Make it Glow Contest 2018

    7 Discussions

    0
    None
    ezekiel181

    6 years ago on Step 3

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

    0
    None
    tigerbomb8

    6 years ago on Step 4

    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);

    }