0
\$\begingroup\$

I am a noob in electronics . I am just learning it bit by bit. The below is my connection.

enter image description here

As you can see pin 13 is connected to one terminal of the motor and the other terminal of the motor is connected to the 5V source of the arduino. My motor is a 9v motor and hence I would like to operate it at 9v so how can I do this? Help is appreciated .

\$\endgroup\$
2
  • \$\begingroup\$ I advise you to do some searching on this site, this has been solved so many times. electronics.stackexchange.com/questions/tagged/arduino+motor \$\endgroup\$
    – Dzarda
    Commented Apr 9, 2015 at 15:00
  • \$\begingroup\$ Please for the love of Ohm, do not drive a motor with your Arduino's PWM pin directly. gags and dies \$\endgroup\$
    – KyranF
    Commented Apr 9, 2015 at 16:51

1 Answer 1

1
\$\begingroup\$

Easiest way is looking at a motor driver board like this DRV8835 driver from Pololu. Then you can connect your 9V source to the VIN pin, your arduino (via a resistor - 10k) to the EN/PH pins and a 3.3V or 5V supply from the Arduino to VCC, ground it, put 2 10nF caps between VIN and GND and VCC and GND and go.

Alternatively, you can use a transistor or a relay to do the same.

\$\endgroup\$
2
  • \$\begingroup\$ Thx for the reply I have an h-bridge would I be able to use this? \$\endgroup\$
    – m0bi5
    Commented Apr 9, 2015 at 15:00
  • \$\begingroup\$ An h-bridge allows your motor to switch direction, but it still uses the power from your arduino to drive the motor (5V in your example, and only a limited amount of current). You want to use a driver or a transistor or relay to have the Arduino control a much higher power circuit which in turn drives the motor. \$\endgroup\$
    – Phil B.
    Commented Apr 9, 2015 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.