A RGB light with various patterns and effects based on Arduino and Duinotech 40 LEDs matrix shield
A nice weekend project for beginners, affordable, fun and no soldering required.
- 1 x Arduino Uno/Leonardo
- 1 x Duinotech XC3730 40 RGB LED Matrix Shield
- 1 x Duratech XC4406 acrylic enclosure for Arduino Uno
- 1 x weekend
- 1 x fresh banana
- Gather the parts
- Test the Arduino Uno/Leonardo
Plug your Arduino on a USB port, open Arduino IDE and go to Tools | Get Board Info. You should see the BN, VID, PID and Serial Number. If not, go to Troubleshooting.
-
Assemble the enclosure
-
Plug the RGB LED hat on top of the Arduino
-
Upload the code
In Arduino IDE, open this file, then go to Sketch | Upload. If it doesn't work, go to Troubleshooting.
- Test
Plug the Arduino to a USB power source, you should see RGB patterns and effects
-
Prepare a light diffuser
7.1. 3D print the light diffuser (optional)
The Blender file is available here. The STL file is available here. If you own a EasyThreed K1, K2, K7, K9, X1 or X2 3D printer (the cheap ones from Ali Express), you can use this GCode file.
The STL file must be turned into a GCode file; this must be done on a per-printer basis, as GCode is specific to the brand and model of every 3D printer.
I use UltiMaker Cura, it is for free and easy to use. Follow this YouTube tutorial if you need help.
Once printed, simply glue it on the header so that it covers the RGB matrix. It will act as a light diffuser, making the effects nicer.
7.2. Use a 6x6 piece of tracing paper (optional)
If you don't own a 3D printer, cut a 6x6 centimeters square in a sheet of tracing paper. Once ready, simply glue it on the header so that it covers the RGB matrix. It will act as a light diffuser, making the effects nicer.
- Eat the banana
Fruits and vegetables are not boring, they are the natural fuel made for your body.
- Make sure the USB cable you use is Power + Data. You can find cheap testing devices on Ali Express for that. Some cables only do power and won't work at all
- Unplug, replug, retry
- In Tools | Board, double-check you selected the right Arduino model
- In Tools | Port, make sure a USB device is selected
You can also unplug the Arduino, keep the reset button pressed, plug it, go to Sketch | Upload and release the reset button.
These steps should cover most cases. If you can't make it work, go to the Arduino Sub-Reddit.




