2026-01-26 8:57 AM
Hello everyone,
I’m having an issue reading the current sense (CS) output from a VND7040 using an STM32G473 ADC.
When driving a DC motor with PWM:
• At ~50% duty cycle, I measure around 500 mV on the CS signal (after RC filter) using an oscilloscope
• At 100% duty cycle, the voltage drops to around 0 mV
I’ve locked the internal multiplexer so the CS output corresponds only to the channel driving the motor.Also sen is always on at 3.3v. Vcc is stable at around 13V.Also have the gnd filter with diode and resistor recommended on the application document.
The CS pin is connected through an RC filter to the ADC input (schematic attached). However, the voltage behavior seems inconsistent — especially at 100% PWM where I’d expect a higher or steady value since current is continuous.
Observations:
On the oscilloscope, the CS signal looks like pulses at 50% PWM (which average to ~500 mV after the capacitor)
At 100% PWM, the filtered voltage goes near zero
Questions:
Shouldnt it be linear with current rising?What could be the issue? I ve had the same circuit and it worked before on another board.
Could ADC input impedance/sampling time affect the measurement on STM32G473?
Any guidance or reference designs would be appreciated.
Thanks in advance.