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.

I could start with answering all your questions, but I think it's easier to give you a link to a site with some Arduino tutorials (also with a motor tutorial).

It will give you ways of hooking it all up and even give you code examples to play with.
Really, doing tutorials will learn you a lot. It helped me out with coding my own stuff in just a few months.


Start with blinking an LED and then go ahead. If you lack parts you can always skip something, but be sure to read the tutorial and look at the breadboard sheet, so you know the basics.

Good luck! 

okey, i checked it out, it did awnser a little of my question from qestion 1 to 3

i think it is powered up by a external power suply

a motor shield is not NEEDED..

and it is just connected by wires and some electronic compenents..

but still not a very detailed explenation about the HOW TO wire it up, like a vid or step to step tut

i just hope you can take a little time for me ^^

thnxx nick

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.

so, i looked what a H-brigde was and i think that i can used it this way:

motor wired up to arduino uno

now in the code i use this for.. :

pin0 LOW + pin1 HIGH = forward

pin0 HIGH + pin1 LOW = reverse

is this the complete scale of a single motor in a simple way?

did i mest something up, so yes WHAT did i mest up in my nice circuit xD

and i stil haven't got a awnser to 5 and 6.

1, 2, 3, 4 are awnsert thanks alot!


I’m no expert on H-bridge but I don’t think your setup will work. First of all you need a resistor at the base of the transistor (it is driven by current and not voltage). Next, you probably should have both PNP and NPN transistors.
Your also missing diodes to protect your Arduino as the back EMF might kill it.
And last, don’t use the digital pins 0 & 1 if you don’t have to as these are the serial line and it will be a mess when you try to upload your sketch.
Have a look at http://www.robotroom.com/BipolarHBridge.html No point in reinventing the wheel :-D

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