Thanks for the pointers along the way @pyb :) you definitely helped me narrow it down.
@brownrb I found a bug in myBoards.cpp... //----------------------------------------------------------------------- // SET MOTOR POWER // turn coil power on, turn coil power off //----------------------------------------------------------------------- void DriverBoard::set_motorpower(byte state) { if (state == true) { // power on digitalWrite(DRV8825ENABLE, HIGH); delay(1); // need to wait 1ms before driver chip is ready for stepping } else { // power off digitalWrite(DRV8825ENABLE, HIGH); } } The...
I found a bug in myBoards.cpp... //----------------------------------------------------------------------- // SET MOTOR POWER // turn coil power on, turn coil power off //----------------------------------------------------------------------- void DriverBoard::set_motorpower(byte state) { if (state == true) { // power on digitalWrite(DRV8825ENABLE, HIGH); delay(1); // need to wait 1ms before driver chip is ready for stepping } else { // power off digitalWrite(DRV8825ENABLE, HIGH); } } The power on...
This doesn't look right... //----------------------------------------------------------------------- // SET MOTOR POWER // turn coil power on, turn coil power off //----------------------------------------------------------------------- void DriverBoard::set_motorpower(byte state) { if (state == true) { // power on digitalWrite(DRV8825ENABLE, HIGH); delay(1); // need to wait 1ms before driver chip is ready for stepping } else { // power off digitalWrite(DRV8825ENABLE, HIGH); } } The DRV8825 uses...
I have 0V across the pins of my coils (and changing between coil power off and coil power on doesn't alter it). I can measure 12V across pins 15 and 16 of the DRV8825, but nothing across the coil pins. I just remembered there is a test program, so I compiled and ran that and it successfully rotates the stepper motor. At least it rules out a hardware issue, so there's definitely something up with the config I guess. This is the user-editable part of my config.h: //-----------------------------------------------------------------------...
I have 0V across the pins of my coils (and changing between coil power off and coil power on doesn't alter it). I can measure 12V across pins 15 and 16 of the DRV8825, but nothing across the coil pins.
No - I can't really rotate it manually anyway, as I'm using the recommended stepper with a pretty hefty gearing ratio in the gearbox. But when you say judge if current is present in the coils, do you mean there should always be a voltage across the coils even when they aren't moving? I could check that with a voltmeter across the relevant pins on the DRV8825 board. (I don't have an oscilloscope, so it's harder for me to check voltages during movement as I assume the pulses are pretty short and won't...
Thanks - yes, coil power is enabled in the INDI config. The oled display also says CPwr = 1 which I assume is coil power.