I Made An LED Cube The Weird Way

Sdílet
Vložit
  • čas přidán 4. 05. 2024
  • This video is about the Charlieplexed matrix/ normal matrix hybrid LED cube I made. It covers the problems I had as well as the colorful end result.
    Chapters
    0:00 Intro
    0:41 Main Idea
    1:04 Charlieplexing
    5:05 Using a Raspberry Pi
    5:58 Constructing the Hardware
    7:07 Problems with Programming
    8:40 Results
    #3dprinting #arduino #raspberrypi #diy
  • Věda a technologie

Komentáře • 52

  • @m.sierra5258
    @m.sierra5258 Před měsícem +9

    You completely skipped over one important detail: Dimming! Your explanation only shows how to switch the colors on and off, but how did you dim them? Pulse length for every LED?

    • @The3Doomer
      @The3Doomer Před 22 dny +3

      just PWM, why not

    • @nous404
      @nous404 Před 14 dny +3

      For a Charlie plexed cube you can only have basically one LED lit at any point in time, you just have to very quickly loop over all the LEDs that need to be lit and give each one a small windows to be visible. Then rely on persistence of vision to make it look like they are all active at once. To dim an LED you just need to turn it on for less time or skip it for some update cycles. You cannot use PWM for this, each pin needs to be controls many LEDs and it is toggled in a non regular period. Note that because of this all the LEDs are quite dim to start with as they are only ever on for a fraction of the time.

    • @kosi2801
      @kosi2801 Před 5 dny

      This question also came to my mind as it was one (of a few) issues that I also could not solve when I attempted to build a LED cube 10 years ago using a Raspi of the first gen.
      I also hit the activity flickering issue, but could solve it with OS priority settings (was about to switch to Realtime Linux at a later point for higher reliability).
      In the end I was unable to solve that dimming issue as with higher "framerate" to simulate PWM (or rather BAM) modulated dimming I got stuck with some sort of "phantom" issue, where the previous LED I had active was not turning off fast enough. Until today I could not solve that issue but I still have learned one bit or another over the years to undertake a new attempt, if I had the time nowadays 🙂
      Great project and explanation!

  • @tiagoferreira086
    @tiagoferreira086 Před měsícem +6

    I never did a led cube but i feel the pain you went trough...

  • @ChrisFredriksson
    @ChrisFredriksson Před měsícem +4

    So fun to watch again! I remember when these first came out, just a few people over the world got one that they built in like a month or so.. I wanted to build one, I probably could have, but never got around to do it. But really great fun to watch one again, I love these! Great job and Great video! ❤

  • @kaoshavoc
    @kaoshavoc Před měsícem +2

    I have only ever idly thought of doing this, and trust me, I would probably have never done it, but the thought has helped me stay awake a night or two. This is freaking awesome, and I don't know how you don't have a ridiculous amount of views by now. You have scratched an itch by brain had but could not provide the spoons for. Thank you.

  • @IronLungProductionsOfficial
    @IronLungProductionsOfficial Před 2 měsíci +5

    Awesome work!
    The lightshow was mesmerizing to watch!

  • @concreteeeEEE
    @concreteeeEEE Před 2 měsíci +1

    Wow, this is a really cool project. I cant imagine having to do that soldering job, good work :)

  • @jainvibhore1997
    @jainvibhore1997 Před měsícem

    Amazing work dude! Looks so pretty! Keep it up!

  • @markeverett1393
    @markeverett1393 Před měsícem +1

    Write it bare metal in forth. There would be no flickering and the processor would have plenty of cycles available.

  • @Sysshad
    @Sysshad Před 4 dny

    What you and most people today call "more difficult" was the standard on how the first cubes was made :P

  • @MaltWhiskey
    @MaltWhiskey Před 7 dny

    Indeed a weird way to make an led cube. You sure are original by making a 5 high instead of a 4 high cube, the 4 high makes for very elegant charlieplex wireing. The teensy 4 is way to powerful and expensive for this. A couple of transistors/mosfets and multiplexing combined with chalieplexing on the esp32 to reduce pins would have made more sense maybe?

  • @FiveFiveFiveFourOhOneSeven
    @FiveFiveFiveFourOhOneSeven Před měsícem

    Excellent, David!

  • @airfriedquadsbw
    @airfriedquadsbw Před měsícem +1

    I made a 16 x 16 x 16 led cube. Thats over 4100 solder joints once the bottom plane is attached to the board, and the wires are run to each plane. So ya, thats alot of soldering. And a lot of set up for each, and then debugging was not alot of fun. But it did turn out very cool.

  • @pp3v42_g3h
    @pp3v42_g3h Před 22 dny

    3:16 You could have made it a 19*20 matrix and not use an extra multiplexed part, wiring would be a bit harder, but still doable, because you can just split the 20 to 15+5

  • @Bianchi77
    @Bianchi77 Před 7 dny

    Nice video, thank you :)

  • @Celesmeh
    @Celesmeh Před 2 měsíci +1

    This is really dope
    I would love to see you build something in a VIDEO- like set up a camera and build it!

    • @frickes_projects
      @frickes_projects  Před měsícem

      Yeah 😂. That's definitely the plan moving forward, but for these first few videos, the projects were already done when I decided to do a video.

  • @Parz9
    @Parz9 Před 2 měsíci

    nice job david keep it up

  • @rrohbot
    @rrohbot Před měsícem

    The cube looks awesome. What's the intro music?

  • @ThisRandomGuyYouDidntNotice

    yeah guess every maker tried to do some real time computing on a raspberry at some point, for me it was a remote controlling a rc paramotor over wifi or bluetooth but as you found out too, constantly getting your code interrupted by an OS can be a real pain :D

  • @anotherguycalledsmith
    @anotherguycalledsmith Před měsícem

    For an American, you have quite an Italian body language ;-)
    Looks _really_ great, thank you very much. I think making this cube somewhat larger would make it look even better… I looks rather dense, these LEDs are so strong that they would optically still work fine with more space around them - and make soldering somewhat more ”pleasant“ (if you can say so for 500+ soldering spots ;-)

    • @anotherguycalledsmith
      @anotherguycalledsmith Před měsícem

      @@mal2ksc Yes, I already saw that ;-)
      I know that it is already an awful lot of work, but investing the additional time and material would be beneficial for the project.
      There are some guys here on CZcams presenting this as a kind of “artistic light installation”… And to have a whole m3 of it in the middle of your living room makes it really stunning.
      I myself hate this kind of never-ending work and try to avoid it, but if somebody even goes this _extra_ mile… ;-)

  • @TheCatherineCC
    @TheCatherineCC Před měsícem

    Very cool

  • @___aZa___
    @___aZa___ Před měsícem

    frickin cool!

  • @BariumCobaltNitrog3n
    @BariumCobaltNitrog3n Před 28 dny +1

    I forgot I have epilepsy and woke up on the porch naked. My house doesn't have a porch. My name is Charlie so I guess I got Charlieplexed.

  • @mechticulous8202
    @mechticulous8202 Před 25 dny

    That's Frickin Awesome!😅

  • @murraymadness4674
    @murraymadness4674 Před 11 dny

    Is this because it was 2020 and you could not get any parts at all to do this the right simple way?
    A simple ws2812 string requires one pin for all leds..Or the PL9823 leds that are not smd

  • @paulsengupta971
    @paulsengupta971 Před měsícem

    Nice!

  • @WacKEDmaN
    @WacKEDmaN Před měsícem

    this is the standard arduino setup...charlieplexed... ive still got my 4x4 cube sitting here i built in 2014...(i would have made more but..didnt have the leds on hand)
    you should really be using transistors on each row to power the leds otherwise you can burn out the mcu's gpio pin circuitry...
    ...you almost have a nice grid there to be able to make letters, numbers and symbols on the faces....

  • @generationalgamers8925
    @generationalgamers8925 Před měsícem

    rotate the cube in the results or at least pan back and forth

  • @glowytheglowbug
    @glowytheglowbug Před 2 měsíci

    very cute :D

  • @Ernzt8
    @Ernzt8 Před měsícem +1

    You really put your teeth in this project. Nice result!

  • @irkedoff
    @irkedoff Před měsícem +1

  • @woodzyfox4735
    @woodzyfox4735 Před měsícem

    I wonder how one could make a 50x50 led cube :o

  • @Jdbye
    @Jdbye Před měsícem +3

    You save a lot of pins, but you can only light up a single LED at a time rather than an entire row, reducing brightness significantly. Additionally, it makes the wiring and code more complicated, and unintuitive. Generally, I don't think the tradeoff is worth it, when both microcontrollers with a higher pin count and shift registers are cheaply available. Soldering a LED matrix is already annoying enough with conventional multiplexing. An Arduino Mega, for example, has more than enough pins for this purpose, and the clones are cheap.

    • @flipschwipp6572
      @flipschwipp6572 Před 29 dny

      Thought the same, its unneccessary complex design bringing unneccesary drawbacks. Just shift reisters for the colums and you can live with using 8 pins for a 5x5x5 matrix

    • @trepidati0n533
      @trepidati0n533 Před 29 dny +2

      @@flipschwipp6572 It is just a proverbial "thought experiment", the world gets pretty boring when everyone always converges on what, at the time, is optimal. No different than the guy who calculates pi with relays.

  • @SenorDerpyHooves
    @SenorDerpyHooves Před 24 dny

    czcams.com/video/aBqBwDwHwUc/video.html mouse? would the Pi Zero W have been able to do the job if not running a GUI?

  • @zame2476
    @zame2476 Před měsícem

    if you now put it inside a milky glass case. Imma subscribe

  • @nicolasfiore
    @nicolasfiore Před měsícem

    Dude your head bobbles like Ron Desantis'

  • @User0000000000000004
    @User0000000000000004 Před měsícem +1

    An LED Cube

  • @kevinperillo
    @kevinperillo Před 2 měsíci +1

    Nice project, but where was the complex part?
    Turning the leds on by put them into a matrix is the most simplest way I know 😅
    Why not using a adressable leds and set the color via spi dma which can run in the background of the mcu? Sounds way more complicated than a led matrix . And you can do other stuff with the mcu 🙂

    • @Sonnell
      @Sonnell Před měsícem +2

      So, it was easy for you at the first time? Or for anyone who is starting out with this?
      I see your comment more as loathing than kind and helpful.

    • @fritzlb
      @fritzlb Před měsícem

      It may sound more complicated, but if you do something like that, you’re probably going to use libraries for the software, right? This in theory can be done without all of that. Also, using ws2812b only requires one wire going through all leds, so the wiring is a lot more simple

    • @kevinperillo
      @kevinperillo Před měsícem

      @@fritzlb that is the complex part, not using existing Libaries some one already did. You have to read the datasheets, set the registers right.
      Especially if you have to read the reference datasheet, the device datasheet and multiple application notes to get all informations you need.

    • @fritzlb
      @fritzlb Před měsícem +1

      Only setting the registers isn't that hard or complex, also there are enough tutorials online for common architectures
      Completely bitbanging the ptotocol in asm might be a challenge tho

  • @jtreg
    @jtreg Před měsícem

    adhd cube.stop moving you are making me sick man

  • @sigrice
    @sigrice Před měsícem

    Subscribed!