Roboduino (Nano) & IO Shield + Motor

Hi All,

I have just received my new Arduino Nano and IO Shield,

I got it working and have tested the led using "blink" & also using wiring up a Potentiometer to control the Blinking led.

OK, What i really want to do is Control Servos & Motors.

My Servos are in transit, but i have loads of DC Motors lying around and wanted to turn them on & off using the arduino.

On my Shield i have 5V & GND on each of my Digital I/O's as-well as the analog inputs.

But how do i connect it and code it?

I assumed it would be easy for a n00b to find wiring diagrams and examples for arduino projects but i haven't had any luck yet with simple motors!!

I found one on instructables but all the motor did was wine (make a high pitched noise)

Can anyone point me in the right direction!!

Thanks in advance

Ok, figured out why some of my motors wont work!!

DUH,

It turns out the the arduino only puts out 3.3v DC [smiley=lolk.gif]

I thought that the arduino would at least put out 5 v DC. :o

I have a Motor that is rated at 5vis there a way to get 5 volts out of the arduino without an additional supply?

I do have 12v wall warts but don't want to fry the motor?, I was even thinking about stripping the end of a USB Lead ad plugging it into the IO shield!

any suggestions?

this is the code in using:

/*
 * A simple PWM example
 */

int pin         =  6;     // LED connected to PWM pin 11
int pulsewidth  =  255;    // Any value between 0 and 255

void setup() {
  // None required for analogWrite!
}

void loop() {
  analogWrite(pin, pulsewidth);
}

I have been testing it with a 3.3v motor and a Torch LED to look at the voltage output

Cheers

Some Arduinos are 5V. Others, like the nano, are 3.3V.

A regulator, a couple of capacitors, and a diode can be had for under $1. Build a regulated power supply to take the 12V wall wart power down to 5V in under 10 minutes.

What IO shield do you have. I didn't think there were shields for the nano?

Thanks for the response!!

The Roboduino IO Shield!!

Here is a page link,
http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=130349277518&ssPageName=STRK:MEWNX:IT