LED fun
Rayman
Posts: 14,667
Here's a fun exercise with some blue LEDs and a Quickstart or Propeller Platform...
First, load up this complete but tiny (4 line) program (a favorite of DeSilva):
Then put some blue LEDs directly between Propeller pins like this:
The fun part is figuring out what happens and why...
BTW: This is perfectly safe with blue LEDs like these (Digikey 160-1611-ND). It's also safe with green LEDs. But, you don't want to use red LEDs.
In case the LEDs light up (even though they have a forward voltage rating of 3.5 Volts), it's also interesting to figure out what the LED current is and why...
BTW: Here's my newest circuit board:
First, load up this complete but tiny (4 line) program (a favorite of DeSilva):
PUB LedFun Dira~~ repeat outa++
Then put some blue LEDs directly between Propeller pins like this:
The fun part is figuring out what happens and why...
BTW: This is perfectly safe with blue LEDs like these (Digikey 160-1611-ND). It's also safe with green LEDs. But, you don't want to use red LEDs.
In case the LEDs light up (even though they have a forward voltage rating of 3.5 Volts), it's also interesting to figure out what the LED current is and why...
BTW: Here's my newest circuit board:
Comments
Don't have a video, but here's what it looks like when you start the program: Some of the LEDs stay on, some blink, and others are off.
When an LED is on, the current is about 6 mA. But, you'd need 2 things to figure that out. One is this curve from the datasheet:
The other is knowing that Propeller I/O pins each have an internal resistance of about 30 Ohms.
Merry Christmas!!
Paul
First, we extend to graph down to V=0.
Now, since we know the source voltage is 3.3 Volts and the source impedance is 30*2= 60 Ohms, we can draw the load line from the short circuit current (3.3V/60 = 55 mA) to the open circuit voltage (3.3 V).
Where the load line crosses the device curve is where the LED will operate.