S
S
Sergey2021-10-17 01:00:10
Electronics
Sergey, 2021-10-17 01:00:10

How to connect a digital sensor to the input and output shift registers at the same time?

Greetings! I need to connect a lot of these proximity sensors to stm32. The general meaning of the circuit: by installing a capacitor, an analog sensor as a one-bit ADC turns into a digital one. To read the value, first, 250-800 µs, depending on the required sensitivity, we hold a logical unit on the signal output, charging the capacitor, then we transfer the output to the input and read. I need to connect 20 such sensors, it’s a pity for the legs, and the current per leg and port is very tight. Therefore, I want to connect sensors to shift registers, charge a capacitor through a transistor through a register with a parallel output, and read a value through a register with a parallel input. How to do this correctly so that charging the capacitor does not burn the input on the register or set log.1 on it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stepan Bryuzgin, 2021-10-18
@cybersonner

Analog multiplexer. Like 74HC4051. We connect (signals S0-S1-S1) to the desired sensor and charge-discharge-measure. You can expand them as needed. You can apply to the address (signals S0-S1-S1) through a shift register, if there are a lot of switches and you feel sorry for your legs.

V
VT100, 2021-10-18
@VT100

You can supply an output register with a Z-state 74HC595 and an input 74HC597. Limit output currents with series resistors. But accuracy and stability are questionable.

B
beeptec, 2021-10-22
@beeptec

There is an alternative hardware-software platform implementation for all such and other situations that arise during the development process.
60 output / 1600 input ports (ADC, 12 bit, 0 - 3.300V)
61725820d1623512180199.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question