DavisB
scherbakov.al
As far as I can tell, "the slowness" - if any - really comes from capacitance of phototransistors.
Most HC series ICs are fast by themselves (for our requirements anyway!).
CD4051 1-to-8 analog muxes work without any issue whatsoever switching at 160kHz (meaning each sensor 20kHz)
The HC238 also work well, but in the circuits I drew previously the adjacent sensor readings influence each other somewhat (which might be ok for slit sensors, but not for the analog ones). So those hc238 circuits are incomplete and need improvements that fully address the capacitance and properties of phototransistors.
One of the big goals with using HC238 was to cut down power consumption below 500mA, such that it can directly be powered by USB.
I was also thinking that it might be possible (?) to have all leds be constantly on and still be under 500mA budget.
Regular phototransistors has forward voltage of ~ 1.2V, meaning you could one LED current limiting resistor per two sensors in series.
If we're aiming for around 9-10mA for each led, that would give us ((3.3v-(1.2v * 2))/100ohm) * 44pairs = ~ 396mA. (5V->3.3V via LDO)
Few mA for MCU and ~ 30mA (3.3/10kohm)*88 pullups/pulldowns - and even the basic-always-on CD4051 muxing version might work just from 500mA USB?











