Arduino-FOC icon indicating copy to clipboard operation
Arduino-FOC copied to clipboard

[BUG] Possible bug for stepper motor code.

Open alexiswoo456 opened this issue 3 years ago • 1 comments
trafficstars

When running the code for standalone motor test of stepper motor driver code, some pwm pins of Arduino is not outputting any voltage. In this line, StepperDriver4PWM driver = StepperDriver4PWM(5, 6, 9, 10);, pins 5 and 6 was not outputting any voltage whereas pins 9 and 10 does.

I tried to run the the BLDC code, and all pwm pins were outputting voltage without any issue.

The setup components at this stage were:

  • Nema17 stepper motor
  • L298N motor driver
  • Arduino Uno and Mega
  • AS5600

The IDE I am using is:

  • Arduino IDE

If more details are needed, I am the author of this topic: https://community.simplefoc.com/t/need-help-l298ns-one-phase-side-not-outputting-enough-voltage/2271

alexiswoo456 avatar Aug 05 '22 12:08 alexiswoo456

Hey @alexiswoo456, This is a bug we've got in the v2.2.2. It has been reported already at #183.

The code is fixed in the dev brancha and we will release the new version soon so it should be fixed in the v2.2.3.

askuric avatar Aug 16 '22 15:08 askuric