Classic Circuits You should Know - Single Button Toggle

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 มิ.ย. 2020
  • 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 ปีที่แล้ว +18

    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 ปีที่แล้ว +3

      or make 555 one shot to debounce. This video really didn't go in any direction that made much sense.

    • @BertGrink
      @BertGrink 4 ปีที่แล้ว +2

      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 ปีที่แล้ว +2

      @@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 ปีที่แล้ว +1

      I was also confused as to why he didn't just use a bistable config for the 555.

  • @airlobster2
    @airlobster2 ปีที่แล้ว +1

    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! :))

  • @jayherde0
    @jayherde0 4 ปีที่แล้ว +6

    Off topic - did you know you can make a 4017 count backwards by rotating your breadboard 180 degrees? :-D

  • @KarlA-vk4kn
    @KarlA-vk4kn 4 ปีที่แล้ว +1

    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

  • @mohammedalathari9635
    @mohammedalathari9635 4 ปีที่แล้ว

    This simple circuit would help me serf through a variety of debouncing techniques, thank you!

  • @CaraKreatif
    @CaraKreatif 4 ปีที่แล้ว +1

    You teach me so much about electronic. Sometime I try at my board and it quite amazing! Thanks for sharing.

  • @cheetahkid
    @cheetahkid 4 ปีที่แล้ว +5

    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 =)

  • @cavicster
    @cavicster 4 ปีที่แล้ว

    Thanks Paul. I really enjoy the Classic Circuits series.

  • @user-bs1sm3wy5t
    @user-bs1sm3wy5t 4 ปีที่แล้ว +1

    Thanks, just what I needed

  • @PabloPazosGutierrez
    @PabloPazosGutierrez 3 ปีที่แล้ว +1

    Would be nice to see a working circuit

  • @yacineyaker7485
    @yacineyaker7485 4 ปีที่แล้ว +1

    I suguest u add the bypas filter to the button to debounce it

  • @GORF_EMPIRE
    @GORF_EMPIRE 4 ปีที่แล้ว +1

    Using a 556(dual timer) you could use the second timer to do the debounce. Nice and useful circuit!

  • @DIYwithBatteries
    @DIYwithBatteries 4 ปีที่แล้ว +2

    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.

  • @rohankumar5461
    @rohankumar5461 4 ปีที่แล้ว +1

    Great video,
    You connected the capacitor 2 to LOW

  • @rimmersbryggeri
    @rimmersbryggeri 3 ปีที่แล้ว

    This looks like exactly what i needed to toggle between the waveforms on a simple signal generator.

  • @arthurfricchione8119
    @arthurfricchione8119 3 ปีที่แล้ว

    another good one thanks for sharing !!!!!

  • @bertspeggly4428
    @bertspeggly4428 6 หลายเดือนก่อน

    Good but I think you should have cured the bounce issue. Maybe a bigger cap in the debounce RC network?

  • @Electronzap
    @Electronzap 4 ปีที่แล้ว +1

    Fun circuit :)

  • @E2ESolutionsDIY
    @E2ESolutionsDIY 4 ปีที่แล้ว

    Nice informative work 👍

  • @BURN_SHITTUBE
    @BURN_SHITTUBE 7 หลายเดือนก่อน +1

    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?

  • @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.

  • @simsonsinambela8372
    @simsonsinambela8372 4 ปีที่แล้ว

    good video

  • @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...

  • @jamest.5001
    @jamest.5001 4 ปีที่แล้ว

    Cool!

  • @aurthorthing7403
    @aurthorthing7403 4 ปีที่แล้ว

    Have you done any vids on virtual inductors using an opamp?

  • @johnanigbogu2909
    @johnanigbogu2909 ปีที่แล้ว

    Can it do the opposite?? Something like press to on one led press again to on the second led.

  • @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!

  • @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.

  • @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?

  • @factotum1613
    @factotum1613 4 ปีที่แล้ว

    Could this be used to test for shorts in a pcb ?

  • @jamesgoacher1606
    @jamesgoacher1606 4 ปีที่แล้ว +1

    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.

  • @weerobot
    @weerobot 4 ปีที่แล้ว

    Cool...

  • @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?

  • @joshuachettiar86
    @joshuachettiar86 4 ปีที่แล้ว +3

    The 555 timer ain't even needed to provide manual pulses

  • @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

  • @ianproffitt3679
    @ianproffitt3679 4 ปีที่แล้ว +1

    would it be better to debounce the switch rather then the 555 output?

  • @JOHN3GTK
    @JOHN3GTK 3 ปีที่แล้ว +1

    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.

  • @BrucesWorldofStuff
    @BrucesWorldofStuff 4 ปีที่แล้ว +1

    Nice video Paul... As for the pickers, where are their TH-cam Channels? :-)
    I was saying CD4011 and you said CD4017 what great chip. I have used both in chaser circuits... :-)
    Thanks for you video!
    LLAP

  • @richardredcastle7911
    @richardredcastle7911 4 ปีที่แล้ว +23

    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 ปีที่แล้ว +2

      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 ปีที่แล้ว +3

      I was just thinking the exact same thing. Wish he corrected the bounce issue and walked through a schematic.

    • @davidmoran4471
      @davidmoran4471 4 ปีที่แล้ว +2

      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 ปีที่แล้ว +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.

  • @teslakovalaborator
    @teslakovalaborator 4 ปีที่แล้ว

    getting a schmitt triger binary counter/D-FF is also an option

  • @davidluther3408
    @davidluther3408 3 ปีที่แล้ว

    INTERESTING CIRCUIT BUT,SHOULD BE BUILT WITH DICRETE TRANSISTORS.THE BUGS DEBOUNCE SHOULD BE WORKED OUT.

  • @PhG1961
    @PhG1961 4 ปีที่แล้ว +1

    Very well explained ! A nice schematic to enhance this circuit would be a great addition !

  • @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.

  • @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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

    Debouncing on the wrong place

  • @augustvonmackensen9785
    @augustvonmackensen9785 3 ปีที่แล้ว

    😳 ???

  • @anahoae
    @anahoae 3 ปีที่แล้ว

    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