Let's Make Robots!

arduino (wiring up)


a few questions about the ardiono board (UNO)

1. if i want to connect a moter, how do i connect the mottor with the arduino uno board?

2. how should i powerup (put elektriciti on it) the motor?

3. is there a motor shield NEEDED or can i do it without shields?

4. is it recommended to make a elektrical schamatic circuit before doing all the wiring/hooking-up at the board

5. what about the schematic circuits (ins outs, the why, the how and please more)

5. i've seen a vid where somebody puts the stripped-twisted-wire into the arduino board pin-hole whitout soldering, how is this enough?


could sombody (or more body's xD) give awnsers to these questions


im still a real-non-tecnical-person xD so please be sure that i wil understand

thankxx alot!


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
You should never connect a motor directly to your Arduino unless you are trying to damage it. Even the smallest motors are effectively a dead short when stalled. They also generate "back EMF" which will damage your processor. For small motors you can get a dual H bridge on a chip. The L293D is popular. The L298N is basically a heavy duty version rated for up to 2 amps. Most shields use these chips.

what do u all actuly mean by diricly conecting the motor?

Do NOT connect the positive or negative lead of the motor to an input/output pin of the microcontroller/arduino. It will draw too much current and at the very least burn that pin on the arduino out. Worst case would be you will completely damage the arduino and render it broken.

so to avoid this i should use a resistor? or a shield or something like the L293D?

A resistor won’t do you any good. That is usually to limit current to a LED so it doesn’t burn out. As you seem pretty new at this I would recommend a motor shield.

is the motor shield the same as the L293D chip? or is this chip included in the motor shield, why motor shield why not the smallest cost?

actually it depends on what kind of motor you are using.
arduino puts out 5 volts, so anything that can run on 5v can run from arduino.
the arduino itself does need power of course, and if you want to connect a motor
that needs more then 5 volts, it will need its own power supply, and a circuit that
lets arduino switch the power like an 'h-bridge'.

as for physically wiring: a regular dc motor has 2 leads, to make it spin you need to
connect power to one end and ground to the other.
on arduino this means one wire to a ground pin, and one wire to an i/o pin.
when your program tells arduino to turn that pin on, it will send 5 volts trough that pin
completing the circuit and turning the motor on.

indeed a motor shield is not needed, it is just a board that divides power and ground pins
into more pins and routes everything to convenient connectors.
though some shields might have special features beyond that, like speed control,
or a driver so you can hook up more powerful motors to their own power source
but have arduino control them, or even something that increases the number of i/o pins.

i recommend you look into the 'prototype shield' with mini 'breadboard' and a pack of jumper wires.
this gives you the breadboard with all the arduino pins around it.
a breadboard is a board with holes in it so u can stick in components and wires
and make a circuit without soldering.
the jumper wires are just wires with pins at the end.
you could use regular wire but that sucks hard unless you solder the ends.

with the prototype shield with mini breadboard and a pack of jumper wires
you can make small circuits without soldering right on top of your arduino.

I have to disagree with you on running even a small DC motor directly from an Arduino IO pin. The pin is only able to source/sink 40mA and you stand a chance to burn the pin or even the chip. The other ting to consider is the back EMF from the motor. That is a high voltage spike going in the reverse direction an also might fry your IO port.
So my recommendation is to NOT run anything that draws more than 40mA from any IO pin. Just add a transistor (and a protective diode for inductive loads) and your fine.

so where should i put the diodos then in my circiut? and the transistors where, i thought i already had 4 transistors??? and then i''l be fine if you say so.. i also need to ad some resistors or am i wrong? how about the pnp-transistor and npn-transisitor whats the differences?


thnx alot


As far as I can tell, your circuit won’t work with the 4 NPN transistors. Look at the link I sent you from ‘robot room’ you can learn great stuff from that guy. A PNP transistor turns on when the base is pulled to the ground.
But you can save yourself a lot of work by going for a H-bridge chip like the L293D like OddBot suggests. They are cheap from eBay http://cgi.ebay.com/1-x-L293D-L293-PUSH-PULL-FOUR-CHANNEL-MOTOR-DRIVER-ST-/250852128737?pt=LH_DefaultDomain_0&hash=item3a67f3b7e1