SimpleFOC v2.3 & AS5600 & GM3506 closed loop example

hello!
could you please write me a simple Closed loop example for this setup?
SimpleFOC v2.3 & AS5600 & GM3506
thanks!

1 Answer

1

The code also depends on which controller board and driver you want to use.
There are several example files in the arduino library, which are a good starting point.

Hi, thanks for the reply. The setup is: ESP32-S3 Nano SimpleFOC Mini v2.3 iPower GM3506 130T gimbal motor AS5600 magnetic encoder 9–12 V motor supply My goal is closed-loop velocity control from approximately 10 to 45 RPM Could you please point me to the closest SimpleFOC example for this exact hardware combination, or suggest the recommended control mode and starting parameters?

–

Controller ESP32-S3 Nano ESP32 core 3.3.11 Board setting: ESP32S3 Dev Module Raw GPIO numbering Motor driver SimpleFOC Mini v2.3 DRV8313 based Motor iPower GM3506 130T gimbal motor Position sensor AS5600 magnetic encoder ESP32-S3 Nano → SimpleFOC Mini v2.3 D8 / GPIO17 → EN D9 / GPIO18 → IN1 D10 / GPIO21 → IN2 D11 / GPIO38 → IN3 AS5600 → ESP32-S3 Nano SDA → A4 / GPIO11 SCL → A5 / GPIO12 VCC → 3.3 V GND → common GND DIR → GND OUT / PGO → not connected Other controls A6 / GPIO13 → 10k potentiometer wiper A7 / GPIO14 → momentary Start/Stop but

–