8x8x8 RGB LED CUBE - How it Really Works! Multiplexing and Bit Angle Modulation

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 มี.ค. 2013
  • Parts List-Schematic-EagleFile-ArduinoCode:
    www.kevindarrah.com
    Demo Video:
    • How To RGB 8x8x8 LED C...
    Theory Video:
    • How To RGB 8x8x8 LED C...
    Schematic Video:
    • How To RGB 8x8x8 LED C...
    The Build/Construction Video:
    • How To RGB 8x8x8 LED C...
    The Code Video:
    • How To RGB 8x8x8 LED C...
    Check out my Tindie store (trigBoard is available) www.tindie.com/stores/kdcircu...
    Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen!
    / kdarrah
    Twitter: / kdcircuits
    For inquiries or design services:
    www.kdcircuits.com
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 90

  • @debayandas8896
    @debayandas8896 4 ปีที่แล้ว +3

    Evidently, you're REALLY UNDERRATED!!! AMAZING MAN! AMAZING! KEEP IT UP!

  • @1Patient
    @1Patient 10 ปีที่แล้ว +3

    I am learning so much...Bit Modulation, Bit Angle Modulation, who would have guessed, seeing how colors and dimming works....Thanks Kevin, like your microphone, sounds great...

  • @ThinkCreativ
    @ThinkCreativ 11 ปีที่แล้ว +1

    It isn't difficult to stay awake when you are interested in it. :)
    Even watched them twice or even three times. First, because I was looking for some inspiration, second time because I knew I was going to need it and sometimes the third time to actually make any sense of it, considering I don't really have a background in electronics.

  • @geneworld
    @geneworld 11 ปีที่แล้ว +1

    Love your videos as well as this project, this one did make it a lot better to understand with an example rather than theory! I would love to build one of these some day! Can't wait to see more!

  • @ThinkCreativ
    @ThinkCreativ 11 ปีที่แล้ว

    Wow, I did not expect another video on this subject.
    Thank you a lot for the hours of demonstration and theory.
    I just ordered my parts on Futurlec. Can't wait to start!

  • @loveg7330
    @loveg7330 2 ปีที่แล้ว

    You are a GREAT teacher!

  • @joshuariddell4550
    @joshuariddell4550 10 ปีที่แล้ว +2

    This was really helpful, thanks.

  • @mriloveethanol
    @mriloveethanol 10 ปีที่แล้ว +12

    this is awesome...
    btw you look like Leonardo Decaprio :O

    • @zyzzthetics7
      @zyzzthetics7 6 ปีที่แล้ว

      mriloveethanol true lol

  • @tomasbadenes
    @tomasbadenes 4 ปีที่แล้ว

    2019 and this is the best explanation. Incredible!

  • @RyanJensenEE
    @RyanJensenEE 10 ปีที่แล้ว

    very cool video! very well explained!
    bit angle modulation is fascinating!

  • @knightfire8253
    @knightfire8253 11 ปีที่แล้ว

    thank you SO MUCH Kevin, for your insight into L.E.D.'s and microcontrollers and Multiplexing and making an L.E.D. cube. you have given me what i need to make my own cube. in fact, i have already made a 4x4x4 test cube i am now going to make an 8x8x8 cube. or TRY to at least. thank you once again for your time and reading this message.

  • @fabiangiesche7884
    @fabiangiesche7884 2 ปีที่แล้ว

    Damn im soooo happy ive found your Video!!
    I want to build my own first RGB Cube an couldnt find anything about how the „dimming“ works…
    HUGE thanks to you.

  • @matthewzuber9823
    @matthewzuber9823 8 ปีที่แล้ว

    This was Awesome!!

  • @labbytch
    @labbytch 9 ปีที่แล้ว +1

    Nice moustache, man

  • @deishaw4831
    @deishaw4831 9 ปีที่แล้ว

    Really great video explaining something really really cool!! Explanations were simple enough for anyone with any kind of interest in electronics. If you have an Arduino, then you probably know enough to understand this video and go out there and build one of these.

    • @SuperTechIT
      @SuperTechIT 9 ปีที่แล้ว +1

      Dei Shaw I can honestly say that probably 80% of the people with an Arduino probably couldn't complete this build by hand! LOL! The single colour 8X8X8 cube gave enough people a ton of problems!

  • @matthewzuber9823
    @matthewzuber9823 8 ปีที่แล้ว

    I learned a lot, thank you very much

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    yea, I suppose you could get creative with where the bits reside and stagger it. I guess you could even have it actively select where it turns on and off so you get a smoother display

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    thanks! the update speed is about 8kHz if I remember correctly, but that means each level is called at about 1kHz with an ON time of only 124us.

  • @grulloc
    @grulloc 11 ปีที่แล้ว

    Awesome!!!! Thank you so much! I was wondering through watching your videos was are you also using PWM with bit angle modulation for this cube?

  • @kawrx2002
    @kawrx2002 3 ปีที่แล้ว

    I made it! Thanks for these tutorial videos. Only thing I did different was stack the boards on top of eachother via hex spacers and placed them underneath the cube. I don't know if you look at these old videos, but have you tried to use the code with the ESP32? I think mine doesn't get to send the full 200 bits. I used the void IRAM ISR for the interrupts.

  • @beatlessteve1010
    @beatlessteve1010 8 ปีที่แล้ว

    Kevin, I really like the way you demonstrated the cube as it pertained to multiplexing...I am an ITT-Tech grad..way back from 91' and I have been getting back into project building but it's been close to 15 years since I have worked (or played) in the electronics field, so I do remember fundamentals but am extremely rusty. My question is.. what value is the current limiting resistor you use on the all of the npn transistors connected to the anodes.? the cathodes didn't require one other than the 4k feedback.

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    yep, those videos cover that... if you got the time to watch, and stay awake through them!

  • @jarenhudson9794
    @jarenhudson9794 9 ปีที่แล้ว

    Thanks that was awesome.

  • @darknsquirel
    @darknsquirel 11 ปีที่แล้ว

    Your cable spaghetti is impressive !

  • @knightfire8253
    @knightfire8253 11 ปีที่แล้ว

    you are very very welcome. but this truly is a work of art. sorry about your day though. but i mean, nowhere to go but up eh? keep that head up and keep programming/doing whatever it is you do to make your videos so damned intriguing. but i do have a question, if i may, would you prefer using the arduino chip? (i think its atmega something sorry im a bit rusty and dont have a reference right now) or would you prefer using a PIC chip? (i think its either an 8-pin or a 10-pin one)

  • @ThinkCreativ
    @ThinkCreativ 11 ปีที่แล้ว

    Start by watching his theory (I believe there is a bit on BAM there) and code video, looking through his code (on his website). It has helped me a lot in understanding. :)

  • @kentscipione1261
    @kentscipione1261 6 ปีที่แล้ว

    I've been having difficulty lighting LEDs in multiple columns. Since all my levels are connected via ground, i can't figure out how to get a trailing effect without the column being solid. An animation that experiences this issue would be the transition from an outer cube to an inner cube.

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    yes this is a retina. I love it, but I do see the 'ghosting' screen defect people are reporting. I am planning on swapping it out before my first year is over, but other than that this thing is a beast... boot up time is like 8 seconds

  • @delawarepilot
    @delawarepilot 10 ปีที่แล้ว

    nice video, good explanation

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    thanks! Yea I don't know.... I go both ways with micro controllers. My go-to is the ATMEGA328 running an arduino bootloader because I can crank out projects fast. If I'm in a pinch for space and energy, I might pull out my PIC 12F683 or if I need some serious horsepower I may even run with a Parallax Propellor. And if I need WiFi, I'll go with the Electric Imp, so yea it all depends on how I'm feeling. My geiger counter projecct used an arduino and a PIC!

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    thanks man! I needed this comment today... long day at my real job

  • @Kevindarrah
    @Kevindarrah  10 ปีที่แล้ว

    love you too! glad the vids are a help!

  • @ArtemKuchin
    @ArtemKuchin 4 ปีที่แล้ว

    I loop cycle is the same length in time then you would not get 16 levels with 4 bits, because 5 (1+4) and 6 (2+4) is the same ON time. So, the idea of BAM is that loop cycle time is different for bits (longer for higher bits).

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    sweet! Thanks!

  • @hippynurd
    @hippynurd 11 ปีที่แล้ว

    I have a little cube that uses a bunch of transistors, and it uses too many pins to use PWM. I think I should try out BAM, but im not sure where to get started.

  • @joaofonseca4435
    @joaofonseca4435 6 ปีที่แล้ว

    can give me a list of materials is that I will do an identical job for the end of the course

  • @vaibhavnayel
    @vaibhavnayel 11 ปีที่แล้ว

    if you did a 5,5,0 would it mean that the green and red leds would come on at the same time even in slow motion?

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    your welcome, thanks!

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    wow, sounds like you're on to something there

  • @djbare9
    @djbare9 8 ปีที่แล้ว

    How many data lines are needed for 8x8x8 RGB?

  • @sMartcreations2010
    @sMartcreations2010 11 ปีที่แล้ว

    Thanks , now it is clear to me :-))
    Thanks 4 sharing
    Greets M

  • @ryanarmstrong7785
    @ryanarmstrong7785 9 ปีที่แล้ว

    I love your vids and that led cube but i America trying to replicate it and I am confused about all those transistors and do I need them?
    Thanks😎

    • @SuperTechIT
      @SuperTechIT 9 ปีที่แล้ว

      Ryan Armstrong You can use my PC Boards. Way less parts, same basic code, plus access to much more code on other microcontrollers. www.TheLEDCube.com

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    check out the build vid

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    yep, thanks

  • @mabdo88
    @mabdo88 10 ปีที่แล้ว

    if i use 8 bit angle modulation i'll use 8 arrays of red,green,red each right ?
    and in the BAM_Counter i will increment the BAM_Bit every 8-24-56-120-247-503-1015 and reset at 2040 please answer me i learnt alot from this videos and i think sharing these information is really cool from you :)

    • @mabdo88
      @mabdo88 10 ปีที่แล้ว

      Kevin Darrah

  • @rainbowsalads
    @rainbowsalads 11 ปีที่แล้ว

    would need a moderator to check the messages, before up load to the cube though. :)
    You could have a juke box connected also, so people can select a song for the cube to sync too.

  • @pokebattle7959
    @pokebattle7959 3 หลายเดือนก่อน

    you are the best

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    Kind of, but not really. The multiplexing is like PWM as each Level has a duty cycle of 1/8 but I am controlling brighness purely through BAM

  • @ThinkCreativ
    @ThinkCreativ 11 ปีที่แล้ว

    I don't believe the 74HC595 Shift registers allow Pulse Width Modulation. So, I think he only uses Bit Angle Modulation to control the brightness.
    Also, if you go through his code, you see he only sends out 0s and 1s. :-)

  • @AlanTubeMan
    @AlanTubeMan 10 ปีที่แล้ว

    re: Michael Braverman
    >>Does anyone know what update rate is necessary to make your eyes get tricked?
    It varies a little by person, but most people lose the flashing sensation at between 17 and 20 changes per second. At those rates most people can perceive flicker when using their side vision, but up it to 30 per second and I doubt anyone can.

  • @jdepratti
    @jdepratti 11 ปีที่แล้ว

    How did you construct the 8x8x8?

  • @dax2321
    @dax2321 10 ปีที่แล้ว

    can you buy thes led cubs on line

  • @quintonmarcus
    @quintonmarcus 8 ปีที่แล้ว

    Hey, very nice Project... I think for me... Id have to wait a bit before I try this, but it seems very interesting!... for now Im doing something much simpler, and was wondering if you could Point me in the right direction.. I am Building a X=30 Y=20 Matrix. Totalling 600 LEDs. (LEDS=WS2811 RGB Strips.) I want to create a star ceiling. I will be attaching the ´stars´ to the LEDS as Plastic Fibre Optics... in other words, I will be bundling about 5 plastic optic Fibres together, and attaching them to each LED... meaning I will have 3000 stars. I want to Control the stars via remote Control, so that I can perhaps have about 12 Buttons.. each button could be a constellation. So when I press the desired constellation, the LEDs would Change according to the configuration. Can you recommend a way of programming this with Arduino? Thanks.

  • @enna6591
    @enna6591 9 ปีที่แล้ว

    Im sure that using the TLC5940's would've saved you alot of time.

  • @WoodmanFFM
    @WoodmanFFM 6 ปีที่แล้ว

    Actually, what you're doing isn't real bit angle modulation, but rather standard PWM - even though you're trying to distribute the on times.
    The idea of bit angle modulation is that the period for the higher bits is longer than for the lower bits, therefore reducing the number of cycles necessary.
    For your cube, using 4bit brightness, you'd have to have 4 different cycle lengths (8, 4, 2 and 1) and would therefore need a lot less cycles.
    Your cube is pretty awesome nonetheless... ;-)

  • @rainbowsalads
    @rainbowsalads 11 ปีที่แล้ว

    How about a large LED cube in a shopping centre/mall that peope can txt by phone and donate to charity in the process ? say 20 percent for running costs?

  • @surenbono6063
    @surenbono6063 11 หลายเดือนก่อน

    ....wow...if you perfect the algorithm..than you have invented a 5D TV... Imagine ..a big t Rex walking show at night...with sound

  • @Robohac01
    @Robohac01 9 ปีที่แล้ว

    Well this is much better explained than your code Video :) reat work, i think ill attempt to build a small version of this :) lets say 4*4*4 thats not that insain :)

  • @jakubracek3562
    @jakubracek3562 10 ปีที่แล้ว

    What sorcery is this?

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    haha, yea this thing is a beast

  • @stephangosselsberger9861
    @stephangosselsberger9861 11 ปีที่แล้ว

    no i dont mean that so i mean that when you have the full power, the leds are always on in one period of multiplexing.
    but what you do whenyou wanna light up all colors at full power ? you cant light every color in the row at the same time on ?

  • @stephangosselsberger9861
    @stephangosselsberger9861 11 ปีที่แล้ว

    hey ! whyt you do, when you wanna light all colors (r,g,b) in on row at the maximum power ?

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    just 15,15,15

  • @rainbowsalads
    @rainbowsalads 11 ปีที่แล้ว

    you could text your name to the cube , or a message for a loved one. : )

  • @Kevindarrah
    @Kevindarrah  11 ปีที่แล้ว

    hehehe, I know. It's ugly, but I love it

  • @mandykal
    @mandykal 11 ปีที่แล้ว

    Did u go to school for this?

  • @Watswat5
    @Watswat5 10 ปีที่แล้ว +1

    So, ultimately, multiplexing isn't a great solution for large cubes. The larger the cube, the dimmer the highest level brightness of the LEDs. Combine that with the fact that this is an RGB LED cube, with essentially THREE TIMES the LEDs as a single color 8x8x8 cube. Eventually, it will become better to have an IC with more output pins, or to use shift registers to add output pins.

  • @salemcripple
    @salemcripple 10 ปีที่แล้ว +6

    wow, the only thing this video did was make me feel really fucking stupid lol. Give me a car, and a welder, and i can do amazing things. Computers are all black magic and voodoo lol.

    • @Xilurous
      @Xilurous 10 ปีที่แล้ว +19

      Aha give me a car and a welder and i'll find some way to break both

    • @officialanoopkumar
      @officialanoopkumar 8 ปีที่แล้ว

      go on ride in your car to your home (DUMBVILLE)

  • @matty35644853
    @matty35644853 9 ปีที่แล้ว

    hey dude, would you be interested in selling that?? xD
    really wan't one but it's a little out of my capability, lol
    just reply to my comment, i don't check my inbox.

  • @roboboy1595
    @roboboy1595 10 ปีที่แล้ว

    Thanks, Leonardo DiCaprio Jr. !!

  • @FPRESLEY1
    @FPRESLEY1 10 ปีที่แล้ว

    HUH??? This is so over my head, and why i'm not a software engineer. Or whatever this is for...
    is cool though.

  • @cpobyrne1
    @cpobyrne1 8 ปีที่แล้ว

    looks great, but I can't follow. I'm an LED dunce

  • @3sc4p1sm
    @3sc4p1sm 4 ปีที่แล้ว

    Why not just change clock rate rather than slow motion camera.. lol

  • @Zack-dk3pt
    @Zack-dk3pt 7 ปีที่แล้ว

    and i thought my rats nest was bad

  • @ryanarmstrong7785
    @ryanarmstrong7785 9 ปีที่แล้ว

    Sorry auto spell "am" not "American"

  • @LucasLAMY
    @LucasLAMY 7 หลายเดือนก่อน

    Don't really care about dimness and more about how it works to chose a led.. Bit sad.

  • @jetlorider
    @jetlorider 11 ปีที่แล้ว

    u lost me at 0

  • @brianj92505
    @brianj92505 8 ปีที่แล้ว

    this guy is a horrible teacher, can't follow him at all.

    • @ewanlister9262
      @ewanlister9262 8 ปีที่แล้ว

      +Brian Johnson What don't you understand that he said?