PC touch sensitive power switch with led reactive light

Hi,

I am doing quite a lot of heavy modifications to my PC case, and I am stuck on an issue involving a Capacitive Anti-Vandal Momentary switch (CS4M2FR information) as I have next to no electronic experience. I want to wire the switch in parallel to the current switch so that I can use it as an alternative switch located on the top of the case which is an easier to reach location then behind the lockable front panel door.

Through trial and error I have worked out I need to connect the ground (Black) to the negative pin for the power switch, the NPN (Brown) to the positive pin for the power switch and the 5-24VDC to the positive pin for the reset switch. On page 4 linked here of the switch data sheet. It details an example use case that is directly applicable to what I require however my limited electrical knowledge means I can't decipher it.

If I ground one of the colour led wires against a metal panel then that corresponding led lights up constantly regardless of whether the switch is in an off or on state. If I connect a colour led wire to the negative pin for the power LED then it lights when the system is off and turns off when the system is on (the reverse of what I want).

Thank you in advance to any help you can offer.

Here is the schematic from the data sheet:

saltynay:
I have worked out I need to connect the ground (Black) to the negative pin for the power switch, the NPN (Brown) to the positive pin for the power switch

Yes that should be OK

saltynay:
5-24VDC to the positive pin for the reset switch.

I'm not sure that will work. That pin is not a power supply pin. There is probably a high value pull-up resistor between it and either 5V or 3.3V, so the circuit inside the switch may not get enough voltage to work. I suggest you connect the 5-24V pin to the 5V pin of a molex connector.

saltynay:
page 4 linked here... an example use case that is directly applicable to what I require

I could not see anything useful on page 4...

saltynay:
If I ground one of the colour led wires against a metal panel then that corresponding led lights up constantly regardless of whether the switch is in an off or on state. If I connect a colour led wire to the negative pin for the power LED then it lights when the system is off and turns off when the system is on (the reverse of what I want).

Yes, that is what the schematic indicates would happen. You would need to logically invert the LED wires to get what you want. This could be done with transistors or a 7400 series logic chip.

Question for you: what has this to do with Arduino?

It has nothing to do with Arduino but I tried PC forums and the question didn't get any reaction. So I thought a project maker forum such as this might have the users with skill set to help.

As you said I needed to find a 5V pin to connect to that provided constant voltage. I found the pin on an JT1 header that was on the motherboard but not listed in the manual. Once I had done that I worked it out as below through educated guessing.

Now I just need to wire it in parallel and hopefully it will work as expected.