I am currently working on a project, where I need to calculate the current in a circuit. The setup is as follows:
- Allegro ACS758 Hall effect current sensor (ACS758LCB-050B-PFF-T), primary sampled current -50 to 50 A, sensitivity 40 mV/A
- Analog Devices LTC1968 true RMS-to-DC convertor
- Analog Devices LTC2420 20-bit ADC convertor
The current sensor outputs 0V for -50A, 1/2Vcc for 0A and Vcc for +50A. The measured current is the phase current of a BLDC motor and that is why a RMS-to-DC convertor was used before outputing the data to the ADC.
I now need to calculate the current value from the ADC output and I am unsure whether I am doing it correctly. So if you could please review my thinking and tell me if I am right or not, I will be very grateful.
The output of the current sensor is 0 - 5V, the output of the RMS-to-DC convertor is also 0 - 5V. But the datasheet of the ADC states:
I am using Vref = 5 V, so in my case the input voltage range is limited to -0.3V to 5.3V, thus the range is 5.6V and the calculation for voltage per point (vpp) is:
$$vpp = \frac{5.6}{2^{20}-1}$$
Taking it the other way around, I have calculated points per volt (ppv) as:
$$ppv = \frac{2^{20}-1}{5.6}$$
Therefore -0.3V would be then represented by 0 points and 5.3 V would be represented by ppv*5.3 = 992401.34 points. Assuming linearity over the whole range, I could now calculate all the points in between and the current from that.
Am I correct?
Thank you for your time.
If I understood everything correctly, then this should now be a working example. The Hall sensor will output 0.5 - 4.5V, I will run this through a circuit, that would limit this to 1.5 - 3.5 V and this would be the input to IN1 of the RMS convertor. IN2 would be at a potential of 2.5V and thus the condition of max. peak input swing of the RMS convertor is satisfied. But I am not sure of the output of the LTC1968. Is it possible to do as I did in this schematic? Connecting the output return pin to a voltage of 1.5V, so that the output pin will output a voltage of 0.5V with respect to ground (-1V with respect to the return pin) for -50A through the circuit and 2.5V for +50A through the circuit. And a 2.5V reference voltage for the ADC. I hope I understood it right now. Thanks.