Pages: [1]   Go Down
Author Topic: 1 Power Source  (Read 411 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to use 1 power source to power an arduino duemilanove and a dc motor? My goal is to use a wall wart that is either 9vdc or 12vdc and power up the arduino while powering up a motor that uses a relay with the arduino to control it. I know when I connect the motor directly it resets the arduino. I didn't know if I could just put a large capacitor in parallel to help buffer the motor distortion, or if there will still be problems. Any advice?
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If your 9V power supply has enough power for both you can use it for both. Connect 9V to the power jack or Vin(+) and Ground(-).

If your relay coil requires more than 5V or more than 30 mA you will need a transistor to drive the relay.  In that case you could use the transistor to drive the motor directly and skip the relay.  This would allow speed control if you connect the transistor to a PWM output pin.

Do a Google search for Arduino Transistor to find out more about driving motors and relays with transistors.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: