Interlocking between manual switches

Thread Starter

sab201

Joined Nov 18, 2023
297
Good Day,

I have searched about this on google and found no solution. I am looking for advice in this circuit. I have 7 PWM generator circuits and I wish to switch them ON and OFF manually as and when I wish. Switches S1 to S7 are manual. But incase more than one switch is pushed on accidentally then I want no supply going to the circuits 1 to 7 so that there is only one PWM output at a time and when there is more than one it is avoided.
20240627_121910_0000.jpg
Is it possible to provide this interlock in the circuit.

Thanks.
 

Thread Starter

sab201

Joined Nov 18, 2023
297
Can you use a rotary switch for selection and a power supply toggle for on,/off?
Great! That's a good solution. A rotary switch for selection. I didn't think of that and I was thinking of so many other ways to provide interlock. This is the simplest solution.

Thanks a lot, nsaspook.
 
To ensure only one PWM generator circuit receives power at a time, you can implement a circuit with interlocking switches. Here's a possible solution using diodes and DPDT switches:
  • Replace the existing single-pole double-throw (SPDT) switches (S1-S7) with DPDT switches.
  • Connect the common terminal of each DPDT switch to the 5V DC supply.
  • Connect one output of each DPDT switch to its corresponding PWM circuit (Circuit 1-7).
  • Connect the other output of each DPDT switch together.
  • Place a diode in series with each of these interconnected outputs, with the anode facing away from the switches.
With this setup, when a DPDT switch is thrown, it supplies power to its corresponding circuit through one output, while the other output is blocked by the diode. The diode prevents current from flowing back into the common connection, stopping other circuits from turning on.
 

Thread Starter

sab201

Joined Nov 18, 2023
297
With this setup, when a DPDT switch is thrown, it supplies power to its corresponding circuit through one output, while the other output is blocked by the diode. The diode prevents current from flowing back into the common connection, stopping other circuits from turning on.
Thanks, felanhardware. I will try it out. Using ON/OFF individual switches with interlock the design part could be taking more effort but the ease of use is simplified than using a rotary switch.
 

ElectricSpidey

Joined Dec 2, 2017
3,312
Weren't you told in the other thread connecting all of the 555 outputs together like that was a bad idea.

You are still going to have to OR gate those outputs using some kind of method.
 

Thread Starter

sab201

Joined Nov 18, 2023
297
Weren't you told in the other thread connecting all of the 555 outputs together like that was a bad idea.

You are still going to have to OR gate those outputs using some kind of method.
Yes you are right I am planning to put extra manual switches at the outputs to select them after the supply selection of the inputs is made. I dont want to mess with the PWM outputs using gates.

I am also trying to get MCUs like I discussed in other thread but that involves setting up my pc that will take time and budget. Its been a long time I used PCs and my laptop got too old and got screen problems. So I wait and sort that out while I find an easier way to work the hardware out in the meantime.
 

Thread Starter

sab201

Joined Nov 18, 2023
297
Why?
The gates will have no significant effect on the output signal characteristics unless you are driving a low-impedance load.
Thanks for the information. The load is a mosfet switching module. I read on other threads that adding diodes and other components significantly reduces the PWM speed control of motors so I had that doubt and didn't want to mess with that.
 

Thread Starter

sab201

Joined Nov 18, 2023
297
To ensure only one PWM generator circuit receives power at a time, you can implement a circuit with interlocking switches. Here's a possible solution using diodes and DPDT switches.
I suppose you are talking about this 6 pin DPDT switch.
1_fa094160-e794-4ddb-b432-7145394b26f6.jpg

I made the circuit but I am not sure if it would work. Using DPDT switches here is the circuit. (Excuse that messy drawing it was made and corrected using Canva on android phone).
sketch-1719507279792.jpgThe top load side of the DPDT switches shown + and GND are interchanged. Excuse that it was to avoid space...

So when DPDT 1 is thrown down, and incase DPDT 2 is thrown down at the same time I suppose it behaves like a normal circuit and there is no interlock.
 

crutschow

Joined Mar 14, 2008
38,318
I dont wish to use momentary push buttons but this circuit seems to use ON/OFF switch.
It requires momentary switches.
I didn't have a simulation momentary switch so had to use the standard.

If you don't want to use momentary switches, then the radio circuit has no use, since it only works with that (selects the output for the last PB pressed).
 

Thread Starter

sab201

Joined Nov 18, 2023
297
It requires momentary switches.
I didn't have a simulation momentary switch so had to use the standard.

If you don't want to use momentary switches, then the radio circuit has no use, since it only works with that (selects the output for the last PB pressed).
Oh Ok, thanks for your help then I would best go with the rotary switch option for now and selector switches for pwm outputs. Then after I implement MCU that would get much easier.
 

Thread Starter

sab201

Joined Nov 18, 2023
297
It requires momentary switches.
I didn't have a simulation momentary switch so had to use the standard.
Crutschow,

Out of curiosity I like to try out this circuit. The problem with momentary push buttons is the switch debouncing problem but that can be dealt with a capacitor circuit.

In this circuit if these switches [1] to [4] are momentary push button switches then why are they having three terminal connections. Do they need to be connected to ground and when the push button is pressed they connect to Vcc and bounce back to ground again?
1719509368830.png

Thanks.
 

crutschow

Joined Mar 14, 2008
38,318
why are they having three terminal connections. Do they need to be connected to ground and when the push button is pressed they connect to Vcc and bounce back to ground again?
The signal needs to go between Vcc and ground (a CMOS input can never be left open/floating).
If you want to use a SPST push-button switch that switches to Vcc, then connect each input to ground with a 10kΩ resistor.
 
Top