» From sites » Specialist »LED mood cube

LED mood cube




In this article, the Wizard will tell us how to make an LED mood cube using Arduino and WS2812 LEDs.

Tools and materials:
- WS2812 LEDs - 96 pcs.;
- Printed circuit boards - 6 pcs.;
-Arduino Nano;
- Power supply 5V 1A;
-Soldering accessories;
-Computer with software;
-Iron;
-3D printer;




Step One: Plan
In his project, the master uses addressable WS2812 LEDs. The LEDs are connected in cascade, which means that you can control as many LEDs as needed with just one signal line / wire from the microcontroller. This makes wiring much easier.

LEDs will be controlled by Arduino Nano.

Step Two: PCB
For the design of the printed circuit board, the master used the EasyEDA program, as it is suitable for beginners.

The LED has 4 contacts:
VDD - 5 V
DOUT - output signal
VSS - Earth
DIN - input signal

As mentioned earlier, the LEDs are cascaded, which means that the signal comes from the microcontroller to the first LED on the DIN pin. From the DOUT pin, the signal goes to the DIN pin of the second LED.

When designing printed circuit boards, the master planned to solder them manually, so between the LEDs he left enough space for a soldering iron.

The master did not make the board himself, but ordered on JLCPCB.
LED mood cube



You can download the file for making the board below.
Schematic_Cube Lamp_Sheet_1_20191213095045.pdf

Step Three: Board Mounting
First, the master began to manually solder the LEDs one by one with a soldering iron. The result was not very good, not only was soldering the installation of 96 LEDs a laborious process, they also overheated when soldering.

Then the master decided to go the other way.
The most widely used method for soldering SMD components is called Reflow Soldering. In this method, solder paste (a mixture of solder and flux) is applied to the pads on a printed circuit board and the components are placed on it. The solder paste is then melted or “melted” by heating it in a reflow oven. This is a quick and accurate method, if everything is done correctly.

But the use of this method means that it will take a furnace for reflow, and the master did not have it.
Then he remembered the project of Moritz Koenig, in which he used an old iron.

The master had an iron, the sole of which, at maximum settings, reached approximately 220 ° C. The solder paste he bought melts at 183 ° C.

Looking at the graph of the reflow temperature from the LED table, you can see that the maximum temperature (Tp) is 240 ° C for 10 seconds. The iron does not hold out a bit, but the master decided to try.

He applied the paste to the pads with a toothpick and placed the components. Then he put the board on the iron, as shown in the photo, and turned it on. When all the solder melted, he turned off the iron and removed the board. Surprisingly, everything turned out as it should.







Step Four: 3D - Print and Build a Cube
To assemble the cube, the master first printed the parts on a 3D printer. It is necessary to print the frame and six panels and the details of the base.
Files for printing can be downloaded below.
Skeleton.stl
Holder.stl
Base.stl
Stand.stl
Cover.stl
Now you need to glue the boards to the panels, and install the panels in the openings of the frame. Make installation, as in the photo.










Step Five: Arduino
Next, the master connects the cube to the Arduino and the power supply.




Step Six: Code
Next you need to install Fastled using the dispatcher. Open DemoReel100 from sample sketches. File> Examples> FastLED> DemoReel100.

Before downloading the code, make the following changes:
Define DATA_PIN (the pin on the Arduino to which the DIN cube is connected) to the one you selected. In this case, digital contact 4.
Define LED_TYPE as WS2812.
Set NUM_LEDS to 96.
And, click Upload.

Now you can enable the cube. In the future, the master plans to connect the ESP8266 to the Arduino and make an Internet connection. In the new firmware, it is planned to change the glow of the cube depending on the event in the author's life.


The whole process of making such a cube can be seen in the video.
3
4
4

Add a comment

    • smilesmilesxaxaokdontknowyahoonea
      bossscratchfoolyesyes-yesaggressivesecret
      sorrydancedance2dance3pardonhelpdrinks
      stopfriendsgoodgoodgoodwhistleswoontongue
      smokeclappingcraydeclarederisivedon-t_mentiondownload
      heatirefullaugh1mdameetingmoskingnegative
      not_ipopcornpunishreadscarescaressearch
      tauntthank_youthisto_clueumnikacuteagree
      badbeeeblack_eyeblum3blushboastboredom
      censoredpleasantrysecret2threatenvictoryyusun_bespectacled
      shokrespektlolprevedwelcomekrutoyya_za
      ya_dobryihelperne_huliganne_othodifludbanclose
6 comments
wife will look at my a braceletand soon to the store!

Only if at the moment she does not care where you have a cap!)))))
pogranec[b] [/ b]
insist the cube that he would joyfully meet you
Yeah, I come home darker than the clouds, and this bastard is happy! Hit the boot the first time! The mood will immediately improve! xaxa
braceletsthat changed color depending on the mood
And what, a useful thing, the wife will look at my bracelet, and soon to the store! xaxa
Author
He filled a moron's face, his mood is excellent, he came home, the cube joyfully meets, sparkles with all colors! They got me ...
- insist the cube so that he would happily meet you and all enemies will be defeated laugh1
I remember the year so in the late 80s appeared on sale braceletsthat changed color depending on the mood.
pogranec
Memorable dates are written in the code
I understand that, in principle, you can even organize voice alerts, send SMS to all the phone numbers of my phone, send them to all accounts and social networks. Is the calendar organized in this particular homemade product? But actually, I'm more interested in determining the connection between my specific mood and the diode emission algorithm laid down by the author! scratch
P.S.
The new firmware is planned glow changes Cuba depending on the event in the life of the author.
Actually, I understood the meaning of the phrase like this: I filled the moron’s face, the mood is excellent, I came home, the cube joyfully meets, sparkles with all the colors! They got me ... xaxa
Author
But I would like to know more about this!
Memorable dates are written in the code, and depending on the settings, for example, it starts blinking, or changes color.
changes in the glow of the cube depending on the events in the author’s life.
But I would like to know more about this! yahoo aggressive dance2 drinks

We advise you to read:

Hand it for the smartphone ...