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

0 Members and 1 Guest 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 »
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12298
  • 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: 2271
  • 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 »
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12298
  • 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 »
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12298
  • 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: 2155
  • 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 »
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19522
  • 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
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19522
  • 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: 3667
  • 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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf