rickyjar
Member level 2
User “wpqrek” presents his bedside lamp. Of course, the whole project is based on microcontrollers.
The construction is not ideal. The elements generally come from home storage. Only RGB diodes with a joint cathode were bought. The pattern is displayed in a multiplexed way. At a particular moment only one level of the lamp glows, which means maximally 4x4x3 diodes. Each anode of the diode (colors separately) from particular levels is connected to the same line supplied through a UDN2981A buffer controlled by 48-bit register charged serially (6 x 74HCT595N). The cathodes of the diode from each level are connected in one line. The level is selected through the ULN2803A circuit. The hart of the circuit is ATMega32. The whole needs seven lines to be controlled any other smaller AVR can be used.
The circuit can be expanded in an easy way, if the 4x4x4 cube seems to be too small. Software was written in C based on the AVRStudio and AVRlib environment. The RGB diodes are the most expensive part of the device.
Link to original thread -
4x4x4 RGB Led Cube. Lampka nocna.