surendran_raj
Junior Member level 2
Hi,
I need to know about the AC current measurement for the BLDC motor. I tried to measure phase current for only one phase for two commutation state. I use the STM32F103C8 controller for controlling the BLDC motor. I need some clarification on measuring phase current for the BLDC motor. I use Timmer 1 to generate PWM and Timmer 4 for changes that occur in the commutation state (ie Step change occurs using XOR operation) and I am using the MOSFET Rdson method to measure the phase current (AC current) and ADC2 injected method for measuring the voltage drop on Rdson.
I tried to measure the phase current for only one phase (phase - B) for two commutation states(state1,state3). since the value, I get from ADC2 is varying So I tried to make an average of that ADC2 reading. I used TIM1 interrupt for PWM generation (15KHz) and for some calculation and that include summing up, the ADC2 reading, and the average part is done in TIM4. But it does isn't work again there is a variation in the reading. So is there any method for measuring phase current so that it helps me to measure the current.
The MOSFET Rdson method is that when the current is passed through the MOSFET there will be a voltage drop across the source to drain. the voltage drop is amplified by the OP-amp and the output is read in ADC2
Scope Image of the amplified signal
I need to know about the AC current measurement for the BLDC motor. I tried to measure phase current for only one phase for two commutation state. I use the STM32F103C8 controller for controlling the BLDC motor. I need some clarification on measuring phase current for the BLDC motor. I use Timmer 1 to generate PWM and Timmer 4 for changes that occur in the commutation state (ie Step change occurs using XOR operation) and I am using the MOSFET Rdson method to measure the phase current (AC current) and ADC2 injected method for measuring the voltage drop on Rdson.
I tried to measure the phase current for only one phase (phase - B) for two commutation states(state1,state3). since the value, I get from ADC2 is varying So I tried to make an average of that ADC2 reading. I used TIM1 interrupt for PWM generation (15KHz) and for some calculation and that include summing up, the ADC2 reading, and the average part is done in TIM4. But it does isn't work again there is a variation in the reading. So is there any method for measuring phase current so that it helps me to measure the current.
The MOSFET Rdson method is that when the current is passed through the MOSFET there will be a voltage drop across the source to drain. the voltage drop is amplified by the OP-amp and the output is read in ADC2
Scope Image of the amplified signal