Do you want to remotely control power to your Taz and peripherals?

Do the following:

  1. Get one of these (relay power strip): https://www.amazon.com/gp/product/B00WV7GMA2/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

  2. Make one of these (Octopi): http://octoprint.org/ (I suggest this for simplicity https://github.com/guysoft/OctoPi)

Once you have Octoprint up and running…

  1. Do this: https://github.com/foosel/OctoPrint/wiki/Controlling-a-relay-board-from-your-RPi

-. Hardware and setup:

Remember, there are two ways to refer to GPIO pins; board, and BCM. Board means the physical pin number, BCM means the port number. Above, when adding the line to the init.d/octoprint file, the entry assumes BCN. So in this case, if you are using physical GPIO pin 7, its BCM address is 4.

So what you have in the end is this:

init.d/octoprint:

gpio export 4 out (line 77, where export makes GPIO available to octoprint, 4 sets the BCM pin number (pysical GPIO pin 7), and “out” sets the GPIO as outputing the state [1 or 0, on or off] )

RETVAL="$?" (existing line)

Your config. yaml looks like this:

**system:
actions:

  • action: printer on
    command: gpio -g write 7 1
    name: Turn on the printer
  • action: printer off
    command: gpio -g write 7 0
    confirm: You are about to turn off the printer.
    name: Turn off the printer**

Note: You can make the text in “Name” and “Confirm” anything you want.

So there ya go, what you get in the end is an install of "WiringPi ", a pair of normally OFF and a pair of normally ON plugs in a relay controlled power strip. Two wires leading out the side that plug into your Raspberry Pi, and a couple of new commands in Octoprint for turning stuff on and off.

Credits go to:
Gina Häußge (foosel) aka Ms. Octoprint!
Digital Loggers Direct (https://www.amazon.com/gp/help/seller/at-a-glance.html/ref=oh_aui_sellerprofile_o00_s00?ie=UTF8&isAmazonFulfilled=1&marketplaceSeller=1&orderID=106-4833551-0540255&seller=A3D4241373L385) for making cool stuff like this relay.
temp.jpg

Nice mod, thanks!

I was only aware of the power tail http://www.powerswitchtail.com/Pages/default.aspx nice to see another option with more outlets and both NO and NC relays built in. It looks like the power tails advantage is size and the placement flexibility of the cable pigtails.

These 5v relays are available in a variety of sizes.
I’m using a 4 gang version -
https://www.amazon.com/JBtek-Channel-Module-Arduino-Raspberry/dp/B00KTEN3TM/ref=sr_1_4?s=electronics&ie=UTF8&qid=1466610467&sr=1-4&keywords=5v+relay

There is a very nice case for it on Thingiverse -
http://www.thingiverse.com/thing:957292



Best regards,
PCH

Agreed, this is a good solution, but much riskier for a layman. Wit these relays, you must be absolutely confident that you are wiring it correctly and that you understand that you are dealing directly with mains voltage.

With the Loggers solution, you are only controlling a power strip with 3.3 volts for all intent and purpose, and one with built in fail safes.