Classic Circuits You should Know - Single Button Toggle

  Рет қаралды 18,722

learnelectronics

learnelectronics

4 жыл бұрын

Classic Circuits You should Know - Single Button Toggle
In this video we build a single switch toggle using a 555 timer and a CD4017. Pressing the switch causes the 555 to output a pulse. The pulse goes to the clock of the CD4017 and advances the counter. By attaching the Q2 output to the reset, we limit the 4017 to two states.
5 boards for about $22 in about 7 days www.pcbway.com
CyberCityCircuits: - Electronic kits, subscription boxes, tools and components.
My Amazon link: Anything you buy through this link helps support the channel, it doesn't cost you extra, and I make a few%. amzn.to/3706t6c
Yes!! I now have merch: teespring.com/stores/learnele... Electronics themed T-ShirtsIf you are shopping for electronic components, test gear or consumables please consider visiting my Amazon shop @ www.amazon.com/shop/learnelec...
Please check out www.patreon.com/learnelectronics and pledge a dollar if you can. It will go a long way to keeping the channel alive. It costs a bit of money to buy all the items and produce these videos. You help is appreciated.
---------------------------------------------------------------------------------------------------------------------
Or....if you'd like to send a one-time donation you can use this link: paypal.me/learnelectronics
----------------------------------------------------------------------------------------------------------------------
Here is all the gear I currently use:
Oscilloscope 1: Rigol 1054Z amzn.to/2PRybtN
Oscilloscope 2: Siglent SDS1202X-E amzn.to/31Kk1yH
Power Supply 1: TekPower TP3005N amzn.to/2TeQnxI
Power Supply 2: RUIDENG DP50V5A amzn.to/2sNicSe
Signal Generator: JS2800 ban.ggood.vip/d9vk
DMM1: Owon18B amzn.to/2SbIGLs
DMM2: Aneng 8008 amzn.to/2sNQncI
DMM3: Aneng 8009 amzn.to/2S5qeEp
DMM4: Uni-T UT801 amzn.to/2S89SuL
Soldering Station1: Zeny (Yihua)862D+ amzn.to/2S49z4e
Soldering Station2: KSGR T12 amzn.to/2Wk7Dn9
Light Meter Smart Sensor AS803 amzn.to/2B2gyRg

Пікірлер: 65
@frankowalker4662
@frankowalker4662 4 жыл бұрын
There are two simpler ways of doing this. 1) Forget about the 555 and just use the switch on the CLOCK pin of the CD4017. (Karl A pointed this out also), 2) You can set up the 555 on it's own as a latching switch connected to a relay and use the NO/NC positions to switch states.
@GigsVT
@GigsVT 4 жыл бұрын
or make 555 one shot to debounce. This video really didn't go in any direction that made much sense.
@BertGrink
@BertGrink 4 жыл бұрын
I was thinking of a D-Flip Flop where you feed the /Q output back the the D input, wouldn't that work too?
@KarlA-vk4kn
@KarlA-vk4kn 4 жыл бұрын
@@BertGrink Yes a 4013 would work well in this circuit. With the 4013 though you're wasting the D latch, so that's why a 4017 is used
@kfjw
@kfjw 3 жыл бұрын
I was also confused as to why he didn't just use a bistable config for the 555.
@airlobster2
@airlobster2 Жыл бұрын
if you're using a counter, toggling can be achieved simply by monitoring the least significant binary digit. no reset is needed. as you know, when you count in binary, the lowest binary digit keeps changing its state from one step to the next. (and btw, LOVE your videos! keep them coming! :))
@KarlA-vk4kn
@KarlA-vk4kn 4 жыл бұрын
Well explained Paul. I've used this circuit as a clap switch, replacing the 555 with a LM358 mic preamp and comparator to toggle the clock input
@CaraKreatif
@CaraKreatif 4 жыл бұрын
You teach me so much about electronic. Sometime I try at my board and it quite amazing! Thanks for sharing.
@cavicster
@cavicster 4 жыл бұрын
Thanks Paul. I really enjoy the Classic Circuits series.
@jayherde0
@jayherde0 4 жыл бұрын
Off topic - did you know you can make a 4017 count backwards by rotating your breadboard 180 degrees? :-D
@mohammedalathari9635
@mohammedalathari9635 4 жыл бұрын
This simple circuit would help me serf through a variety of debouncing techniques, thank you!
@cheetahkid
@cheetahkid 4 жыл бұрын
I am going to do a head slapped myself, 555 can be useful but I could do without it and button directly connected to input clock of the 4017, keeping that RC still connected.
@franciscobraylen8771
@franciscobraylen8771 3 жыл бұрын
I guess I'm kinda randomly asking but do anybody know a good site to stream new movies online?
@georgelogan4788
@georgelogan4788 3 жыл бұрын
@Francisco Braylen try FlixZone. You can find it by googling =)
@user-bs1sm3wy5t
@user-bs1sm3wy5t 4 жыл бұрын
Thanks, just what I needed
@E2ESolutionsDIY
@E2ESolutionsDIY 4 жыл бұрын
Nice informative work 👍
@GORF_EMPIRE
@GORF_EMPIRE 4 жыл бұрын
Using a 556(dual timer) you could use the second timer to do the debounce. Nice and useful circuit!
@arthurfricchione8119
@arthurfricchione8119 3 жыл бұрын
another good one thanks for sharing !!!!!
@jamest.5001
@jamest.5001 4 жыл бұрын
Cool!
@simsonsinambela8372
@simsonsinambela8372 4 жыл бұрын
good video
@michaelpadovani9566
@michaelpadovani9566 4 жыл бұрын
Can't remember if you already have a video on this but demonstrating various debounce circuits would be useful in this series. Test different RC values for optimal effect...simple off the shelf parts rather than dedicated ICs.
@Electronzap
@Electronzap 4 жыл бұрын
Fun circuit :)
@bertspeggly4428
@bertspeggly4428 7 ай бұрын
Good but I think you should have cured the bounce issue. Maybe a bigger cap in the debounce RC network?
@DIYwithBatteries
@DIYwithBatteries 4 жыл бұрын
Simply you can use a switch instead of that circuit. Kidding 😄 nice circuit sir we can control high load using some transistors in place of LEDs.
@weerobot
@weerobot 4 жыл бұрын
Cool...
@yacineyaker7485
@yacineyaker7485 4 жыл бұрын
I suguest u add the bypas filter to the button to debounce it
@factotum1613
@factotum1613 4 жыл бұрын
Could this be used to test for shorts in a pcb ?
@aurthorthing7403
@aurthorthing7403 4 жыл бұрын
Have you done any vids on virtual inductors using an opamp?
@alexandermessaris8058
@alexandermessaris8058 4 жыл бұрын
A nice well explained circuit! I would be very much interested for a "one push button on/off latching switch circuit" for battery application circuits. Ideally, something that, at its OFF state, would not consume any current. Is that possible? My general thinking goes to using a few transistors. When button is pressed transistor conducts biasing a second transistor which latches the first one, and the whole circuit biases the gate of a mosfet which will open and allow current to flow to the application circuit. When button is pressed again, base of first transistor is grounded an the whole circuit is turned off. This is what I am thinking but I do not have enough knowledge to put a circuit together that will do the job...
@rohankumar5461
@rohankumar5461 4 жыл бұрын
Great video, You connected the capacitor 2 to LOW
@embededfabrication4482
@embededfabrication4482 Жыл бұрын
I have a function on a microcontroller that works by using a switch to connect a pin to ground. I have another microcontroller that outputs a 3.3v signal, how can I get that to switch the first controller? can't you use a transistor instead of a relay?
@BrucesWorldofStuff
@BrucesWorldofStuff 4 жыл бұрын
Nice video Paul... As for the pickers, where are their KZbin Channels? :-) I was saying CD4011 and you said CD4017 what great chip. I have used both in chaser circuits... :-) Thanks for you video! LLAP
@BURN_SHITTUBE
@BURN_SHITTUBE 7 ай бұрын
Just wondering what's the role of the 555, why not just use the switch directly? Also to debounce, why not put the cap in parallel with the switch?
@georgechambers3197
@georgechambers3197 4 жыл бұрын
Could this circuit be created with a 74LS73 flip flop? I don't have any decade counters. Thanks for another great video!
@rimmersbryggeri
@rimmersbryggeri 3 жыл бұрын
This looks like exactly what i needed to toggle between the waveforms on a simple signal generator.
@PabloPazosGutierrez
@PabloPazosGutierrez 3 жыл бұрын
Would be nice to see a working circuit
@johnanigbogu2909
@johnanigbogu2909 Жыл бұрын
Can it do the opposite?? Something like press to on one led press again to on the second led.
@marshallmullins8603
@marshallmullins8603 4 жыл бұрын
How come you didn't use a j k flip flop? I've used it to do a 555 touch sensor and jk flip flop to power the led or any other load.
@joshuachettiar86
@joshuachettiar86 4 жыл бұрын
The 555 timer ain't even needed to provide manual pulses
@jamesgoacher1606
@jamesgoacher1606 4 жыл бұрын
My basic electronics is a little rusty and was more empirical than knowledge but surely a simple JK Flip Flop (there is an IC I think) with a bit of debounce on the trigger is all that is required. I would think 2 ICs, the JK F/F and a Quad 2 input NAND gates for the debounce. Not sure of course but I do not think you would need a capacitor. I am certain I have seen and used such a thing 20-30 years ago. In software two F/F make an excellent debounced Toggle and I can see no reason why that would not apply to ICs of Discreet components. I used the software version in machine control to protect against a Start Button being stuck in the ON Posn. A trawl through my Note Books may locate it. Locating the Note Books may be more difficult :-). Last one must have been dated 2001.
@keithking1985
@keithking1985 4 жыл бұрын
didnt you make the one button on and off using 2 BJT's and a cap before?? oh! need to get some CD4017's now that im getting a few things tomorrow
@JOHN3GTK
@JOHN3GTK 3 жыл бұрын
If you want to debounce the switch, you must increase the time of the 555 output pulse by increasing the resistor and or the capacitor ( t = 1.1 R C ). Trying to debounce the output of the 555 is not the correct way, use the 555 to get a nice bouncefree pulse that's the function of the 555 in this circuit. Your RC time is to short, just increase and get surprised of this solution.
@teslakovalaborator
@teslakovalaborator 4 жыл бұрын
getting a schmitt triger binary counter/D-FF is also an option
@davidluther3408
@davidluther3408 4 жыл бұрын
INTERESTING CIRCUIT BUT,SHOULD BE BUILT WITH DICRETE TRANSISTORS.THE BUGS DEBOUNCE SHOULD BE WORKED OUT.
@richardredcastle7911
@richardredcastle7911 4 жыл бұрын
I do like this channel but its no use building a circuit that doesn't work correctly, or only sometimes, and not going to the trouble of drawing a quick diagram. It is called LEARN electronics after all. Sorry for being so negative.
@Alan_AB
@Alan_AB 4 жыл бұрын
I agree. All he did was show us a circuit that doesn't really work properly. There are better ways to construct a Toggle Circuit.
@richard1113
@richard1113 4 жыл бұрын
I was just thinking the exact same thing. Wish he corrected the bounce issue and walked through a schematic.
@davidmoran4471
@davidmoran4471 4 жыл бұрын
He gave you a starting point, now you can use your skills to improve the circuit to perform as you need it to.
@Alan_AB
@Alan_AB 4 жыл бұрын
@@davidmoran4471, some people don't have the skills and need to be shown how to fix the circuit. Some people just want to be shown how to assemble a working circuit. This video does nothing for anyone who wants to "Learn Electronics".
@cw4608
@cw4608 3 жыл бұрын
Richard Redcastle hop off the Duchess of Hamilton and search for how to troubleshoot circuit errors. There are two essential skills rolled into one-self sufficiency and troubleshooting. Sorry to sound so harsh.
@gerhardgroenewald6560
@gerhardgroenewald6560 3 жыл бұрын
I was looking for some good material on this subject and when I saw learnelectronics i knew it was going to be good. Ok, a few questions. Do you think I will be able to get that bouncing off with the correct rc values? I'm looking to replace the push button with a hall effect sensor and do a mechanical mounting on a wiper motor (the hall effect sensor). Every time the hall effect gets triggered it should change state and then flip to relay nr 2 going in reverse. So the "stroke" will be the hall effect sensors spaced at the correct stroke. I'm sitting out on the h bridge because Relays are cheaper and will be more robust. Basically, I'm trying to imitate the wiper motion so that I don't have to do custom fittings on custom tractors. The whole linking arm modifying takes too much labor. I'm using those solid state relays they sell cheap. 2n222? I haven't played too much with a 555 but it would be nice to get more of a delay between toggles to let the magnetic field collapse see that freewheeling won't work. Any Bright ideas analog-wise?
@ianproffitt3679
@ianproffitt3679 4 жыл бұрын
would it be better to debounce the switch rather then the 555 output?
@learnelectronics
@learnelectronics 4 жыл бұрын
Probably
@mikebond6328
@mikebond6328 4 жыл бұрын
There are several advantages to using a timer circuit in place of just a switch one of which is to eliminate switch bounce.
@stevetobias4890
@stevetobias4890 4 жыл бұрын
Cool video, do you ever play with PIC16F877A IC's Why does everyone use teespring, they are so ridiculously expensive compared to other quality made t-shirts you can get made. Teespring feed off successful channels and do very little for a bigger profit they would otherwise make. You would make so much more on a percentage basis by using a cheaper option that doesn't comprise on quality.
@PhG1961
@PhG1961 4 жыл бұрын
Very well explained ! A nice schematic to enhance this circuit would be a great addition !
@nixonnelson5181
@nixonnelson5181 4 жыл бұрын
what is a bounce is it noise?
@friedmule5403
@friedmule5403 4 жыл бұрын
I allow me to answer, even that I may not understand your question... up for a great start eh? :-) A bounce in this circuit, is when you expect the circuit to change the color because you press the button, and it does but then "bounce" back to the original color. It does that because the 555 do send a pulse out several thousand times a second, as long as you hold the button down, and each time do that pulse trigger the 4017. So if you press for just a fraction of a second, do the 555 maybe switch 3000 times. To avoid that, do you add a capacitor that make the time between the pulses much longer, i.e. a second. So if the person who pushes the button, do that in a shorter time then that second, do everything work fine. Do the person press for longer then that second, do the 555 get time to send a second pulse and the 4017 switches back "bounces". Hope that helps:-) EDIT: You could then ask, why not just add a capacitor that make the 555 give a pulse every 10 minutes and you avoid the "bounce"? That gives the problem that you also have to hold the button down for 10 minutes for the first pulse to be made and nobody would find that particular great! :-)
@tomg1004
@tomg1004 4 жыл бұрын
Bouncing is an undesired effect in mechanical switches. Ideally, you would expect a switch to be either on or off, but when pressing a switch, it can send a fast series of on-off-on-off-on... just before it makes a good connection. There are several reasons why that can happen, but the important thing is that the digital circuits (TTL or CMOS) are fast enough to trig on each of those ons and offs. The simplest remedy to 'de-bounce' is putting a low-pass RC-filter between the switch and the digital circuit's input, but it can be done digitally too or in code if input is to a microcontroller.
@KarlA-vk4kn
@KarlA-vk4kn 4 жыл бұрын
@@tomg1004 well explained 👏
@JOHN3GTK
@JOHN3GTK 3 жыл бұрын
Debouncing on the wrong place
@augustvonmackensen9785
@augustvonmackensen9785 3 жыл бұрын
😳 ???
@anahoae
@anahoae 4 жыл бұрын
The rule of ALLAH in his creation, even the perfect educator could make a mistake any way, thanks Paul for not being perfect
@kentwood1869
@kentwood1869 3 жыл бұрын
bv bgvc
2 Ways to make a Larsen Scanner - DIY Electronics for Beginners
22:37
learnelectronics
Рет қаралды 7 М.
Classic Circuits You Should Know Relaxation Oscillator
12:17
learnelectronics
Рет қаралды 19 М.
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,4 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 35 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 23 МЛН
Classic Circuits You Should Know: Latching Switch
5:38
learnelectronics
Рет қаралды 18 М.
Classic Circuits You Should Know: Delayed Start
10:12
learnelectronics
Рет қаралды 34 М.
Classic Circuits You Should Know: Light/Dark Detector
6:38
learnelectronics
Рет қаралды 10 М.
Secrets of the Control Voltage Pin on a 555 Timer
9:40
learnelectronics
Рет қаралды 28 М.
Common Circuits You Should Know: The Current Mirror
8:41
learnelectronics
Рет қаралды 33 М.
One button Push On Push Off ! The simplest circuit.
5:20
Kasyan TV
Рет қаралды 159 М.
Classic Circuits You Should Know: Astable Multivibrator
10:48
learnelectronics
Рет қаралды 94 М.
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 1,6 МЛН
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,2 МЛН
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2,3 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 168 М.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 247 М.