Author Topic: 74HC14 Circuit Not Working  (Read 27413 times)

0 Members and 2 Guests are viewing this topic.

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
74HC14 Circuit Not Working
« on: May 25, 2017, 05:18:23 am »
The circuit in the attached picture is not working correctly. I get how it is supposed to work, but I don't get a square wave output. When I adjust the pot I just change the voltage. I checked it with a scope.
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #1 on: May 25, 2017, 05:29:26 am »
The input is just a variable voltage? Why are you expecting an adjustable PWM?


EDIT: I think I get it - the cap is going above and below the schmidt threshold. Did you put this on a breadboard? Screen shots?
« Last Edit: May 25, 2017, 05:32:15 am by rx8pilot »
Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #2 on: May 25, 2017, 05:33:47 am »
I was looking for an easy adjustable PWM and I found this on the Internet, so I was trying to use it. According to the picture it should put out a PWM signal.
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #3 on: May 25, 2017, 05:36:00 am »
What did you probe with your scope? Pin 4? The 74AC14 will not output a variable voltage.
Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #4 on: May 25, 2017, 05:43:25 am »
Yes, pin 4. I have no idea what is going on here to be honest. If it is working, then it's a very small range somewhere around 45%-55%.
« Last Edit: May 25, 2017, 05:46:11 am by RyanG »
 

Online Brumby

  • Supporter
  • ****
  • Posts: 12288
  • Country: au
Re: 74HC14 Circuit Not Working
« Reply #5 on: May 25, 2017, 05:49:32 am »
Those outputs should be either GND, Vcc or switching between the two.

Is there anything else connected to pin 4 other than the scope?

 

Offline edpalmer42

  • Super Contributor
  • ***
  • Posts: 2260
  • Country: ca
Re: 74HC14 Circuit Not Working
« Reply #6 on: May 25, 2017, 05:58:51 am »
What do you see if you probe the top of the capacitor?  What changes if you adjust the pot?

Ed
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #7 on: May 25, 2017, 06:00:12 am »
The only thing connected to pin 4 is the scope, and I know that the pins are either "on" or "off." But, I don't get why I get such a small range of values. Without the scope connected, I used a LED and the brightness barely changes when I adjust the pot.
« Last Edit: May 25, 2017, 06:38:09 am by RyanG »
 

Online Brumby

  • Supporter
  • ****
  • Posts: 12288
  • Country: au
Re: 74HC14 Circuit Not Working
« Reply #8 on: May 25, 2017, 06:41:41 am »
I'm thinking it might be time for some photos.

Can you take a photo of your setup?  It should be close-up, well lit and in sharp focus for us to see exactly what's where.  Show it with the scope probe attached, so we know where everything is.

Also, images of what is on the scope's screen - one for the pot at minimum, middle and maximum positions, if possible.


Two other questions -
 - What are you using for a power source?
and
 - Where is the scope's ground clip placed?
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #9 on: May 25, 2017, 07:27:44 am »
Check your wiring.

Check that all unused inputs to the 74HC14 are grounded or tied to Vcc

Post photos
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #10 on: May 25, 2017, 07:54:33 am »
I have checked the wiring several times. All of my unused inputs are tied to GND. Power source is 5v 7A. The ground clip of the scope is on the - rail of my breadboard. The difference between the maximum and minimum of the voltage reading on the scope from pot minimum to maximum is ~0.05v, and it is the only thing that I can see change. I can do pictures if absolutely necessary, but I don't have the good breadboard wires at the moment. I just have longer jumper wires, so it is messy looking.
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #11 on: May 25, 2017, 08:07:31 am »
Post photos - messy or not. It is not a beauty contest.

What happens when you probe Vcc? Does your scope show 5v?
Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #12 on: May 25, 2017, 08:21:37 am »
Yes, the scope shows 5v. Picture of breadboard and schematic attached. When I attach the scope it replaces the series resistor and LED. I removed the wires for the other inputs so you can see the rest of the circuit on both the breadboard and the schematic. The diodes are not touching, it is just the angle of the picture. I also tried another 74HC14 just in case the one I was using was bad. Every other component was also tested.
« Last Edit: May 25, 2017, 08:23:33 am by RyanG »
 

Online Brumby

  • Supporter
  • ****
  • Posts: 12288
  • Country: au
Re: 74HC14 Circuit Not Working
« Reply #13 on: May 25, 2017, 08:26:49 am »
Well, for starters, I don't see pin 7 connected to 0V.
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #14 on: May 25, 2017, 08:29:59 am »
I have checked the wiring several times. All of my unused inputs are tied to GND. Power source is 5v 7A. The ground clip of the scope is on the - rail of my breadboard. The difference between the maximum and minimum of the voltage reading on the scope from pot minimum to maximum is ~0.05v, and it is the only thing that I can see change. I can do pictures if absolutely necessary, but I don't have the good breadboard wires at the moment. I just have longer jumper wires, so it is messy looking.

OK, make sure your Schmitt trigger is working

Ditch the caps and diodes, connect one end of the 10k pot to Vcc, the other to ground and connect the wiper to pins 1 & 3.

Start with the input voltage at 0V, verify that the output of both gates is close to 5V. Gradually raise the input voltage and check that, at some point, the output flips to 0V (that point should be about 3.5V with a 5V supply). It will be worth noting the input voltage at the trigger point - it won't be the same for each gate but will be close. If you want you can verify that as you reduce the input voltage from the first trigger point you need to reach a lower threshold (about 1V) before the output flips high again.

 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #15 on: May 25, 2017, 08:31:19 am »
Well, for starters, I don't see pin 7 connected to 0V.
+1
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #16 on: May 25, 2017, 08:35:15 am »
Put a bypass cap on Vcc, 1uf or so. It should be right at the Vcc pin.

What signal do you see on the inputs?

Sent from my horrible mobile....

Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #17 on: May 25, 2017, 08:37:00 am »
Yeah.... pin 7 is rather critical.

Sent from my horrible mobile....

Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2153
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #18 on: May 25, 2017, 02:14:37 pm »
the schematic shows a 74AC series, not a HC series - the outputs are different.
besides, using a cap/resister tap circuit often used to generate a reset pulse to create a self-oscillating stage is very poor design to be extremely polite.

use a 555 like everybody else.
if you need pulse-shaping, use a 555 to drive your HC schmit-triggered inverter.
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #19 on: May 25, 2017, 03:18:26 pm »
The pin 7 wire came out when I pulled the other ground wires for the picture by accident. I'm not that good at this but also not that dumb.  :P
« Last Edit: May 25, 2017, 03:31:32 pm by RyanG »
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19345
  • Country: gb
  • 0999
Re: 74HC14 Circuit Not Working
« Reply #20 on: May 25, 2017, 05:38:05 pm »
the schematic shows a 74AC series, not a HC series - the outputs are different.
besides, using a cap/resister tap circuit often used to generate a reset pulse to create a self-oscillating stage is very poor design to be extremely polite.

use a 555 like everybody else.
if you need pulse-shaping, use a 555 to drive your HC schmit-triggered inverter.
It should work for the 74HC series too.

What's wrong with this design? The only problem I can see is poor frequency stability and accuracy, which is a non-issue for a simple PWM circuit.

I have checked the wiring several times. All of my unused inputs are tied to GND. Power source is 5v 7A. The ground clip of the scope is on the - rail of my breadboard. The difference between the maximum and minimum of the voltage reading on the scope from pot minimum to maximum is ~0.05v, and it is the only thing that I can see change. I can do pictures if absolutely necessary, but I don't have the good breadboard wires at the moment. I just have longer jumper wires, so it is messy looking.

OK, make sure your Schmitt trigger is working

Ditch the caps and diodes, connect one end of the 10k pot to Vcc, the other to ground and connect the wiper to pins 1 & 3.

Start with the input voltage at 0V, verify that the output of both gates is close to 5V. Gradually raise the input voltage and check that, at some point, the output flips to 0V (that point should be about 3.5V with a 5V supply). It will be worth noting the input voltage at the trigger point - it won't be the same for each gate but will be close. If you want you can verify that as you reduce the input voltage from the first trigger point you need to reach a lower threshold (about 1V) before the output flips high again.
Yes, this is good advice. Check the Schmitt trigger circuit is working before doing anything else.
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #21 on: May 25, 2017, 09:18:49 pm »
I'm getting about 3.6v and 1.1v for the Schmitt trigger points
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19345
  • Country: gb
  • 0999
Re: 74HC14 Circuit Not Working
« Reply #22 on: May 25, 2017, 09:51:43 pm »
The next steps are to test the diodes and the potentiometer.
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #23 on: May 25, 2017, 10:18:28 pm »
I'm getting about 3.6v and 1.1v for the Schmitt trigger points
That looks about right

Just to confirm that the circuit should work here is my breadboarded version



Slight differences from your original circuit, I could only quickly put my hands on a 5k pot so I increased the cap to 220nF. The resistor on the LED is 200ohms rather than 220, finally there's a 220nF decoupling cap on the supply (badly placed, BTW as it should be close to the chip but I just stuck it where it was easy). You can also see the logic analyser leads. None of those changes should make much difference to be honest.

The 74HC14 is a pull I had lying around. Provenance unknown but that looks like a 1993 date code!

And changing the duty cycle works as well although one limitation of this circuit does show up which is that the frequency is not independent of duty cycle varying from approx 1.2 to 1.5kHz







« Last Edit: May 25, 2017, 10:39:01 pm by grumpydoc »
 
The following users thanked this post: rx8pilot

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3665
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #24 on: May 25, 2017, 10:50:45 pm »
I also put one together and it worked pretty well other than the frequency stability. I used a 10pf capacitor and a CD74HC14E. The square wave looked fine for a breadboard circuit. At midrange on the adjust pot, frequency was about 6 MHz and varied from around 5 to almost 9 MHz as the duty cycle was adjusted. I didn't see the frequency stability get much better when the cap was changed to get down in the single digit KHz range. This kind square wave generator is not something I ever really looked at. Maybe there are better circuits.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #25 on: May 25, 2017, 11:21:22 pm »
To easily check if your IC is good

Put only a 100K resistor between 1 and 2 and the capacitor on 1 and ground, on this way you have a oscillator, Check output with a scope you must have a square wave.

This circuit simple work, if didn't work you have any misconnection or bad component
 

Offline alsetalokin4017

  • Super Contributor
  • ***
  • Posts: 2055
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #26 on: May 26, 2017, 12:17:04 am »
The circuit using 74AC14 works just fine on my breadboard too. Also tried 74C14 which does not quite give the total duty cycle range as the AC version. I don't have the HC version to try but I'm sure it will also work very much the same.

Bad breadboard, perhaps? Bad jumper leads?

(Let's emphasize the need for all unused inputs to be grounded, and the decoupling 0.1uF cap right at the chip is needed to quell oscillations at minimum duty cycle setting.)
The easiest person to fool is yourself. -- Richard Feynman
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #27 on: May 26, 2017, 01:50:22 am »
I don't know what the problem could be with this thing. I tried 4 different 74hc14 and I tried another breadboard. I checked the diodes, pot, and caps. All are good. I built it on the breadboard the same way as pictured by the other guys. I'm thinking all my 74hc14 are bad, but I used one from the same tube on another project, and that one works fine. There has to be something wrong with them because I am getting a constant ~2.3v on the output pins, which shouldn't happen. I put a 4069 in place of the 74hc14 and I get something more appropriate on the scope, but adjusting the pot makes no difference in the output.
« Last Edit: May 26, 2017, 01:59:46 am by RyanG »
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2153
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #28 on: May 26, 2017, 02:13:28 am »
74AC series is a bit special, it can sink AND source about 30ma

other 74 series generally only sink OR source, the oposing bias is simply done with an internal pullup/down resistor.

 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7661
  • Country: ca
Re: 74HC14 Circuit Not Working
« Reply #29 on: May 26, 2017, 02:42:49 am »
Lemon potentiometer?  :-//
 

Offline alsetalokin4017

  • Super Contributor
  • ***
  • Posts: 2055
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #30 on: May 26, 2017, 02:53:39 am »
I don't know what the problem could be with this thing. I tried 4 different 74hc14 and I tried another breadboard. I checked the diodes, pot, and caps. All are good. I built it on the breadboard the same way as pictured by the other guys. I'm thinking all my 74hc14 are bad, but I used one from the same tube on another project, and that one works fine. There has to be something wrong with them because I am getting a constant ~2.3v on the output pins, which shouldn't happen. I put a 4069 in place of the 74hc14 and I get something more appropriate on the scope, but adjusting the pot makes no difference in the output.
Have you grounded all the unused inputs of the chip? Because in your photo they aren't. Leaving them floating can cause the chip to oscillate. The 0.1 uF decoupling cap needs to be as close as possible to the pins 14 and 7, with short leads, as in my breadboard photo. Oscillations can make the chip appear to be not working, although you should be able to see the oscillations on the scope.

Also there is  no need to disconnect the LED + resistor when scoping the circuit. Simply connect the scope probe to the Pin 4 output and the probe reference clip to the common negative rail (ground), in parallel with the LED and resistor.
The easiest person to fool is yourself. -- Richard Feynman
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #31 on: May 26, 2017, 02:58:57 am »
I removed the extra wires to ground just for the picture so the rest of the circuit could be easily seen. I have used the scope both with and without the LED and resistor. It made no difference. I tried 3 or 4 pots. I really don't think the 74AC vs 74HC matters here because I am not getting the outputs I should be with or without a load, so even when I am not sinking or sourcing anything the IC doesn't work correctly.
 

Offline alsetalokin4017

  • Super Contributor
  • ***
  • Posts: 2055
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #32 on: May 26, 2017, 03:11:01 am »
Have you tried ebclr's test above? Making a simple, single gate oscillator using only a resistor and capacitor? Then testing the other gates in the same way...

There is something wrong somewhere, that's for sure, and I doubt if it is your whole tube of chips, but try testing the individual gates this way anyhow.

Do you have a function generator? You could even test the gates by putting a pulse train input from your FG into the input and scoping the output to see if it is properly inverting. But when you tested the Schmitt trigger threshold values that should have taken care of that. SO I'm stumped. Gremlins?
The easiest person to fool is yourself. -- Richard Feynman
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #33 on: May 26, 2017, 04:21:46 am »
I tested one of my 74HC14 with the single gate oscillator and it would work as long as I unplugged the power supply in between testing each gate. I don't know if that is normal but it is what I had to do.
 

Online Brumby

  • Supporter
  • ****
  • Posts: 12288
  • Country: au
Re: 74HC14 Circuit Not Working
« Reply #34 on: May 26, 2017, 06:02:41 am »
Starting to wonder if there might be something happening with the breadboard.

I'd like to suggest something....

 - Remove all your components
 - Pick another area on the breadboard (or another breadboard, if you have one.)
 - Mount the 74HC14, fit the power supply and ground wires
 - add components and interconnects one by one

See if that makes any difference.
 

Offline edpalmer42

  • Super Contributor
  • ***
  • Posts: 2260
  • Country: ca
Re: 74HC14 Circuit Not Working
« Reply #35 on: May 26, 2017, 06:20:58 am »
Don't test your chips with an oscillator circuit.  Test them with just the pot by connecting the pot between +5 and gnd.  Connect the wiper to one of the inputs.  Adjust the pot from one end to the other.  Monitor the output and as soon as it changes state, measure the input voltage.  Adjust the pot both ways, from +5 to gnd and from gnd to +5.  Compare the results to the datasheet.  For example, Fig. 8 in this datasheet:

http://assets.nexperia.com/documents/data-sheet/74HC_HCT14.pdf

(just chosen at random)

Ed
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #36 on: May 26, 2017, 07:22:06 am »
Don't test your chips with an oscillator circuit.  Test them with just the pot by connecting the pot between +5 and gnd.  Connect the wiper to one of the inputs.  Adjust the pot from one end to the other.  Monitor the output and as soon as it changes state, measure the input voltage.  Adjust the pot both ways, from +5 to gnd and from gnd to +5.  Compare the results to the datasheet. 
+1 but I already suggested that and, apparently, the Schmitt thresholds are at 3.6 and 1.1V which is in line with typical values.

74AC series is a bit special, it can sink AND source about 30ma

other 74 series generally only sink OR source, the oposing bias is simply done with an internal pullup/down resistor.
74AC does appear to be able to drive higher currents but are you sure other 74 series can't both source and sink current - pulling a few 74HC14 datasheets at random suggests  ± 20mA is typical.

It is of some relevance though because the output needs to be able to sink the capacitor discharge current as well as source the charge current - which brings up another weakness in this design. At either end of the potentiometer range the cap is effectively connected directly to the output, so the current spikes might be quite large. Probably not much of an issue in practice but it might be better to stick a couple of fixed resistors between the ends of the pot and the diodes.

However this is a "I need a quick PWM on a breadboard" circuit, not something which is "production ready" - I wouldn't get too hung up about the details.

We've had two working with 74HC (mine and rdl's) and one with 74AC (alsetalokin4017's) and with 74C (also alsetalokin4017). RyanG tried with HC but I think we can stop telling him it won't work without a 74AC14.

At this point I think trying a different breadboard would be useful.
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #37 on: May 26, 2017, 07:29:40 am »
I think there is something wrong with these ICs. If I put any resitive load on the output pins the square wave disappears. It turns into a flat ~2.3v. I put the gate of a 2n7000 on the output and it works fine, but only if I have 5v on the drain of the 2n7000. If I pull the 5v from the 2n7000 it goes to the flat 2.3v and I have to reset the power to the 74hc14 if I want the square wave to return. I've tried this on 2 breadboards and in different places on each of them, and it is on an input I already tested with the pot test.

This datasheet says that it can sink or source 4ma @ 4.5v on the first page.
https://www.diodes.com/assets/Datasheets/74HC14.pdf
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #38 on: May 26, 2017, 07:49:15 am »
I think there is something wrong with these ICs.
Probably best to grab some more from somewhere, I'd avoid ebay if possible.
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1714
  • Country: se
Re: 74HC14 Circuit Not Working
« Reply #39 on: May 26, 2017, 09:16:06 am »
We've had two working with 74HC (mine and rdl's) and one with 74AC (alsetalokin4017's) and with 74C (also alsetalokin4017). RyanG tried with HC but I think we can stop telling him it won't work without a 74AC14.
Just to add a datapoint, no problems whatsoever with an AC (scope captures on request), and I also tried an ACT.
As the thresholds in ACT are asymmetrical (TTL compatible input), the frequency is much more dependent on the duty cycle setting, but that's all.
Nandemo wa shiranai wa yo, shitteru koto dake.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3233
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #40 on: May 26, 2017, 09:24:55 am »
Have you added a decoupling cap across the IC as suggested previously?  Having the supply impedance too high makes logic devices do strange things.
 

Offline ludzinc

  • Supporter
  • ****
  • Posts: 506
  • Country: au
    • My Misadventures In Engineering
Re: 74HC14 Circuit Not Working
« Reply #41 on: May 26, 2017, 10:59:03 am »
Yes, the scope shows 5v. Picture of breadboard and schematic attached. When I attach the scope it replaces the series resistor and LED. I removed the wires for the other inputs so you can see the rest of the circuit on both the breadboard and the schematic. The diodes are not touching, it is just the angle of the picture. I also tried another 74HC14 just in case the one I was using was bad. Every other component was also tested.

How thick are the pins on the pot?  Not pot I've had would fit easily into the breadboard.

If you've had to force it in, you've introduced an intermittent connection....

I learnt that the hard way many moons ago with a thick diode lead.

What are you using for a power supply?  Is it collapsing under load? 

As for checking your chips - daisy chain outputs to inputs, set the first input high (or low) and check you have expected highs and lows on required gates.

I've built this circuit with 74AC14 (I recognize that pic from http://www.robotroom.com/PWM.html) to build a RGB colour mixer for the kids and it works a treat.

 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #42 on: May 26, 2017, 12:20:27 pm »
The potentiometer works fine in the same spot as a voltage divider, so I think that is okay. Using a 5v 7A power supply running the 74hc14 and a 5mm LED. I've run larger things off the same supply so that should be fine. The chip works absolutely fine until I connect the output of one gate to the input of another or if I add a load. I have also added the cap across the IC as previously suggested.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #43 on: May 26, 2017, 08:00:11 pm »
Do you have a scope to check the frequency that the single oscillator is running ?
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7661
  • Country: ca
Re: 74HC14 Circuit Not Working
« Reply #44 on: May 26, 2017, 08:19:33 pm »
The potentiometer works fine in the same spot as a voltage divider, so I think that is okay.

This means nothing.  You can have a 1 meg impedance at the center of the pot which would work fine as a voltage divider, as would a 1k pot, a 10k pot, and a 100k pot.  The circuit demands a 10k pot for a degree of drive onto the timing cap.

As for the power supply. have you measured it to be 5v.  With so many amps, especially if it's a switching supply, without a minimum load, it may be overshooting 5v and this would seize up the 74HC14 at somewhere above 6v.

Try powering the circuit with 2x AA batteries (3v) or 3x AA batteries (4.5v).
« Last Edit: May 26, 2017, 08:26:14 pm by BrianHG »
 

Offline bson

  • Supporter
  • ****
  • Posts: 2265
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #45 on: May 26, 2017, 08:32:05 pm »
The hysteresis on a '14 is not a well-controlled property, and it needs to oscillate at least this range plus two diode drops.  If the inverter input hysteresis is too close to Vdd or Vss (within one diode drop) it won't be able to oscillate.
 

Offline edavid

  • Super Contributor
  • ***
  • Posts: 3381
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #46 on: May 26, 2017, 09:04:46 pm »
74AC series is a bit special, it can sink AND source about 30ma

other 74 series generally only sink OR source, the oposing bias is simply done with an internal pullup/down resistor.

Just in case anyone is confused, the above is not correct.  There is no 74xx series which does not have push-pull outputs.

There are a few parts that are open collector/open drain (e.g. 74xx05), and even fewer parts with built in output pullup resistors (7448, 74248).  But, they are exceptions.

There are no parts with pulldown resistors.
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #47 on: May 26, 2017, 09:55:31 pm »
I've tried several pots and my power supply is 5v for sure. I've run one LED off of it before with no problems. I am not going to be able to test anything for the next few days because I'm away from my stuff, but I will try anything suggested when I get back.
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #48 on: May 26, 2017, 11:01:47 pm »

As for the power supply. have you measured it to be 5v.  With so many amps, especially if it's a switching supply, without a minimum load, it may be overshooting 5v and this would seize up the 74HC14 at somewhere above 6v.

Try powering the circuit with 2x AA batteries (3v) or 3x AA batteries (4.5v).

That is a good point, the supply may be pulse skipping or something with only a few mA of load. It would potentially make a mess of the voltage until a reasonable load is applied.
Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #49 on: May 27, 2017, 03:45:16 am »
I'll try powering it off of my Arduino when I get back. I know that I could just use the Arduino for pwm or a 555, but I'd like to learn other ways of doing things than the most common.
« Last Edit: May 27, 2017, 03:48:39 am by RyanG »
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #50 on: May 27, 2017, 04:45:05 am »
In this project, the most valuable learning opportunity is troubleshooting skill. There is a small problem hidden somewhere. Over time, you build intuition that guides your decisions and the little gotchas are easier to see.

Sent from my horrible mobile....

Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #51 on: May 29, 2017, 07:55:53 pm »
I'm back. I tried powering the whole thing with my arduino and it does the same. The output even changes from square wave to the flat ~2.4v if I just touch the output wire going to the scope.
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #52 on: May 29, 2017, 08:10:49 pm »
Do another shot of the breadboard so we can see the changes you have made. Attach your power directly to the Vcc strip, make sure your decoupling cap is right next to the Vcc pin. Get rid of the power rails on the side. Attach your gnd directly to pin 7 and pull your other gnd connections from that strip. Not likely the smoking gun, but having antennas on your project will not help.

Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #53 on: May 29, 2017, 08:10:54 pm »
Basic troubleshot

Connect only the ic and power nothing else

1) Measure with a multimeter voltage between pin 7 and 14

2) Connect pin's 1, 3 , 5 ,9 ,11 and 13 to ground and measure voltage on pin 2,4,6,8,10 ,12 ,Voltage in all must be +Vcc

3) Connect pin's 1, 3 , 5 ,9 ,11 and 13 to Vcc and measure voltage on pin 2,4,6,8,10 ,12 ,Voltage in all must be 0

4) disconnect all pins except the power supply, and connect a 100K resistor between pin 1 and 2. With a scope check if you have a very high-frequency signal on pin 2 ( you made an oscilator with the resistor and spurious capacitance.

5) Maintain the resistor and add a capacitor from Pin1 to ground, now the frequency must be smaller.

After you reply on this I will give you extra instructions
« Last Edit: May 29, 2017, 08:13:48 pm by ebclr »
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #54 on: May 29, 2017, 08:12:02 pm »
Basic troubleshot

Connect only the ic and power nothing else

1) Measure with a multimeter voltage between pin 7 and 14

2) Connect pin's 1, 3 , 5 ,9 ,11 and 13 to ground and measure voltage on pin 2,4,6,8,10 ,12 ,Voltage in all must be +Vcc

3) Connect pin's 1, 3 , 5 ,9 ,11 and 13 to Vcc and measure voltage on pin 2,4,6,8,10 ,12 ,Voltage in all must be 0

4) disconnect all pins except the power supply, and connect a 100K resistor between pin 1 and 2. With a scope check if you have a very high-frequency signal on pin 2 ( you made an osiclator with the resistor and spurious capacitance.

5) Maintain the resistor and add a capacitor from Pin1 to ground, now the frequency must be smaller.

After you reply on this I will give you extra instructions


That ^
Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline grumpydoc

  • Super Contributor
  • ***
  • Posts: 2905
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #55 on: May 29, 2017, 08:16:42 pm »
Did you get some known good HC14's?
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #56 on: May 29, 2017, 08:21:15 pm »
Did you get some known good HC14's?

With @ebclr shake down guide - we are about to find out. At this point, I would also start asking about scope setup and probing too. OP - how much scope knowledge do you have?
Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: 74HC14 Circuit Not Working
« Reply #57 on: May 29, 2017, 08:23:38 pm »
Using my breadbroaded 74AC14, I could sort of reproduce the 14's output stuck at 2.3V by turning the 10k pot to a very low value, and then turning it back up quite a bit leaving the 74AC14's ouput just stuck at 2.3/2.4V.

But, while looking at the 14's input and output stuck at 2.4V the scope's trigger counter flicking between 188MHz and 260MHz gave me a clue that something else was happening! Difficult to see on a 100MHz scope, but the 74AC14 starts oscillating at around 250MHz and it sticks at that frequency until I turn the pot right down into the 100kHz range. Not surprisingly it's something to do with the length of wires to the pot and timing cap.

I don't know what frequency the OP's HC version would HF self-oscillate at, but I'd bet that it was!
« Last Edit: May 29, 2017, 08:26:38 pm by StillTrying »
.  That took much longer than I thought it would.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19345
  • Country: gb
  • 0999
Re: 74HC14 Circuit Not Working
« Reply #58 on: May 29, 2017, 08:55:22 pm »
Using my breadbroaded 74AC14, I could sort of reproduce the 14's output stuck at 2.3V by turning the 10k pot to a very low value, and then turning it back up quite a bit leaving the 74AC14's ouput just stuck at 2.3/2.4V.

But, while looking at the 14's input and output stuck at 2.4V the scope's trigger counter flicking between 188MHz and 260MHz gave me a clue that something else was happening! Difficult to see on a 100MHz scope, but the 74AC14 starts oscillating at around 250MHz and it sticks at that frequency until I turn the pot right down into the 100kHz range. Not surprisingly it's something to do with the length of wires to the pot and timing cap.

I don't know what frequency the OP's HC version would HF self-oscillate at, but I'd bet that it was!
It will also oscillate if the capacitor is removed and the input is connected to the output. The frequency will be in the VHF to UHF range and extremely unpredictable. Connecting your 'scope probe will reduce the frequency, by introducing more capacitance into the circuit.
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #59 on: May 29, 2017, 09:16:18 pm »
I did all of the things ebclr said.

1. The voltage was 5v
2. Voltage on all pins was 5v
3. Voltage on all pins was 0v
4. Didn't see anything on the scope except for the flat line at ~2.4v
5. Saw something on the scope for a few seconds then it flat lines at ~2.4v

My first gate wouldn't work at all for the oscillator part, I had to use the 2nd gate
« Last Edit: May 29, 2017, 09:18:25 pm by RyanG »
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #60 on: May 29, 2017, 10:25:10 pm »
What is the model and brand of your scope ?

Do your scope have a 1 Khz test signal? try to put the probe there and check the scope / probe
« Last Edit: May 29, 2017, 10:27:05 pm by ebclr »
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #61 on: May 29, 2017, 10:26:40 pm »
Can you please post a picture of your probe, specially the X1 GND X10 switch on probe please
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #62 on: May 29, 2017, 11:24:18 pm »
I don't think the scope matters because the circuit doesn't work correctly with a LED in it. I don't have a good scope. I currently have a stupid, worthless DSO138. I realize that the higher frequency oscillation with just the resistor isn't seen probably because of that. I have tried different values on the resistor and cap to change the frequency and no matter what I get to show up it disappears after a few seconds and then just puts out ~2.4v. That is with or without the decoupling cap. Some gates work better than others. I don't really get it. I know a better scope would help but at the moment I don't have one and don't have access to one. I get ~100Hz with the 100k resistor and 0.1uf cap. I get 1KHz with a 10k in place of the 100k. But, either way it goes to the ~2.4v after a few seconds.
« Last Edit: May 29, 2017, 11:29:10 pm by RyanG »
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #63 on: May 29, 2017, 11:39:46 pm »
I don't think the scope matters because the circuit doesn't work correctly with a LED in it.

I promise.....it matters.
Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: 74HC14 Circuit Not Working
« Reply #64 on: May 30, 2017, 12:21:02 am »
The solution on my 74AC14 and 470pF version was to connect the timing cap. directly between the gate's input and GND pin7 of the IC, - do not go down to the breadboard's GND.

The 10k pot gives me 190kHz to ~26MHz with no sign of it shooting off to 245MHz. The 74AC14's hysteresis levels of 1.7V and 2.8V @ 5V, give quite a symmetrical square wave, plus quite a bit of ringing!
.  That took much longer than I thought it would.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #65 on: May 30, 2017, 12:23:26 am »
Since you don't have a scope, you need to slow down to visible frequency, Do you have a 10uF electrolyte capacitor?

« Last Edit: May 30, 2017, 12:26:34 am by ebclr »
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #66 on: May 30, 2017, 12:32:44 am »
Yes I do have 10uf caps
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2153
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #67 on: May 30, 2017, 12:34:40 am »
use one inplace of the ceramic
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #68 on: May 30, 2017, 12:35:58 am »
The DSO138 is the cheapest of the cheap scope kits, but not entirely useless. You just need to be acutely aware that it's only a 200KHz scope. It does have a 1 KHz test point.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #69 on: May 30, 2017, 12:54:41 am »
Use the 10Mf as your timing capacitor, on this way the Led will blink , and your eyes will be your scope

« Last Edit: May 30, 2017, 12:56:16 am by ebclr »
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #70 on: May 30, 2017, 01:19:59 am »
It does the same thing. It runs for a few seconds and then flattens out at ~2.4v
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #71 on: May 30, 2017, 01:41:05 am »
What are you using to measure?

Don't use your scope, The scope can be the real problem

Did the Led blink ?

Did you put a 330R is series with the Led ?

Do you have Skype and camera?
« Last Edit: May 30, 2017, 01:46:36 am by ebclr »
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #72 on: May 30, 2017, 02:42:24 am »
It is currently working fine.

All unused inputs grounded, with decoupling cap and with 10uf cap.

As soon as I clip the scope on the circuit fails.
« Last Edit: May 30, 2017, 02:49:24 am by RyanG »
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #73 on: May 30, 2017, 04:00:42 am »
Now you know..... it matters. :-)

Sent from my horrible mobile....

Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #74 on: May 30, 2017, 05:46:04 am »
I tried putting the circuit back together the way the picture from my original post and it still doesn't work correctly. That is the point I was trying to make. I get how the crappy scope could screw with the one gate oscillator circuit and therefore the original circuit, but the scope isn't what makes the original circuit not work.
 

Offline ludzinc

  • Supporter
  • ****
  • Posts: 506
  • Country: au
    • My Misadventures In Engineering
Re: 74HC14 Circuit Not Working
« Reply #75 on: May 30, 2017, 05:58:17 am »
Can you provide a pic of your layout?

This time don't unplug anything - show us the exact layout you are trying now.
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3634
  • Country: us
  • If you want more money, be more valuable.
Re: 74HC14 Circuit Not Working
« Reply #76 on: May 30, 2017, 07:01:06 am »
I doubt the scope is to blame, it just needs to be used correctly. All details as are important which is why more than one person has requested very specific information. You seem to be worried you will be judged on the equipment you have and that is blocking the help you are seeking.

You should be able to make this work with no test equipment at all - a low end scope is a nice bonus.



Sent from my horrible mobile....

Factory400 - the worlds smallest factory. https://www.youtube.com/c/Factory400
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19345
  • Country: gb
  • 0999
Re: 74HC14 Circuit Not Working
« Reply #77 on: May 30, 2017, 09:46:19 am »
There could also be a problem with the 'scope or probe. Try measuring the resistance of the probe with a multimeter. It should be 1M on the x1 setting and 10M on the x10 setting.
 

Offline andybarrett1

  • Regular Contributor
  • *
  • Posts: 133
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #78 on: May 30, 2017, 10:03:06 am »
I doubt the scope is to blame, it just needs to be used correctly. All details as are important which is why more than one person has requested very specific information. You seem to be worried you will be judged on the equipment you have and that is blocking the help you are seeking.

You should be able to make this work with no test equipment at all - a low end scope is a nice bonus.



+1
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #79 on: May 30, 2017, 06:09:29 pm »
I believe the DSO138 does only 1X mode, and it is built into the board. The probe that it comes with has 0 ohms across it. I tore everything off the breadboard again today and rebuilt the whole circuit for about the 10th time, and it works.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19345
  • Country: gb
  • 0999
Re: 74HC14 Circuit Not Working
« Reply #80 on: May 30, 2017, 07:50:32 pm »
I believe the DSO138 does only 1X mode, and it is built into the board. The probe that it comes with has 0 ohms across it.
Then the probe or 'scope input is broken. 0 Ohms would cause a short circuit and it would behave exactly as you've described.

Quote
I tore everything off the breadboard again today and rebuilt the whole circuit for about the 10th time, and it works.
So is it working with the probe connected now? If it is, then it seems like 'scope or probe has an intermittent short circuit. Try flexing the probe's cable and checking the resistance at the same time. Another possibility is something metallic short circuited the input on the 'scope's PCB.
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #81 on: May 30, 2017, 08:10:27 pm »
It was working while controlling a LED. The scope has 1Mohm built into the board with no switch on the probe. I did not check the circuit with the scope.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19345
  • Country: gb
  • 0999
Re: 74HC14 Circuit Not Working
« Reply #82 on: May 30, 2017, 08:15:44 pm »
It was working while controlling a LED. The scope has 1Mohm built into the board with no switch on the probe. I did not check the circuit with the scope.
Well if what you said in the other post above "The probe that it comes with has 0 ohms across it." then you have a problem with the 'scope/probe. I was going to suggest you use another channel but I Googled the DSO138 and it only has one channel so you're SOL.
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #83 on: May 30, 2017, 11:31:03 pm »
The "probe" that comes with the DSO138 is literally a short BNC cable with two alligator clips on the other end. However, the BNC output is already compensated and measures about 1MOhm. There are two trimmer caps on the board to calibrate it.
https://youtu.be/F1oDhaqyIvk
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #84 on: May 31, 2017, 01:52:21 am »
That is what I was trying to say. Now that I have this circuit working, somehow, I wanted to know the actual best way to do a PWM signal for the full range of duty cycle from 0%-100% without a micro
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: 74HC14 Circuit Not Working
« Reply #85 on: May 31, 2017, 10:36:55 am »
I'm amazed that people still think the '14 stuck at 2.4V problem was/is something to do with a scope probe, or a bad scope probe, when I was reproducing it for 2 hours in Reply#57.

That is what I was trying to say. Now that I have this circuit working, somehow, I wanted to know the actual best way to do a PWM signal for the full range of duty cycle from 0%-100% without a micro
https://www.eevblog.com/forum/projects/change-pulse-width-of-a-signal/msg1129000/#msg1129000

If you're not too bothered about the frequency changing a bit many other methods are available.
« Last Edit: May 31, 2017, 10:45:14 am by StillTrying »
.  That took much longer than I thought it would.
 

Offline stj

  • Super Contributor
  • ***
  • Posts: 2153
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #86 on: May 31, 2017, 11:52:35 am »
2.4v should be impossible, unless it's the average of a very fast squarewave.
a frequency counter or similar function in a multimeter would be handy here.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #87 on: May 31, 2017, 03:15:26 pm »
Duty Cycle from 0%-100 is impossible.

O% and 100% means no oscillation , no cycle  no duty

 

Online Brumby

  • Supporter
  • ****
  • Posts: 12288
  • Country: au
Re: 74HC14 Circuit Not Working
« Reply #88 on: May 31, 2017, 03:20:14 pm »
Duty Cycle from 0%-100 is impossible.

O% and 100% means no oscillation , no cycle  no duty

From an oscillator output - I agree.  However, if you wanted to, you could design a circuit that would switch out the oscillator and connect the output to 0V or Vcc - which would effectively give you the 0%-100% range.

You could also program it out of a micro - if you were to include those in your range of chips.
 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #89 on: May 31, 2017, 04:05:04 pm »
I understand that 0% and 100% aren't possible with oscillation. As far as the 2.4v thing it was definitely my cheap scope interfering, in my case. I'm sure it can be replicated in other ways.
 

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3665
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #90 on: May 31, 2017, 07:41:42 pm »
You can get close to 0-100% with a 555 timer as long as you're not too concerned with constant frequency. Dave did this in episode #392 if you haven't seen it.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19345
  • Country: gb
  • 0999
Re: 74HC14 Circuit Not Working
« Reply #91 on: May 31, 2017, 10:08:33 pm »
The easiest way I know of to get 0% to 100% PWM, with jellybean parts and no MCU, is to use the LM393.

 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #92 on: June 01, 2017, 10:21:42 pm »
This may not be the simplest way of doing it, but does this look like it would work? It works in everycircuit.

http://everycircuit.com/circuit/6706632576991232
I think it will only show in Chrome
 

Offline MK14

  • Super Contributor
  • ***
  • Posts: 4527
  • Country: gb
Re: 74HC14 Circuit Not Working
« Reply #93 on: June 01, 2017, 10:26:54 pm »
This may not be the simplest way of doing it, but does this look like it would work? It works in everycircuit.

http://everycircuit.com/circuit/6706632576991232
I think it will only show in Chrome

No, not apparently showing in Chrome.

Ideally, it would be nice if you can post circuits in some kind of standardized format. E.g. image files.

Something which needs to go onto a weird website and/or needs downloading executables is not a good idea, for easy viewing on forums.
Quote
Something went wrong...
Verify that native client is enabled:
    1. Type about:flags in the Chrome address bar and enable native client
    2. Type about:plugins in the Chrome address bar and enable native client
Try to refresh the page or report to info@everycircuit.com
(Load error: NaCl module load failed: PnaclCoordinator: pexe load failed (pp_error=-2).)
« Last Edit: June 01, 2017, 10:29:43 pm by MK14 »
 

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3665
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #94 on: June 01, 2017, 10:33:18 pm »
I had this in my notebook from a long time back. I didn't have time to build it again to test until today. It works okay and you may already have the parts. With a 10k pot and 0.1 uf cap I got from less than 1% to over 99% duty cycle at about 650 - 925 Hz.





 

Offline RyanGTopic starter

  • Regular Contributor
  • *
  • Posts: 213
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #95 on: June 01, 2017, 10:35:44 pm »
I thought that the website I posted worked in chrome no matter what. I sent it to other people to check. Here is the picture.
 
The following users thanked this post: MK14

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: 74HC14 Circuit Not Working
« Reply #96 on: June 01, 2017, 10:44:17 pm »
That can't be right.
Edity: The first inverter and resistor don't make sense.
Edity2: Is the value of R1 critical.  :)


« Last Edit: June 02, 2017, 01:07:21 am by StillTrying »
.  That took much longer than I thought it would.
 

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3665
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #97 on: June 01, 2017, 11:18:50 pm »
It's not my circuit just one I found. Maybe I drew it wrong, but I ripped it up and built it again and it still works. Maybe someone else could give it a try? It's pretty simple and quick to build. Sorry for the poor quality image.



 

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3665
  • Country: us
Re: 74HC14 Circuit Not Working
« Reply #98 on: June 02, 2017, 02:39:28 am »
That can't be right.
Edity: The first inverter and resistor don't make sense.
Edity2: Is the value of R1 critical.  :)

1. I drew the circuit close to the way I originally built it on perfboard so it doesn't look the way it's usually shown.
2. The original circuit used a 4049 and I have R1 noted as "improves shape of square wave - use about 10x value of R2"

Maybe it's the different chip, but R1 seems to make little difference here. As a matter of fact, at higher values and with small values of C1 and R2, it causes the output to become a sine wave at around 10 times higher frequency than expected. The circuit seems to work fine without it and just a wire directly to the input of the first inverter.
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7661
  • Country: ca
Re: 74HC14 Circuit Not Working
« Reply #99 on: June 02, 2017, 03:15:21 am »
In that schematic, shouldn't R1 be between the diodes and cap with the cap wired direct to the first inverter input.  Otherwise, when your trimpot is wired all the way to one side or the other, that circuit's output will sort of be short driving the cap distorting the second inverter's output when the trimpot is set to 0% or 100%.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2328
  • Country: 00
Re: 74HC14 Circuit Not Working
« Reply #100 on: June 02, 2017, 03:16:51 am »
In my opinion, the capacitor must be in GND, for me no sense to connect on output

My circuit will be like this one





 
 

Offline BrianHG

  • Super Contributor
  • ***
  • Posts: 7661
  • Country: ca
Re: 74HC14 Circuit Not Working
« Reply #101 on: June 02, 2017, 03:41:18 am »
In my opinion, the capacitor must be in GND, for me no sense to connect on output
The advantage of placing the cap on the second inverter output instead of GND is that it increases hysteresis, making a clear cut guarantee not to be so sensitive to the small schmitt region.  It artificially enlarges the size, but, the input may now exceed VCC & GND slightly during the transition.

I guess there are different ways of wiring this circuit and will still function.

 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19345
  • Country: gb
  • 0999
Re: 74HC14 Circuit Not Working
« Reply #102 on: June 02, 2017, 07:47:42 am »
That circuit will work with the capacitor going to +V too.

There are plenty of variations on this circuit.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf