One of our microcontrollers assignments was to use a digital potentiometer as a digital to analog converter. We were given a file with thousands of numerical values, and had to use a digital potentiometer to convert the values to an analog voltage, and using an audio connector and headphones/speakers, had to identify the song. In addition, a potentiometer is used to change the playback speed.

Sorry about the fact that the audio is kinda low.

Tagged with:

Made a cave-navigation game using a Spectra Symbol softpot. The resistance of the softpot changes depending on where you press it, so you can do an Arduino analogRead() on the voltage output to determine where the circle goes on the screen. You have to make sure to add a resistor (I think I used a 100k resistor) going from the middle pin to ground (or power), or else the output floats.

Code available in the full post.

Continue reading »

Tagged with: