« Wiring an Adaptor Cable | Main | Mini Digicam »
October 06, 2005
Analog Out
Analog Output
We might want to control the brightness of a lamp, for example, or the turn of a pointer on a dial, or the height of something hanging from a rope. In those cases, we need to make an analog output.
Note: I should really get myself some of those tri-colored LEDs to get the different colorsDownload file .
Analog output: Servo Control
Controlling the rotation of the servo using an analog input, such as the pot.
My board producing frequencies from the pic chip. I programmed the pic so that depending on the force sensor, the LEDs light up accordingly and the FreqOuts vary. I attempted to output two differnent frequencies (like an instrument) from the pic and failed. Todd H advised that this is impossible on a pic, since the pic will only send out one FreqOut...
To amplify the sound from the pic chip, I attached a female stereo mini jack. FAB!
The connection into the PIC
Using the servo. Controlling the servo.Download file
Now, using a variable resistor to control the servo. Download file
Using pot to control servo.
More fun with FreqOuts!
Pot controls the volume and the force sensor controls the LEDs. Download file
Posted by min at October 6, 2005 01:26 AM