3rd update of the harddrive midi scratch pad... Parts list so far: stripped hard drive, IR encoder from a ball mouse, 4 nuts as buttons, potentiometer + knob, a pic 16f88, and a bunch of resistors... I wish I could find a linear fader.
The IR quadrature encoder is pulled out of an old ball mouse. There are actually two IR transmitter/receiver pairs in a quadrature. Some details about that part can be found here: http://members.shaw.ca/swstuff/mouse.html
The encoder wheel is just printed on transparency sheets and cut out. The wheel is generated with codewheel: http://www.mindspring.com/~tom2000/Delphi/Codewheel.html
Reading the encoder wheel fast enough involves triggering an interrupt when the first IR detector goes off, and reading the second IR detector to determine the direction.
The buttons and platter use capacitive touch sensing. A piece of metal acts as one half of a capacitor and your finger acts as the other half. You can get ICs or modules that can do this, or just your microcontroller's ADC. Basically, a pin is connected to v+ (through 100k ohm resistor here) and some metal (like the platter). Then ground the pin, then float the pin for a few microseconds, then do ADC on that pin and measure change.
The circuit for the capacitive sensing is similar here (on three pieces of foil): http://www.instructables.com/id/DIY-3D-Controller/#step4
how did you do the buttons?
Aqlor 3 months ago
@Aqlor Capacitve touch sensing on some random metal nuts... A piece of metal and your body form a capacitor. You can either get an IC or module that does it, or do it from scratch in software with your microcontroller and an ADC... There is a nice instructable on capacitive sensing I'll link in the description.
ssjgogetta 1 month ago