T-Ro
I got my little proof of concept working, and I would like to jump into this community, as it is really supportive and newbie friendly. I've been lurking all the DIY projects from @CyberGene , @gzpiano, @JayKominek, @RIP, thought I would join in on the fun.
Let's jump into my setup. I'm using a teensy 4.1 with lm393 comparators and CNY70s. The idea is to use 2 cny70s one for hammer tracking one for damper.
I've got the code to work with interrupts, but I have no idea what I'm going to do to connect multiple teensy boards. I can get 15 keys to work per teensy(6 being needed), but I want to use one teensy and 16 MCP23017s(digital Io expander), with interrupts, to get this to all work on the cheap.
Code;
Video;
I bought an upright piano to marry this contraption to, but I need to think of a pcb design to take this further. I'm doing all of this with zero coding experience and zero pcb design experience, so this is going to take alot of banging my head against the wall. We will see where this project goes I guess!
What I'm going to work on alongside the pcb design, is using the mcp23017 digital Io expander. It's theoretically possible to get 16 of these working on one teensy board, and have 256 digital inputs with interrupts. Here is what I've found that could help.
https://forum.pjrc.com/threads/68716-Teensy-4-1-MCP23017-examples
https://www.best-microcontroller-projects.com/mcp23017-interrupt.html








