R_load generates a large current load, near the limit of what the 555 can drive.Simple select resistance R2 for stable frequency.
R2 may be pot 22k for tuning stability in PWM range.
View attachment 169763
I agree/disagree. If the frequency is set high enough to start with, then it is irrelevant. High enough does not mean just beyond what we can visible detect. It must go well beyond that for safe, healthy lighting. But my efforts to find the "very stable" version will be helpful for future applications and testing, so a design that "floats" around may not be suitable.If you are controlling LED brightness using PWM then the frequency is pretty irrelevant so the simplest '555 circuit will do the job.
R_load value does not affect on frequency stability and 100Ω used only for example.R_load generates a large current load, near the limit of what the 555 can drive.
Then you need a programmer, compiler, and the knowledge to write the program and send it to the chip.ATTINY85 (8 pin dip) + 1 POT + 1 cap (bypass for ATTINY85) = solution
Code it in Basic, Bascom Basic.
Regards, Dana.
That circuit frequency is also largely independent of power supply voltage.One suggestion would be to use a stable voltage reference (or a regulator for the whole circuit) so it doesn't vary with the supply if that's important.
Yes it is....regulator not needed...That circuit frequency is also largely independent of power supply voltage.
I'm planning to download LTSpice very soon. Are there files you can upload so that I can import your circuit into the program. I have a few low power opamps that I might substitute in the design to see if they work. Don't know the part#s off hand.Hello,
I breadboarded the following circuit based on post #21 and modified it for a frequency of 1Khz.
Circuit worked nicely. I was able to adjust duty cycle from 0% to 100% with no LED flicker.
Oscillator frequency was fixed at 1KHz and did not vary with duty cycle.
One suggestion would be to use a stable voltage reference (or a regulator for the whole circuit) so it doesn't vary with the supply if that's important.
View attachment 169871
To demonstrate that separate power supplies can be used if needed since the comparators are open collector.The PWM setting is also independent of the supply voltage.
Also, why did you use two supply voltages? One should be sufficient.
Not sure I placed the .lib and .asy files in the correct sub folders but I get an error that states LTSpice can not find pot symbol. The schematic that appears is missing the potentiometer.Attached is my LTspice file, plus the LM339 model and symbol files which do not come with LTspice.
Those must be put in the appropriate LTspice sub and sym directories.
Very much appreciated!Okay forgot that you also need the pot files, below.
Put the .asy file in the sym directory, and the .lib file in the sub directory.
You may need to close and reopen LTspice to get the new models to appear.
by Aaron Carman
by Aaron Carman
by Jake Hertz