-5
\$\begingroup\$

There are red yellow gray and green wires, in that order.

\$\endgroup\$
  • 3
    \$\begingroup\$ Too many factors. Not enough info. Colour codes without knowing what they mean are useless. \$\endgroup\$ – DKNguyen Jan 14 at 2:41
  • \$\begingroup\$ You should provide more information about the motor in question. There are apparently numerous color codes for stepper motors. If you meter continuity between the four wires you may find that they connect to two coils and you may be able to switch the coils with eachother or switch polarity. If it connects with a 4 pin connector, check that the connector is not backwards. \$\endgroup\$ – K H Jan 14 at 2:45
  • 1
    \$\begingroup\$ what does reversing digitally mean? ... does it mean that you want to use your fingers? \$\endgroup\$ – jsotola Jan 14 at 2:55
  • 1
    \$\begingroup\$ If these are the small motors common to Prusa-ish machines, reversing the connector happens to reverse the motor. Have you tried that? Otherwise, you'd need to either modify the firmware or somehow introduce an inverter on the DIR pin of the driver. More detail would obviously be needed in that case. \$\endgroup\$ – nanofarad Jan 14 at 3:20
  • 1
    \$\begingroup\$ Your question might have an answer here: electronics.stackexchange.com/questions/14136/… \$\endgroup\$ – Simplex11 Jan 14 at 3:26
4
\$\begingroup\$

Since these are quadrature controlled stepper motors, inverting direction only required swapping wire in each pair polarity.

Since each winding wires will be adjacent pairs, to change both polarities;

  1. Change 12,34 to 21,43 or Rd Yw, Gy Gn to Yw Rd,Gn Gy

The home command will rezero the counter steps. (now in the desired direction)

Reversing the connector 1234 to 4321 will also invert direction AND swap XY or rotate the position 90 deg which for a square gantry is OK.

| improve this answer | |
\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.