I tried and it worked 3 or 4 times then the led is on again when the switch is open and it is off whrn the switch is closedPut a 10kΩ resistor (or lower) across Q1 base and emitter.
Presumably, the leakage current on IC1 4069 is turning on Q1.
I think the leakage current is doing something because when the led is off ( and now it is off when the switch is closed ) it isn't off completelyPresumably, the leakage current on IC1 4069 is turning on Q1.
I can't think of a reason for this behavior. And I'm not even sure which circuit the TS has tried.I tried and it worked 3 or 4 times then the led is on again when the switch is open and it is off whrn the switch is closed
So now it is working like the Ic not in the opposite
I actualy made the circuit using a zero pcb and i have a good solder joint yesDo we have good solder joints? Can we get some pictures please? Both sides? If this is built on a breadboard then it's suspect that the connections may be weak or faulty.


From your blurry pictures, I would say no.i have a good solder joint yes

This bears value in repeating. Only two of those joints are ideal. The rest need to be fluxed and reflowed with an iron at the proper temperature. You'd need to be with an instructor in order to get the best advice on fixing these solder joints. But yes - they are more than highly likely to be the root of your problem(s).There are a lot of solder blobs, any of which could be a cold solder joint.
A good joint has solder smoothly flowed over the joint, with the shape of the joint visible (below):
Suggest you reflow all the joints to insure a good joint.
So the problem is with the solder not the circuitThis bears value in repeating. Only two of those joints are ideal. The rest need to be fluxed and reflowed with an iron at the proper temperature. You'd need to be with an instructor in order to get the best advice on fixing these solder joints. But yes - they are more than highly likely to be the root of your problem(s).
The ideal solder joint should exhibit good wetting action to both the pin and the pad. The pin should be visible at the tip of the joint and the solder should flow out to the edges of the pad, not over the edges. Balls of solder that obscure the pin or pad (or both) are not acceptable in most situations. Even in the hobby world, you want good joints. You may even have to extract some solder, but mostly I think adding flux and reflowing the joints will likely produce some beautiful solder joints.
But those gates are not connected to each others and there is no Ic that has only one not gateOne unasked question I now have is what about all of the other inputs on that IC???
THERE WILL BE no normal functioning if there are any of the inputs left open. Certainly the circuit in the drawing on post #1 does not show the other portions of the IC, and certainly those connections do make a big difference. Consider that the MAXIMUM claimed input current is 0.1 MICROAMP, we know it is a very high impedance input. In addition, the data sheet page shows all unused inputs returned to common when the performance is being evaluated.
In addition, that explains why it might function correctly for a while and then fail.
THIS is another case of showing us only what has already been decided. Simply correctly terminating the unused inputs will assure correct operation.
74LVC1G04 or 74HC1G04and there is no Ic that has only one not gate
I only need one
This is the ic i am using but i think it is working better with a transistor74LVC1G04 or 74HC1G04
But you can also make in inverter out of a single transistor as about a dozen people have said.
The method of "dealing with" unused digital inputs is to connect them to a defined logic level, which usually is that IC devices power common terminal. AND, while the application circuit shows multiple independent inverters, the actual internal circuit is considerably more complex. But if you do connect the unused INPUTS to the circuit common your problem will not appear.b
But those gates are not connected to each others and there is no Ic that has only one not gate
I only need one
Also the outputs of those gates arenot connected to anything so how would they affect the gate i am using ?
And if they are affecting then how am i supposed to deal with them ?
gates are not connected to each other
An unconnected inverter (that's what you have) can oscillate uncontrollably and cause problems for other gates.Also the outputs of those gates arenot connected to anything so how would they affect the gate i am using ?
And if they are affecting then how am i supposed to deal with them ?

Thanks for your great explanationProper use of a single gate on a Hex Buffer Inverter. This representation does not necessarily represent the inverter you used.
View attachment 352546
The unused gate inputs should be grounded. OR connected to the source. The outputs do not need to be connected to anything. The curly-Q merely represents a non-connection. In other words - nothing. Pins 1 & 9 are internally not connected to anything. Typically pin 8 is ground and pin 16 is power (source), whatever voltage the chip has been designed to operate on. Failure to ground (or source) the unused inputs will result in uncontrollable oscillation that can destroy the chip.
[Note] The drawing has been edited for clarity of the inverter symbol. The original post had too small a circle to represent a buffer-inverter.