OptoIsolation of stepper motor drivers

Post Reply
Phaedrus
Posts: 3
Joined: Thu Feb 14, 2019 7:14 pm

OptoIsolation of stepper motor drivers

Post by Phaedrus » Fri Feb 15, 2019 6:54 am

Hello all,
I have a query for the electronics experts here.
I am making a control board of my own,which will run the GRBL firmware. Am powering my setup with a 24V SMPS,i.e. the steppers and the spindle motor.An isolated DC-DC converter will give the 5V needed for the uC and control electronics.
My query is : Is it useful to opto isolate the link between the uC and the stepper drivers? So far I have been running my machine with an Arduino and Protoneer shield,for about 15min runs with no problems.Has anyone had any problems which were solved,by optoisolating this part of the circuit.
Any links/suggestions would be great.
Thomas

GurneyHalleck
Posts: 16
Joined: Tue Mar 12, 2019 1:24 am
Location: Chicago - Southwest Suburbs

Re: OptoIsolation of stepper motor drivers

Post by GurneyHalleck » Thu Mar 14, 2019 8:39 pm

It is generally good practice to opto-isolate higher voltages to avoid accidentally exposing your control electronics to the higher voltage.
I have included the schematic for a relay board that I use with my Arduino.

The relay board came equipped with an Opto-Isolator, the 4-pin U1. 5V from the Arduino is connected to VCC. The digital output is connected to IN0. To be isolated, the jumper between VCC and VDD must be removed. Assuming the relay board is rated for 24V, your 24V power would connect to VDD and your 24V ground would connect at the ground symbol.

When the digital output is in the '1' state, outputting 5V, there is no current flow through the LED in U1. When in the '0' state, the pin is at ground and can 'sink' 40 mA. Resistor R1 in series with the LED limits the current. With current flowing through the LED, the photo transistor is switched on and conducts. This switches on Q1 and enough current flows through the relay coil to energize the relay.

Your stepper motor controller may already have opto-isolation, as my relay board has.
Attachments
OptoRelayChannelData-575.jpg
Relay Board Schematic
OptoRelayChannelData-575.jpg (57.79 KiB) Viewed 212 times
Just purchased a Shapeoko 3. :)

Phaedrus
Posts: 3
Joined: Thu Feb 14, 2019 7:14 pm

Re: OptoIsolation of stepper motor drivers

Post by Phaedrus » Fri Mar 15, 2019 6:51 am

Thanks GurneyHalleck,
Actually I was asking about opto-isolation between the Arduino and the Stepper Drivers.There are two grounds,separate for VMOT and Vdd,so I was wondering if opto-isolation would be useful. But so far the board I am using is working fine,with both the grounds shorted,so I am leaving it as it is for the time.
Thanks again for your reply!

GurneyHalleck
Posts: 16
Joined: Tue Mar 12, 2019 1:24 am
Location: Chicago - Southwest Suburbs

Re: OptoIsolation of stepper motor drivers

Post by GurneyHalleck » Fri Mar 15, 2019 1:33 pm

Glad to help. Actually a question I can answer.

Didn't know the details of your circuits, but I figured my relay board was a similar. Your stepper driver circuit would replace the stuff connected on pins 3 and 4 of U1.

I'm sure too, that you didn't need my walk-through, but I figured for everyone who knows what opto-isolation is, there are 10 who have no clue.
Just purchased a Shapeoko 3. :)

Post Reply