![](https://image.lceda.cn/pullimage/PkJeHzpFwF1bzwh0ynK4SUmKDXGDVsA9SEoliLOL.jpeg)
Small Light Cube
PROSmall Light Cube
License
:GPL 3.0
Description
Project Description:
1. Light cube made using esp32 and STC51 chips.
2. Use 0805 SMD lamp beads and manually weld them into a light cube.
3. Finished product appearance size: 56*56*78mm.
4. The hardware circuit and source code are open source, and the host computer is open source (only optical cube)
5. You can connect to wifi and serial port to control the light cube.
6. Can be used independently or connected to a host computer.
7. The host computer is developed using unity3D, which has strong scalability. The host computer supports win computer terminal and mobile Android terminal.
8, support the development of Light Cube SDK: arduino esp32、unity3D packet、python、Android studio、C# winform、Do-It-Yourself.
9. You won't break up if you give it to your girlfriend.
Project Properties:
The Little Light Cube and related materials are all personal original works and are free and open source.
Project Progress:
Hardware complete. Software can develop more functions.
Design Information:
Link: https://pan.baidu.com/s/1S9MsWZ7Lz66SiAS-eFISFQ?pwd=2twt
Pwd:2twt
All the data is about 6G and is placed on the network disk. We are still collecting questions for developer testing, and the information will be updated from time to time.
Function Introduction:
Here we only introduce the functions that Xiaoxiao Light Cube has implemented. For circuit welding, code uploading, use of the light cube, use of the host computer, etc., please go to the design materials to find relevant documents.
1. The tool set for welding light cubes is relatively simple, and there is basically no need for complicated processes. Just spend money to buy equipment. Light Cube uses a USB port to upload codes to esp32 and 51, and uses a self-locking switch to switch the upload mode without cumbersome operations. The light cube is small in size and uses carbon steel wire to connect the lamp beads, which is not easily damaged. The light cube comes with its own battery and can be used independently of other devices.
2. First upload the default demo code to ensure that the light cube can run. Next, we will introduce the operation of light cube.There are four touch buttons on the light cube chip board, namely switch, mode, effect, and custom.
The function of the switch is to turn on and off the control of esp32. When turned on, esp32 is used to control the operating effect of the light cube. When turned off, esp32 will not send information to the 51 chip.
The mode button is used to switch between several modes, including audio mode, animation mode, buzzer mode, temperature and humidity mode, and three-axis mode.
Effect switching effect in current mode.
Customize the custom functions in the code. The custom code is usually a light cube function written before and then pieced together to create the effect you want.
3. The light cube can be controlled by a host computer. The host computer uses wifi control software developed by unity3D. The software supports win computers and Android phones.
First open the software, find a way to find the light cube (there are tutorials in the host computer software), and finally enter the light cube laboratory. Using wsad to move the character, you can move around. There is a tutorial on how to operate the light cube.
Light cube control, here you can control the body of the light cube object. Click on the little head to zoom in and out of the light cube, switch the arrangement of lights, hide and open circuit boards, acrylic, steel wires, etc.
Special effects control: Mainly controls the effects of light cube lights. Click on the special effects to enter the control interface. The special effects controls include: animation, music, wifi, customization.
Animation: Several demonstration animation buttons are reserved in the animation. Click on the corresponding animal, and the light cube will display the animation. Each animation is an animation that can be played infinitely.
Music: First find the music player (on the left), select your song to play it, and click the music button. Here you can display the FFT effect of the music, a cute animal, and a music effect. After clicking the animal, the effect will be The light cube jumps out.
WIFI: To connect to the physical light cube here, you only need to change the IP address of the light cube, others are default. (The Light Cube wifi settings are modified in the Light Cube code) After clicking Connect, the computer and Light Cube can communicate. If the light cube is playing animation at this time, the physical light cube will also synchronize the animation content.
There are also four buttons on wifi. These four buttons are equivalent to the four touch buttons of the light cube. The button control can be synchronized to the light cube. Don't press the synchronized three-axis function. The light cube will jump away as soon as you press it.
Customize the light status used to control the light cube with the mouse. When the left mouse button slides the light, the light turns on. When the right mouse click slides the light, the light turns off.
Color Here you can set the color of the light cube motherboard, as well as the color of each layer of light cube lamp beads.
In the Light Cube laboratory, you can also see the Light Cube welding room and the Light Cube AR room.
The light cube welding room is mainly to show how the light cube is welded. Here you can also learn how to weld the light cube. The numbers on the table are the welding steps. There are too many things in the light cube welding room, which is a bit stuck.
Light Cube AR Room uses the floor of the light cube for AR recognition, so that you can have a virtual light cube appear on your computer in real life. The usage of this virtual light cube is the same as that of the host computer.
4. The computer-side speaker fft test controls the light cube, and the computer-side music player controls the light cube. These two programs are mainly used to display FFT effects. If you do not have high requirements for the software interface, you can use this software. The software is small, faster and more stable.
5. The esp32 remote control board controls the light cube. The light cube can be connected to wifi and controlled using UDP. In order to control the specified device, the esp32 remote control board can also be used to control the light cube. It can be used as a remote control for the light cube and expand the wireless buttons of the light cube. Open source address: https://oshwhub.com/txdodo/xiao-xiao-guang-li-fang-de-yao-kong-qi
6. The android studio music player controls the light cube. Only the software's own music fft data can be used on the mobile phone. This software can be installed on an Android phone, and can play music from your phone, connect to the Light Cube using wifi or serial port, and perform audio-related control.
7. Python controls the small light cube. The Little Light Cube is equivalent to a low-pixel 3D screen. If you want to implement more intelligent functions, the most convenient way is to use Python. Use your python to control the light cube, and the code is more convenient and concise to write.
8. The host computer code is also open source. You can go to the Unity development market to find the light cube host computer package. To use the plug-in, you need to have a unity account. Pass it to this link, add the plug-in to your Assets, and then you can import it into your unity. https://assetstore.unity.com/packages/slug/271303
Welcome to copy...
Physical Display:
All demo videos can be viewed here.
[Open Source] Little Light Cube-Bilibili] https://b23.tv/Ka1G9oD
Designed by TXdodo (from OSHWHub)
Design Drawing
![](/_next/static/media/empty2.28562477.png)
![](/_next/static/media/no-content.81aa631d.png)
Comment