Using PWM to increase voltage through LEDs? Answered
This is a good course…well written and presented. I wish it was around a couple of years ago when I first started with Arduino and electronic projects. There is one thing I’ve ‘discovered’ about LEDs that you do not cover. Arduino PWM can allow higher voltages (5V) to be used with most LEDs without using a resistor. That is, a blue LED with a forward voltage of 3.0v can be used on a 5V Arduino board *without a resistor* if analogWrite() values are kept below 128. How far the voltage can be pushed will depend on the specification of the LED and the frequency of the PWM, but I’ve have yet to find an LED that I could not drive directly from an Arduino as long as I keep the average current through the LED at 80% or below the rated current for that LED. It is my understanding that using PWM in this fashion simplifies the circuit, reduces the current draw of the project, and reduces the average current through the Arduino pin. Of course not every project has PWM pins to ‘waste’ in this fashion. Thoughts?