I am doing a project to make a test box that would to test the switch module in the photo below. Please see circuit diagram below for inside of the switch. Please note this switch is not an ordinary switch has it resistors inside which is more complex.
So far I have designed the test box circuit using various way and methods I have used 555 timer circuit, Transistor and finally using NAND logic gate. The best option was the last one using NAND Logic gate as it worked the way I wanted by using 10k resistor and 3 LEDs using the truth table however due to my switch circuit on the inside this would not work.
A B Output 0 0 1 0 1 1 1 0 1 1 1 0
This NAND gate logic worked on circuit simulation tool after using two ordinary switches. However when I try to integrate my tester box switch to the switch I have noticed my switch is much more complex has its got a circuit inside with resistors which I couldn't integrate the two circuits.
The only other idea I have is to do this using Arduino and program it maybe. Can anyone tell me ways to do this, as I have running out of ideas now.
@jonk Apologies for misclarification yes the buttons are momentary and no its not latching magnet motion. Also its not random switch its got circuit inside which indicated above, my goal is just to test the switch if there are connected or not and their state by showing me LEDs to indicate that. ''wanting to push those buttons to verify they work correctly?'' Yes I want to verify if they work and connected
Response to @Transistor's comments:
- Is someone is going to connect the switch module, press the buttons in all four NAND combinations and watch the LEDs? - Yes the switch is going to be connected with the NAND circuit and watch the LEDs if they are connected and works.
- Does the test circuit need to confirm the presence of the four resistors? - yes the resistor circuit should confirm the four resistors including the switches, In fact it should configure the switch circuit diagram and it should work by simulating and integrating with NAND gate (tester box circuit).
- Does the test circuit need to check the values of the four resistors? - Yes it should.
- Your simulation doesn't show the four internal resistors. Why not? - The four resistor from my switch circuit diagram has not been simulated yet - the simulation circuit above is my tester box circuit and however the 2nd image is the switch circuit from the supplier data sheet .
- Why do you require a NAND? - This NAND logic works well to what output I want to achieve, I want the ouput to be on what input is inserted. If any other circuit suggestion do please let me know.
Another Response to @Transistor's comments:
Sorry I think I have confused you and you have misunderstood my question. Now I have reference each image clearly i.e (References A-C). So the switch unit in Ref A is what I am trying to test, the switch unit has got a on-board installed circuit see Ref B, Also please note that REF B circuit diagram is already been given by the supplier. In other words Ref A&B are equivalent. As you can see from the circuit diagram REF B that which doesn't not have or contain any a power supply at all. So Ref C is just an draft circuit that I was hoping it would work and I could able to test switch unit in Reference A;- by connecting REf B to the REf C (the circuit I have created ) to test the switch unit REF A. So just to sum up and answer your question ''What two circuits? '' One circuit is Ref A and other REF C. Also this Ref A switch unit is much more complex to test since its got 4 resistors inside and 3 pins see image and its not just an ordinary simple switch(Reference D)