MCPWM with TB6612FNG driver

mk.sysout
Posts: 1
Joined: Wed Nov 10, 2021 8:24 am

MCPWM with TB6612FNG driver

Postby mk.sysout » Wed Nov 10, 2021 8:55 am

Hello,
I try to drive brushed DC motor with TB6612FNG driver using Arduino IDE.
I can do it do it using ledcSetup, ledcAttachPin, ledcWrite and digitalWrite commands, so i guess the wiring is ok.

Then I try to use MCPWM instead of ledc.
I try to adapt libraries:
https://github.com/espressif/esp-idf/tr ... dc_control
- Compilation - KO (rotary_encoder.h: No such file or directory)

https://github.com/imxieyi/esp32-tb6612
- Compilation - OK but nothing happens when sketch is uploaded.

And example:
https://www.instructables.com/Electric- ... ith-ESP32/
- Compilation - OK but nothing happens when sketch is uploaded.

Is there any working Arduino sketch to drive brushed DC motor with TB6612FNG driver.
Thank you.

Who is online

Users browsing this forum: No registered users and 71 guests