Small light cube. Use 0805led patch welding. The number of light cube LEDs is 8*8*8. The code is written in C language and the special effects are written by myself. The LED lamp uses the stc89c516 chip, runs the crystal oscillator at 24MHz, and the speed is set to double speed mode. It also comes with esp32, which is used to expand other devices and wireless connection light chips, etc. esp32 is connected to eeprom and sht20. The communication between esp32 and stc chip uses the pin header to connect Dupont line scheme, but the relevant code test has not been done yet.
An open source small light cube project, completely developed by myself (with shortcomings). The finished size of the light cube welding is 55*55*70, USB powered, and an automatic downloader is required to download the program.
There is no guarantee that all report components are completely correct. I soldered them myself and they still work.
Program entrance: Program Duck
1. Circuit:
The corresponding circuit schematic diagram and corresponding pcb. I put it together. If you want to develop it yourself, be careful not to mix it up.
A tool floor that I use to prevent finished parts from flying; light cube tools, newbies may need more, to fix 0805led lights.
Welded light cube esp board
light cube led board
The white board is the tool base and the green board is the light cube tool. Now it’s time to glue the green board to the white board to avoid scratching and making a mess.
To make a light cube, you need a light cube LED board, a light cube chip board, a tool base plate, and a light cube tool. You need to buy all four boards .
2 welding
The motherboard is soldered quickly.
Complete the welding of the light cube LED board and the light cube esp board. The crystal oscillator uses 24M, and the stc chip uses stc89c516. This memory is large and requires downloading more than ten kilobytes of code.
After the board is welded, the next step is to weld the light cube LED three-dimensional lattice.
Get your LED and light cube tools ready. Use double-sided tape to stick the light cube tool to the tool base, being careful not to stick the tape near the hole. (Today I will make a square full of red LEDs)
Use tweezers to insert the 0805 LED into the mobile phone. The green dot on the LED should be facing inward. The angle and direction of all lights should be the same .
Then stuffed, hahahahaha. Note that not all holes must be filled, they must be filled to the same size hole facade, be sure to find the hole you like. The fortress has 64 nicknames.
After stuffing, find 8 wires.
The iron wire is 0.3mm silver. Easy to weld and the size is just right. Buy a roll and straighten it yourself by hand. Hahahahaha
Weld the wire on. You can see how I welded it on the video screen. I need to weld 8 pieces. The craftsmanship still requires practice before you can weld it. Patience is also required. Take your time the first time.
When welding, you need to pay attention to the fact that the wire below the LED leaks a little, probably at least 6mm, because it needs to be inserted into the LED board. After welding the wire, take out the LED. Therefore, try to do it in one go when welding, otherwise a lot of rosin will be left, which will make it impossible to pull it out. This is also so that the tool with this hole can be used multiple times. This is a green board. You can think of a way to make it yourself. It seems that what I made is a bit long.
After taking it out, prepare 8 wires. You can also prepare more wire. You need 8*8 + 8*8 + 8*2 wire, about 8 cm in length. Then use the two long molds to fix each lamp like this, ready for the next step of welding.
Then weld the wire on, like this. When welding, if you find that the LED is crooked, you can straighten it a little. Use the hole on the green board below to roughly position it. You can watch the video on how to weld.
Take it off after welding and that's it.
Trim the wire. You need to leave a little length of wire inside the red circle. You can refer to mine, how to cut it as it looks good. The long wire is soldered to the circuit board, so it is recommended to leave 6mm. After welding, the entire LED is on a flat surface. If yours is a little crooked, you can adjust it here.
After soldering, test whether the LEDs are all on. Be sure to pay attention to the voltage, otherwise the LED will be burned. The voltage of red LED and yellow LED is generally 2.2v, and the voltage of green LED, blue LED and white LED is 3v.
If it is burned out, or the LED is attached backwards during testing, you need to remove the broken one and solder a new one. There is a test LED video screen
Then put the LED weld bead on the board, paying attention to the direction. To straighten it out. After welding, you still need to wash it with board washing water. You can use a cotton swab dipped in some board washing water to wipe it clean. I wiped it 4 times. I need to wipe the bottom of the feet and the dirty LED. Now that we've started making a small light cube, let's make it cleaner and it will look better. (*^▽^*). At the same time, all your repair methods on this LED end here, and the welding repairs further down will be more difficult.
If I soldered the lamp for 7 hours, it would be the last layer. If you can hold on, finish welding. Don't forget to wipe it when it's dirty.
After soldering the last layer, connect the negative electrodes of each layer together. Be careful not to connect to the vertical wire. The front part of the picture is welded, and then the back part is also welded, for the sake of symmetry and good appearance.
Trim it after welding. Then use a thin enameled wire to connect to the negative electrode of the corresponding layer. The round pad circled in yellow is the first layer F1. When soldering the negative electrode, be careful not to burn the LED.
After soldering, download the code for testing. Don't get excited, this is very fragile.
Use the serial port automatic downloader to download the code of the stc chip to the chip. For convenience you can just use the code for the breathing light. The code is in the link at the top (as for how to download the chip, you need to find help yourself. If you don’t understand, it is recommended to ask a teacher for help.)
The stc chip download uses this serial port. The one above is for esp32 download.
Finally, check whether the LED looks good. After that, prepare a 55*55*55mm regular 5-sided cube of acrylic. The acrylic should be 2mm thick and highly transparent.
Use acrylic glue to stick the acrylic, do not use other glues, and remove the protective film where it needs to be glued. This is a five-sided cube and cannot be made into a six-sided cube.
You can use non-whitening glue to stick the acrylic to the light cube, it must be non-whitening. You can also use highly transparent transparent tape to wrap a circle directly and fix it. Whether it sticks well or not, I can only rely on my craftsmanship.
I attached it with glue. Remove the protective film. I bought 20 rolls of tape but didn't use it.
Welcome to enjoy the video. There is no editing on the video screen, and the sound is the singing of Tmall Elf.
code
At present, there is only the test program for the light cube, which is the code of stc89c5. More functional codes have not been written yet.
It probably has this function.
The configuration of keil is like this
Click compile
Generate HEX file. Or use it directly:
Find the microcontroller model number. Click to open the program file and select mian.hex
I chose double speed mode to download to the microcontroller. Watch the video for the effect after downloading.
Special components purchase address:
Find a manufacturer to customize the acrylic. The esp32 is not necessary. Other components are easy to buy. Just look at the catalog.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet