Current measurement

For the measurement of the current, a different method is required than for the voltage measurement. The current can only ever be measured indirectly, either via a voltage drop across a shunt resistor and Ohm’s law I=Vshunt/Rshunt or via the generated magnetic field of a current-carrying conductor. In this paper, the latter will be demonstrated by the implementation of a Hall-effect sensor chip. The TMCS1108 chip from Texas Instruments is chosen because it meets the following requirements:

  • voltage range ±100V>50V of the solar module optimizer.

  • Supply voltage of Vvs=3.2V possible

  • Wide current measurement range in different configurations up to ±46A.

  • Low error of ±1%

  • Analog output voltage 0V<Vout<3.3V matching the ADC of the microcontroller

The following assumptions are made for the design:

  • Iin=10A current to be rated

  • Vvs,nom=3.2V Normal supply voltage

  • Vvs,min=3.1V minimum supply voltage

  • Swingvs=0.2V fluctuations of supply voltage

The chip is available in different variants with different sensitivities S. When choosing, it should be noted that the sensitivity should not be chosen too small, otherwise the connected ADC can no longer measure the voltage changes, for the selection proceed as follows:

  • Should the current be measured unidirectionally or bidirectionally? The current flows only in one direction, so a variant of type (A1UA4U) is chosen for unidirectional.

  • Output voltage at Iin=0A is: Vout,0A=0.1Vvs=0.32V

  • The transfer function is calculated according to (1)

    (1)Vout=IinS+Vout,0A
  • To maximize sensitivity over the desired linear measurement range, the maximum linear output voltage range (2) is calculated:

    (2)Vout,maxVout,0A=Vvs,minSwingvs0.1Vvs,min

The design parameters for the calculated output range are shown in the table.

Design Parameters
Design parameter Value
Swingvs 0.20V
Vout,max 2.90V
Vout,0A at Vvs,min 0.31V
Vout,maxVout,0A 2.58V

The parameters show a maximum positive linear voltage step of 2.58V. In order to select the appropriate sensitivity that fully utilizes this linear range, the maximum current is calculated according to (3), where S are the different sensitivity variants of the sensor.

(3)IB,max=Vout,maxVout,0AS

The choice falls on the TMCS1108A3U because it covers a measuring range of 0A+12.9A at a supply voltage of Vvcc=3.2V with a sensitivity of S=200mV/A, which corresponds to the highest triggering for the range 0A+10A of the solar module optimizer.

The output voltage of the chip VOUT should be as free of noise as possible to reduce measurement errors. Therefore, a low-pass filter with a cutoff frequency of fc=75Hz is also used here as shown in chapter lowpassfilter. The maximum voltage at the ADC is equal to the supply voltage Vvs=3.2V of the chip, so the whole range of the ADC is used.

Figure shows how the chip is wired up, this involves routing the high current to be measured through two input pins and two output pins, any heat generated is dissipated through generous copper areas and vias. Another important element is the bypass capacitor Cbypass=0.1μF of the chip’s power supply, it compensates voltage fluctuations and decouples the chip from the rest of the components, without the bypass capacitor the measurement error of the current measurement would be significantly larger. Its placement should be as close as possible to the pin VS of the supply voltage. 

Schematic TMCS1108

image


Copyright © 2023 Arne Christian Schmidt. Distributed by an CC BY-NC 4.0.