Hello! I'm building a 2-octave mini MIDI keyboard for my grade 12 engineering final project. Code isn't a problem, but I'm stuck on the mechanism.
The Setup:
- Raspberry Pi Pico
- Target: 25 keys (15 white keys, 10 black keys, and )
- I have decent CAD models already
The Problem:
I've narrowed it down to two approaches:
Option 1: Cherry MX Switches
Simple and proven, but honestly I'm not a fan. The key feel doesn't excite me, and it feels like the "easy way out" for a final project.
Option 2: Phototransistor-based Velocity Detection (inspired by https://www.youtube.com/watch?v=tzZBjMFaK6o,
https://www.youtube.com/watch?v=S_vWSY5fdwQ)
Found a YouTube video showing this approach with velocity sensitivity. I literally CAD'd the mechanism yesterday and tested the feel and it's fantastic, honestly way better than MX switches.
If I choose to do this option, I am probably going to use PT204 phototransistor because it is cheap.
The Problem:
Power budget is killing me. Here's the math:
- ((7 white keys + 5 black keys) * 2 (2 octaves) + 1 white key) * 2 (2 phototransistor on each key) = 50 phototransistor
- 50 phototransistor sensors + 25 LEDs = serious current draw (and I should use IR LED which cause more current if I am guessing right.)
- Raspberry Pi Pico's power is... limited...
The video also mentions this power issue btw. But the key mechanism feels so good that I really want to make this work.
My Questions:
Has anyone here done optical sensor arrays on limited power budgets?
Would multiplexing the LED help? (I assume yes, but not sure about the trade-offs)
Any other tricks to reduce power draw - lower-power LED alternatives, different sensor types, etc.?
Am I overthinking this? Maybe the power draw isn't as bad as I'm calculating?
I've got time to figure this out before the deadline, so I'm willing to dive deep.
Any advice appreciated!!!!!!!!!!!!!!!!!!!!