jkominek / piano-conversion

Hardware, and some firmware, for acoustic piano to MIDI controller conversion.
Other
42 stars 6 forks source link

ADC Board Rev 3 #47

Closed jkominek closed 2 years ago

jkominek commented 2 years ago

Place to record necessary changes for rev 3 of the board:

Necessary changes

jkominek commented 2 years ago

Note to myself: We need to keep +3.3VA, as a requirement of the way the STM32 works. I want to bump Vce for the phototransistors up to at least 2V, preferably more. I don't want to run them off the input 5V. So we'll want analog voltage rails of 2V (vref), 3.3V (STM32 and opamps) and 4.5V (phototransistors). That'll leave us with 4.5V-2V=2.5V for Vce.

We'll say the conservative max for +4.5V will be 22 * ~5mA ~= 100mA. 2.0V will draw ~0mA, as it is just maintaining one of the high impedance inputs of an op amp. 3.3V will need to cover the STM32 and op amp circuitry. Maybe call it 50 to 100mA.

I'll abandon the interest in raising Vref; any improvement in "linearity" of the initial sensor signals is worth more.

jkominek commented 2 years ago

Unified ground nets, tided things, and then scooted decoupling caps closer in bbdd6db.

jkominek commented 2 years ago

More changes made in 5c3ecac.

continuing to peruse my copy of electromagnetic compatibility engineering looking for ideas on improving/reducing electrical noise on the ADC board.

davidedelvento commented 2 years ago

looking for ideas on improving/reducing electrical noise on the ADC board.

How about putting the op amp on the sensorboard? If I am not mistaken you are using parts which have 4 in one chip, so that's a perfect match for the 4x sensorboards.

jkominek commented 2 years ago

How about putting the op amp on the sensorboard?

That would require delivering a voltage source to the sensor boards.

I'm pretty sure it would also be worse; the current configuration was a deliberate design choice. The ADC input presents an extremely high impedance, so small amounts of stray charge can affect what it measures. By keeping the opamp output close to it, we make it easier for the op amp to control that voltage.

Whereas on the input side of the opamp, it shows ~0 impedance (because of the TIA configuration), so it would take a lot of stray charge to affect its inputs.

jkominek commented 2 years ago

dc4713c marked as rev 3 and ordered