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 8343 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
  • shabaz
    shabaz over 2 years ago

    This probably needs a circuit sketched. From the website I'm unclear if the LED strip has a common ground, or a common positive supply.

    If you're using MOSFETs, then one of the two circuits below could be used (replicated three times, i.e. for red/green/blue channels).

    Circuit A would be for the scenario where the common connection is ground. Circuit B is for the scenario where the common connection is 24V.

    Scenario A needs three P-ch MOSFETs, whereas Scenario B needs three N-ch MOSFETs. Also, zener diodes (approx 12V) are definitely worthwhile, it is best to add them in to protect the MOSFET gate connections. The NPN transistors can be 2N3904. Scenario B uses two NPN transistors per channel. 

    The circuit is getting complicated enough though, that it would be worth putting this on a PCB, otherwise there's a risk of shorts etc (which could fry the Pi or the LEDs). The easier solution would be to use LED strips that are called (say) Neopixel or WS2812B, because they eliminate all of this circuitry and can (kind of) be driven directly by the Pi, although it is definitely worth using a "Neopixel Driver" type of board for it, because the Pi's output is not quite compatible with those strips, and some level conversion is done by the board (perhaps it may work without it, but best to have the board to have completely reliable output). Personally I'd swap out the LED strip if possible, unless you really need to use the LED strip that you have. 

    image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • colporteur
    colporteur over 2 years ago in reply to shabaz

    Shabaz has the DIY down pat, me not so much. I'm an off the shelf person.

    image

    I have used these modules often to drive higher loads than the output from a Pi or an Arduino. I use a level shifter 

    image

    to have 5V's as the gate input trigger. Again it is a off the shelf module to avoid DIY PCB builds. 

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

    Originally i only planned on having lights for the stadium and purchased a Tuya WB5 controller.  The controller was a simple solution to Bright stadium lights.  then a saw a Raspberry Pi used as a talking box. youtu.be/BjXERzu8nS0  the code was simple and hardware was cheep.  So decided to add some buttons. one of course will count down to "let it rip!"

    I may be making this harder on myself... Is it possible for my Pi to controll the Tuya WB5 controller over wifi instead of me using the Smart app on my phone? 

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

    Tuya changed the firmware. Tuya-Convert file not an option. Guess I'm back to DIY

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

    Tuya changed the firmware. Tuya-Convert file not an option. Guess I'm back to DIY

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