IOT Relay Wiring Diagram

I just tried this and the same issue occurs. I get a quick power-on of the spindle, not even enough to get to speed, and then it basically acts as though the USB is disconnected from the x-controller and reconnected.