Author Topic: 4026 stuck at zero!  (Read 1850 times)

0 Members and 1 Guest are viewing this topic.

Offline LFNfanTopic starter

  • Newbie
  • Posts: 6
  • Country: gb
4026 stuck at zero!
« on: February 09, 2021, 09:42:18 am »
Hi All

I have put together a 7 segment display driven by a 4026 with clock from a 555 in astable mode, following various guides online.

After incrementing a few times it is now stuck permanently at zero. The 555 is still working, putting out between 0 and 2.5v at pin 3 of the 555 to the 4026 (the rest of the 5v supply is going to the led I think).

Im also getting that same difference at the 4026 clock pin 1 (unsurprisingly). But the display refuses to shift from showing 0.

I think I have all the other 4026 pins properly high or low so don't think that is what's driving the zero display.  I've also swapped in another 4026 but no change. I have also taken out the led to get a higher voltage at the clock pin. No joy.

If anyone could take a look at the attached pic and point out where I have made a mistake or what to check next that would be fantastic. Once I have this down I'm going to add another 7 seg.

Many thanks!
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 4026 stuck at zero!
« Reply #1 on: February 09, 2021, 10:12:39 am »
Could you post your intended schematic please.
 

Offline LFNfanTopic starter

  • Newbie
  • Posts: 6
  • Country: gb
Re: 4026 stuck at zero!
« Reply #2 on: February 09, 2021, 10:56:53 am »
Sure. Sorry it's pretty rough and ready. Hopefully useful though
 

Offline LFNfanTopic starter

  • Newbie
  • Posts: 6
  • Country: gb
Re: 4026 stuck at zero!
« Reply #3 on: February 09, 2021, 10:57:39 am »
... and the 555
 

Offline retiredfeline

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: au
Re: 4026 stuck at zero!
« Reply #4 on: February 09, 2021, 11:11:46 am »
0 - 2.5V swing may be marginal for the 4026.
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 4026 stuck at zero!
« Reply #5 on: February 09, 2021, 11:25:17 am »
0 - 2.5V swing may be marginal for the 4026.

It is (ideally ≥ 3.5V on 5V supplies). But I don't think that's the problem.

My guess is that it is something to do with the way the 4026 is wired, and seeing the (albeit coffee stained) schematic shows it's not just a mistake in transcribing schematic to the breadboard.

Hint (hope that I'm right): What happens to unused CMOS inputs?
« Last Edit: February 09, 2021, 11:51:24 am by grumpydoc »
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1417
  • Country: us
  • Very dangerous - may attack at any time
Re: 4026 stuck at zero!
« Reply #6 on: February 09, 2021, 12:14:48 pm »
Pin 15 (reset) must be grounded for the counter to run.
 
The following users thanked this post: edavid

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9508
  • Country: gb
Re: 4026 stuck at zero!
« Reply #7 on: February 09, 2021, 12:15:18 pm »
Sorry it's pretty rough and ready. Hopefully useful though

Colourful though.  ;D

Edit: Yes, I think it's sitting in reset due to Pin 15 floating. It's right next to VCC so would probably float high from leakage.
« Last Edit: February 09, 2021, 12:23:32 pm by Gyro »
Best Regards, Chris
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 4026 stuck at zero!
« Reply #8 on: February 09, 2021, 12:25:28 pm »
Pin 15 (reset) must be grounded for the counter to run.


Yeah, I was hoping we could get LFNfan there with some hints.

Unused CMOS inputs tend to unreliably float high, in this case I think it took the stray voltages a few seconds to charge the gate capacitance up enough to make it register as a logic '1', hence counting for a few seconds before stopping.

LFNfan - make sure unused high impedance inputs are tied to a supply rail (through a resistor of a couple of k if you want) - not doing so can lead to odd problems such as this one. As oPossum says pin 15 needs to be logic '0' for the counter to work..
« Last Edit: February 09, 2021, 12:26:59 pm by grumpydoc »
 
The following users thanked this post: Gyro

Offline LFNfanTopic starter

  • Newbie
  • Posts: 6
  • Country: gb
Re: 4026 stuck at zero!
« Reply #9 on: February 09, 2021, 01:08:53 pm »
Hi All
You did get me there with the hint :) Thank you very much!

I have been reading datasheets and fixing and just come back to post and seen the last few posts.

Very interesting.

Tying down all the pins got me there. Learned something new there :)

Also the voltage was an issue too - 2.2 at the clock with the led in - no advancing. 3.5 with no led and advances happily.

How could I get the led in the circuit? Maybe a transistor with base to pin 3 of the 555?

Many thanks again!!
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19533
  • Country: gb
  • 0999
Re: 4026 stuck at zero!
« Reply #10 on: February 09, 2021, 01:25:48 pm »
Try connecting the LED and current limiting resistor between the output and +V.
 

Offline LFNfanTopic starter

  • Newbie
  • Posts: 6
  • Country: gb
Re: 4026 stuck at zero!
« Reply #11 on: February 09, 2021, 03:27:35 pm »
Perfect.

Many thanks to you all!
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12864
Re: 4026 stuck at zero!
« Reply #12 on: February 09, 2021, 04:11:43 pm »
The problem with 'classic' bipolar 555 timers like the NE555 is the output cant get more positive than about 1 1/2V below the supply rail.  If you are working with 4000 series CMOS logic at under about 7V, or any lower voltage CMOS logic that doesn't have TTL input threshold voltages,  that really isn't good enough.  Either use a CMOS '555', which will have a rail to rail output or mod the bipolar 555 circuit for more output swing.

There's an alternative 555 oscillator circuit that feeds a single timing resistor from the Output, and optionally you can take the actual output from the Discharge pin.  As the discharge pin is open collector, you need a pullup resistor, but you get an output swing from within a few hundred millivolts of ground, all the way up to the supply rail if the load on it doesn't sink significant current through the pullup resistor.  To get there from your circuit, connect the top end of R2 to pin 3 instead of pin 7, and connect pin 7 to the chip you want to clock.  As 4000 series CMOS draws negligible input current you can also make R1 (which is now the pullup) 10K and save some power.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19533
  • Country: gb
  • 0999
Re: 4026 stuck at zero!
« Reply #13 on: February 09, 2021, 06:32:45 pm »
Connecting the LED from pin 3 to +V, rather than 0V, as I said before, will help the output swing to near +V into a CMOS input, but it will invert the LED output.

The output pin charging/discharging the capacitor doesn't work quite so well with the bipolar 555 timer and is marginal, with the LED connected between the output and 0V.

Good point about pin 7: R1 = 1k and R2 = 10k, so the 4026 input could be connected to pin 7, with no other modifications to the circuit. When pin 7 is low, it will be close to 0V and when pin 7 is open, and the voltage across the capacitor is 13Vcc, it will be:

Vhigh = Vcc-R1*(Vcc*23)/(R1+R2) = 5-1*(5*0.6667)/(1+10) = 5-3.333*11 = 4.7V

Which is well within the CMOS voltage thresholds.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12864
Re: 4026 stuck at zero!
« Reply #14 on: February 09, 2021, 08:31:55 pm »
Yes.  In the alternative oscillator circuit, moving the LED to the high side is pretty much essential, (and preferably move it to Discharge as well) otherwise the 555 output may not make it past 2/3 Vcc which will stop it oscillating and leave it stuck high.   A 1K pullup on the output will help if its marginal.

The alternative circuit works much better at significantly higher supply voltages (where the Voh drop becomes small compared to Vcc/3) or with a CMOS 555 which will give you a rather good* 50% duty cycle squarewave.

* Duty cycle tolerance dependent on internal trigger and threshold divider tolerances, so not as good as the nearly perfect 50% you can get by dividing to f/2 using a toggle flipflop.
« Last Edit: February 10, 2021, 12:20:18 am by Ian.M »
 

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 7012
  • Country: ca
Re: 4026 stuck at zero!
« Reply #15 on: February 09, 2021, 09:15:34 pm »
I just noticed the CD4026 has "ungated c-segment output" pin 14 for div/60 and div/12 for timekeeping. Neat if you want to make clocks.
 

Offline LFNfanTopic starter

  • Newbie
  • Posts: 6
  • Country: gb
Re: 4026 stuck at zero!
« Reply #16 on: February 15, 2021, 05:39:34 pm »
Hi
Thanks very much for your really full responses. I feel like I am learning a lot.

I have modded the 555 circuit as suggested by Ian.M and it works but weirdly I seem to get a narrower voltage at the 4026 clock pin. And my led flashes after the 7-segment has changed not when it changes. Undoubtedly I have made a mistake(s) somewhere.  Clues appreciated!!

I have redrawn my schematic without coffee stains, reflecting the new setup and that both setups have been using a LM555 chip (newer than the NE555).

Many thanks for your patience!
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19533
  • Country: gb
  • 0999
Re: 4026 stuck at zero!
« Reply #17 on: February 15, 2021, 06:49:47 pm »
Hi
Thanks very much for your really full responses. I feel like I am learning a lot.

I have modded the 555 circuit as suggested by Ian.M and it works but weirdly I seem to get a narrower voltage at the 4026 clock pin. And my led flashes after the 7-segment has changed not when it changes. Undoubtedly I have made a mistake(s) somewhere.  Clues appreciated!!

I have redrawn my schematic without coffee stains, reflecting the new setup and that both setups have been using a LM555 chip (newer than the NE555).

Many thanks for your patience!
Transpose the 10k and 1k on pins 7, 6 & 8.

You forgot to draw the LED: where is it connected now? Try changing LED part back to how it was in the original schematic: pin 3, resistor, LED, 0V. Now the counter is taking its clock from pin 7, rather than, the same pin as the LED is connected, it should work.
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 4026 stuck at zero!
« Reply #18 on: February 16, 2021, 07:51:32 am »
...And my led flashes after the 7-segment has changed not when it changes.
If you followed Zero999's suggestions then the LED will flash when the output is low not high - in fact he pointed out that it would invert the LED output.

Quote
I have redrawn my schematic without coffee stains
Thata could be the problem - hand drawn schematics only work with coffee stains!! :) :)
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19533
  • Country: gb
  • 0999
Re: 4026 stuck at zero!
« Reply #19 on: February 16, 2021, 08:46:30 am »
I think there's some confusion between different circuits. If you want to take the clock from pin 3, then the LED has to go from pin 3 to +V, which will invert the operation of the LED.

If the clock is taken from pin 7, RA needs to be low, compared to RB and it doesn't matter whether the LED is connected between pin 3 and 0V or +V. This circuit will do what you want. I added the decoupling capacitor.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf