Arduino 101

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:

  1. New values from the pot are sent to serial. Nothing is sent if the value doesn't change.
  2. The motor pin is only updated if the value changes. This is probably a useless 'optimization'.
  3. 250ms seems like a good sleep time.

Here is the sketch:


And a video of the working circuit

comments powered by Disqus