SparkFun IoT Brushless Motor Driver - Motor not moving

Motor doesnt move. I havent changed the code in anyway, shape or form. That is the “factory reset” code. Serial monitor shows the “Starting motor” “stopping motor” but motor doesnt move and is cold to the touch.

Ive tried ESP32 Dev Module instead of Sparkfun ESP32 Thing Plus C, etc. Ive tried simple code to just move the motor at a constant rate. Nothing works. Starting to suspect a hardware issue.

Just wondering if anyone has had a similar experience.

Darn. Can you share a photo of the wiring?

Hi Russell, no custom wiring, just this: SparkFun IoT Brushless Motor Driver (ESP32 WROOM, TMC6300) - SparkFun Electronics

Connected to my computer, using Arduino IDE, with the factory installed example code, with Sparkfun ESP32 Thing Plus C as the board definition.

Im running the latest ESP32 and SimpleFOC libraries. I feel like something is up with either the hardware or the instantiation of the motor class - as in - the terminal is OK, but I cannot for the life of me get the motor to do anything at all.

Since the motor didnt work out of the box, I hooked it up and essentially tried to reinstall the factor code and my god was this painful. First time with the latest ESP32 and SimpleFOC libraries, I got a ESP32 reset loop. I did a bunch of research and somehow changing the flash settings from 40mhz from the default 80mhz fixed this.

No motor movement now, but pressing the I3/I4 buttons on the board will sometimes/eventually reset the board and the terminal output (‘starting motor’/’stopping motor’) will ‘double press’ i.e. 1 press = ‘starting motor’ + ‘stopping motor’, or ‘starting motor’ x2 etc. When this happens the board will eventually throw a ‘Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.” and tell me “Backtrace: 0x40083c79:0x3ffbfd1c |<-CORRUPTED”.

I feel like something on this board is at odds with the state of the current ESP32 and SimpleFOC libraries, or I have a hardware issue.

Its hard for me to diagnose because basically nothing works for me as planned except the terminal output. Sending to the board (in the IoT example of sending the rotation speed) doesnt work. Motor doesnt work. Button presses are inconsistent.

Next up I will try using older versions of SimpleFOC and ESP32 but not looking forward to it.


That is a pain; I’d guess esp/espressif updated and broke something :-/ Maybe I can save you a bit o’ time

It looks like at the time our guide was written it was FOC version 2.3.0 …that library was released Mar 2023, so I’d presume the ESP library from that period was ESP32 Arduino ver 2.0.7 (released Feb 2023)

Try installing those and see how things go! :slight_smile:

Hi Russell, thank you for the response and info! Ill try it out tomorrow and let you know how it goes. :crossed_fingers: