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 8362 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
Parents
  • phoenixcomm
    phoenixcomm over 2 years ago

    image fskrzycki You have a big problem 24+ volts and logic do not never mix.  I have one better than my buddy shabaz has AND you only need 1 part to use an optio-isolator anything in the 4N44 etc (there are tons of them on eBay,) will work just look at the collector voltage and current. ~~ C. Harrison

    Update 9/3 I Fibed!  image It has 2 parts, see the comment below. 

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

    I like opto-isolators too, there are some fancy ones that can directly drive MOSFETs. In the end I only sketched one approach with transistors since unfortunately I didn't have time to provide additional circuit options : (

    The transistors are less exotic I guess!, but really all of these approaches are a bit excessive for the use-case, because the Neopixel-like strips would eliminate all of the circuit (well, almost all - might still need to adapt the 3.3V to 5V logic levels).

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

     shabaz  Well, there are more ways to skin this cat. Slight smile level shifters cost $ while, your approach used more than a few parts, The optocouplers on eBay are about a half a buck each, buy 10 and save. but you will have to use a resistor in between the coupler and your Arduino's output pin (5v) the iso normally turns on at 1.3 volts so a quick trip to Mr Ohms or E= 1*R  so  R =( 5 -1.2)/20ma = 180Ω. But most likely get away with 220Ω ~~Cris H 

    BTW I use this approach in my sim where the lamps are 28 volts ouch!  REMEMBER DO NOT USE A COMMON GROUND OR POWER SOURCE, or you will lose your galvanic isolation - this could ruin your week!!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • phoenixcomm
    phoenixcomm over 2 years ago in reply to shabaz

     shabaz  Well, there are more ways to skin this cat. Slight smile level shifters cost $ while, your approach used more than a few parts, The optocouplers on eBay are about a half a buck each, buy 10 and save. but you will have to use a resistor in between the coupler and your Arduino's output pin (5v) the iso normally turns on at 1.3 volts so a quick trip to Mr Ohms or E= 1*R  so  R =( 5 -1.2)/20ma = 180Ω. But most likely get away with 220Ω ~~Cris H 

    BTW I use this approach in my sim where the lamps are 28 volts ouch!  REMEMBER DO NOT USE A COMMON GROUND OR POWER SOURCE, or you will lose your galvanic isolation - this could ruin your week!!

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

    the logic mosfets i ordered are rated to be maxed out@30v so i was not to concerned. my Pi is controlling the DC24v COB strip with  a GPIO setup for each color. Im using ChangeDutyCycle to control the color. pretty cool. The color wheel runs from 0-255 and CDC controls the current cycle of the mosfets with ratings 0-100%. I can generate any color by dividing 255 (100% power) into any color number than multipling that result by the number again. Currently the program will run any 1 color super bright for me (why i went with 24v) in an endless loop using the "while true" statement. The LEDs turn off fine when i break the loop. the program ends without error. 

    the rub is after ai end the program. if powere is left connected to the strip, The LEDs turn themselves on to a yellow color.  interesting. i think the Red and Green MOSFETs are leaking.

    when the project is complete. the python script will loop endlessly from startup and only break when a button is pushed to execute an "else" statement. which will be a sound wav file and some cycle color changes.

    should i be concerned abiut the yellow? 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fskrzycki
    fskrzycki over 2 years ago in reply to phoenixcomm
    1. i'm using optocouplers to isolate the pi from the LED power source. I needed to create 3 circuit boards, on for RBG.  i connected them together at the power source input of the zenner Diode.  Will this be a problem with galvanic isolation?  also, do Zenner Diodes need to be placed into the circuit a particular way?image
    2. imageimage
    • 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