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

Ғылым және технология

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

  • @1Patient
    @1Patient10 жыл бұрын

    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...

  • @geneworld
    @geneworld11 жыл бұрын

    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
    @ThinkCreativ11 жыл бұрын

    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!

  • @joshuariddell4550
    @joshuariddell455010 жыл бұрын

    This was really helpful, thanks.

  • @debayandas8896
    @debayandas88965 жыл бұрын

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

  • @knightfire8253
    @knightfire825311 жыл бұрын

    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.

  • @RyanJensenEE
    @RyanJensenEE11 жыл бұрын

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

  • @tomasbadenes
    @tomasbadenes4 жыл бұрын

    2019 and this is the best explanation. Incredible!

  • @ThinkCreativ
    @ThinkCreativ11 жыл бұрын

    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.

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    love you too! glad the vids are a help!

  • @fabiangiesche7884
    @fabiangiesche78842 жыл бұрын

    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.

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    sweet! Thanks!

  • @matthewzuber9823
    @matthewzuber98239 жыл бұрын

    I learned a lot, thank you very much

  • @deishaw4831
    @deishaw48319 жыл бұрын

    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 жыл бұрын

    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
    @matthewzuber98239 жыл бұрын

    This was Awesome!!

  • @loveg7330
    @loveg73302 жыл бұрын

    You are a GREAT teacher!

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    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!

  • @jarenhudson9794
    @jarenhudson97949 жыл бұрын

    Thanks that was awesome.

  • @kentscipione1261
    @kentscipione12616 жыл бұрын

    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.

  • @kawrx2002
    @kawrx20023 жыл бұрын

    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
    @beatlessteve10108 жыл бұрын

    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
    @Kevindarrah11 жыл бұрын

    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.

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    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

  • @ThinkCreativ
    @ThinkCreativ11 жыл бұрын

    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. :)

  • @joaofonseca4435
    @joaofonseca44356 жыл бұрын

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

  • @mriloveethanol
    @mriloveethanol10 жыл бұрын

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

  • @zyzzthetics7

    @zyzzthetics7

    6 жыл бұрын

    mriloveethanol true lol

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

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

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    your welcome, thanks!

  • @djbare9
    @djbare99 жыл бұрын

    How many data lines are needed for 8x8x8 RGB?

  • @delawarepilot
    @delawarepilot10 жыл бұрын

    nice video, good explanation

  • @sMartcreations2010
    @sMartcreations201011 жыл бұрын

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

  • @grulloc
    @grulloc11 жыл бұрын

    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?

  • @labbytch
    @labbytch10 жыл бұрын

    Nice moustache, man

  • @darknsquirel
    @darknsquirel11 жыл бұрын

    Your cable spaghetti is impressive !

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    yep, thanks

  • @knightfire8253
    @knightfire825311 жыл бұрын

    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)

  • @hippynurd
    @hippynurd11 жыл бұрын

    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.

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

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

  • @dax2321
    @dax232110 жыл бұрын

    can you buy thes led cubs on line

  • @vaibhavnayel
    @vaibhavnayel11 жыл бұрын

    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
    @Kevindarrah11 жыл бұрын

    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

  • @jdepratti
    @jdepratti11 жыл бұрын

    How did you construct the 8x8x8?

  • @AlanTubeMan
    @AlanTubeMan10 жыл бұрын

    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.

  • @pokebattle7959
    @pokebattle79595 ай бұрын

    you are the best

  • @ryanarmstrong7785
    @ryanarmstrong77859 жыл бұрын

    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
    @Kevindarrah11 жыл бұрын

    wow, sounds like you're on to something there

  • @ArtemKuchin
    @ArtemKuchin5 жыл бұрын

    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).

  • @mabdo88
    @mabdo8810 жыл бұрын

    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

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    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

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    check out the build vid

  • @quintonmarcus
    @quintonmarcus8 жыл бұрын

    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.

  • @rainbowsalads
    @rainbowsalads11 жыл бұрын

    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.

  • @WoodmanFFM
    @WoodmanFFM6 жыл бұрын

    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... ;-)

  • @ThinkCreativ
    @ThinkCreativ11 жыл бұрын

    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. :-)

  • @enna6591
    @enna65919 жыл бұрын

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

  • @Robohac01
    @Robohac0110 жыл бұрын

    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
    @jakubracek356210 жыл бұрын

    What sorcery is this?

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    haha, yea this thing is a beast

  • @rainbowsalads
    @rainbowsalads11 жыл бұрын

    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?

  • @salemcripple
    @salemcripple10 жыл бұрын

    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 жыл бұрын

    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)

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

    just 15,15,15

  • @stephangosselsberger9861
    @stephangosselsberger986111 жыл бұрын

    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 ?

  • @Watswat5
    @Watswat510 жыл бұрын

    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.

  • @surenbono6063
    @surenbono6063 Жыл бұрын

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

  • @stephangosselsberger9861
    @stephangosselsberger986111 жыл бұрын

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

  • @rainbowsalads
    @rainbowsalads11 жыл бұрын

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

  • @Kevindarrah
    @Kevindarrah11 жыл бұрын

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

  • @mandykal
    @mandykal11 жыл бұрын

    Did u go to school for this?

  • @roboboy1595
    @roboboy159511 жыл бұрын

    Thanks, Leonardo DiCaprio Jr. !!

  • @matty35644853
    @matty3564485310 жыл бұрын

    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.

  • @FPRESLEY1
    @FPRESLEY110 жыл бұрын

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

  • @cpobyrne1
    @cpobyrne18 жыл бұрын

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

  • @3sc4p1sm
    @3sc4p1sm4 жыл бұрын

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

  • @Zack-dk3pt
    @Zack-dk3pt7 жыл бұрын

    and i thought my rats nest was bad

  • @jetlorider
    @jetlorider11 жыл бұрын

    u lost me at 0

  • @ryanarmstrong7785
    @ryanarmstrong77859 жыл бұрын

    Sorry auto spell "am" not "American"

  • @LucasLAMY
    @LucasLAMY8 ай бұрын

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

  • @brianj92505
    @brianj925058 жыл бұрын

    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?

Келесі