I am really confused at the moment using TMC6300 with SimpleFOC. It works like expected on Arduino, but on ESP32 it just oscillates and vibrates in the same place. I using an example code from this: Example - Basic - Hookup Guide - TMC6300 BLDC Motor Driver
Is there some additional setup needed to run SimpleFOC on esp 32? I have tried on both XIAO ESP32 S3 and XIAO ESP32 C6.
There shouldn’t be much difference between ESP32 and Arduino. The only things I can think of are:
- Your motor loop will probably be much faster on ESP32. This might require the use of
motion_downsample. As a first test, you can just adddelay(1)to your motor loop and see what happens. - The ESP32 have strapping pins that you should use with caution.