How to turn your 3D printer on/off using Octoprint

  Рет қаралды 148,327

Gyro

Gyro

6 жыл бұрын

UPDATE: Not all 5V relay boards will work and may need to be modified. If you want to avoid that I highly suggest getting 3.3V / 3V ones instead. Like these for example:
aliexpress: s.click.aliexpress.com/e/lcFnjWY
Ebay: ebay.us/hjxzaO
Amazon: a.co/d/7NDnqoL
Tutorial on how to control the power supply of your 3D printer remotely using Octoprint and a relay module. Very simple and convenient project. If you have any questions just leave them in the comments.
Files and steps: www.instructables.com/id/PSU-...
modify your relay(step 6): www.instructables.com/id/Home...
Twitter: @GyroMakes

Пікірлер: 313
@Gyro1
@Gyro1 5 жыл бұрын
Update! If you have problem with 5V relay I've made tutorial on how to make it work on 3.3V kzfaq.info/get/bejne/pp2noN1y36q8XYU.html
@rsrollins72
@rsrollins72 5 жыл бұрын
What an awesome idea! I didn't even know octoprint had that feature. I just integrated mine into home assistant using a sonoff and for the camera I use an old android phone with IP webcam but now that you showed us that feature I know I'll be using it for something in the future.
@LostCloudx4
@LostCloudx4 5 жыл бұрын
Thanks man works a treat!! Funny thing is my pi won't run it on a 5v output, chucked it into a 3v output and worked beautiful!
@xaxipistaxi
@xaxipistaxi 3 жыл бұрын
Nice. A few days ago I thought that would be a nice idea to be able to shut the printer on off via octoprint and mentally drafted exactly this solution. Glad someone did it 3 years ago and I don't have to think further. Great job.
@esqueue
@esqueue 4 жыл бұрын
Thanks for helping out the community. I configure mine so that my screen, board and pi are connected to a 5.1v uninterruptible power source. My first setup used an HP DPS-600dp power supply in which certain pins needed to be jumped to power it on. I connected that directly to my servo pin on my board (almost any other pins could be programed via firmware). I had to configure the PS_ON pin and enable ps control in firmware. This eliminated the need for a relay on that setup. I could turn it on via the lcd screen and octoprint too. Just use the power on plugin or as I do, type M80 via terminal to turn it on and M81 to turn it off. I also had to add a relay to the PS to cut power to the fan when it isn't running full power. The 5vsb out powered everything else. On my second build, I used two HP DPS-1200w in series for 24v. Unfortunately this power supply still overheats if the fan is off even if it isn't providing full power on only Standby voltage. I then had to get a relay that works off of 2.5v as my xyz max ports have a pull up resistor and only outputs under 3v. It was a 5v relay but had a circuitry that allows it to be activated very low. This is getting too long...... I can turn it on via the tft screen and via octoprint too....
@hoggif
@hoggif 5 жыл бұрын
That's a great idea to use octoprint for controller when you already have one. Will replicate this one for sure!
@JasonLooseArrowAlso
@JasonLooseArrowAlso 4 жыл бұрын
Well done. This video has made this project understandable for me. Thanks!
@mereskimade
@mereskimade 4 жыл бұрын
This worked amazing. Thank you so much for the clear video and great idea.
@maxr382
@maxr382 5 жыл бұрын
Thank you making this video. The relay conversion to 3.3 signal in helped also. I tried to use GPIO02 as it was closer to 5v and ground but found it unresponsive. I guess the script does not declare the use of the pin, but changed it to GPIO only pin, then used pin number not GPIO address and worked fine.
@arthurdent8091
@arthurdent8091 4 жыл бұрын
I like it and your professional video. When I make mine I will use a drill to make the cable holes and I will pull the cables out of the same hole for the switched power lead. Depending on space remaining I will use 2 cable ties each and when I cut the power lead I will position the cable somewhere adjacent to the printer to keep the cabling neat. Top-notch job!!.
@Nordic_Goon
@Nordic_Goon 3 жыл бұрын
This is exactly what I was looking for, figured this was how you'd do it, except I'm wondering why you chose to splice into the power wire opposed to just tapping in behind the power connector and enclosing your relay inside your PSU's connection cover. That way you can still flip the switch to completely kill everything drawing from the wall outlet opposed to having to unplug it.
@rodneysmith1750
@rodneysmith1750 5 жыл бұрын
Interesting video, thanks for the time and effort you put into making it! Unfortunately for me,my rPi is powered from the printer PSU via a buck converter, but I wll find another use for this great and very helpful tip! Keep up the good works!
@paulfetzner6970
@paulfetzner6970 5 жыл бұрын
Rodney Smith, I am working with a similar setup to what you are and I suggest you look into PiJuice sold on Amazon (also open source on GitHub) or a similar & cheaper option of the Makerfocus Raspi UPS HAT also Amazon. It gives you an UPS for the RPi to maintain power while shutting the rest of the printer off, before a self shutdown
@mksmurff
@mksmurff 5 жыл бұрын
All the people saying wifi plug - I think you are missing the point of this video. It's using OctoPi and therefore all within the one piece of hardware and webapp. Nice video thanks
@evilMaid1984
@evilMaid1984 4 жыл бұрын
They actually have a plugin to control a Ikea Tradfri outlet now; I prefer this method...
@justinlabarge8178
@justinlabarge8178 4 жыл бұрын
I use wifi plug controlled through octoprint.
@nczioox1116
@nczioox1116 3 жыл бұрын
@@justinlabarge8178 me too. $7 wifi plug with a widget I just tap. I use octoprint to make my life easier and Im consistent
@juhajuntunen2557
@juhajuntunen2557 3 ай бұрын
Years ago there was plugin for TP-link wifi socket but that not worked for me :-(
@markeichwald7105
@markeichwald7105 5 жыл бұрын
Great Tutorial I love it!
@divineavengers
@divineavengers 5 жыл бұрын
Another wi fi plug user here they are ten bucks and simple to use as long as you can get WiFi signal you are good to go I do appreciate what this guy is trying to do though
@Skint009
@Skint009 5 жыл бұрын
I was a little confused by the diagrams as none of them seem to match my setup (with the exception of the GPIOs on the rPi) but with some googling figured it out, thanks! :)
@Vic-qz1lr
@Vic-qz1lr 5 жыл бұрын
Share what you found! -Im in the same problem atm..
@SeeEssPerez
@SeeEssPerez 4 жыл бұрын
Great tutorial. Thank you!
@enricobononi8655
@enricobononi8655 5 жыл бұрын
Thank you. I was looking for something similar. This of course is assuming to have the raspberry always powered from another supply
@Bigtbuilder
@Bigtbuilder 5 жыл бұрын
Enrico Bononi a totally agree, what is needed is a relay and code that will first shutdown the Pi then the printer. I am trying to find any Pi switch mod that will work with Octoprint/ octopi. Tried the Borkin and the momentary mod that puts pin 5 to earth and none of the codes work with Octoprint
@steveclark3379
@steveclark3379 3 жыл бұрын
very good... thank you for showing how to set this up..... cool
@themisterymistery
@themisterymistery 6 жыл бұрын
I'm never going to do this, but it was still super interesting!
@austinkaye648
@austinkaye648 5 жыл бұрын
i did this mod with my 3d printed enclosure. now i just wish i can find a plugin to control the led lights with relays now also
@mikem8145
@mikem8145 5 жыл бұрын
Great tutorial!
@jakhva
@jakhva 4 жыл бұрын
Tried making this work for 2 days and finaly got it. I was using a 5v relay and a 5v pin, but couldnt get the relay to unswitch. Just use a 3.3v pin instead of the 5v and it will work fine.
@ricardomendonca1828
@ricardomendonca1828 6 жыл бұрын
Very nice ! Liked and subscribed.
@Craigthepope
@Craigthepope 6 жыл бұрын
Great video!
@Gyro1
@Gyro1 6 жыл бұрын
Thanks :)
@bigsubful
@bigsubful 5 жыл бұрын
Hello, do you turn on and off printer also automatically, also than manually? In particular I'm searching for a similar solution to turn on case's fan on starting a printing job, and turn off when a printing job is done.
@wwpdmedia
@wwpdmedia 3 жыл бұрын
You should mention that in large parts of the world, the mains plug is not coded and can plug in either way. This can be a hazard, if you use a single relais, if you switch on and of the neutral wire, instead of the L1. If you swith the neutral, the power is still delivered to your printer, so there s still a live wire inside your printer! It does not turn on, because the N wire is not connected. But it will schock you either way if you touch it. Use a 2 relais board and switch N and L with the two relais, controlled by one GPIO.
@micah2936
@micah2936 10 ай бұрын
At least where I am in USA, while you can plug it in either way, there are different plugs used for when it matters, such as two prongs with one larger which prevents inverting the wires, or any plug with a ground which only has one way to plug in. With 3D printers they always have a ground connection, so there would be no way to accidentally plug it in reversed
@screamingfirehawk
@screamingfirehawk 4 жыл бұрын
Hi Gyro. Great tutorial. I am having a problem where I cannot connect to Octoprint when the printer is turned off. My raspberry pi has its own power supply and is on, but because the printer is off I can not get a connection to turn the printer on remotely. Any suggestions?
@MrFilipesc007
@MrFilipesc007 Жыл бұрын
Hi, great tutorial. I couldn't find the exact current the 3.3V pin can withstand. Can it supply the 70mA for the relay? Even on the RPI zero 2 w?
@ericvidal2110
@ericvidal2110 4 жыл бұрын
I would like to have my printer set up so that I can turn the printer on with either the normal on/off switch on the printer or the pi. Could I do that by connecting the NO terminal to ones side of the printers on/off switch and the COM terminal to the other? Would that cause an issue if both the relay and printer switch were closed at the same time?
@angst_
@angst_ 5 жыл бұрын
You say hook up the printer power wires to Com and NC (Normally Closed), but I think it should be NO (Normally Open), that way, if the raspberry pi turns of it fails safe and does not turn on your printer! I've already ordered my relay, hoping to do something like this soon.
@procrastinationdomination645
@procrastinationdomination645 4 жыл бұрын
my raspberry pi for my octoprint setup uses the adafruit touchscreen so my gpio header is used for the touchscreen. Is there a way that I can still do this while keeping my touchscreen?
@grogyan
@grogyan 6 жыл бұрын
You could have also added in a Power Loss detector as well, for a complete solution.
@lucbisschops
@lucbisschops 5 жыл бұрын
Hot it working now, i have to use the end pin and middle, i did not know because there is no pin layoit on my relay, but bottom pin is Common open and middle is closed top one is common closed. So i use common ooen en closed now, and it is fine, so not the two outer pins wher the brown is going in as in yoir explanation
@michaelknight2897
@michaelknight2897 4 жыл бұрын
Is 10a enough for a large printer like the CR-10?
@kajakmannen
@kajakmannen 4 жыл бұрын
If I use one of those cheep china relays. How many Amps 24V from the PSU can it handle? I have a 24V 17A PSU
@Rene046
@Rene046 5 жыл бұрын
hi there are you using the Mini ?
@TheVideoVolcano
@TheVideoVolcano 5 жыл бұрын
"hopefully nothing blows up and nobody dies" :D
@christopherpacheco7807
@christopherpacheco7807 3 жыл бұрын
Is there a way for me to block the pi from powering the mainboard? Im setting up a relay to power on the printer from the pi and all is good so far. My issue is that darn undervoltage to the printer when it is not turned on. I want to leave the pi running all the time and only turn on/off the printer when needed. Thanks for the tutorial btw great vid.
@clashmanfor3486
@clashmanfor3486 6 жыл бұрын
I like your axent.
@BecauseGames
@BecauseGames 4 жыл бұрын
great idea, I'm planning to adapt this idea to make use of a delayed relay board so i can shutdown a raspbery pi and turn off the printer from an octoprint touchscreen
@ianh2705
@ianh2705 6 жыл бұрын
Great tutorial thanks, some day we will have a robot to load filament, remove the model and clean the bed, until then the odd trip to the basement is still needed LOL.
@Gyro1
@Gyro1 6 жыл бұрын
Yeah :D one step at the time
@pkarza
@pkarza 5 жыл бұрын
The relay I picked up has 5v for power - that works fine - but the 'N1' connector will automatically trip the relay - it is a Robojax 5v relay that triggers low. I'm not having any luck...
@MarkMcArthey
@MarkMcArthey 5 жыл бұрын
Thanks for much for making this. It's great information and I'd like to take on the project but I have a question. The Amazon link goes to the 3.3V relay. Is that right? I believe the video referenced the 5V GPIO?
@Gyro1
@Gyro1 5 жыл бұрын
Thanks. 3v3 relay works better. Just connect it to 3v3 instead of 5v. The GPIO pins output only 3v3.
@marlboromage
@marlboromage 4 жыл бұрын
What if GPIO output is only 1v? I cannot seem to get this to work. Assuming that I need to do something more but not sure.
@jotagera
@jotagera 2 жыл бұрын
Hi. Can i power off the printer at the end of job with this thing?
@civedm
@civedm 3 жыл бұрын
Im assuming you can turn on and off multiple printers using a different GPIO pin for each relay?
@ttaborda
@ttaborda 4 жыл бұрын
hi there. im using orange pi lite board, sucessfully installed octoprint and the required plugin. The thing is, when i choose switch method, it only shows "system command" and "G-code command". There´s no option for GPIO... any help?
@thishadowithin
@thishadowithin 6 жыл бұрын
Great video! I need to know how do you make the diagrams on 1:48 2:55 and 3:15 ?? It looks awesome.
@Gyro1
@Gyro1 6 жыл бұрын
Thanks. It's program called fritzing. It's as cool as it looks 😁
@kelsicosme5556
@kelsicosme5556 6 жыл бұрын
Woww!! Inspired by your channel😀
@Gyro1
@Gyro1 6 жыл бұрын
Thanks 😊
@necroticer
@necroticer 5 жыл бұрын
Hi I made this and it's awesome! Is there a way to combine it with the automatic shutdown plugin from octoprint? that after finished a print, the PSU turn off the printer and octo shuts down too?
@Gyro1
@Gyro1 5 жыл бұрын
Thanks. I'm not sure if it's possible but I'm just using the power off when idle as automatic turn off
@tripore
@tripore 5 жыл бұрын
thank you
@Hopeinformer
@Hopeinformer 5 жыл бұрын
Thank you Gyro for this great tutorial. I have a quick question. Is there a way to set this up with the Pi Zero W?
@kupuk23
@kupuk23 3 жыл бұрын
yeah. the concept is the same, if ur Pi Zero can run octoprint then basically u can do it as well. just a simple IO thing
@Hopeinformer
@Hopeinformer 3 жыл бұрын
@@kupuk23 thank you. I've actually abandoned the PSU control through Octoprint because sometimes it worked and sometimes it didn't. Instead I use a smart plug now. Much easier
@inovamentes
@inovamentes 4 жыл бұрын
Hi all. I'm developing a plugin (or implementing another one) that shut down the printer automatically when it reaches a certain temperature, without the need to open the app or the browser. Does anybody know which file checks this on octoprint?
@sitgesvillaapartmentneilsc7924
@sitgesvillaapartmentneilsc7924 4 жыл бұрын
This is great but I assume this means that power must be on the pi at all times Yes,? so while the printer might be off the pi will still be on albeit it not doing much. as this video is a year or more old would it be a safer bet now just to use a wifi socket and turn the power off to the pi and the printer and turn them on via wifi when you want, that way the pi is not running even in background when the printer is off? Am I correct? thanks Neil
@avejst
@avejst 6 жыл бұрын
Thanks for sharing :-) Interesting Video :-)
@cristiancaa
@cristiancaa 4 жыл бұрын
Thanks for video in 30 minutes is ready in my ender 3!! , i thin create a video but in spanish of this , you have a problem if link your references and instructable?
@jensschroder8214
@jensschroder8214 Жыл бұрын
How about when the PI outputs 5 volts on the USB and is connected to the printer? The controller may be supplied with power by the PI via the USB cable.
@TonyBullard
@TonyBullard 3 жыл бұрын
If I were to use the 5V pin, would I not have to worry about the whole 3.5v thing?
@lucbisschops
@lucbisschops 5 жыл бұрын
Done the mod like on your yt film, got a 3.3v relay and vcc to 3.3v ground to ground and the signal pin to the gio pin that represents no3, configured it in psu config on octoprint like in your yt film saved the lot, can hear the relais clikcking and see the green led go on and off, (my printer is power bij a on off switch wich is turned on) but still no controle to turn my printer on and off. It is a anet A6. What am i missing here
@Gyro1
@Gyro1 5 жыл бұрын
Sounds like you're switching it alright. I'm guessing the live side of the relay might be a problem. Do you have anything connected to the COM pin?
@alexandrugroza839
@alexandrugroza839 3 жыл бұрын
Why didn't you used the relay with the 24v dc curent instead of ac ? Also doesn't it draw more than 10A, the psu has 14A
@anarekist
@anarekist 3 жыл бұрын
isnt it easier to make it a relay for the power switch?
@MarkoFabulic
@MarkoFabulic 5 жыл бұрын
Awesome tutorial, I have ordered relays and patiently waiting for them to arrive. I the meantime I'm thinking how will that work with my Ender 3. I have Pine64 with Octoprint that is connected to a printer via usb cable and when pine is operational it gives power to printer display and probably other functions on the printer even if printer PSU is not powered. How can I avoid powering printer trough usb w/o PSU?
@Gyro1
@Gyro1 5 жыл бұрын
Thanks. The easiest way is to just modify the USB cable. Disconnecting the 5V wire will do the trick
@MarkoFabulic
@MarkoFabulic 5 жыл бұрын
@@Gyro1 Yes, googling I found that that's the easiest solution so I ordered couple USB cables extra ;)
@pcysneros
@pcysneros 3 жыл бұрын
This was two years ago is there a better method now?
@BrixSat
@BrixSat 4 жыл бұрын
Gcode controled?
@chrise6419
@chrise6419 5 жыл бұрын
hey! really enjoyed your video, helped me a lot while setting this up but now i´m facing a problem: the gpio pin doesnt switch at all, i tried wiring my relay module the other way around (power supply on COM and NO) so i could check if the relay switches and as soon as i power on my pi it switches, but when i try to switch per PSU control plugin it doesnt do anything.
@3DPrintingKid
@3DPrintingKid 5 жыл бұрын
Power supply should be on COM and NC, not NO. At least that is what he said in the video
@chrise6419
@chrise6419 5 жыл бұрын
@@3DPrintingKid i tried it with COM and NC, but i solved the problem anyway, the raspberry pi GPIO does not put out enough current to make the relay switch, wired a NPN transistor and 1k resistor in, now it works
@pierremonico5002
@pierremonico5002 5 жыл бұрын
Thanks for the video, short and informative. Just a question: how do you manage to keep the LCD screen of the printer off while it is connected to the Raspberry Pi? Or isn't it connected in the video demonstration?
@Gyro1
@Gyro1 5 жыл бұрын
My printer doesn't use the power from the USB port of the pi instead it's powered solely by it's own power supply. If your screen is on even when your printer is connected only by USB you can eliminate that by modifying the USB cable. Simply disconnect the 5v line and you're good to go. It's usually the red wire
@pierremonico5002
@pierremonico5002 5 жыл бұрын
Thanks for the reply! When you say it is powered solely by it's own supply, does that mean you did exactly what you mentioned (modifying the USB cable)?
@Gyro1
@Gyro1 5 жыл бұрын
No. It was like that by default
@pierremonico5002
@pierremonico5002 5 жыл бұрын
Ok thank you. And thumbs up for the video again!
@davidedc2613
@davidedc2613 5 жыл бұрын
Do you know if PSU Control works also with OrangePi Zero? If not, do you know where I can find the plugin and how to install manually? Thanks
@Gyro1
@Gyro1 5 жыл бұрын
Sorry. Not sure about that
@SuperKlayBoy
@SuperKlayBoy 6 жыл бұрын
Hi So the raspberry Pi still needs to be powered by an external source
@Gyro1
@Gyro1 6 жыл бұрын
Yeah. Absolutely
@MrDjrmx
@MrDjrmx 4 жыл бұрын
hi gyro im totaly new im running 3.5 display on PI can i just use same pins for display twice for relay if i extend them from other side? thanx
@MrDjrmx
@MrDjrmx 4 жыл бұрын
5v and ground double and gpio that is not uset by display ?
@MrDjrmx
@MrDjrmx 4 жыл бұрын
FOUND ANSWER THER kzfaq.info/get/bejne/ZpN_n5mK28yUlps.html AT 6:55
@gui2001
@gui2001 6 жыл бұрын
OWWWW...Amazing !
@vincentpaire5993
@vincentpaire5993 5 жыл бұрын
Thanks !!!
@simonevalmacco8126
@simonevalmacco8126 6 жыл бұрын
Hi, very nice video! @ 1.26 I see a webpage where you can calculate the resistor for the transistor... which page is that? thank you very much!
@Gyro1
@Gyro1 6 жыл бұрын
www.petervis.com/GCSE_Design_and_Technology_Electronic_Products/transistor_base_resistor_calculator/transistor_base_resistor_calculator.html
@Gyro1
@Gyro1 6 жыл бұрын
www.petervis.com/GCSE_Design_and_Technology_Electronic_Products/transistor_base_resistor_calculator/transistor_base_resistor_calculator.html
5 жыл бұрын
If you realised your relay board: be careful to insulation distances and clearance distance on main power (on video is the brown wire).
@CorruptName1
@CorruptName1 5 жыл бұрын
Most of these relay boards work with 3.3 vcc.
@steveherrick1182
@steveherrick1182 5 жыл бұрын
Thanks for the video, I have built this and it works really well. But after switching the printer on and off a few times to check that it works, I then do a print and I am finding that after about an hour print that the relay contacts have fused together and I no longer can switch the relay. This has happened to two devices so far. Relay is rated at 10A 250VAC. Thoughts?
@MarkFunderburk
@MarkFunderburk 5 жыл бұрын
Its likely just bad quality relays.
@Gyro1
@Gyro1 5 жыл бұрын
Are you switching the 220/110V or 12V? The current on the 12V line can get easily over 10A if you have heated bed
@steveherrick1182
@steveherrick1182 5 жыл бұрын
@@Gyro1 switching 240. Ended up finding out that it wasn't a relay problem, but a connection issue from the raspberry pi. Thanks Steve
@MannYgfx
@MannYgfx 4 жыл бұрын
Couldn't you take it even further, and draw 220v from the cable to power the Pi, and make an enclosure for all the components? Essentially you'd be left with a power cable coming in/out of the box, and a USB-cable for connection.
@Gyro1
@Gyro1 4 жыл бұрын
Yeah. That might be neat
@FENATECH
@FENATECH 6 жыл бұрын
Great video and solution. I recently purchased a CR-10S and just received my Raspberry Pi so I can print using Octo Print. Question I have is upon plugin in my Raspberry Pi to the printers USB port the printers screen turns on even with the power switch turned off. Besides removing the 5VDC pin on the USB cable is there another way I can resolve this issue?
@Gyro1
@Gyro1 6 жыл бұрын
That's interesting. I have cr-10 too but I don't have this problem. There must be some problem with the electronics. I think you'll have to take it apart. I'd suggest checking Reddit if someone has the same issue
@FENATECH
@FENATECH 6 жыл бұрын
Yes, was just doing that. Seems to be an issue with the latest version of the printer and suggestions are to remove the 5VDC pin from the USB plug as I had figured. Thank you foer the quick reply.
@rczone9830
@rczone9830 3 жыл бұрын
Relay case stl file please.
@jrok96
@jrok96 5 жыл бұрын
i've seen using methods like this above using the relay to completely remove power to power supply. This is no good if your powering your pi from said power supply. so how about just cutting the power from the power supply to the 3d printers board. this would leave the power supply on but the printer off. for example on my ender 3 pro i would just have the relay cut power going to the xt60 connector?
@Gyro1
@Gyro1 5 жыл бұрын
You could do that. The only thing to look for is how much current will the printer need. The relays are usually rated for 10A and the heated bed combined with the hot end can draw more than that
@josephploettner7327
@josephploettner7327 5 жыл бұрын
Is there a way to have this cut the power at the end of a print?
@Gyro1
@Gyro1 5 жыл бұрын
You could add a command at the end if the g-code but there is option to turn the printer off when idle. I set it to 15 minutes. So 15 minutes after print is finished the printer turns off
@mariogayoso
@mariogayoso 6 жыл бұрын
Do you have a thingiverse for the 3d print case? Great Job!
@Gyro1
@Gyro1 6 жыл бұрын
Thanks. Yea it here www.thingiverse.com/thing:2852773
@Klaas_H
@Klaas_H 6 жыл бұрын
A bit of a loss here. I leave my printer on all the time just like my on standby TV. As far I know only the LCD and maybe a few other components like the transformer use only a very small fraction the power.
@gordonmutten1750
@gordonmutten1750 3 жыл бұрын
I find that if my printer is off but connected via USB to the pi, that the pi powers the display and circuits of my Ender 3. I'm not sure that's a good thing to do. Therefore I would need a second relay to disconnect the USB power to my printer
@matheusfilipeb
@matheusfilipeb 5 жыл бұрын
Very nice explanation! I would like to know something: My raspberry is powered on the 3d printer PSU, when I turn of the printer it will also turns off the Pi. Is it OK for the Raspberry to turns off like this?
@Gyro1
@Gyro1 5 жыл бұрын
It's not the best practice to just unplug the pi because you might end up with some corrupted files but most of the time it will work just fine. However having it connected to the PSU of your printer means this mod won't work. It needs separate power supply
@Bigtbuilder
@Bigtbuilder 5 жыл бұрын
Gyro what you mean is the mod won’t work to properly shut down the Pi. What is needed is a momentary switch mod connected to the relay with a trip to set the code off. Nothing I have found works with Octoprint
@jardane
@jardane 3 жыл бұрын
I'm setting up a windows octoprint hub with 5 printers and now I am wondering how I can so this on a windows octoprint server...
@thedude333
@thedude333 5 жыл бұрын
this is great, working fine, the only thing is that the bolt icon is green when the printer is off, and when i press the bolt , printer turns on. how can i sync it to the true state of the printer ?
@Gyro1
@Gyro1 5 жыл бұрын
There is an invert option in the PSU control settings
@thedude333
@thedude333 5 жыл бұрын
@@Gyro1 cool, thanks.
@thesuki
@thesuki 3 жыл бұрын
This probably will never be responded to but do you have any concerns using a 5A relay? I have a 120V, 10A relay for my Ender 3 and I want to make sure I’m not going to burn the house down when running this for a long term. The math says I’m only pulling about 3A but I’m not sure how reliable these small parts are.
@Gyro1
@Gyro1 3 жыл бұрын
These are cheap chinese relays so you never know but when they fail they don't catch on fire. You can get more expensive relay or even solid state one but that will be more work. Some people suggest smart plugs but they usually use the same components as this
@nicholasjacobs1967
@nicholasjacobs1967 4 жыл бұрын
Absolutely awesome. Now hook it up to a smoke/heat detector to auto-shut off for you. Another project idea: Command the printer to prep the bed for printing :) Seriously though - its an awesome idea. Well explained, love your humour. Thank you. Nicholas
@s3mih3mi
@s3mih3mi 6 жыл бұрын
I do the same thing with a wifi plug off Amazon. I use it to turn it off from anywhere. With a camera I can see when it is done printing and give it 10 minutes to cool down and then shut it off
@LostCloudx4
@LostCloudx4 5 жыл бұрын
why run a Pi & a wifi plug when u can do it all in 1
@demonninja18
@demonninja18 5 жыл бұрын
@@LostCloudx4 if you have your pi set up to run off off the printer power supply then the pi will not have power to activate the relay
@volrath__
@volrath__ 5 жыл бұрын
@@demonninja18 The Pi runs off its own powersupply. Octoprint is a server that controls the printer. By design its always on waiting for commands. You are able to control everything through one interface. I can send a print from Cura to OctoPrint, Octoprint automatically turns on the printer, prints the item, then shuts the printer down afterward. Its a one button solution once its set up.
@nczioox1116
@nczioox1116 3 жыл бұрын
@@LostCloudx4 I use a plug and I just have a widget on my phone. It's still pretty convenient.
@timbilliet1050
@timbilliet1050 4 жыл бұрын
very nice, the raspberry pi should be plugged in all the time right?
@Gyro1
@Gyro1 4 жыл бұрын
Yep
@tomernassi
@tomernassi 6 жыл бұрын
i connected everything as you told, after setting up the gpio pin the relay klick and turned off the circuit. but the power button does nothing, which means that the relay stays off all the time
@Gyro1
@Gyro1 6 жыл бұрын
Can you check if the relay works with 3V3 even without the pi?
@Gyro1
@Gyro1 6 жыл бұрын
Can you check if the relay works with 3V3 even without the pi?
@aytunch
@aytunch 4 жыл бұрын
Let's say I have 3 printers connected to my OctoPi, Can I do this device 3 times and turn them on/off separately just like you do here?
@Gyro1
@Gyro1 4 жыл бұрын
I don't think the plug-in supports that
@ParagonDIY
@ParagonDIY 5 жыл бұрын
hi, can this solution be applied when the printer is switched off automatically after printing?
@Gyro1
@Gyro1 5 жыл бұрын
Probably not. If you have to turn the printer on with a button on the front panel then it's not going to work
@ParagonDIY
@ParagonDIY 5 жыл бұрын
So it is not possible with such a relay to turn off the printer after finishing printing by Raspberry Pi automatically?
@Gyro1
@Gyro1 5 жыл бұрын
My bad. I misunderstood. Yes it is possible. There is an option in the settings to turn it on. I think it turns printer off when it's idle and you can set after how much time it'll turn off
@ParagonDIY
@ParagonDIY 5 жыл бұрын
:) ok, I already have a 3V relay, I am waiting for Rapberry Pi 3 B + and I will do it according to your description, thank you very much for your answer. Regards Leszek
@Gyro1
@Gyro1 5 жыл бұрын
Good luck 😉
@xonerti9038
@xonerti9038 5 жыл бұрын
Excuse me what 3D printer I use in the video
@Gyro1
@Gyro1 5 жыл бұрын
Creality cr-10
@paytufo
@paytufo 5 жыл бұрын
I don't know why my on/off function doesn't work well. If i put the cables in NC configuration I can turn off but not turn on then, and If I put in NO I can't turn off. I try connecting 1 relay with 24v positive Common and with 2 realys one for 24 positive and another one for the negative. Any idea?
@Gyro1
@Gyro1 5 жыл бұрын
If you're using 5V relay you might need to modify it. Link on how to do it is in the description.
@paytufo
@paytufo 5 жыл бұрын
@@Gyro1 My relay doesn't have any pins to jumper it
@madsrobinhavmand8813
@madsrobinhavmand8813 5 жыл бұрын
What about putting the relay in between the PSU and the printer instead of in between mains and the PSU? That would allow one to power the Pi from the printer and still turn it on and off - However you’d have the PSU turned on constantly then...
@Gyro1
@Gyro1 5 жыл бұрын
Depending on what kind of printer you have. the current on 12v rail can be well over 10A so a beefier relay might be necessary
@BaristaPablo
@BaristaPablo 5 жыл бұрын
i have an ender 3 and im trying this, 24v and at highest 270W so ~10 A, but i'm having trouble triggering the relay with just 3.3v from the pi. (i couldnt find a 3.3v locally)
@sidekick3rida
@sidekick3rida 4 жыл бұрын
could've put the relay with the main board, no?
@angelshce
@angelshce 6 жыл бұрын
i have a 40 amp psu there is no problem whit a 10 amp relay?
@Gyro1
@Gyro1 6 жыл бұрын
No. The relay is switching the 230V line which carries a lot less current. The 40A are at 12V so it's fine.
@Gyro1
@Gyro1 6 жыл бұрын
No. The relay is switching the 230V line which carries a lot less current. The 40A are at 12V so it's fine.
@dleivam
@dleivam 5 жыл бұрын
Wow.. Awesome..
Use smart plugs + Octoprint to improve your 3D printing
13:29
Teaching Tech
Рет қаралды 85 М.
Прошивка Klipper - Что, Как, Зачем на примере Kingroon KP3S
29:43
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 57 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 169 МЛН
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 10 МЛН
12 MUST-HAVE Octoprint Plugins for Happier 3D Printing
12:49
The Next Layer
Рет қаралды 107 М.
Raspberry Pi Power Switch Button - Safe Shutdown / Start Up
10:03
OctoDash - Octoprint Touch Screen App - Chris's Basement
25:03
Chris Riley
Рет қаралды 78 М.
Using cheap car parts to easily power your 3D printer's Raspberry Pi
11:27
SD Card + ESP8266 = OctoPrint Alternative?
16:28
Made with Layers (Thomas Sanladerer)
Рет қаралды 258 М.
From Cura to OctoPrint in JUST THREE CLICKS!
6:42
BV3D: Bryan Vines
Рет қаралды 10 М.
Telefonu Parçaladım!😱
0:16
Safak Novruz
Рет қаралды 27 МЛН
ВАЖНО! Не проверяйте на своем iPhone после установки на экран!
0:19
ГЛАЗУРЬ СТЕКЛО для iPhone и аксессуары OTU
Рет қаралды 6 МЛН
НЕ БЕРУ APPLE VISION PRO!
0:37
ТЕСЛЕР
Рет қаралды 355 М.
Я купил первый в своей жизни VR! 🤯
1:00
Вэйми
Рет қаралды 2,8 МЛН
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 9 МЛН
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 386 М.