element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
3D Printing
  • Technologies
  • More
3D Printing
Documents Octoprint Relay board
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
3D Printing requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: rctho
  • Date Created: 19 Dec 2017 1:10 AM Date Created
  • Last Updated Last Updated: 6 Oct 2021 9:27 PM
  • Views 819 views
  • Likes 5 likes
  • Comments 18 comments
Related
Recommended

Octoprint Relay board

I tested this relay board out on a breadboard. seems to work well. I had to move some components around to scale it down to the size board i had laying around. This is for a remote switch for the 3d printer i got. I'm going to connect it to the gpio pints of the raspberry pi/ octoprint server to shut it down remotely.

 

image

image

 

I'll test it out on a something else like a light before the printer to ensure i don't fry it. Fingers x'd.

  • octoprint
  • diy pcb
  • relay test
  • 3d printing enhancement
  • 3d print
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • rctho
    rctho over 5 years ago +3
    I finally got this thing up and running and it works great turning the printer on and off. After the breadboard prototype, i had to move stuff around and went a lil' off track from the original design…
  • carmelito
    carmelito over 5 years ago +2
    This is a great idea.Hoping you will post an update, as soon as you have it working with your 3D printer..Thanks
  • jw0752
    jw0752 over 5 years ago +2
    Hi Craig, This is a good example of planning and testing prior to building. With this approach you have a much better chance of success. John
  • rctho
    rctho over 5 years ago in reply to e14phil

    Hey Phil,

     

    You can use gcode commands to turn on/ off your printer instead of gpio pins. I think that's how it works if you're not using octopi. I think i really complicated things with this project cause i probably could have used the gcode too. oh well. Relay boards are pretty versatile. i can apply it to many other projects.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rctho
    rctho over 5 years ago in reply to e14phil

    Hi Phil. I use Octopi. The plugin is available for Octoprint but I think it’s meant to be used for a PSU. An atx type of some sort, but I’m not exactly sure. The plugin settings have a myriad of options. I’m sure it’s in there somewhere or you can check the documentation.

     

    For the pi I just connected it to a gpio, 3v, and 5v pins which were also in the plugin settings. I just chose the first available. Any one will do.

     

    I hope that helps.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rctho
    rctho over 5 years ago in reply to mcb1

    Thats a good idea. I am concerned about how much juice is flowing through such a lil' circuit. I'll add today. Thanks for the tip.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rctho
    rctho over 5 years ago in reply to jw0752

    Thanks John.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rctho
    rctho over 5 years ago

    Hi Phil. I use Octopi with the Octoprint PSU Plugin. The plugin is available for Octoprint but I think it’s meant to be used for a PSU. An atx type of some sort, but I’m not exactly sure. The plugin settings have a myriad of options. I’m sure it’s in there somewhere or you can check the documentation. 

     

    For the pi I just connected it to a gpio, 3v, and 5v pins which were also in the plugin settings. I just chose the first available. Any one will do.

     

    I hope that helps.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • e14phil
    e14phil over 5 years ago

    Hi Craig

     

    I love this! I also use OctoPrint.

     

    What are you using to is trigger relay on and off with the Pi?

    *Edit - Octoprint PSU Plugin. ... Nice.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 5 years ago in reply to rctho

    Thanks for sharing the finished project. Looks good.

    John

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rctho
    rctho over 5 years ago

    I finally got this thing up and running and it works great turning the printer on and off. After the breadboard prototype, i had to move stuff around and went a lil' off track from the original design that set me back a bit but i finally got it to work. Octoprint has a PSU plugin that saved me from having to edit any config files. I just setup the reset function in the plugin settings by adding the gpio pin to trigger the relay board and thats it.

     

    image

    image

    Off to a good start finishing up some old projects. Time for some remote printing. I want to print a case but i only want to have one power cord to power everything. Power and ethernet coming in and printer and camera going out. Maybe a power switch too. Any suggestions?

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 5 years ago in reply to rctho

    The voltage is 12 with 7 amps

    In that case you should be fine.

    You'll need to add some wire onto the pcb traces.

     

     

    If it's using a supply from a computer, they often fool it by bridging out the enable wire.

    You might be able to interupt that instead.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • peteroakes
    peteroakes over 5 years ago in reply to rctho

    Correct, you can get it to work but it is much easier to keep the power side separate from the PI, the PI wants 5V, nice and clean, the relays and the LED loads want probably 12V and it will have quite a bit of noise when switching so if you want to avoid hard to diagnose issues, keep them separate except for a common ground

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube