clough42 / electronic-leadscrew

Lathe electronic leadscrew controller
MIT License
311 stars 116 forks source link

How to wire a Teknic servo? #290

Open koenbro opened 1 week ago

koenbro commented 1 week ago

I am trying to build an ELS on an Eisen 1340GHE lathe, using a Teknic SDSK 23 servo motor. I have this motor left over from a CNC conversion of my mill which was very successful. These motors are great, and I have this one for "free". I installed and auto-tuned it and now it spins under power smoothly, but I cannot wire it properly to the ELS Board. When the ELS is powered down the motor appears enabled. When I power up the ELS, the motor is disabled. How can I reverse the ELS Boost Interface Board output to provide the enable signal when on?

Enabled

Disabled

Thank you all for any help!

More information: The motor has the following wiring; Tekinc wiring_focused

I wired the ELS Boost Interface Board output (the 6-pin green connector) as follows:

ELS BIB motor

  1. plus Enabled +
  2. En- Enabled -

Servo Wiring Diagram

koenbro commented 1 week ago

UPDATE: I commented out the following line in Configuration.h:

define INVERT_ENABLE_PIN true

And now I can enable/disable the motor properly with powering up/down the ELS.

Next I wired the motor up like the Servo/Stepper in the instructions provided in the Wiki, meaning ELS board --> Teknic motor (+) --> Enable(+) / Dir (+) / Step (+) Step (-) --> Step (-) Dir (-) --> Dir (-) Enable (-) --> Enable (-)

Alm outputs are left unconnected.

Any thought on how to make the motor work? Thank you.

koenbro commented 1 week ago

managed to get it turning using the setup by K5FR here. Thank you.