Led to remain on

MrChips

Joined Oct 2, 2009
34,826
Here is a generic circuit using a Set-Reset flip-flop such as CD4013.

Note that the SET and RESET inputs are ACTIVE-HIGH, i.e. they require logic HIGH to activate the function.
The D and CLOCK inputs are not required and are wired to GND.

The output can come from Q or /Q.
If you want to use Q then the LED D1 and resistor R1 are connected to GND instead of VDD.

Latching LED with S-R flip-flop.jpg
 

ericgibbs

Joined Jan 29, 2010
21,448
hi code,
This shows your circuit working.
Connect pin #7 to 0V and pin #14 to the +3V supply. [positive of your battery]

E

Improved image....
EG 1623.png
 
Last edited:

Thread Starter

codepuncher

Joined Jun 4, 2017
26
haha i warned you are dealing with a novice.
I think i`ve done what you said. still nothing ?
i just added reset pin 4 to ground sill not working
 

Attachments

Last edited:

DickCappels

Joined Aug 21, 2008
10,661
I suggest that you get into the habit of placing a bypass capacitor across the Vdd and Vss pins. This reduces the amount of noise on Vdd, and may improve accuracy.
 

MrChips

Joined Oct 2, 2009
34,826
Sorry, I intentionally did not show pin numbers because it depends on the IC you plan to use.
CD4013 is a dual flip-flop with GND on pin-7 and VDD on pin-14.
CD4043 is a quad flip-flop with GND on pin-8 and VDD on pin-16.

As a circuit designer, get into the habit of always referring to the device datasheet.
 
Top