Multiple 'stop' lines control

I'm putting together a very simple single stepper motor setup using an EasyDriver board and a Nano.

I will have four different 'stop' controls - two microswitches, the centre position on a direction switch, and an emergency stop button. I can set the 'Enable' pin on the EasyDriver high to stop any output to the stepper. I envisage all these being separate 'normally open' connections, and the stepper motor must stop if any one or more of these controls fires.

I have done plenty of programming but only have a limited knowledge of electronics (I can wire and solder however!)

I think one solution may be an 'OR' logic gate, like the 4075, but I am finding it hard to find one similar with four inputs.

So, two questions -

  1. can you chain logic gates together? If so, using three two gate ones would presumably work.

  2. are there other, simpler ways to wire what I'm trying to do? In my limited understanding I'm thinking that simply wiring them all back to the same point would cause too much voltage to the Enable pin if two controls went off at the same time (2 x 5V for instance). Or maybe this isn't the case? Sorry to be so ignorant of basic theory!

Of course, any other advice gratefully received! Thanks.

a logical OR between switches is just connecting them in parallel

image

(assuming same specs / voltage across the switches)

Many thanks for the reply.

In your diagram, if each switch is carrying 5V (for instance) what is the voltage output if two switches are closed at the same time?

(Once again apologies for my ignorance of even basic theory!)

it will be 5V. Voltage is the difference in potential versus a reference (GND). If you close two switches, all the points on the wires are basically identical, so carry the same potential (if you ignore the resistiveness of the wire on short distances)

In a simplistic view, if current is flowing through the switches then current will be added.

image

The emergency stop should be a normally closed switch that removes the power when activated, and latches in the operated condition.
You should not rely on software for an emergency stop.

That's great, and the solution I think. Many thanks!

Thanks John, good point.

I'm not sure if using the 'Enable' pin on the EasyDriver is using software or hardware?

It is software

A hardware solution would be to have the emergency stop button physically break the power supply to the circuit

Thanks for the clarification. Breaking the power supply is a better plan for that button.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.