I've designed and built an adjustable PWM generator using schmitt trigger inverters. However, it doesn't seem to be working.
Here is the circuit:
The capacitors at the bottom are intended to be switched in and out, to vary the frequency of the oscillation. The potentiometer is for adjusting the duty cycle.
Initially, I designed the circuit without the resistive divider on the input of the first inverter, but discovered that the frequency of the oscillator varied as I adjusted the potentiometer. Looking at the datasheet for the inverter chip (HD74LS14) I discovered it was asymmetrical, with thresholds of 0.7v and 1.6v. Adding the resistive divider lowered the input level to more evenly distribute the input across the threshold region.
It works perfectly in this simulator here. In reality, however, it's not working.
I get no illumination from the LED at one extreme of the potentiometer, and full-on at the other extreme. That would of course be normal, except that there is no gradual fading as you adjust the pot. It stays full-on for some of the turn, then gives a flashing output (when the 100uF capacitor is used) for a couple of degrees of turn, then goes off for the remainder of the turn.
Can someone explain what is happening please? I'm completely stumped.