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 - วิทยาศาสตร์และเทคโนโลยี
Evidently, you're REALLY UNDERRATED!!! AMAZING MAN! AMAZING! KEEP IT UP!
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...
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.
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!
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!
You are a GREAT teacher!
This was really helpful, thanks.
this is awesome...
btw you look like Leonardo Decaprio :O
mriloveethanol true lol
2019 and this is the best explanation. Incredible!
very cool video! very well explained!
bit angle modulation is fascinating!
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.
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.
This was Awesome!!
Nice moustache, man
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.
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!
I learned a lot, thank you very much
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
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.
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?
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.
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.
yep, those videos cover that... if you got the time to watch, and stay awake through them!
Thanks that was awesome.
Your cable spaghetti is impressive !
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)
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. :)
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.
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
nice video, good explanation
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!
thanks man! I needed this comment today... long day at my real job
love you too! glad the vids are a help!
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).
sweet! Thanks!
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.
can give me a list of materials is that I will do an identical job for the end of the course
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?
your welcome, thanks!
wow, sounds like you're on to something there
How many data lines are needed for 8x8x8 RGB?
Thanks , now it is clear to me :-))
Thanks 4 sharing
Greets M
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😎
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
check out the build vid
yep, thanks
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 :)
Kevin Darrah
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.
you are the best
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
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. :-)
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.
How did you construct the 8x8x8?
can you buy thes led cubs on line
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.
Im sure that using the TLC5940's would've saved you alot of time.
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... ;-)
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?
....wow...if you perfect the algorithm..than you have invented a 5D TV... Imagine ..a big t Rex walking show at night...with sound
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 :)
What sorcery is this?
haha, yea this thing is a beast
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 ?
hey ! whyt you do, when you wanna light all colors (r,g,b) in on row at the maximum power ?
just 15,15,15
you could text your name to the cube , or a message for a loved one. : )
hehehe, I know. It's ugly, but I love it
Did u go to school for this?
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.
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.
Aha give me a car and a welder and i'll find some way to break both
go on ride in your car to your home (DUMBVILLE)
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.
Thanks, Leonardo DiCaprio Jr. !!
HUH??? This is so over my head, and why i'm not a software engineer. Or whatever this is for...
is cool though.
looks great, but I can't follow. I'm an LED dunce
Why not just change clock rate rather than slow motion camera.. lol
and i thought my rats nest was bad
Sorry auto spell "am" not "American"
Don't really care about dimness and more about how it works to chose a led.. Bit sad.
u lost me at 0
this guy is a horrible teacher, can't follow him at all.
+Brian Johnson What don't you understand that he said?