Hello everyone,
I’m working on a BLDC control project and I would like to get your opinion on using the ACS712 (5A version) for current control with SimpleFOC.
My setup:
-
Microcontroller: Teensy 4.1
-
Motor: GM3506 BLDC (11 pole pairs)
-
Driver: SimpleFOC Shield v3.2
-
Position feedback: AS5048A via SPI (working well)
-
Current sensing: ACS712-05B modules
-
Phase A → A17
-
Phase B → A16
-
Phase C → not connected
-
Supply: 5V
-
Sensitivity: 185 mV/A
-
-
Supply voltage: 12V
What works so far:
-
Position control with voltage torque mode → motor moves correctly to the target angle.
-
Current sensing works for monitoring: when running the motor open-loop I can see nice sinusoidal waveforms for Ia and Ib in the Serial Plotter.
The problem:
-
When I switch to
TorqueControlType::foc_currentand enable current control, the motor feels like it is off. -
No matter what target torque or position I set, the motor does not move.
-
The currents read by the ACS712 show only small fluctuations around zero, basically just noise (~20–30mA).
-
With voltage torque mode everything works fine.
My goal / use case:
I want to build a torque transfer system (force feedback, haptic control) using two BLDC motors. I’ve already implemented the “steer-by-wire” example project from the forum, but the restoring forces from the steering system alone are not strong enough to rotate the feedback motor. For a realistic feel, the feedback motor must respond more sensitively and directly.
My understanding is that with proper current control (instead of voltage control) I could achieve much finer torque control and therefore better force feedback behavior.
My question:
Is it fundamentally impossible to use ACS712 modules for FOC current control due to their noise and bandwidth limitations?
Or is there a way to configure SimpleFOC (filters, gains, etc.) to make it work at least for low-bandwidth torque control?
I understand that normally FOC current control expects shunt resistors with high bandwidth op-amps, but since ACS712 is such a popular and cheap sensor I wanted to check if anyone has had success using it for actual current regulation (not just monitoring).
Any insights or suggestions would be very welcome!
Thanks a lot in advance
Roman