Here another project. It's a box for replacing some old MIDI hardware. It can read 16 analogue sensors, 16 digital sensors and control 16 LEDs via PWM. Basically, it is just a Teensy 3.2 plus a PWM breakout board from SparkFun. To easily access all the pins on the Teensy, I also used the excellent Teensy 3.2 Breakout Board R3 by Daniel Gilbert.
Attached are schematics, Teensy code, and SuperCollider and MaxMSP code for dealing with the serial communication.
- 161011: fixed a silly but severe error in the MaxMSP patch