in the myBoards.cpp for the myFP2_A4998_324 the Coil-power cannot be switched off since ENABLE is set to LOW for both power on and off. It should be HIGH for power off.
//-----------------------------------------------------------------------
// void driverboard->set_motor_power(bool);
// turn coil power on, turn coil power off
//-----------------------------------------------------------------------
void DriverBoard::set_motor_power(bool state)
{
if ( state == true )
{
// power on
digitalWrite(A4998ENABLE, LOW);
delay(1); // need to wait 1ms before driver chip is ready for stepping
}
else
{
// power off
digitalWrite(A4998ENABLE, LOW);
}
}
Kind regards,
Nikolas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
in the myBoards.cpp for the myFP2_A4998_324 the Coil-power cannot be switched off since ENABLE is set to LOW for both power on and off. It should be HIGH for power off.
//-----------------------------------------------------------------------
// void driverboard->set_motor_power(bool);
// turn coil power on, turn coil power off
//-----------------------------------------------------------------------
void DriverBoard::set_motor_power(bool state)
{
if ( state == true )
{
// power on
digitalWrite(A4998ENABLE, LOW);
delay(1); // need to wait 1ms before driver chip is ready for stepping
}
else
{
// power off
digitalWrite(A4998ENABLE, LOW);
}
}
Kind regards,
Nikolas
Thanks Nikolas, I will update the firmware zip file.
regards
Robert
Last edit: brownrb 2023-03-19