Servo Motor Labs

Servo Motor Controlled by Pulse Width Modulation from an Arduino

 Questions:
  1. We add a delay after rotating the servo because the servo motor cannot operate at the speed the Arduino does, thus we add a 45ms delay for real-time visualization of the servo motor rotation.
  2. Since a 90° rotation (neutral position) corresponds to pulses of 1.5 milliseconds and the pulses range from 1 to 2 ms, the pulse width that corresponds with a 45 rotation would be 1.25 milliseconds.
  3. Why doesn’t the Arduino reliably turn a servo motor at the same time as it plays a sound from a piezo speaker using the tone() function? Both the servo motor and piezo speaker function via pulse width modulation. The Arduino only has the capability for one oscillator, thus it cannot control both parts simultaneously.

Servo Motor Controlled by Potentiometer with Arduino

Servo Motor Controlled by a Pushbutton Momentary Switch

Screen Shot 2016-03-02 at 3.41.50 PM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: