Some time ago I decided to create 8×8 LED array for Arduino. It took me three weekends, a lot of soldering, painting, and coding to achieve it. But it is done!
Code is on the GitHub: https://github.com/thePetrMarek/ArduinoLedArray
Watch the video above before you continue, please. It is only 30 second of your life 😉 . I decided to create an array of size 8×8. Thus I used 64 LEDs. I didn’t have that many LEDs of a single color. So I used three colors and arranged them in Bayer filter. This means that red, green and blue LEDs lies in diagonals and there are two times more green LEDs. The reason for more green LEDs is because Bayer filter is used in digital image sensors (cameras, recorders, etc.). This allows them to capture green color better, to which a human eye is the most sensitive.
The LEDs are soldered to form an array, which you can see in this article: Row-columm Scanning to control an 8×8 LED Matrix. It is controlled by Arduino. The interesting thing is that Arduino itself doesn’t have enough pins to control all LEDs at once. There is a simple trick. It is called Multiplexing. The trick is to connect single column at a time and select which LEDs to turn on in it. You then unconnect the column and connect the next one and choose which LEDs to turn on again. And over and over. If you do it fast enough, the eye will stop seeing any flickering. You can control individual LEDs this way even if you don’t have enough pins. The effect of multiplexing is nicely shown in this video: LED cube multiplexing demo. The speed of flickering increases until you don’t see it.
I made two demos after I had solved the multiplexing (which took me some time to only realize, that I would need to use this method). You can see them both in the video above. The first is “wave” effect, in which the colors are changed to create the effect. The second is the Game of life. It is described in detail on the Wikipedia page: Conway’s Game of Life. I will describe it in short here. Imagine, that each light is some little monster. If the light is on, the monster is alive. If the light is off, the monster died. There are four rules. The monster dies, if it has none or only single neighbor (because of loneliness probably). If there are two or three neighbors, the little monster is happy and continues to live. If there are four or more neighbors, the monster dies because of overpopulation. And if there is free space, which has three neighbors, the new little monster is born on this place. You place some little monsters on the array and run the rules. The monsters will start to form unusual patterns. The patterns sometimes stabilize, sometimes collapse, and they can even evolve forever. You can see it in the second half of the video.
I decided to use black and white colors to paint it because the cardboard is not particularly elegant. I also spend some time with coding few cool effects which I can loop. You can see them all in the top video. My plan is to have the array as decoration, like changing painting. Problem is, that most of the effects are very aggressive. The array is now on my shelf gently shoving seconds past by turning on or off a single LED each second. It is powered by unused USB port on my wifi router.
Thanks for sharing this. I would like to add few to your list.
1. Ecologically Friendly – LED Lighting Is Much More Eco-Friendly
LED lights are free of toxic chemicals. Most conventional fluorescent lighting bulbs contain a multitude of materials like e.g mercury that are dangerous for the environment.
LED lights contain no toxic materials and are 100% recyclable, and will help you to reduce your carbon footprint by up to a third. The long operational life time span mentioned above means also that one LED light bulb can save material and production of 25 incandescent light bulbs. A big step towards a greener future!
2. Durable Quality – LED Illumination Can Withstand Rough Conditions
LEDs are extremely durable and built with sturdy components that are highly rugged and can withstand even the roughest conditions.
Because LED lights are resistant to shock, vibrations and external impacts, they make great outdoor lighting systems for rough conditions and exposure to weather, wind, rain or even external vandalism, traffic related public exposure and construction or manufacturing sites.
3. Zero UV Emissions – LED Lighting Features Close to No UV Emissions
LED illumination produces little infrared light and close to no UV emissions.
Because of this, LED lighting is highly suitable not only for goods and materials that are sensitive to heat due to the benefit of little radiated heat emission, but also for illumination of UV sensitive objects or materials such a in museums, art galleries, archeological sites etc.
4. Operational in Extremely Cold or Hot Temperatures
LED are ideal for operation under cold and low outdoor temperature settings. For fluorescent lamps, low temperatures may affect operation and present a challenge, but LED illumination operates well also in cold settings, such as for outdoor winter settings, freezer rooms etc.
5. Low-Voltage – LED Lighting Can Run on Low-Voltage Power Supply
A low-voltage power supply is sufficient for LED illumination. This makes it easy to use LED lighting also in outdoor settings, by connecting an external solar-energy source and is a big advantage when it comes to using LED technology in remote or rural areas.