Loading
choumarin

2 relays box

by choumarin Jun 12, 2016
Download All Files

Thing Apps Enabled

Please Login to Comment

is there a way to control this via octopi? or do you have a special "script" that you made to do this? I love the idea!

In octoprint, install the System Command Editor pluging.
Click on the green box, and add 2 commands:
name: "Turn on" and "Turn off" or whatever you want
action: "turnOn" and "turnOff" or whatever you want
command: "gpio mode 0 out & gpio write 0 0" and "gpio mode 0 out & gpio write 0 1" (Yes, turn off is write 1), this is using GPIO 17 (pin 11), check here for the gpio numbers: https://projects.drogon.net/raspberry-pi/wiringpi/pins/