EricHigdon / OctoPrint-RGB_status

Adds RGB LED support to OctoPrint with the ability to choose effects based on the current status of your printer
33 stars 12 forks source link

[Question]Is it bad practice to power LED from the 5v pin(s) on the Raspberry PI? #66

Closed tomohulk closed 4 years ago

tomohulk commented 4 years ago

Im relatively new to these low voltage electronics. I am currently running an Ender 3, with a buck converter, spliced onto the PSU, converting the 24v to 5v and powering my Raspberry Pi 3B via USB from the converter, it is running Klipper and Octoprint. I recently bought a WS2812 24 LED ring, and have been designing this remix to work with the smaller ring/Bullseye Duct.

It "seems" to work, im still in the prototyping phase. Im just wondering if its good/bad practice to power this LED ring from the GPIO pins from the PI, or, should I be running the VIN and GND right into the buck converter?

great project by the way, really love the concept!

cp2004 commented 4 years ago

It's generally very bad practice to run LEDs straight from the GPIO for anything above a handful. The pi can only provide any leftover power - The Pi 3B + has a 2.6A Fuse (If my googling is correct) so you get 2.6A - Pi power consumption - peripherals and that includes USB so if you have a camera that draws from that, as well as some printer boards can draw from the USB if their main power is out (Shouldn't be an issue in your case)

It may work in testing, but who knows when the Pi's CPU decides it needs more power. Much safer to power straight from the printer so you skip the chance of shutting off the Pi for too much current draw.

Ninja edit: Make sure you connect a common ground between Pi - LED - PSU or you will have some strange issues!

EricHigdon commented 4 years ago

Thanks for covering this @cp2004. Agreed that pulling all of your power from the pi pins is not the best idea. I use separate supplies for my printer, pi, and LEDs. Just to avoid any chance of power issues.

This doesn’t mean that you can’t use the same power supply for both the pi and your LEDs though. Just tap into the PSU for both the RaspberryPi and the LEDs.

I would personally use two separate buck converters, but you could probably get away with just one.