Raspberry Pi Relays - connect to Octoprint and Octorelay for 3D Printers, installed in Prusabox

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2022
  • How to connect a relay to Raspberry Pi for use with Octoprint and Octorelay. Allow your 3D printer with Octoprint to control LED lighting, fans etc.
    My example was housed in a Prusa Box enclosure for my Prusa MK3, and to follow will be a Tukkari enclosure based Pi controller.
    This video was at the request of several subscribers.
    If you want to see more videos, please Like and Subscribe and SHARE.
    (connect at your own risk, using mains voltage is not recommended unless you know what you are doing)
    Useful links:
    Detailed tech description of the wiring - which is where i obtained most of the info: • RASPBERRY PI - All Ab... [credit to this author] This is worth viewing before starting any wiring.
    The PrusaBox modified buck converter housing lid can be found at www.prusaprinters.org/prints/...
    Enclosures:
    PrusaBox - www.printer-box.com/?wpam_id=1
    Tukkari enclosure for Ender3 / Prusa Mk3 / Prusa Mini: Europe - www.Tukkari.com, USA/Global - www.tukkari.store
    #raspberrypi
    #octoprint
    #octorelay
    #relay
    #prusabox
    #prusa
    #tukkari
    (some links may be affiliate links)
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 38

  • @fuijika
    @fuijika 6 หลายเดือนก่อน +1

    Thank you so much for this video, I have the exact same relay board and no instruction so of course I wired it with the wrong vcc pin and it drove me nut with the relays working randomly when they felt like it. With your wirering instruction it works like a charm now. Thanks again!

  • @jaredspink6250
    @jaredspink6250 10 หลายเดือนก่อน

    Great video. Seems like an easy way to run logic for relays in PrusaBox

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

    Very nice~! I'm very interested in learning more about how to maximize the capabilities between a RPi and my new 3D printer...or anything related to the two, for that matter. I'll be getting Octoprint setup after I complete assembling my MK3S+ kit. Thanks for sharing~!

  • @CatRadioactive
    @CatRadioactive ปีที่แล้ว

    Great Tutorial ❤

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

    Great video. Just what I’m after and I have some single relay boards.
    Question, does that plugin work with MQTT? Can’t see that it does anywhere but not sure if anything within Octoprint can be.

  • @DazzerDags
    @DazzerDags 2 ปีที่แล้ว +1

    Great work, Colin. Your videos really make it sound like anyone can do what you've done. Explanitory without being too wordy or too loud (I have sensitivities to noises and it feels like half the people on TH-cam yell into the mics). Keep up the good work! I see you posted a link below to contact you but it would be good to have a way of communicating outside of business prospects. If, in that case, it's still OK to get in touch via that website then please let me know. Cheers!

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

      Thanks. I post now and again on some of the Prusa Facebook group pages, so you can often message me via there.

    • @DazzerDags
      @DazzerDags 2 ปีที่แล้ว +1

      ​@@colinhill Closed the Facebook account quite a while back but at least this info is out there for others. By the way, it would be interesting to see some content on how you make/modify some of the parts you're adding to your projects. Personally I'm not the best in fusion but seeing the process on one or two pieces in your videos could add that additional layer that you usually don't get elsewhere.

    • @colinhill
      @colinhill  2 ปีที่แล้ว +1

      @@DazzerDags I'm not an expert on fusion360, mainly a case of being inventive. Will consider your suggestions. Cheers

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

    Thanks for all your informations. I am starting to get everything together for my Printerbox including the fan speed temperature control panel. Because I am very new to this I want to ask which cable diameters you are using so it’s reliable to use but also easy to install? Because I want to set up a pi with a display I still having you scenes in mind where all the cables (including the usb) has to find a spot without preventing the assembly.
    Thanks a lot and greetings from Berlin

    • @colinhill
      @colinhill  2 ปีที่แล้ว +1

      I believe most wires were 22swg i would suggest multi strand so they are flexible. The prusa box facebook site has some beta versions of wiring diagrams.

  • @naktaal
    @naktaal ปีที่แล้ว

    Hi, Colin! Thanks for another great video! I'm curious about using a manual switch for the lights in addition to the relay. If the relay is open, can the switch still turn the lights on or do you have to leave the relay closed and then use the switch? Also, could you tell me how you've got that setup wired? Thanks again!

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

      Hi. Trying to get time to do full wiring video. You are correct the switch won't turn the lights on, the pi has to do that. But I like the option to manually turn the lights off.

    • @naktaal
      @naktaal ปีที่แล้ว

      @@colinhill Thanks for the clarification! I'd greatly appreciate a video just about the wiring. The Printer Box documentation leaves much to be desired in that area.

  • @renegaed
    @renegaed ปีที่แล้ว

    Hey Colin, great video. One question, the GPIO pins on my Pi are currently all used up for the octodash display. Are you connecting this to a second Pi? If so, where do you put it? Thanks.

    • @colinhill
      @colinhill  ปีที่แล้ว

      My pi uses a DSI display so that's using the display output via ribbon cable. That means all the gpio pins can be used. You can't use a second pi. I would suggest changing your screen for one that mentions DSI connection.

    • @renegaed
      @renegaed ปีที่แล้ว

      @@colinhill thanks that's what I was thinking.

  • @nobody-mi1qf
    @nobody-mi1qf 2 ปีที่แล้ว +2

    Do you know if the relay could be powered from the Buck converter instead of the Pi? That way you would only have to route the signal wires from the Pi's GPIO to the relay module in the back of the enclosure. Thanks for your content

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

      They could. But I prefer to be able to shut down the Pi and know the relays are powered down. If powered from buck converter there would always be power on, unless you unplug buck converter. It's a personal preference.

    • @williamaprea7124
      @williamaprea7124 2 ปีที่แล้ว +1

      @@colinhill Thanks for the fantastic video once again. A follow-up question for the wiring. What length jumper cables are you using between the Pi in the front of the PrusaBox and the relay board in the rear of the PrusaBox? 100cm? Some other length?

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

      @@williamaprea7124 I make my own. Chop a pi cable in half and add a section in-between. Solder and heatshrink it.

  • @ny-lights
    @ny-lights 2 ปีที่แล้ว +1

    Hey Colin. What are those translucent multi-way connectors you use on your builds?

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

      Are you talking about the 2 wire JST connectors? Or blade connectors with clear rubber covers?

    • @ny-lights
      @ny-lights 2 ปีที่แล้ว

      @@colinhill You're holding them in your hands at 2:19? I think it's how you connect multiple fans to one relay or switch? I'm new at some of this electronics stuff and want to learn!

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

      @@ny-lights Ah right! Those are simple electrical connectors that have been around for decades. Try searching on Amazon for something like "12 Pack Clear Electrical Terminal Blocks Electrical Connector Blocks" - you will see lots of different sizes and rating of similar connector.

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

    Another question for you, Colin. Presumably if you are powering 12V fans and lights, you need 12V relays? Couldn't get my 12V LED lights to power on from OctoRelay but then realized that my 4 channel relay board was 5V. If that is the case (that 12V relays are needed), do you think I've fried my 5V relay board by feeding it 12V?

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

      Oh! Be careful wiring up. Your LEDs and fans should only go to the relays (relays are usually able to handle a lot more than 12v), not any of the Pi spike pins. You only connect one side of the power to these devices. As an example for leds, basically from your 12v buck converter 12v output run positive cable to the centre common of a relay. Then from the normally open terminal connect the positive wire of your LEDs. The negative goes direct from buck converter negative to the led negative. The Pi connections are totally different. The spike pins in a row are only designed for a signal from the Pi. And if you have a 4 board relay similar to my video then note I removed the jumper and connected 3.3 and 5v leads to get the relays to work. If you have more specific questions let me know.

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

      @@colinhill Thanks Colin. I did wire them exactly as you showed in the video. The Raspberry Pi is not wired to the lights or fans in any way only to the relay board. Strangely, despite the light for the numbered relay illuminating on the relay board when I activate the relevant relay in OctoRelay, neither my lights or my fan will operate. This is why I started to think that a 5V relay board wasn't going to work. That being said, after I sent you my my initial question, I wired the lights and fan to the center and normally closed side of the relay and they operated just fine. I'm going to buy another relay board and see if perhaps I just have a dud. A frustrating couple of hours scratching my head on this one!

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

      @@williamaprea7124 there is an option to Invert in octorelay. Try that.

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

      @@colinhill It was a bad relay. I replaced it and it works fine! Thanks again for the great videos!

  • @pascalperrin-bonnet7119
    @pascalperrin-bonnet7119 2 ปีที่แล้ว +1

    On voient pas trop le câblage de ses fameux relais ,il seraient bien mieux de présenterez sur un schéma de câblage ,pour éviter les erreurs. Merci Mr

    • @colinhill
      @colinhill  2 ปีที่แล้ว +1

      If you really need a wiring diagram, please refer to the other YT video linked in the description. That gives a very technical layout for you. Hope that helps.

  • @mrjayd
    @mrjayd ปีที่แล้ว

    If we are using a buck converter, do we not have to use these relays?

    • @colinhill
      @colinhill  ปีที่แล้ว

      The relays are for connecting to a Pi, allowing the Pi to turn on or off devices. Often using plugins like Octorelay. Else just have manual switches.

    • @mrjayd
      @mrjayd ปีที่แล้ว

      @@colinhill I understand what they do, I am just asking if I need one if I am putting in a buck converter or does a buck converter do the same thing.

    • @colinhill
      @colinhill  ปีที่แล้ว

      @@mrjayd a buck converter converts 12/24 volts to 5 volts. So gives you two power sources for connecting devices. You can add inline manual switches to turn the devices on or off. Relays are added to buck converter power supply only if you need automation via pi

  • @peterlebiedzinski1191
    @peterlebiedzinski1191 2 ปีที่แล้ว +1

    I am interested in working with you on some 3D Printing technology. What is the best way to contact you?

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

      I can be contacted via this online contact form, for genuine enquiries shelbyimages.com/contact-us/