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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum 24v COB rgb 840 strip controled by Raspberry Pi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 63 replies
  • Subscribers 657 subscribers
  • Views 8380 views
  • Users 0 members are here
Related

24v COB rgb 840 strip controled by Raspberry Pi

fskrzycki
fskrzycki over 2 years ago

I am having a hard time figuring out the solution to controlling my 24v strip with my Pi 4. I have a 4 pin strip with R. B. G. Bk wires.  I think a N-channel MOSFETs transistor will fix the communication issue and allow control of the colors. most Ara fruit software I have seen is for addressable Leds with only 3 leads. R. Bk. and Green.  Am I on the right track with using the transistors. If so Why? is there an easier way? I am making a bay blade stadium for my son and want to incorporate buttons with lights and sound.. 

  • Sign in to reply
  • Cancel
  • fskrzycki
    fskrzycki over 2 years ago in reply to fskrzycki

    Can the overvoltage protection be the same component in the example above? I think you have the Gate/Source/Drain on the MOSFET mislabeled. can you double check 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fskrzycki
    fskrzycki over 2 years ago in reply to fskrzycki

    i may be over thinking this, but it looks like i dont need the MOSFET at all. what would the circuit look like without it? 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 2 years ago in reply to fskrzycki

    Correct, only one channel is shown since they are all identical. All the 0V connections will be common together. All the Pi ground connections (GND) will be common together (GND will not be connected to 0V; they are isolated).

    Every pin labeled ground on the Pi's header is electrically connected to each other (you can verify with a multimeter set to ohms on an unpowered Pi if you like). It makes no difference if you use a single ground pin, or separate ground pins for the project.

    The zener diode protects just the MOSFET. The PC817 protects the Pi by isolating it, since there are zero connections from the Pi that are present on the right side. The GPIO and the Ground from the pi on the left are totally isolated beyond the LED inside the optocoupler.

    The labeling on the MOSFET in the sketch above is correct. Without the MOSFET, this can't work. the PC817 does not have the output capability to operate the strip.

    You could remove the entirety of the circuit with a 'neopixel' style LED strip as mentioned earlier. The strip you currently have will need the parts shown above, if you want the PC817 isolation.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • fskrzycki
    fskrzycki over 2 years ago in reply to shabaz

    thanks, what wattage level resistors would you recommend? 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 2 years ago in reply to fskrzycki

    1/4 W is fine for them all, or even 1/8 W.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • fskrzycki
    fskrzycki over 2 years ago

    I only want to have 1 power supply for this Project. Can I use a LM2596 DC-DC Buck Converter to provide power to my 24v LED strip and power to my Raspberry pi.

    I think will have to split off the wires from my current supply to feed into the new controlling Circuit powering the Strip before feeding into the buck converter. I would also need to strip a USB-A extension cable so I a viable connection for the USB-A to USB-C cord that connects to my Ras-pi

    I'm not sure what complications if any could be involved.

    please advise 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fskrzycki
    fskrzycki over 2 years ago in reply to shabaz

    I'm making some progress, P817's have not arrived. currently mapping out PCB. double sided. I have a clever way of connecting them all.  White on left is Raspi ground. long white down middle is zero volt.

    Blue terminal is location of 817's

    imageimage

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • fskrzycki
    fskrzycki over 2 years ago in reply to e14phil

    imageimage

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 2 years ago in reply to fskrzycki

    The LM2596 modules look a bit risky. It might cause brownout of the Pi 4, or could damage it.

    Disclaimer: I've never used that module, so I'm speculating, but I don't get a good feeling about them visually. The feedback isn't universally good: https://www.eevblog.com/forum/reviews/lm2596-dc-dc-step-down-modules-load-testing/

    Plus, the Pi 4 has more difficult to achieve supply requirement than a Pi 3B.

    It could be better either switching to a Pi 3B, and/or using a board such as these ones:

    https://www.pololu.com/category/261/d36v28fx-step-down-voltage-regulators

    No need to source a USB cable to strip; the power can be applied to the 5V pin on the 40-way connector on the Pi.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fskrzycki
    fskrzycki over 2 years ago in reply to shabaz

    finished circuit, fingers crossed. imageimageimage

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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