cancel
Showing results for 
Search instead for 
Did you mean: 

ADC issue (possible bug) using IHM042v1

Z0ld3n
Associate

I have problems with Bus Voltage Sensing on IHM042v1. I'm trying to get it to work with 2 motors, both using encoder. I moved ENC_Z/H3_B signal to pin PA6 and Bus Voltage Sensing to pin PB2(ADC2_IN2)/PB12(ADC4_IN3) (tried both) leaving ENC_A/H1_A on pin PA0. After these changes i have encoders working but I have problems with VBus sensing. My issue is that encoder signal (from pin PB5, encoder B/H2) is appearing on ADC pin so i can't read bus voltage when motor is moving. When motor is stationary i get proper voltage on ADC pins (~0.7V after divider which corresponds to ~12V bus). To confirm it is the issue with STM32 MC-SDK i created empty project in CubeMX with only ADC on those 2 pins active and it is working fine, I can read bus voltage on those pins and encoder signal on pin PB5 (without it leaking to ADC pins). I'm using library version 5.4.7. Can someone suggest where to look for possible bugs?

1 REPLY 1
Laurent Ca...
Lead II

Dear @Community member​ 

Sorry for the late answer.

Do you have still this problem to solve?

And just in case, if not, do not hesitate to share the final solution you found. Thanks by advance.

Best regards