That only protects the digital signal inputs, not the analogue signals. Note the asterisk that is on each of the digital control pins.Yes I thought I needed extra protection, but then I checked 4067 analog multiplexer data sheet. https://www.ti.com/lit/ds/symlink/cd4067b.pdf
Every input is protected internally (see below) and since I am using Vdd=3.3V supply for the analog multiplexer, I seem to have that covered, especially considering the fact that I am supplying SS49E with something like 4.5V only (note bipolar transistor keys in the schematics) and at full swing SS49E outputs not more than 3.8V, so I am within 4067 specs.
View attachment 35192
You want to protect the Teensy from over voltage. It didn't want more than 3.3V on its ADC pins. The AH49E can send +5V and the CD4067 can pass it through without the clamping that you had previously assumed so you can get 5V at the Teensy. You can test this by disconnecting from the Teensy then applying a reverse magnetic field to a sensor then measuring the voltage at the output of the CD4067.As I wrote: spec say max voltage on any pin Vdd + 0.5V. I am within specs even under most extreme situation (wrong assembly, reverse orientation of magnets, keys with wrong orientation pressed to max).
Under normal operation I am always below 2.5V.
I guess that if I ever made this "commercially" I would put those extra diodes just for the "peace of mind", but with my prototype build, I am not worried.
Very happy to read about the outcome and steps here. Curious if you have any sort of full write-up that would let people follow in your footsteps? Also curious of any video or audio of its use. Cheers!Apparently you did not notice what I wrote before.
Teensy never sees voltage above 2.5V in real life at the analog input.
I would need to get the assembly completely wrong to get anything above 2.5V.
Typically you don't protect circuits against wrong assembly.
And you are overestimating those "loudspeaker fields" as they fall off with at least (distance)^3 factor.
To get anything above 3V I would need to put Hall sensor INSIDE loudspeaker.
That would never happen.
The schematic I have sent in the first post did not show the microcontroller part. In fact I do have Schottky diodes
between analog input of microcontroller and +3.3V, but even then, Schottky diodes have still something like 0.3-0.4V dropoff voltage
and would only clamp voltages above 3.3V+0.4V = 3.7V.
In the circuit I have shown such voltages simply don't exist, since SS49E output swing is Vdd-1V and Vdd for Hall sensors in my circuit is NOT 5V. It is 4.5V due to collector-emiter drop on Q1/Q2 transistors used in power circuit. So in practice, even in worst case the output at SS49E would be 3.5V. Which is below what those protection diodes would even react.
Anyway my project works fine already, I have fully working keyboard, playability is excellent, much much better than mechanical solution.