2024-03-21 03:34 AM
hello everyone, I am trying to combine a H-bridge-based motor controller and a sensor connected by i2c with stm32g032k8txx. They both work when i run on different microcontrollers, but when I combine them, the sensor is working fine but the PWM of the STM32 gets abnormal, like the output is something like a ramp signal (the motor initially starts at a slow speed and gradually increases to a high speed and stops. After some time, it starts again). Please help me if anyone knows about this problem.
2024-03-21 05:23 AM - edited 2024-03-21 06:26 AM
Hello,
You need to provide more details about your HW/Schematics it could be a conflicting HW ressources. If you're using CubeMx share your .ioc file.
2024-03-22 03:56 AM
@SofLit i have attached the ioc file of the project so please check
2024-03-22 03:59 AM - edited 2024-03-22 04:08 AM
You need to check your HW before going to check the Software.