Electronic – arduino – Power 9 IR LEDs 850 nm with a forward voltage of 1.7 V and forward current of 100mA

arduinoledpower supplyraspberry pi

I am looking to power 9 IR LEDs 850 nm with a forward voltage of 1.7 V and current of 100mA. i want to make a circuit where i can use a small power supply or could I use the raspberry pi to power it? Can i use the GPIO pins directly without causing harm to my Pi. If not, which other power supply option do you think I could use? I want to make the setup small and portable. I need to turn the LEDs ON for a short duration like 5 seconds.
I would be happy to receive suggestions. I am new to electronics, please help me out!!!!!

Update: I would also like to know if it would be possible to control the brightness of the LEDs to 3 different levels, such that one is just dim, one is bright and the other is in between the two brightness levels. I was wondering if i should use a PWM pin of the raspberry pi to achieve that but i am not sure how.

Best Answer

The power needed will be 1.7 V * 0.1 A = 0.17 W

GPIO pins cannot be used directly, because for most MCU the absolute max rating is between 10 and 40 mA.

For the power supply you have lots of options. You can e.g. use a 5 V adapter.

For the 4 times 2 LEDs in series you need the following resistors:

V = I * R <=> (5 - 2 * 1.7) = 0.1 * R <=> R = 1.6 / 0.1 = 16 ohm

And for the power through the resistor:

P = I^2 * R = 0.1^2 * 16 = 0.16 -> So a 1/4 W resistor will do

For the leftover LED:

V = I * R <=> (5 - 1.7) = 0.1 * R <=> R = 3.3 / 0.1 = 33 ohm

P = I^2 * R = 0.1^2 * 33 = 0.33 -> So a 1/2 W resistor will do (or 2 66 ohm resistors in parallel)

The power rating for the adapter will be 0.17 W (and probably you also will power the Raspberry from it).