Can someone tell me a basic setup for a motorshield to control a DC motor.
Parts are limited at the moment, mostly because I am still learning.
Parts list:
Arduino uno
1/4W Resistors:
• 2.2O x10
• 10O x10
• 47O x10
• 100O x10
• 680O x10
• 1kO x10
• 10kO x10
• 22kO x10
• 68kO x10
• 100kO x10
• 330kO x10
• 1MO x10
Ceramic capacitors:
• 100pF x10
• 10nF x10
• 100nF x10
• 2.2nF x10
Electrolytic capacitors:
• 10uF x5
• 470uF x5
Breadboard
Jumper wires
Blank circuit board
Various DC motors no servos.
Parallax ultrasonic sensor and LEDs
And a Tank frame I am building from scratch.
If you can help me out it would really be appreciated
Thank you for your time.
You need some transistors to control current flow thru the motor.
Single Logic Level N-channel MOSFET with low Rds if just want to turn a motor in 1 direction.
Need 4 transistors arranged as H-Bridge to go both directions, or an H-bridge chip (L293, L298) may work depending on current to be controlled (or, 4 relays).
You can search for "motor shield" and see what others have done.
For motors bigger than, say, a cellphone vibrator, you will need some kind of driver circuitry to handle the power. Usually that's done with an H-Bridge which allows you Forward and Reverse control.
http://itp.nyu.edu/physcomp/Labs/DCMotorControl
If you don't need to be able to reverse your motor you can use a power transistor
http://itp.nyu.edu/physcomp/Tutorials/HighCurrentLoads