cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting from 5V sensor to 3V3 adc channel

FinFet
Visitor

Hello everyone,
I want to make an adc reading using STM32F103C8T6 but I am really confused. first of all, the sensor I will use is the hall effect open loop current sensor ‘L31S300S05FS’ model. this sensor has 4 pins VCC GND VOUT VREF from these pins
VCC= 5V
GND
VREF IN OUT MODE = 2.5V
The VOUT pin gives an output voltage that I do not fully understand. Does it make sense to connect the VREF and VOUT pins at the output of the sensor directly to the ADC pins of the processor or do I need to use an OPAMP? If I need to use an opamp, please help me how to connect the VREF pin. thanks.Screenshot from 2024-10-02 17-57-23.pngScreenshot from 2024-10-03 10-50-57.png

2 REPLIES 2
AScha.3
Chief II

Hi,

>The VOUT pin gives an output voltage that I do not fully understand.

Its "standard" for DC current sensors : about 2.5V for zero current , +/- xx mV (depending on measured current)

-> at 50A : 2,5 + 0,625 = 3,125 V or at -50A : 2,5 - 0,625 = 1,875 V   VOUT .

 

>VOUT pins at the output of the sensor directly to the ADC pins of the processor 

Ok, if you stay in the range of the ADC (0..3,3V , at 3v3 VDD i suppose) , you can connect it direct to ADC inputs.

But you can only go up to about 60A + , then VOUT reaches the ADC max. input (3v3).

on other current direction signal will go to lower input voltage, so no problem up to -150A . (the sensors limit)

So: if about -150A ... +60A is ok for you, connect ADC direct. (and get best resolution from adc.)

If you need +/-150A , most simple solution is a divider: 2 x 4k7 , to get 1/2 VOUT to the ADC input.

(But at 6dB loss of ADC resolution .)

If you feel a post has answered your question, please click "Accept as Solution".

First of all, thank you very much for your reply. Based on the information you have given, does it make sense to connect the VREF pin that the sensor outputs directly to the ADC?