mstephens_42
She said....
Yes, you can drive three 20mA LEDs from an output pin on the EZ-B IoTiny. However, please note that the maximum current output for each digital I/O pin is 20mA. Therefore, you will need to use a resistor to limit the current to each LED. You can use an online LED resistor calculator to determine the appropriate resistor value for your specific LEDs and power supply. (https://ledcalculator.net/)
You will need 3 x 68 ohm 1/8 watt resistors. The 68 ohm resistor is color coded: Blue, Gray, Black, Gold. Each 68 ohm resistor consumes 27.2 milliwatt. Total power consumed by the resistors is 81.6 milliwatt. Total power consumed by the LEDs is 120 milliwatt. Total power consumed by the circuit is 201.6 milliwatt. Total current drawn by the circuit is 60 milliampere. The resistor values are calculated based on the common 5% tolerance resistors. Make sure to wire the LEDs in the correct direction as shown below. Always leave some space for the resistors to breathe. They might get hot.
Well, I am planning on using a 68 Ohm resistor in series with the 2V yellow LEDs. But, If the Yellow LEDs are supposed to draw up to 20ma (60ma total) each, how can that work Athena? I think I need to use a separate transistor that can easily switch 60ma with the LEDs in the and drive the gate from the microcontroller pin in order to do this.
This is for C3POs eyes. I want to be able to control his eye blinking, etc. There are three LEDs per eye. I'd like one eye controlled per IO Tiny output.
What say you guys? Is this what you would do?
Are your 20mA LED 3 volts?
If they are, here is LED info: https://synthiam.com/Community/Tutorials/Pulse-Flash-LED-with-PWM-16230
Here is what I did in the past https://youtu.be/wcYgtyJCnvY
https://youtu.be/H5FaN9xqNto