Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial for using OctoPrint to Power on & off lights, system & anything else.
#1
I have a Raspberry Pi 2 setup with Octoprint with a USB Wifi adapter hooked up to the Pi.  I can turn my printer on and off, turn my external lights on and off and send a print to it from anywhere in the world.  I'm using a few parts from http://www.davincizone.com/.  I am using the 350 watt Power Supply, Juice Box, and there upgraded heat bed.  I ordered a 2 channel 5 volt dc relay module from Ebay.  I will attach a picture of it.  

Any Raspberry pi should work for this tutorial.  The new Pi 3 won't require you to buy a wifi adapter if you want wireless.  You can always just hook it up to the ethernet port.  I soldered my USB cable directly to printers main board so I don't have to have any extra wires running out of my printer.  All I have is my power wire.

Here we go
Download the latest version of OctoPrint for you Raspberry Pi, install it and run it.  You will need your internet connected to the Pi for the setup process.

Update the software to the latest version using the directions at this link. https://www.raspberrypi.org/documentatio...pdating.md

Download and install Wiring Pi from the first section using this link. 
http://wiringpi.com/download-and-install/

You will use this link to setup the GPIO and edit the OctoPrint drop down menu to allow you to control the relays. http://forum.velleman.eu/viewtopic.php?f=50&t=13714

You can use this link if you wan't to disable the camera led. 
http://www.raspberrypi-spy.co.uk/2013/05...ra-module/


The power supply I have has a 5 volt standby wire.  I use this wire to keep my Pi running when the printer is off.  You WILL need this wire if you want to be able to turn the printer on and off.  I have my standby wire running to my Juice Box and the Pi is connected to the Juice Box with a usb cable.

Enjoy.

[Image: 34q01v4.jpg]
Reply
#2
(09-01-2016, 05:38 PM)OG Style Wrote: I have a Raspberry Pi 2 setup with Octoprint with a USB Wifi adapter hooked up to the Pi.  I can turn my printer on and off, turn my external lights on and off and send a print to it from anywhere in the world.  I'm using a few parts from http://www.davincizone.com/.  I am using the 350 watt Power Supply, Juice Box, and there upgraded heat bed.  I ordered a 2 channel 5 volt dc relay module from Ebay.  I will attach a picture of it.  

Any Raspberry pi should work for this tutorial.  The new Pi 3 won't require you to buy a wifi adapter if you want wireless.  You can always just hook it up to the ethernet port.  I soldered my USB cable directly to printers main board so I don't have to have any extra wires running out of my printer.  All I have is my power wire.

Here we go
Download the latest version of OctoPrint for you Raspberry Pi, install it and run it.  You will need your internet connected to the Pi for the setup process.

Update the software to the latest version using the directions at this link. https://www.raspberrypi.org/documentatio...pdating.md

Download and install Wiring Pi from the first section using this link. 
http://wiringpi.com/download-and-install/

You will use this link to setup the GPIO and edit the OctoPrint drop down menu to allow you to control the relays. http://forum.velleman.eu/viewtopic.php?f=50&t=13714

You can use this link if you wan't to disable the camera led. 
http://www.raspberrypi-spy.co.uk/2013/05...ra-module/


The power supply I have has a 5 volt standby wire.  I use this wire to keep my Pi running when the printer is off.  You WILL need this wire if you want to be able to turn the printer on and off.  I have my standby wire running to my Juice Box and the Pi is connected to the Juice Box with a usb cable.

Enjoy.

[Image: 34q01v4.jpg]



Sounds awesome.  I might add the ability to turn the printer off and on.  

Thanks for sharing! 

Kieth
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)