Has anyone ever worked in ESP-IDF with simpleFOC for Sparkfun IoT BLDC motor control board?
Hey @Hiren , welcome to SimpleFOC!
SimpleFOC is natively an Arduino library, and so normally needs Arduino framework.
Working with ESP there are three ways you could use SimpleFOC:
-
use Arduino IDE. The Arduino framework will be native, and ESP SDK will be there in the background. You use the standard version of SimpleFOC. You can use all Arduino functions but also call ESP SDK functions if needed. The initialization and setup will be handled by Arduino framework.
-
use ESP IDF and its Arduino framework component. Then you can work in ESP IDF but also use Arduino libraries, like the standard SimpleFOC library. Initialization and setup will happen the ESP IDF way.
-
use the ESP IDF SimpleFOC component. ESP has turned our library into a IDF component so you can use it directly without Arduino framework. There are some examples how to use it. The version of SimpleFOC may not be the most current one.
If you have a chance, please let us know which method you chose and how it went…
hey @runger thanks for your help. I was working on this Sparkfun IoT board, so I have to work with simpleFOC, TMAG5273 and all in ESP-IDF enviornment. I already worked with it in the Arduino IDE. Now I will be working on it with the ESP-IDF.
hey @runger I tried working with sparkfun board. I can read the TMAG5273 sensor but the motor is not running. I don’t know what I am missing. Your help will be appreciated.
Here is the link:
board: SparkFun IoT Brushless Motor Driver (ESP32 WROOM, TMC6300) - ROB-22132 - SparkFun Electronics
Code: GitHub - Hiren017/bldcTest: This is a repository for BLDC test.