Electrical – Falling edge detector using BJT

capacitorsignaltransistors

I'm trying to build what is basically an electronic push button switch – something that would switch an led on an off with the same signal . I figured doing this would require a falling edge detector , thus , I designed this enter image description here

The idea behind this is that I extend the signal using the capacitor and then AND it with NOT of the signal so only a small portion of the end of the signal remains .

Something is wrong with this and I'm not able to figure out what . I don't think it's the wiring .

Also , is there any better way to make an 'electronic push button switch' ? preferably without complex ICs ?

EDIT : The power source in the end is supposed to be the other way around ;
this is what i'm trying enter image description here

Best Answer

Your basic approach is flawed - all you are ending up with is a short pulse instead of a long one. As several folk on here have already commented you need a circuit that has a toggling action - in other words a divider.

Consider this approach to your problem.

enter image description here

The first part is a switch debouncer (R1,R2 and C1). This cleans up the signal from the switch but produces a slow rise and fall.

The next part of the circuit is a pulse shaper. This is nothing more than a transistor switch or inverter circuit and produces good rising and falling edges.

The final part is a 'divide by two' circuit made from bjts connected as a bistable. C2 and C3 are there to produce a short edge pulse input from the collector of Q1. D1 and D2 are 'steering diodes' which allow the negative edge of the input pulse to alternatively switch Q2 or Q3 off.

There are numerous articles on the interweb which explain in detail how this divider works if you wish to do some research.