element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 RasPi and PWM controlled LED strip
  • 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
  • State Verified Answer
  • Replies 26 replies
  • Answers 1 answer
  • Subscribers 677 subscribers
  • Views 3825 views
  • Users 0 members are here
  • raspberrypi
Related

RasPi and PWM controlled LED strip

freddyfred5
freddyfred5 over 11 years ago

Hello there people, I am currently working on a casemod, and I would like to use a RasPi as the controller for some LED strips (12v, pulling about 700ma each).

 

The RasPi will act as a webserver hosting a website for remotely controlling the strips, as well as viewing some information about the system (temp sensors, fan speed. don't care about these, they are up and running). But it will also control 2 12v LED strips, and these strips pull too much for the RasPi to control directly.

 

Now, I do have some TIP120's here, and as far as I can see they should work, but I am unsure of how to connect them.

 

Could someone here please help me with getting everything set up properly?

 

Parts:

PSU: Corsair CX

RasPi: Rev 1, model B

Lights: 12v, pulling around 700ma each

 

Wanted outcome:

PWM control on one LED strip

Normal (on, off) on the other

A living RasPi

 

Questions:

Could you help me set this up in a way that does not any part?

Do I need a capacitor in front of the RasPi to ensure no harm is done under startup? (Will 4700 microfarads do?)

Should I use a fuse, or is it unnecessary?

Am I asking too many questions?

  • Sign in to reply
  • Cancel
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago

    Easiest thing I can recommend is to use an ULN2003 8 channel driver chip, quite cheap and available everywhere

    you can gang channels together for more current handling and each channel will handle about 500mA (So 4A total)

    look here for details http://www.newark.com/stmicroelectronics/uln2003a/darlington-transistor-array-npn/dp/89K1130

     

    you may need to search you local branch, just search for ULN2003

     

    directly logic compatible and will handle well over 12 volts for the supply of the devices being driven and much simpler to interface then individual transistors (No resistors except perhaps to limit the LED current

     

    power the PI from a separate adapter than the LEDs and other loads, it will be much more stable and less lightly to blow the PI and then you do not need a capacitor on that line.

     

    only have the grounds of the PI and LED supply connected together.

     

    You probably can use any available GPIO for the ON/OFF and there is one GPIO that supports PWM, this too can directly drive the 2003 chip

    see http://raspberrypi.stackexchange.com/questions/298/can-i-use-the-gpio-for-pulse-width-modulation-pwm for details on PWM

     

    if you still want to use the TIP120 then put a 2K2 resistor (Approx.) between the output of the PI to the Base of the TIP120, connect the emitter to ground and the collector to the LED's low side, connect the high side of the LEDs to the 12V. Make sure there is something to limit the LED current if there not pre wired to sun on 12V supply (I don't know the brand or configuration you using) The ULN2003 contains 8 channels of drivers and there all Darlington pairs so very high gain, plus they contain all resistors etc to drive the load from a simple logic output so you wont need resistors between GPIO and the 2003 for instance (Simpler to use)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    Peter,

    The ULN2003 is only a seven channels power darlington.

    For an 8 channels, there was an ULN2083 most likely discontinued now.

    Or better look for MOSFET low side drivers that are now higher current and fairly high voltage.

     

     

    Jean-Paul

    AC9GH

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 11 years ago in reply to Robert Peter Oakes

    Peter,

    The ULN2003 is only a seven channels power darlington.

    For an 8 channels, there was an ULN2083 most likely discontinued now.

    Or better look for MOSFET low side drivers that are now higher current and fairly high voltage.

     

     

    Jean-Paul

    AC9GH

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to Former Member

    Thanks for the correction, either way in this case more than enough for the job

     

    Peter

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