Sunday, November 8, 2009

Servo Motor Control with an Arduino

As the title suggests, the objective of this setup is to control a servo motor with an arduino. The control values will be passed to the arduino from a potentiometer. The schematic is shown below.

(image courtesy of itp. The complete tutorial and the arduino code is here.)

Here's a video.


Transistor Lab

Here I'll be using a transistor to control a dc motor. The connections are as shown below.


(image courtesy of itp. The complete tutorial is here.)

The reading from the potentiometer connected to the analog 0 pin of the arduino controls the dc motor connected to the collector of the transistor.

Here are a couple of pictures of the setup.