The pwm is generating ramp signals when using sensor with i2c interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-21 3: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.
- Labels:
-
I2C
-
STM32G0 Series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-21 5:23 AM - edited ‎2024-03-21 6: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-22 3:56 AM
@mÆŽALLEm i have attached the ioc file of the project so please check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-22 3:59 AM - edited ‎2024-03-22 4:08 AM
You need to check your HW before going to check the Software.
