Skip to content

Scripts I use to control LED strips attached to my 3D printers through Octoprint

Notifications You must be signed in to change notification settings

cvick/octoprint-LED-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Octoprint Scripts for the GCODE System Commands plugin

These are scripts I use to control LED strips attached to my Raspberry Pi when various events occur while printing. The GCODE System Commands plugin lets you define GCODE values that when triggered while printing run a script you define.

I'm using pigpio to control individual pins connected to each LED channel (R,G,B) for the color changes to indicate status. For example, when the extruder and bed are warming up the lights are red, when the 3D printer is printing the lights are white so the camera attached to the Raspberry Pi can take a timelapse, and when the print finishes and the extruder and bed turn off to cool down the lights are blue. After 2 minutes of cool down the lights fade between colors.

Sources

The fading.py script is from popoklopsi. I commented out the section that makes the script wait for input and prints out instructions to the terminal so I could have it run in the background. There's a link in the readme to a tutorial he wrote about how to control an LED strip with a Pi. Take note though that the Amazon link to the MOSFETs brings up the wrong MOSFET. It links to IRFZ34N MOSFETs but you need IRLZ34N otherwise the LEDs will not be as bright.

About

Scripts I use to control LED strips attached to my 3D printers through Octoprint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published