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 ua-cam.com/video/p7wmzAzDX-Q/v-deo.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 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 роки тому +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....

  • @hoggif
    @hoggif 5 років тому +2

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

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

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

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

  • @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 4 роки тому +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 2 місяці тому

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

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

  • @JasonLooseArrowAlso
    @JasonLooseArrowAlso 4 роки тому

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

  • @mereskimade
    @mereskimade 4 роки тому +1

    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.

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

  • @themisterymistery
    @themisterymistery 6 років тому

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

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

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

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

  • @markeichwald7105
    @markeichwald7105 5 років тому +1

    Great Tutorial I love it!

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

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

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

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

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

  • @TheVideoVolcano
    @TheVideoVolcano 5 років тому +32

    "hopefully nothing blows up and nobody dies" :D

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

  • @mikem8145
    @mikem8145 5 років тому

    Great tutorial!

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

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

  • @steveclark3379
    @steveclark3379 3 роки тому

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

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

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

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

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

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

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

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

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

  • @Craigthepope
    @Craigthepope 6 років тому +1

    Great video!

    • @Gyro1
      @Gyro1  6 років тому +1

      Thanks :)

  • @ricardomendonca1828
    @ricardomendonca1828 6 років тому

    Very nice ! Liked and subscribed.

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

  • @grogyan
    @grogyan 6 років тому

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

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

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

  • @michaelknight2897
    @michaelknight2897 4 роки тому

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

  • @Rene046
    @Rene046 5 років тому

    hi there are you using the Mini ?

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

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

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

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

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

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

  • @gui2001
    @gui2001 6 років тому +2

    OWWWW...Amazing !

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

  • @clashmanfor3486
    @clashmanfor3486 6 років тому

    I like your axent.

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

  • @jotagera
    @jotagera 2 роки тому

    Hi. Can i power off the printer at the end of job with this 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?

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

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

  • @kelsicosme5556
    @kelsicosme5556 6 років тому

    Woww!! Inspired by your channel😀

    • @Gyro1
      @Gyro1  6 років тому

      Thanks 😊

  • @mariogayoso
    @mariogayoso 6 років тому

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

    • @Gyro1
      @Gyro1  6 років тому +1

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

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

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

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

  • @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 ua-cam.com/video/0-Ol6Yvf0fg/v-deo.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 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

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

  • @TonyBullard
    @TonyBullard 3 роки тому

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

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

  • @timbilliet1050
    @timbilliet1050 4 роки тому

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

  • @tripore
    @tripore 5 років тому

    thank you

  • @vincentpaire5993
    @vincentpaire5993 5 років тому

    Thanks !!!

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

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

  • @SuperKlayBoy
    @SuperKlayBoy 6 років тому

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

    • @Gyro1
      @Gyro1  6 років тому

      Yeah. Absolutely

  • @pcysneros
    @pcysneros 3 роки тому

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

  • @avejst
    @avejst 6 років тому

    Thanks for sharing :-)
    Interesting Video :-)

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

  • @MannYgfx
    @MannYgfx 4 роки тому +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  4 роки тому

      Yeah. That might be neat

  • @anarekist
    @anarekist 3 роки тому

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

  • @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 роки тому +1

      I don't think the plug-in supports that

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

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

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

  • @dleivam
    @dleivam 5 років тому

    Wow.. Awesome..

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

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

  • @BrixSat
    @BrixSat 4 роки тому

    Gcode controled?

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

  • @CorruptName1
    @CorruptName1 5 років тому +1

    Most of these relay boards work with 3.3 vcc.

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

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

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

  • @josephploettner7327
    @josephploettner7327 5 років тому

    Is there a way to have this cut the power at the end of a print?

    • @Gyro1
      @Gyro1  5 років тому +1

      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

  • @player56978
    @player56978 3 роки тому +5

    Guys, the 3D printer consumes 15A and 24V (Ender 3 Pro). Don't use relays that can maximum handle 5A or 10A. Yes, it will work for a while, but if you leave for a too long time the relay connected, it can burn. Instead of that, I recommend to use a relay that can handle 30A (or any of them that can handle more than 15A and 24V). It is more safe and the price is not a very big deal.

    • @KilianGosewisch
      @KilianGosewisch 3 роки тому

      so 15A*24V is 360W. The relay is switching the 240V line. So 360W/240V should be 1.5A on mains voltage. If your SSR can handle 2A it SHOULD be enough. Correct me if im wrong, please.

    • @player56978
      @player56978 3 роки тому +2

      @@KilianGosewisch So, in this video and usually simple relays are made to handle 10A 240V AC or 10A 30V DC. If you are using such relay, you can handle only 10A*30V DC=300W, while the Ender 3 Pro works on 360W, so it consumes more Watt. If you want to connect relay from the DC power supply of the 3D printer, it can not handle this power. For that better to use a 30A 30V DC relay. Also, I noticed only now that he connected the relay to AC source, so theoretical it will handle 360W (10A*240V AC=2400W), but for DC not.

    • @KilianGosewisch
      @KilianGosewisch 3 роки тому +1

      Right. On my tevo tornado i want to connect it to AC so it should be fine as i thought