2 led switch between

Thread Starter

Wernervt

Joined Jan 28, 2020
4
Hi all. I have a simple but pussling question.
I have 2 leds. Blue and green. I also have a capacitive sensor with 3 pins. 5vcc, gnd and sensor(gives out a high) The blue led must always be on. When I touch the sensor the blue led must switch off and the green led must switch on. When I do not touch the sensor, the green must switch off and the blue must switch on.

I do not want to use relays and it must be as simple as possible. How can I do this.

Thank you
 

Mumeral

Joined Jan 28, 2020
12
I'm looking to do something similar with LEDs that have a 12v 0.03a draw and I am open to using a relay. I am hoping to get a diagram together to get a PCB prototype and get a sample made with a Hals sensor and a magnet as a go/no go for a handle. Like a red/green stop light setup. Flipflop or something?
 
Top