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
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
1 Meter of Pi
  • Challenges & Projects
  • Design Challenges
  • 1 Meter of Pi
  • More
  • Cancel
1 Meter of Pi
Forum Some advice please?
  • Blog
  • Forum
  • Documents
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 10 replies
  • Answers 5 answers
  • Subscribers 7 subscribers
  • Views 159 views
  • Users 0 members are here
Related

Some advice please?

raspberrypitechguy
raspberrypitechguy over 1 year ago

I’m a challenger for 1 Meter of Pi, I’ve been designing a lightning system for the plants, however, I realize that the LEDs would require 5A total of current, so I split them into 5 parts, for 1A per section. This still is too much for an arduino pin to handle- at most they can handle one or two, while each had 5.

I’ve considered using multiple pins and boards but my friend says that would likely overload the regulators and fry the chip, or damage.

He said using buck converters, and MOSFETs, would be an ideal solution.

can someone please eleaborate on this part, like a bit of conceptual explanation, and/or other ideas? Thanks!

  • Reply
  • Cancel
  • Cancel

Top Replies

  • gam3t3ch
    gam3t3ch over 1 year ago +2 suggested

    I would need to know more about the lights setup to give you my opinion but off the top of my head using a simple relay would allow you to do that then you can use the appropriate power output and use…

  • milosrasic98
    milosrasic98 over 1 year ago +2 suggested

    Hi!

     

    You can either use a relay to turn on/off the lights, which will work good, or you can go the route of using MOSFETs where you can also control how bright the LEDs are using PWM. Here is a project I…

  • colporteur
    colporteur over 1 year ago +2 suggested

    A buck (reduce)/boost (increase) board enables you to move the output voltage up or down in relation to the input. I use them extensively in my personal projects. I have base 12VDC power supply that is…

  • gam3t3ch
    0 gam3t3ch over 1 year ago

    I would need to know more about the lights setup to give you my opinion but off the top of my head using a simple relay would allow you to do that then you can use the appropriate power output and use the arduino for switching the relay.

    • Cancel
    • Up +2 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • milosrasic98
    0 milosrasic98 over 1 year ago

    Hi!

     

    You can either use a relay to turn on/off the lights, which will work good, or you can go the route of using MOSFETs where you can also control how bright the LEDs are using PWM. Here is a project I did where I've done that using MOSFETS Ski Lamp . I've used 3 MOSFETs because the LED strip was RGB, so I was controlling each of the channels, one would be sufficient if you're using a single color LED. If you plan on doing that just make sure in the datasheet what are the voltages that can turn on the MOSFET so you don't need a comparator before it like me, as well as the max current, though, the second one shouldn't be an issue. Hope this helps!

     

    Milos

    • Cancel
    • Up +2 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • feiticeir0
    0 feiticeir0 over 1 year ago

    I'm going with gam3t3ch - a simple relay would allow you to turn the lights on and off using just 3v or 5v - depending on the relay. The raspberry pi (or an arduino) would never touch the mains voltage.

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • raspberrypitechguy
    0 raspberrypitechguy over 1 year ago

    Thanks everyone-

    Im doing a 5x5 5530/5730 array, I was originally going to use a DAC to control voltage.

    From what I understand, the relay acts as a barrier?

    I’ll look into that.

    Thanks!

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • parasquid
    0 parasquid over 1 year ago in reply to raspberrypitechguy

    A relay is like a switch that you can trigger with a signal.

     

    You would usually have two connections: Normally Closed or Normally Open. When you send a signal via the Arduino for example, the relay would "switch" to the reverse. For example, if you connect your external circuit to the Normally Open terminals, that circuit would be "open" (no electricity flowing) until you trigger the relay, which would then close the circuit and allow electricity to flow.

     

    A relay is great when you want to isolate sensitive equipment (like your Arduino) from a circuit that is either high current (like the LEDs you have) or high voltage (like mains). The only downside with relays is that they are slow, so you can't do PWM on the LEDs to lower their brightness for example.

     

    But for regular turn on/off scenarios, a relay is perfect and really simple to use.

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • colporteur
    0 colporteur over 1 year ago

    A buck (reduce)/boost (increase) board enables you to move the output voltage up or down in relation to the input. I use them extensively in my personal projects. I have base 12VDC power supply that is used to power strings of LED's. I then use a buck/boost board to produce 5VDC and 3VDC for the digital electronics.

     

     

    I have had good success with LM2596 DC-DC Adjustable Step Down Power Supply Module from banggood.com. They are inexpensive if bought in quantity and have yet to replace any from burning them out. Trust me I have done some not to smart stuff!

     

    I tend to not use relays if I need to control a load. Solid state devices vs mechanical devices are less problematic. I switch 12 VDC LED strings with an IRFZ44 FET.

     

    • Cancel
    • Up +2 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • raspberrypitechguy
    0 raspberrypitechguy over 1 year ago in reply to parasquid

    Thanks! I've heard that they have voltage spikes though?

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • raspberrypitechguy
    0 raspberrypitechguy over 1 year ago

    Thanks again everyone- I think it's best if I use relays and Step down modules.

     

    I currently have 25 LED's... that's 5 Amps. I thiink it's best if I turn it down to 8 LED's or 10. (After all, it's a mini model).

     

    That will use just under 2.1 Amps...

     

    I think that's the most likely...

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • parasquid
    0 parasquid over 1 year ago in reply to raspberrypitechguy

    I think you're referring to https://resources.altium.com/p/using-flyback-diodes-relays-prevents-electrical-noise-your-circuits

     

    They cause damage to the relay, yes. But if you use something like a breakout board for a relay like the ones found in Arduino kits, they usually already have the flyback diode integrated (and they have indicator LEDs too which help a lot with troubleshooting).

     

    Unless you know what you're doing, I'd recommend staying away from the bare relays. They are cheaper, but relays usually need have a few extra passives added for best performance.

     

    But if you really want to use a bare relay, there are many tutorials around on how to setup the flyback diode.

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • raspberrypitechguy
    0 raspberrypitechguy over 1 year ago in reply to parasquid

    I do have a relay module for Arduino that I got in an Arduino kit or something when I first started.

     

    I'll probably use that...

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube