Rasmus Godske
Member
- Joined
- Jun 7, 2018
- Messages
- 39
I'm currently working on my 18650 Tester which are able to charge/discharge and make read the internal resistance. This means I need to read a lot of analog signals, three per cell to be exact.
I amusing a ESP32 with limited amount of ADC GPIO pins, so I havecome up with a potential solution.
To expand my analog pins Iamusingmultiple8-channel analog multiplexer/demultiplexer called74HC4051. For each 74HC4051 I can map 8 analog inputs to one ADC pin. My problem is that those analog signals from the 18650 batteries can reach 4.2V, and the ESP32 is 3.3V, so I have to usea voltage divider on the output of the 74HC4051. The circuit can be seen in figure 1 below.
When using a voltage divider on the output of the IC, the voltage at the output of the 74HC4051(Z) is ~200mV lower than than the Cell voltage. Thereforethe measured voltage to meassured by the ESP would be wrong. I have tried analysing it with my oscilloscope which can beseen in figure 2.
When I disconnect ground in the voltage divider as seen in figure 3, the voltage drop across the IC is gone, which can beas seen in figure 4.
My guess is that the 74HC4051, have a resistance as well, and therefore also takes part in the voltage divider and my question is how can I convertthe voltage from 4.2V to 3.3V, in my case, without having a to use a voltage divider on every single analog input? Could it be done with an OP-amp?
All help is highly appreciated
Circuit 1:
[img=600x256] Figure1: With the voltage divider
[img=600x260] Figure 2: Osciliscope of circuit with voltage divider. C1(Yellow) is the Cell Voltage andC2(Blue) is voltage at Z
Circuit 2:
[img=600x253] Figure 3: Without the voltage divider, or it's not grounded.
[img=600x259]
Figure 4: Osciliscope of circuit with voltage divider. C1(Yellow) is the Cell Voltage andC2(Blue) is voltage at Z
I amusing a ESP32 with limited amount of ADC GPIO pins, so I havecome up with a potential solution.
To expand my analog pins Iamusingmultiple8-channel analog multiplexer/demultiplexer called74HC4051. For each 74HC4051 I can map 8 analog inputs to one ADC pin. My problem is that those analog signals from the 18650 batteries can reach 4.2V, and the ESP32 is 3.3V, so I have to usea voltage divider on the output of the 74HC4051. The circuit can be seen in figure 1 below.
When using a voltage divider on the output of the IC, the voltage at the output of the 74HC4051(Z) is ~200mV lower than than the Cell voltage. Thereforethe measured voltage to meassured by the ESP would be wrong. I have tried analysing it with my oscilloscope which can beseen in figure 2.
When I disconnect ground in the voltage divider as seen in figure 3, the voltage drop across the IC is gone, which can beas seen in figure 4.
My guess is that the 74HC4051, have a resistance as well, and therefore also takes part in the voltage divider and my question is how can I convertthe voltage from 4.2V to 3.3V, in my case, without having a to use a voltage divider on every single analog input? Could it be done with an OP-amp?
All help is highly appreciated
Circuit 1:
[img=600x256] Figure1: With the voltage divider
[img=600x260] Figure 2: Osciliscope of circuit with voltage divider. C1(Yellow) is the Cell Voltage andC2(Blue) is voltage at Z
Circuit 2:
[img=600x253] Figure 3: Without the voltage divider, or it's not grounded.
[img=600x259]
Figure 4: Osciliscope of circuit with voltage divider. C1(Yellow) is the Cell Voltage andC2(Blue) is voltage at Z