And i want it to work with the ardunioboard. So a friend told me that i need to put an resistor bevor the motor but i have no idear whisch one. So mybe someone can help me here.
Some info to the projekt ic have a little box with my arduino board in it an der is an "piezo" vor sond input. This Piezo gets "knockings" on the tables an switsch on 3 LED which are inside the box. Also if the knocking is frequent and louder the box should start moving .. so i need the servo/motor.
I hope my english is not that bad, so someone can help me here.
greets timme
All of the above drivers give you the opportunity to change motor direction via software commands; if you only want it to run in one direction, you can just use a TIP41 or similar transistor or Mosfet...
The R/C stores also sell a "servo-style" moduel that is equivaluent to the ones above, but it's usually expensive.
You'll also need a separate power supply to run the motor: connect the ground of the 12V motor supply to the Arduino ground, and run the +!2 to the motor, whcih will be in series with the controller.
Or.. and perhaps this is simpler... you can just get an R/C servo motor!
Serial Controlled Variable Speed Motor
Control the speed of a small DC motor with nothing but the serial port on your computer, a single MOSFET, and some trivial software.
well, i tried the code now with a servo motor, works good, except that the servo is flickering even when the analog value doesnt change. though, it makes some strange noises. tried it with a constant minPulse as well. then included the metro-library, cause i thought the delaymicroseconds might be not precise enough. nothing changed? should i put a capacitor between servo pin and ground? any advice?