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
    About the element14 Community
  • 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 can i build an led cube and to control it with raspberry
  • 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 Suggested Answer
  • Replies 18 replies
  • Answers 13 answers
  • Subscribers 707 subscribers
  • Views 3097 views
  • Users 0 members are here
  • raspberry_pi
Related

can i build an led cube and to control it with raspberry

e14 Contributor
e14 Contributor over 12 years ago

images?q=tbn:ANd9GcRqC9Gqane0sozu4TkkAGalkeFBBh-Np5H5fJ2tAw1eUVDPK-GNJLwm7AHello im wondering if is there any possibility to use raspberry as a controller for the led cube ?

  • Sign in to reply
  • Cancel
  • michaelkellett
    0 michaelkellett over 12 years ago in reply to Problemchild

    I'd still need some power devices for a big display or  abright one but:

     

    The Lattice ECP2 in 208 pin TQFP package can do a maximum average IO current of 146 x 8 = 1168mA on 146 pins. You can't use all the pins for LEDs so over, say, the 96 pins of Samuel's cube it can do 12mA per LED continuous, no multiplexing required.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 12 years ago in reply to michaelkellett

    can the FPGA handle the overall power dissipation, there is always a current per pin but also a total current per silicon chip with most often is not the sum of all or even most of the pins

     

    btw, typical LEDs require 20mA for full intensity, as you are multiplexing the pins (There not on continually ) then this current needs to go up proportionately, so if your at a 50% duty cycle, you need 40mA, 25%=80mA etc

     

    if you don't account for this then the typical result is un even brightness as the number of LEDs change over the pattern or they are quite dim all the time. just look at how a 7segment display works.

     

    yes you can get away with it to a certain extent (Small number of leds ) but it will bite you as your cube grows in size 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • rew
    0 rew over 12 years ago in reply to Robert Peter Oakes

    Peter,
    Your concern about the total current (might be per VCC pin or per package) is valid.

     

    But about the current: I've built several "multiplexing" led projects over the last few years. Because of the risk of blowing up the leds should the software fail, I always build my prototype with the currentlimit set "below 20mA", intending to up the current when I'm done....

     

    I always end up with: "this looks just great like this, no need to increase the current!". Leds, these days, are simply bright enough at 1/8 multiplexing....

     

    I don't understand what you're saying about the brightness being uneven. If you put the current-limit-resistors in the right place, you'll be driving a column (A plane in the cube) with a power-transistor, and you have all diodes in this plane connected to a driver/one of the FPGA pins through a resistor.


    Michael was saying he wouldn't use a shift-register to drive the row-lines, because he can easily find 64 (for 8x8)  or 81 (for 9x9) row-lines on his FPGA. Nobody is saying you can get around those. Nobody should put current-limit resistors in the column drivers, as that creates brightness differences depending on the number of leds.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 12 years ago in reply to rew

    and that is where I was thinking the issue may be, thanks for clarifying, I have never built a cube yet, maybe some time but not yet.

     

    I have built plenty of multiplexed light displays in my time but built to the end game light requirements that where usually in the 10's of amps per channel (Fair ground rides like ferris wheels etc consume hundreds of amps before they went to LED lighting and 110V dc too)

     

    as you say though, at the end of the day if it looks good then that's good enough, no point in over engineering if you dont need to

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 12 years ago in reply to Robert Peter Oakes

    The nice thing about the FPGA is athat we are working within it's ratings. Lattice spec. the max current per io bank as 8mA * n where n is the total number of pins. The pins are drive controlled with a max setting of 20mA so we are safe with setting  a current of 12mA (because we will use less than n pins per bank for LEDs). There is no multiplexing so we can control the current with 1 resistor per LED.

     

    The total power disipation in the FPGA IO would be < 400mV * 1.168 A = 467mW.

     

    I'm almost tempted to try it !

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 12 years ago in reply to michaelkellett

    where is your minion Michael ??

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 12 years ago

    When driving a lot of current with FPGA pins, you also may need to check the simultaneous switching specs.  If you switch many high-current pins at the same time, you can get ground bounce which can affect the signals on other pins in the same bank.  You can eliminate ground bounce in software by staggering when LEDs are switched on and off.

     

    When I'm driving an LED matrix, I like to use external transistors for each column.  That gives me lots of current without worrying about ground bounce and moves power dissipation away from the FPGA.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • megabug
    0 megabug over 9 years ago

    i just made a led cube 8x8x8 controlled by raspberry, I made a interfase with 4  MCP23017 to drive a layer (x,y) and another MCP to control Z

    the advantaje is those MCP's can comunicate with raspberry using I2C protocol,

     

    in this moment only i can made figures when only i layer and moving the same figure on the rest of layers, but i can no make any figure that involve two layers or more, i think that i need to create subroutines to made it but i dont know how

     

    any ideas?

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

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube