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!!!!!
GPIO
-
- Printmaster!
- Posts: 217
- Joined: Fri Nov 15, 2013 10:05 pm
- Location: Denver Colorado
- Contact:
- Captain Starfish
- Printmaster!
- Posts: 950
- Joined: Tue Dec 10, 2013 5:24 am
Re: GPIO
Automatically fire up the kettle whilst you wait for the bed to heat up?
Re: GPIO
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 itneurascenic wrote:What do you plan on doing with the FPIOs?
Re: GPIO
[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
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
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.
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.