Page 1 of 1

GPIO

Posted: Thu Feb 20, 2014 12:23 am
by bubbasnow
so now that i have the gpio figured out i went and purchased one of these..

[img]http://ecx.images-amazon.com/images/I/5 ... SY300_.jpg[/img]

then i grab a 3 gang with 2 pair(now totally controllable) outlets

[img]https://lh4.googleusercontent.com/-K4Vf ... 202804.jpg[/img]

then i persuade it to fit

[img]https://lh5.googleusercontent.com/-2he5 ... 210817.jpg[/img]

solder the pinout onto a cat5 jack

[img]https://lh6.googleusercontent.com/-dsxE ... 210812.jpg[/img]

then call it a night!!!!!

Re: GPIO

Posted: Thu Feb 20, 2014 2:13 am
by neurascenic
What do you plan on doing with the FPIOs?

Re: GPIO

Posted: Thu Feb 20, 2014 3:00 am
by Captain Starfish
Automatically fire up the kettle whilst you wait for the bed to heat up?

Re: GPIO

Posted: Thu Feb 20, 2014 4:00 am
by Eric
Don't forget to put a max amps label on it so nobody forgets there's only a 10A relay controlling that 15A outlet. That may rule out using it for the coffeemaker too.

Re: GPIO

Posted: Thu Feb 20, 2014 5:15 pm
by bubbasnow
Im going N.O. on the config so someone would have to actually log into my RaspberryPI and switch it on for it to pass current.

Re: GPIO

Posted: Thu Feb 20, 2014 5:16 pm
by bubbasnow
neurascenic wrote:What do you plan on doing with the FPIOs?
ill attach it to my printer cart and control lights, printer, bedpower.... i dont know what the last slot will be for but im sure i will fill it

Re: GPIO

Posted: Fri Feb 21, 2014 10:31 pm
by bubbasnow
[img]https://lh5.googleusercontent.com/-YIi0 ... 202553.jpg[/img]

ok so here is the finished box, plugged in and tested with a desk lamp. i can now control all 4 plugs by just a click of the mouse via octopi

Re: GPIO

Posted: Thu Sep 22, 2016 4:27 pm
by enggmaug
I also used GPIOs on RPI2, and added corresponding controls in Octoprint, in order to turn on/off both the printer and the lights in my enclosure, directly from octoprint interface.

Difference is that in order to turn on/off the printer, my relay is connected to the very same wire as the on/off switch. (I have a V1, with a PC power supply, I don't know about other versions).
I found a way to put 2 connectors there, and depending which one connector I use to plug the relay, my relay comes either in parallel or serial with the switch.

This way I either need to have both relay and switch on to turn the printer on, or only one of them two.