I am designing an analog input circuit for a pressure sensor with voltage levels of 0.5-3.5VDC. The initial intended circuit for this sensor is the following:
simulate this circuit – Schematic created using CircuitLab
The reference manual for the datasheet of stm32f401 designates max. Radc of 6k and max. Cadc of 7pF. The process variable is pretty slow, hence the ~150Hz cutoff frequency for the low pass anti-alias filter in front of the analog input. The MCU datasheet does not mention the min. Radc but I managed to find that, according to ST officials, it is 1.5k at 3.3V power supply.
According to the sensor's datasheet, it requires a load resistance above 10kOhms. Therefore I chose a 20k resistor in series with the ADC to avoid any peak currents that might fry my sensor's analog input driver. Unfortunately it does not mention anything about its output impedance. From my understanding the sensor driver should have a relatively low output impedance considering its required load resistance of 10k. Therefore I ignore the output impedance, however I am not 100% sure and your opinion would be helpful on this matter. If the output impedance turns out to be much larger I guess I would only experience changes in my cut off frequency which is not that serious as long as it is in the range of 30-150Hz. The measured process has a very slow dynamic therefore I can accept such low range of my low pass filter. I'd be very grateful to learn if you see any additional problems that might arise due to a high output impedance of the sensor?
Given the sensor's accuracy of 3% from the full scale range it can only measure as low as 4bars*0.003 = 0.12 bars, which is 0.12/4*(3.5-0.5) = 90 mV. With my 12 bit ADC with 480 cycles of sampling time at 10.5 MHz, I can measure as low as: $$ Vadc_{level} = \frac{Vref}{2^{N-1}} = 1.6 mV$$
The voltage drop that would appear at the C1 capacitor due to ADC switching would be: $$ Vdrop = \frac{Vin*Cadc}{C1+Cadc} = 0.46mV$$
which means I can avoid any ADC distortion due to slow charge of Cadc. Even if there is something, I believe I can still filter it out with a low frequency digital filter, which I intend to use in order to filter out 50Hz frequency noise from nearby power lines. I know that 21 KSPS for my ADC is quite fast for my sensor dynamic, but this is as slow as I can go since the ADC clock is shared with my SPI which requires 40MHz speeds. It also gives me the freedom for the number of samples I can use in my window average filter.
Remarks:
- Please note that I don't use any ESD protection because the sensor will be connected in a controlled ESD proof environment
- The sensor is powered by 5VDC LVR and I believe that it should not exert any high voltages that may damage the ADC. Your opinion on this would also be helpful. Maybe I should buffer the signal in order to avoid unexpected high voltage spikes from the sensor's driver?
- I am aware that the 3.5VDC range of the sensor exceeds my Vref of 3.3V, in spite I have decided to ignore it. You can find more information regarding my decision on this thread.