element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
3D Printing
  • Technologies
  • More
3D Printing
Documents Octoprint Relay board
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join 3D Printing to participate - click to join for free!
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 1951 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 7 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 7 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 7 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
Parents
  • mcb1
    mcb1 over 7 years ago

    What voltage is the relay contacts going to switch.?

     

    If you are switching mains voltages then using optocouplers might be the safer method of ensuring isolation.

     

    Mark

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

    The voltage is 12 with 7 amps. You think that will require optocouplers? Not gonna lie, I don't know what that is. I'm going to search online then see if there are any kicking around in the lab in case i need them.

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

    The voltage is 12 with 7 amps. You think that will require optocouplers? Not gonna lie, I don't know what that is. I'm going to search online then see if there are any kicking around in the lab in case i need them.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • Robert Peter Oakes
    Robert Peter Oakes over 7 years ago in reply to rctho

    You should not need an opto isolator but you should be aware of keeping the POWER current away from the microcontroller current

     

     

     

    So power the relay / LEDs from a separate supply to the PI and just share a common ground

     

     

     

    Regards

     

    Peter

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rctho
    rctho over 7 years ago in reply to Robert Peter Oakes

    Thanks Peter. I'll give that a shot. I wanted to try to power both the pi and relay with the same line but somehow divide it with a 5v transformer/regulator and the relay with a common ground, but you're saying that's not a good idea?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 7 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
  • mcb1
    mcb1 over 7 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
  • rctho
    rctho over 7 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
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 © 2025 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