Building DACs and playing potatoes
I had a class last year with a a simple programming project. We were asked to program TI's MSP432 running energia (the arduino IDE for their ARM Cortex processors) to play various note when a push button was pressed. They let us use the tone libraries to output a square wave at a set frequency. The programming was very simple, too simple. We spiced up the project by first replacing the push buttons with potatoes. Using a voltage divider and the human body we used capacitive touch to sense when the potateos were being touched. We wanted to play axel F which requires a sawtooth wave. We built a simple DAC using a resistor ladder, the tricky part was getting the MSP432 to flip the pins on and off quickly. We couldn't finish the project using the Energia Pinwrite command, it was much too slow to work with a resistor ladder. Instead we had to program the registers directly. Notice my 200 year old oscilloscope in the back, only one channel works. This is what a college budget looks l...