I wanted to play around with controling something throught the Arduino.
This circuit allows you to control the speed of the DC motor via the potentiometer.
Random Notes/Thoughts:
- New values from the pot are sent to serial. Nothing is sent if the value doesn't change.
- The motor pin is only updated if the value changes. This is probably a useless 'optimization'.
- 250ms seems like a good sleep time.
Here is the sketch:
[[posterous-content:bHvxHtpHhnDEynkIbdJI]]
And a video of the working circuit