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 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 Requesting help w/ RPi Project.
  • 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 23 replies
  • Subscribers 665 subscribers
  • Views 1564 views
  • Users 0 members are here
  • helpme
  • raspi
  • pi
  • raspberry_pi
  • learning
  • raspberrypi
  • rpi
Related

Requesting help w/ RPi Project.

peter_ambos
peter_ambos over 11 years ago

New to RPi. I plan on building a lighting setup consisting of ~ 64 Panels, which I want to control via the RPi. Is there a way to do that with the limited amount of pins the RPi supplies?

  • Sign in to reply
  • Cancel
  • Former Member
    Former Member over 11 years ago

    Hi, Peter

     

    You may use a RPI accessories ———embedded pi to do it,see more in http://www.coocox.org/epi.html and http://www.coocox.org/blog/

     

    Best Regards

     

    Sam

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • PEarle
    PEarle over 11 years ago

    Hi Peter - you may want to check out the PiRack which has only just come out - theres some more info about ithere : http://www.element14.com/community/videos/9289/l/pirack-introduction-video--piface-expansion-board-for-raspberry-pi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • guzunty
    guzunty over 11 years ago

    The RPi has 17 available IO pins. So driving 64 panels is going to be a challenge.

     

    You could arrange them in an 8x8 matrix, but there is another potential problem. The amount of current you can draw from the IO pins of a Raspberry Pi is very limited, you may not be able drive 64 panels.

     

    We need more information:

     

    - What kind of light source are you going to use?

    - How large/bright do these panels need to be?

    - Are they each going to be a single colour or do you need them to change colour?

    - Do you just want to turn them on and off or do you want to control the brightness?

    - How far from the RPi will they be mounted?

    - Is there any thing else the application needs to do beyond control the lights? 

     

    If you want advice on any of the above that's fine, but some of these I suspect are already fixed by what you want to do.

     

    - Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to guzunty

    Derek Campbell wrote:

     

    The RPi has 17 available IO pins. So driving 64 panels is going to be a challenge.

    Look up the Microchip GPIO Expanders MCP23017 / MCP23S17, these are 16bit expanders and you can daisy chain 8 of them per i2c bus or SPI chip select. By my count that lets you have 256 IO pins using just 5 on the Pi.

    As with any GPIO expanders, you're going to be limited in some way on the frequency you can update them, but as Peter didn't specify what his lights are we have no way of knowing if that's a problem.  Simple number of GPIO pins isn't a problem.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • peter_ambos
    peter_ambos over 11 years ago in reply to Former Member

    The lights in the panels are regular LED-Tubes, like one might find as a Christmas decoration. They should be individually controllable, and some kind of brightness control would be nice, but not necessary. The panels will be used as regular room lighting.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • guzunty
    guzunty over 11 years ago in reply to Former Member

    @selsinork: Yes, that is a possibility, but depending on exactly what Peter wants to do, that may not be the cheapest or best solution.

     

    I did not want to be recommending IO expansion without knowing the requirements.

     

    Let's see what he needs to do. :-)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • guzunty
    guzunty over 11 years ago in reply to peter_ambos

    Peter,

     

    So you mean like a skein of LEDs in series? Do you know how many LED's are to be controllable together?

     

    It sounds like you will definitely need some kind of I/O expansion, even if it is just current drivers. You can't draw that much current from the Pi GPIO.

     

    best,

     

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • peter_ambos
    peter_ambos over 11 years ago in reply to guzunty

    I'm not planning to pull all the current from the GPIO, i'm will be using transistors to amplify the current. I just need it for the on/off.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • guzunty
    guzunty over 11 years ago in reply to peter_ambos

    Yup, that'll work. Just checking, not everyone appreciates the current draw limitations of the Pi.

     

    If you don't need maximum output, you could consider multiplexing them, but I think Selsinork's suggestion will give you the maximum flexibility with respect to adding brightness control later.

     

    Those expanders are pretty low cost and four will cover your needs.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to guzunty

    Derek Campbell wrote:

    I did not want to be recommending IO expansion without knowing the requirements.

    Well, as you observed, 64 into 17 doesn't go, so one way or another you're talking about expanding the number of outputs.  Beyond that is up to Peter.   Cheapest and 'best' don't necessarily end up being the same,  'best' may end up being not to use an RPi, but choose something more appropriate to the task ?

    • 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