Page 1 of 1

Power and HDD leds for PI2

Posted: Mon Jul 25, 2016 12:37 pm
by sirus
Hi Guys,

Was just curious if anyone knows how to connect Leds to the PI2 which represent the power and hdd just like they do on the board?

Re: Power and HDD leds for PI2

Posted: Mon Jul 25, 2016 1:32 pm
by blaablaaguy
You mean like the PWR and ACT leds but connected to the gpio? It think the power led is just connected to the 3.3v supply

EDIT: viewtopic.php?f=44&t=140073

Re: Power and HDD leds for PI2

Posted: Mon Jul 25, 2016 2:42 pm
by drgeoff
blaablaaguy wrote:You mean like the PWR and ACT leds but connected to the gpio? It think the power led is just connected to the 3.3v supply

EDIT: viewtopic.php?f=44&t=140073
The PWR LED (with resistor) was just connected to a supply on the first RPis. At some point (I cannot remember if it was B+ or RPi2) the low voltage warning was introduced and the LED became controlled by a GPIO.

Re: Power and HDD leds for PI2

Posted: Mon Jul 25, 2016 3:58 pm
by sirus
Brilliant. I think thats on the lines.

So essentially I would need 2 LEDs with reisitors and add the following lines to my boot.config
dtparam=act_led_gpio=nn
dtparam=pwr_led_gpio=nn

(nn representing BCM number)