Step-by-step: Converting your CyborgTop to OSSM

Let's get started ↑

Make sure you read through all of the steps below before starting. Note this is just what I did for my build — feel free to do your own thing. Go nuts!

⚠️ Warning

Following the steps in this guide involves making (mostly reversible) changes to the insides of your CyborgTop machine. This will invalidate your warranty. You'll also be running code you found on the internet on a powerful machine prodding your sensitive bits. Use common sense, make sure you fully understand what you're doing, and if in doubt… ask!

Skills you'll need ↑

Items you'll need ↑

You'll need the following items in order to complete this guide:

Overview ↑

Let's spend a few moments covering what we're going to be doing here. Your stock machine has a few key components:

Stepper motors like the one in your machine are relatively complex devices — they not only draw a huge current, but also require a ton of complicated math to make them move the way you want, hold their position and not drift over time. The motor controller in your CyborgTop is a dedicated piece of hardware which reliably does exactly this. It receives instructions from the remote in the form of 'pulse' and 'direction' messages, which are sent to the PUL +/- and DIR +/- pins on the controller.

It's this mechanism we're going to borrow so the OSSM PCB can move the motor. This means we don't need to modify your original remote in any way.

Your OSSM board is designed to drive up to a 24V motor. OSSM by default also does not use a limit switch to find its home position — instead it measures the power draw of the motor to detect when it begins to 'strain' against the backstop.

Because the CyborgTop motor is double the power the OSSM PCB can provide, we're going to bypass the power supply feature of the PCB and instead power the motor directly. This means you'll need to power the OSSM PCB separately from the CyborgTop through its barrel jack (unless you want to get really creative and step down from 48V to ~5V for the OSSM PCB and limit switch. It's not worth the hassle — just go for a second independent 12V/5V power supply!)

Because we're not going to be powering the motor through the OSSM PCB, it'll have no way to know what power the motor is drawing… so we'll need to use the limit switch already present to let us know when we're home — from the OSSM PCB's perspective the motor will always draw zero current.

Wiring ↑

Here's how we're going to wire things up:

[+5V]=>[PWR SW]=>[OSSM PCB SERVO+]───[*]───[+5V   LIMIT SWITCH ]
                 [         SERVO-]───[*]───[GND                ]
                 [         GPIO33]─────────[SIGNAL             ]
                 [               ]
                 [           DIR-]─────────────────────────┐
                 [           DIR+]───────────────────┐     │
                 [           PUL-]─────────────┐     │     │
                 [           PUL+]───────┐     │     │     │
                                         │     │     │     │
[Mains Power]===>[PSU   GND]────────┐    │     │     │     │
                 [     +48V]──┐     │    │     │     │     │
                              │     │    │     │     │     │
[Motor Controller            +48V  GND  PUL+  PUL-  DIR+  DIR- ]

* If you use +12V to drive the OSSM PCB, like I do, you'll need a 12V -> 5V level shifter here. I hide mine inside the CyborgTop, stuck on top of the stock PSU

Here's how I've set up the inside of my machine:

Inside the converted CyborgTop machine, showing the motor controller, PSU and added wiring
Inside the machine — motor controller, PSU and the added OSSM wiring.

Key things:

Here's the outside of my machine — I've drilled a 12mm hole in the side panel to route the cables into the back of the 3D printed enclosure:

Outside of the machine, with a 12mm hole in the side panel routing cables to the enclosure
Outside the machine — cables route through a 12mm hole in the side panel.

Be careful about cable routing and placement — you'll want to keep your cables (especially the limit switch signal cable) away from both the PSU and the stepper motor — otherwise you're likely to get a lot of false limit readings while homing!

Inside that enclosure, my setup looks like this:

Inside the 3D printed enclosure, showing the OSSM PCB and wiring
Inside the 3D printed enclosure — the OSSM PCB and its wiring.

Step-by-step ↑

Use the images and notes above to help you if you get stuck.

Act 1: Prepare the CyborgTop machine ↑

By the time you've finished these steps, you'll have the CyborgTop side of things ready.

  1. Disconnect your stock remote and set it aside. You won't need it again!
  2. Remove the left (viewed from the front of the machine) side panel from your machine (not the panel with the power connection on it!)
  3. Disconnect the large green plug from the motor controller. Leave the power connector attached.
  4. Make a note of which pins are DIR+/- and PUL+/-, and make sure you've got the right wires in the right place with respect to the connector on the OSSM wiring harness, then plug the connector into your motor controller.
  5. Cut the cable from your limit switch to give you plenty of length to play with.
  6. Tidy up the original motor controller wires and the remaining original limit switch wiring with a cable tie and secure somewhere out of the way of any moving parts (important!)
  7. Strip the cable leading to your limit switch — this will expose three wires:
    • Blue is GND
    • Brown is +5V
    • Black is SIGNAL
  8. Attach all three to a terminal block. Add extra wires long enough to route through to the OSSM PCB.
  9. Cable tie the cable as shown above — you want to keep the signal wire far away from the power supply and motor, and any moving parts.
  10. Make a note of the current positions of the DIP switches on the motor controller. You'll need to set them back to this if you want to reverse your changes.
  11. Set your DIP switches to: 01111000 (800 pul/rev, ccw, pul+dir mode, 0ms delay). ⚠️ This is critical — without this your machine will not function correctly!
  12. You've now prepared the insides of the machine. Time to prepare the OSSM board.

Act 2: Prepare the OSSM PCB ↑

When you've finished these steps, you'll have an OSSM PCB flashed with the firmware.

  1. Connect the OSSM remote, then plug your OSSM PCB into your computer. It should power up and moan about homing.
  2. Check that the board shows up as a COM port. Make a note of the COM port number.
  3. Head over to the firmware flashing page and flash the firmware to your OSSM PCB.
  4. After flashing, reset the settings to safe defaults:
    1. Unplug the USB from the OSSM PCB
    2. Hold the button on the OSSM remote
    3. Plug the USB cable back in (keep the button held!)
    4. You'll see a message on the OSSM remote after a few seconds letting you know everything has been reset
    5. Release the button and the OSSM PCB will reboot
    6. It'll moan about homing again
  5. Your OSSM PCB is now ready. Next up is a bench test to make sure everything works.

Act 3: Connect it all up and bench test ↑

It's time to make sure everything works before you finish up.

⚠️ Follow this section carefully so you don't damage your machine.

  1. Put your OSSM PCB next to your machine and connect everything up:
    • Limit switch +5V to SERVO+
    • Limit switch GND to SERVO-
    • Limit switch SIGNAL to GPIO 33 (be careful — it's the second pin from the left in the IO33 row)
    • Wiring harness JST connector to the DIR+/- PUL+/- connector on the PCB (double-check the wires are correct for your motor controller!)
    • Connect the OSSM remote
    • Connect (but do NOT switch on yet) the power for your OSSM PCB
    • Make sure power to your CyborgTop machine is DISCONNECTED so the motor is UNPOWERED (important!)
  2. Check your limit switch works correctly:
    • Manually move the arm on the CyborgTop away from the home position (10cm or so)
    • Power on the OSSM PCB. Wait for Homing... to appear on the screen
    • Manually move the arm on the CyborgTop to the home position, so the limit switch is engaged
    • The OSSM should report homed and display the main pattern screen
  3. Check motor control:
    • Power everything off
    • Move the arm on the CyborgTop machine away from the home position
    • Connect power to your CyborgTop machine and switch on. Your machine should power on but nothing should move.
    • Power on the OSSM PCB
    • The arm should slowly move to the home position
    • The OSSM remote should show a successful homing
  4. You're done! It works!

Common problems ↑

Homing stops short of the home position: The mag switches are quite sensitive. Make sure the arm on the machine is close to home before powering on.

The arm moves, but homing fails: Your limit switch is probably not wired up correctly — check you've got the wires the right way around and your SIGNAL cable is connected to the right GPIO pin.

The arm moves in the wrong direction when homing: Check your DIR pins are the right way around.

The arm doesn't move: Check you've got power to your motor controller (there should be a light on it!), the DIP switches are right, and your DIR+/- and PUL+/- pins are correctly connected.

Act 4: Finish up ↑

Now you know everything works, it's time to finish everything off.

  1. Decide where you want to drill a hole through your side panel. Take into account where the wires will go, and where you want the box to sit on the outside of the machine. I mount mine just underneath the ventilation holes on the side panel.
  2. Drill a hole and remove any burrs.
  3. Install the OSSM PCB, power switch and enclosure wiring into the enclosure.
  4. Disconnect any cables from your OSSM PCB and route them through the hole in the panel and bottom of the enclosure.
  5. Reconnect everything to the OSSM PCB.
  6. Put Velcro strips on the back of the enclosure, then attach it to the side panel.
  7. Tidy up any spare wire length and put the lid on the enclosure.
  8. Give everything one last test on your bench.
  9. You're done! Happy buggering! 🎉