simplefoc / Arduino-FOC

Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library
https://docs.simplefoc.com
MIT License
2.09k stars 537 forks source link

How to deal with deadband voltage of stepper? #200

Open Zahidilyas opened 2 years ago

Zahidilyas commented 2 years ago

Describe the bug Stepper motor does not respond to voltages below 3V. On all the control methods, for voltages below 3V, the stepper does not turn, hence it is not able to track the position smoothly.

Describe the hardware setup For us it is very important to know what is the hardware setup you're using in order to be able to help more directly

Nema 17 stepper motor L298N Teensy 4.1 Optical Encoder 1000PPR(4000CPR)

IDE you are using Arduino IDE

runger1101001 commented 2 years ago

A similar problem exists for BLDCs using very slow switching drivers (actually like the L298N) - the driver can't fully open for low PWM duty cycles, leading to no movement. Such setups also have a minimum voltage to enable motion.

Another reason to have a minimum voltage is in combination with current sensing - depending on the current sensing HW, there can be a minimum supported duty cycle for low side sensing.