ElectricSpidey
- Joined Dec 2, 2017
- 3,337
Yes, positive and ground (negative).
Because PWM is the best way to control LEDs brightness. Any other way isn’t linear nor predictable.I still don't understand all of that. I'll have to think on it. Why would an LED care about any PWM?
Sorry. That was clear as mud. I have a chart showing LEDs of different colors and their respective Forward Voltages. DC has no wavelength or frequency. That is why I don't understand what you said. If you need 3.3 volts from a 5 volt source, then the appropriate resistor makes that happen. Shame the wasted energy is dissipated as heat. Ah well. Nothing is free.Because PWM is the best way to control LEDs brightness. Any other way isn’t linear nor predictable.
LEDs are non-linear with respect to current so if you use a variable resistor to dim an LED it will not follow a linear curve as the resistance changes. PWM is a way to make linear changes in brightness, among other things.Sorry. That was clear as mud. I have a chart showing LEDs of different colors and their respective Forward Voltages. DC has no wavelength or frequency. That is why I don't understand what you said. If you need 3.3 volts from a 5 volt source, then the appropriate resistor makes that happen. Shame the wasted energy is dissipated as heat. Ah well. Nothing is free.![]()
If PWM supplies 5VDC half the time and no voltage the other half, the LED is only on half the time. Do this fast enough and the eye doesn’t see the LED turn off. It sees a dim LED. That’s the concept behind PWM.Sorry. That was clear as mud. I have a chart showing LEDs of different colors and their respective Forward Voltages. DC has no wavelength or frequency. That is why I don't understand what you said. If you need 3.3 volts from a 5 volt source, then the appropriate resistor makes that happen. Shame the wasted energy is dissipated as heat. Ah well. Nothing is free.![]()
Thwe and gates are needed because the 4017 is a ring counter so that one output is always active. Soto do a count of more than ten with only one output on, some extra logic is required.This might upset some folks. Sorry. I liked it.
View attachment 260140
And this:
View attachment 260141
This is just missing the diodes in the Timer circuit. Are they really necessary? And that AND gate in the cascaded 4017 circuit.....is it necessary? Why?
Thanks for any and all replies.
It means that there's an active pull-up and an active pull-down. Contrast that with an open collector/drain device where there's only an active pull-down device. How close they pull to the rails depends on the load. Loading the outputs of the CD4017 beyond what's characterized in the datasheet is not recommended. The last circuit you referenced is in the not recommended category.I don't know what you mean by push/pull.
Yes, but with a fixed capacitance, the pot only allows you to vary on time. Off time is fixed atDon't the Pot and the Cap regulate the pulse time?
You should get in the habit of reading datasheets so you can determine whether a device is appropriate for your requirements. I've seen more crap on YouTube than ones that are done by someone who actually knows what they're doing. I avoid the ones that take forever to make a point because they're probably just trying to monetize my time.That's the first I have looked at the innards of the 4017. Cool!
The light output from an LED isn't linear with respect to current. To get something like linear brightness control, you drive the LED with a fixed current and change the ratio of its on to off time. That's called Pulse Width Modulation. The frequency of the rectangular wave stays constant, and you vary the duty cycle (on time vs pulse width).Sorry. That was clear as mud.
Oh. Hmm. I was going to use a Pot to determine the value of resistor I need to achieve the goal - somewhere around maybe 80% and 100% intensity. I was just going to go with what looked good instead of relying on the math to calculate the resistor value. I will have to rethink this.LEDs are non-linear with respect to current so if you use a variable resistor to dim an LED it will not follow a linear curve as the resistance changes. PWM is a way to make linear changes in brightness, among other things.
Any other way isn’t linear nor predictable.
LEDs are non-linear with respect to current so if you use a variable resistor to dim an LED it will not follow a linear curve as the resistance changes.
If you look it up from a quality LED supplier, you'll see something like this. I guess ya'll will have to define "linear" for me (or non-linear). I've never found an LED with a crooked line in the flux vs amp graph...The light output from an LED isn't linear with respect to current

I have this. I am going to build my circuits to test them on it. Do you suppose I will be able to take trustworthy measurements?If PWM supplies 5VDC half the time and no voltage the other half, the LED is only on half the time. Do this fast enough and the eye doesn’t see the LED turn off. It sees a dim LED. That’s the concept behind PWM.

I have purchased a bunch of 4017s, 4081s, and 555s. From China. I am sure they are a TI knockoff - Hong Kong Fooey brand. The TI emblem is printed on them. I sure hope I haven't bought a bunch of junk. We'll see, eventually. The LEDs work. I have tested all of the white 10mm LEDs. I have a thousand each of the 5mm red, white and blue. I also have 1000 green 5mm straw hat LEDs. I do not recall any datasheets being offered. Hmmm.It means that there's an active pull-up and an active pull-down. Contrast that with an open collector/drain device where there's only an active pull-down device. How close they pull to the rails depends on the load. Loading the outputs of the CD4017 beyond what's characterized in the datasheet is not recommended. The last circuit you referenced is in the not recommended category.
Yes, but with a fixed capacitance, the pot only allows you to vary on time. Off time is fixed at
\( t_{off} = 0.693R_3C_1 = 3.9ms \)
You should get in the habit of reading datasheets so you can determine whether a device is appropriate for your requirements. I've seen more crap on YouTube than ones that are done by someone who actually knows what they're doing. I avoid the ones that take forever to make a point because they're probably just trying to monetize my time.
The one from the manufacturer of your devices would be best as there can be some slight differences even though the devices are supposedly interchangeable.
Did you handpick that LED just to make a point? It’s not always true. I randomly picked out an LED on Digikey, and the relative intensity vs forward current graph looks quite different.Who started this rumor?
If you look it up from a quality LED supplier, you'll see something like this. I guess ya'll will have to define "linear" for me (or non-linear). I've never found an LED with a crooked line in the flux vs amp graph...
Every LED manufacturer I've spoken with says to control the current with a constant current smps to control the brightness. PWM of a high current Draw string if .LEDs is easy will generate lots of EMI emissions. Much better to make a 300kHz smps and keep the signals in the housing instead of making a long antenna of LED strips.
https://cdn.samsung.com/led/file/resource/2020/03/Data_Sheet_LM561B_Plus_CRI90_Rev.4.0.pdf
Upper left...
View attachment 260171

No, I just picked LEDs from credible LED manufacturers like Cree, Samsung and Lumiled. Look again. Did you work hard to find the Famous LED producer "American Opto Plus LED Corp"? Really?Did you handpick that LED just to make a point? It’s not always true. I randomly picked out an LED on Digikey, and the relative intensity vs forward current graph looks quite different.
View attachment 260173



With so much counterfeiting going on, I buy very few loose semiconductors that ship from China.I have purchased a bunch of 4017s, 4081s, and 555s. From China. I am sure they are a TI knockoff - Hong Kong Fooey brand. The TI emblem is printed on them.
Title: Understanding Basic Electronics, 1st Ed.Hi folks. I just joined. Got an auto-message from an Admin called jrap. I replied. One day I'll figure out how this site works. I am the novice of novices. I know a whole lot of little stuff. Enough to probably toast any component I touch. Ah well. My ambitions are not broad. I just want to mess around with LEDs and do some PCB design (if I can ever learn one of the three programs I found), some designing of LED circuits and some soldering. Fun stuff. Keeps an old man busy barring any heart aggravation. That is a long story. Hey, I'm still alive. God sustains me. He has to be. I'd have checked out 15 years ago if He were not looking out for me. Eight heart attacks (arguably) and still ticking.
Thanks for having me and probably for putting up with me in the future. There is so much I don't know about this stuff. It seems to be an expensive hobby. I have only toasted one red 5mm LED and one Trimpot. The little blue ones made by Bourn. 3362P is the number molded into it.
Y'all take care.
I have purchased a bunch of 4017s, 4081s, and 555s. From China. I am sure they are a TI knockoff - Hong Kong Fooey brand. The TI emblem is printed on them.

Power distribution would be neater if you used some solid #22 wires, cut them to length, and laid them flat on the boards. You could also change the arrangement of the boards to 3x2 instead of 6x1 so you might have the option of having shorter wires to connect between boards.I have this. I am going to build my circuits to test them on it. Do you suppose I will be able to take trustworthy measurements?
I have some 20 AWG wires coming. I am not sure what the gauge of those wires that I do have is. I ordered solid 20 AWG - not stranded.View attachment 260314
The 555 was purchased about 40 years ago. If it was a more recent purchase, I'd be concerned about the quality of the lettering in the location.
Note that the 'i' in the logo is sometimes the shape of a boy.
Power distribution would be neater if you used some solid #22 wires, cut them to length, and laid them flat on the boards. You could also change the arrangement of the boards to 3x2 instead of 6x1 so you might have the option of having shorter wires to connect between boards.
Are you certain that the power rails on the boards are split in the middle? I have some boards like yours that have continuous power rails and some that don't. If they are split, a small staple shaped piece of #22 wire, or component lead, would make neater jumpers.