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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 เม.ย. 2018
  • 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 ปีที่แล้ว +9

    Update! If you have problem with 5V relay I've made tutorial on how to make it work on 3.3V th-cam.com/video/p7wmzAzDX-Q/w-d-xo.html

  • @rsrollins72
    @rsrollins72 5 ปีที่แล้ว +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.

  • @xaxipistaxi
    @xaxipistaxi 2 ปีที่แล้ว

    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.

  • @LostCloudx4
    @LostCloudx4 5 ปีที่แล้ว +2

    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!

  • @hoggif
    @hoggif 4 ปีที่แล้ว +2

    That's a great idea to use octoprint for controller when you already have one. Will replicate this one for sure!

  • @mereskimade
    @mereskimade 4 ปีที่แล้ว +1

    This worked amazing. Thank you so much for the clear video and great idea.

  • @esqueue
    @esqueue 4 ปีที่แล้ว +1

    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....

  • @Nordic_Goon
    @Nordic_Goon 3 ปีที่แล้ว +4

    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.

  • @JasonLooseArrowAlso
    @JasonLooseArrowAlso 4 ปีที่แล้ว

    Well done. This video has made this project understandable for me. Thanks!

  • @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!!.

  • @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.

  • @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

  • @markeichwald7105
    @markeichwald7105 5 ปีที่แล้ว +1

    Great Tutorial I love it!

  • @Skint009
    @Skint009 5 ปีที่แล้ว +1

    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..

  • @themisterymistery
    @themisterymistery 6 ปีที่แล้ว

    I'm never going to do this, but it was still super interesting!

  • @austinkaye648
    @austinkaye648 5 ปีที่แล้ว +3

    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

  • @rodneysmith1750
    @rodneysmith1750 5 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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

  • @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.

  • @SeeEssPerez
    @SeeEssPerez 3 ปีที่แล้ว

    Great tutorial. Thank you!

  • @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?

  • @mikem8145
    @mikem8145 5 ปีที่แล้ว

    Great tutorial!

  • @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.

  • @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

  • @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?

  • @mksmurff
    @mksmurff 5 ปีที่แล้ว +45

    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 ปีที่แล้ว +1

      They actually have a plugin to control a Ikea Tradfri outlet now; I prefer this method...

    • @justinlabarge8178
      @justinlabarge8178 3 ปีที่แล้ว +2

      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 9 วันที่ผ่านมา

      Years ago there was plugin for TP-link wifi socket but that not worked for me :-(

  • @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?

  • @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.

  • @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?

  • @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.

  • @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 ปีที่แล้ว +1

      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

  • @ianh2705
    @ianh2705 6 ปีที่แล้ว +1

    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

  • @grogyan
    @grogyan 6 ปีที่แล้ว

    You could have also added in a Power Loss detector as well, for a complete solution.

  • @steveclark3379
    @steveclark3379 3 ปีที่แล้ว

    very good... thank you for showing how to set this up..... cool

  • @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.

  • @civedm
    @civedm 2 ปีที่แล้ว

    Im assuming you can turn on and off multiple printers using a different GPIO pin for each relay?

  • @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

  • @kajakmannen
    @kajakmannen 4 ปีที่แล้ว +1

    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

  • @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

  • @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

  • @thishadowithin
    @thishadowithin 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

      Thanks. It's program called fritzing. It's as cool as it looks 😁

  • @ttaborda
    @ttaborda 3 ปีที่แล้ว

    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?

  • @ricardomendonca1828
    @ricardomendonca1828 6 ปีที่แล้ว

    Very nice ! Liked and subscribed.

  • @pierremonico5002
    @pierremonico5002 5 ปีที่แล้ว +1

    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!

  • @necroticer
    @necroticer 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      Thanks. I'm not sure if it's possible but I'm just using the power off when idle as automatic turn off

  • @gui2001
    @gui2001 5 ปีที่แล้ว +2

    OWWWW...Amazing !

  • @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 ;)

  • @Craigthepope
    @Craigthepope 6 ปีที่แล้ว +1

    Great video!

    • @Gyro1
      @Gyro1  6 ปีที่แล้ว +1

      Thanks :)

  • @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.

  • @StephaneRapin
    @StephaneRapin 5 ปีที่แล้ว +1

    If you realised your relay board: be careful to insulation distances and clearance distance on main power (on video is the brown wire).

  • @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 ปีที่แล้ว +1

      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

  • @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

  • @simonevalmacco8126
    @simonevalmacco8126 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

      www.petervis.com/GCSE_Design_and_Technology_Electronic_Products/transistor_base_resistor_calculator/transistor_base_resistor_calculator.html

    • @Gyro1
      @Gyro1  5 ปีที่แล้ว

      www.petervis.com/GCSE_Design_and_Technology_Electronic_Products/transistor_base_resistor_calculator/transistor_base_resistor_calculator.html

  • @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

  • @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

  • @marlboromage
    @marlboromage 3 ปีที่แล้ว

    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.

  • @michaelknight2897
    @michaelknight2897 4 ปีที่แล้ว

    Is 10a enough for a large printer like the CR-10?

  • @jotagera
    @jotagera 2 ปีที่แล้ว

    Hi. Can i power off the printer at the end of job with this thing?

  • @cristiancaa
    @cristiancaa 3 ปีที่แล้ว

    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?

  • @steveherrick1182
    @steveherrick1182 5 ปีที่แล้ว +1

    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

  • @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...

  • @MrDjrmx
    @MrDjrmx 3 ปีที่แล้ว

    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 3 ปีที่แล้ว

      5v and ground double and gpio that is not uset by display ?

    • @MrDjrmx
      @MrDjrmx 3 ปีที่แล้ว

      FOUND ANSWER THER th-cam.com/video/0-Ol6Yvf0fg/w-d-xo.html AT 6:55

  • @wwpdmedia
    @wwpdmedia 3 ปีที่แล้ว +1

    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 8 หลายเดือนก่อน

      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

  • @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

  • @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.

  • @TonyBullard
    @TonyBullard 3 ปีที่แล้ว

    If I were to use the 5V pin, would I not have to worry about the whole 3.5v thing?

  • @TheVideoVolcano
    @TheVideoVolcano 5 ปีที่แล้ว +32

    "hopefully nothing blows up and nobody dies" :D

  • @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?

  • @kelsicosme5556
    @kelsicosme5556 6 ปีที่แล้ว

    Woww!! Inspired by your channel😀

    • @Gyro1
      @Gyro1  6 ปีที่แล้ว

      Thanks 😊

  • @clashmanfor3486
    @clashmanfor3486 6 ปีที่แล้ว

    I like your axent.

  • @RogerAlcon
    @RogerAlcon 5 ปีที่แล้ว

    My machine has a 15A power source. Where can I find an adequate relay? or should I make it? or I can make the cut directly on the switch of the power source that's usually low-amp. What do you recommend?

    • @Gyro1
      @Gyro1  5 ปีที่แล้ว

      The printer will draw 15A at 12V but at the same time it's pulling less than 1A from the wall(230V). That's why I put the relay on the power cord. At 230/120V the current is relatively low.

    • @RogerAlcon
      @RogerAlcon 5 ปีที่แล้ว

      ​Perfect, I have a relay of 5v 10A arduino unused. I'll put it to work.

    • @RogerAlcon
      @RogerAlcon 5 ปีที่แล้ว

      It worked, Many people do not like the 5v relay and I do not know why if the raspberry has it. My configuration: GPIO Mode>BCM, GPIO>15.

    • @Gyro1
      @Gyro1  5 ปีที่แล้ว

      Awesome 🙂. Yeah the 5V relay on raspberry pi is a bit of a bet.

  • @avejst
    @avejst 5 ปีที่แล้ว

    Thanks for sharing :-)
    Interesting Video :-)

  • @Rene046
    @Rene046 5 ปีที่แล้ว

    hi there are you using the Mini ?

  • @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

  • @tripore
    @tripore 5 ปีที่แล้ว

    thank you

  • @timbilliet1050
    @timbilliet1050 4 ปีที่แล้ว

    very nice, the raspberry pi should be plugged in all the time right?

    • @Gyro1
      @Gyro1  4 ปีที่แล้ว

      Yep

  • @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

  • @vincentpaire5993
    @vincentpaire5993 5 ปีที่แล้ว

    Thanks !!!

  • @mariogayoso
    @mariogayoso 5 ปีที่แล้ว

    Do you have a thingiverse for the 3d print case? Great Job!

    • @Gyro1
      @Gyro1  5 ปีที่แล้ว +1

      Thanks. Yea it here www.thingiverse.com/thing:2852773

  • @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?

  • @Joshua-ww7rd
    @Joshua-ww7rd 6 ปีที่แล้ว

    Wow! Is there any way to do this but turn on an external device aswell as the printer? Like a light or a fillament monitor?

    • @Gyro1
      @Gyro1  6 ปีที่แล้ว +1

      Sure. You could simply connect power strip instead of the power cord.

    • @Joshua-ww7rd
      @Joshua-ww7rd 6 ปีที่แล้ว

      Gyro And will the relay handle any incoming voltages? Like a 12V rbg strip or a 5V USB device? Will this work with a duel relay board to turn two things on at once? Thanks for the speedy response!

    • @Gyro1
      @Gyro1  6 ปีที่แล้ว

      I'm not sure what exactly you mean. The relay module I've linked to can be switched only with 5V but it can be switching any voltage. But you'll need separate relays for 230V, 12V ,5V etc.

    • @Gyro1
      @Gyro1  6 ปีที่แล้ว

      I'm not sure what exactly you mean. The relay module I've linked to can be switched only with 5V but it can be switching any voltage. But you'll need separate relays for 230V, 12V ,5V etc.

    • @Joshua-ww7rd
      @Joshua-ww7rd 6 ปีที่แล้ว

      Gyro could you use this board to turn on the printer and a 12v light?
      (www.amazon.co.uk/dp/B01H2D2RI0/ref=cm_sw_r_cp_apa_i_yF0.AbS4X3494)

  • @SuperKlayBoy
    @SuperKlayBoy 5 ปีที่แล้ว

    Hi
    So the raspberry Pi still needs to be powered by an external source

    • @Gyro1
      @Gyro1  5 ปีที่แล้ว

      Yeah. Absolutely

  • @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.

  • @ckafrouni
    @ckafrouni 4 ปีที่แล้ว

    Hey, So I am quite new to 3d printing and know little to none about the electrical part of that world. However I've already done an octoprint install on my pi and connected it to my ender 5 plus, and it is working great. For now I'm doing what I see in videos on youtube haha (so thx a lot).
    And now I want to try that.
    I still have a question that might seem dum, but when you are controling your printer with your pie.
    So you can turn the power off, and then you have turn your pie off, all from within octoprint.
    But when you want to turn your pi on, you still have to go dowstairs to take off the plug and plug it back in no?
    Thanks a lot, haha that dum question is been bugging me for a while know.

    • @Gyro1
      @Gyro1  4 ปีที่แล้ว +1

      It wasn't very clear from the video but pi has to plugged in its own plug separately from printer

    • @ckafrouni
      @ckafrouni 4 ปีที่แล้ว

      @@Gyro1 thanks for your answer, and do you know which relay module should I use for the ender 5 plus? It has a 500W power supply.
      I was told not every 5v relay works for all power supply.
      I want to make sure "nothing blows up and nobody dies" haha
      Thankss!!

  • @pcysneros
    @pcysneros 3 ปีที่แล้ว

    This was two years ago is there a better method now?

  • @anarekist
    @anarekist 3 ปีที่แล้ว

    isnt it easier to make it a relay for the power switch?

  • @TechExploresNYC
    @TechExploresNYC 3 ปีที่แล้ว

    could have also use a smart plug if you can't bother with hardware hacking, except this one puts it right in raspberry pi
    And right after I typed this I found an octopi to TP-link plugin. And I just happen to have a TPlink laying around.

  • @TheGodOfWar1337
    @TheGodOfWar1337 5 ปีที่แล้ว

    Would it be easier for me to setup it up if I buy one that supports 3.3v instead 5v? ? Would I need to add any resisters ?

    • @Gyro1
      @Gyro1  5 ปีที่แล้ว

      Yeah. It'd be easier with 3v3 one. You shouldn't need any resistor then

    • @TheGodOfWar1337
      @TheGodOfWar1337 5 ปีที่แล้ว

      Thanks , and since the board is 3.3v I don’t need two boards then for 3V3 and 5v ? Sorry if a bit confusing but I want to make sure that I get the right parts for this project .

    • @TheGodOfWar1337
      @TheGodOfWar1337 5 ปีที่แล้ว

      rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.com%2Fulk%2Fitm%2F351748538371
      rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.com%2Fulk%2Fitm%2F372240651316
      Would either one of these be fine ?

    • @Gyro1
      @Gyro1  5 ปีที่แล้ว

      No. The raspberry pi has 3v3 power output.

  • @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?

  • @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

  • @MannYgfx
    @MannYgfx 3 ปีที่แล้ว +2

    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  3 ปีที่แล้ว

      Yeah. That might be neat

  • @dleivam
    @dleivam 4 ปีที่แล้ว

    Wow.. Awesome..

  • @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

  • @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...

  • @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 😉

  • @bcsnapier
    @bcsnapier 5 ปีที่แล้ว

    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.

  • @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)

  • @s3mih3mi
    @s3mih3mi 5 ปีที่แล้ว +9

    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 ปีที่แล้ว +1

      @@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.

  • @fredwupkensoppel8949
    @fredwupkensoppel8949 3 ปีที่แล้ว

    Wouldn't it make more sense to wire the relay up so that it's normally open? That way the printer can only be operated when the Pi is up and running.

  • @PunakiviAddikti
    @PunakiviAddikti 4 ปีที่แล้ว

    If you're asking yourself "why would I need this?" let me tell you something. Octoprint makes sure to keep an eye on your printer, and your printer should have thermal runaway protection active. Octoprint can send an emergency gcode command that disables all heaters and motors, and the printer's thermal runaway protection does the same and reports an temperature error. What you need to know is that the bed and hotend heaters are controlled via MOSFETs. These act like switches, like transistors because they are a type of transistor. But they an actually fail *short circuit* meaning that they're stuck in the ON state. This means that even though the printer and octoprint receive a constantly rising temperature error, there's nothing they can do. They can't turn the failed MOSFET off. This is rare but extremely dangerous. Having a way to remotely shut down the printer is good, and Octoprint can do this automatically by using this relay trick. That's why you need it.

  • @brianrussell4717
    @brianrussell4717 2 ปีที่แล้ว

    Or you could get an Alexa controlled plug like I have from gosung and control with with your phone, Alexa or even a timer