BEERBRAZZERS. Control the light. Vixen Lights 3. Quick Start (1/4)

  • Tutorial
Good evening ladies and gentlemen! I wish you all good health and good mood! Now I will begin a cycle of a dozen articles on the development of the brewery "BEERBRAZZERS". Take this cycle seriously - not recommended. It's all about fun and, as they say, purely for fun. The first article will be devoted to the management of light to music. Indeed, where in brewing without it? Nowhere. And if so - let's get started.

BEERBRAZZERS

Actually, what are we talking about? Many of you probably know that in the states everyone is fond of decorating their lands for Christmas with various garlands, lamps, diode cords and other lighting products. There it is, at times, the character of a special Olympiad - a sort of measure, who has a garland longer ... A special trick, of course, is a variety of lighting effects: synchronous on / off, smooth increase / decrease in brightness, all running lights and so on. But the special chic is the synchronization of its light show to the music.

Sometimes more than one thousand dollars come into such embellishments, and since demand creates supply, various control boards, specialized software and so on bloom in the market. There is very little information on this kitchen in Russian, and since my brewery is no worse than the ranch of some rednecks there before Christmas, I had to figure it out. Thousands of dollars to allocate for this is not permissible. But a thousand rubles - the most it! I offer my research to everyone. To whom it is interesting - let's go to me under the cut ...

If someone does not understand what it is about, then you can look at such a vidos, and everything will become clear.



Part One, warm up


So there is such a program, called Vixen Lights 3. I was somewhat surprised that Vixen is like a “fox” and a deer is clearly guessed on the logo. Although, who knows how the foxes actually look like there in the states ... In general, the supra-brain could translate the name “Fox of Light” - which, by the way, sounds very good. In general, vixen can also be translated as "shrew" - but it is better to let it be a fox.

Download the latest version of Foxes from the official site. The program is free. Rejoice. True, it works only with Windows. Let's get sad.

Choose a launcher in accordance with the width of your OSes. The restriction applies to the 32-bit version - you cannot create more than 2000 (!!!) channels. But believe me, 2000 channels is very, very dofiga. I doubt that someone will need so much. Although ... downloaded? Run it!

Immediately there will be a welcome window.

BEERBRAZZERS

Click Next> I Agree> Next> Next> Install

After installation, uncheck Show readme and click Finish. During the installation, there will be a small pause for a minute, this is so necessary, nothing is hanging, do not be nervous.

After the program loads, this window will pop up:

BEERBRAZZERS

In the Recent Sequences field, you will have nothing. And now more closely. We cannot create sequences immediately, because we first need to make adjustments.

Click the Setup Display, the settings window will open:

BEERBRAZZERS

The first thing we need to do is add items. The element is your light source. LED, incandescent, neon ... anything in general. We will add six sources. Three of them will be normal (on / off / blink), and three with adjustable brightness. This division is conditional, just for example. You can make everything adjustable, if your controller has enough pins with PWM, at this stage it doesn't matter - the settings are the same in both cases.

At the top left, click on the drop-down list “Add” and select Single Item. Then we press on the green plus sign next. Immediately pops up a window in which you must specify the name of the element. We have this Lamp 1. Ok. Similarly, we add 5 more sources. You can call it whatever you like, the main thing is to understand what is where, if you have different sources, call it like it is Led1, Led2, Lamp1, Lamp2 and so on.

When sources are added - you need to add a controller.

BEERBRAZZERS

. In the Controllers window on the right, in the drop-down list “Add”, select Generic Serial and click +, then specify the name of our controller - we have UNO, because we will process the data using Arduino Uno. Why? Probably because they now have more habr users than habr users. You can use what you prefer, as long as it is able to read data from the com port. Well, instead of UNO, you can write anything at all, even “Bormatozavr” - as long as you are satisfied! Immediately after specifying the name, a window will pop up in which you need to specify how many channels will be involved on the controller - set six by the number of light sources.

Our window now looks like this:

BEERBRAZZERS

On the left we have 6 light sources, on the right there are 6 control channels. But they are not connected (gray). To link, you need to select all sources and all channels via ctrl or shift, and then click on the Patch Elements button in the bottom center of the window. A notification pops up saying that everything is patched, everything is nishtyak, well done, after which all the elements and channels will turn green. Okay. Let's go further.

BEERBRAZZERS

At the bottom left there is a Configure list. We select there Color Handing and click the gear with the arrow on the right. Choose the last option, and leave Color Order RGB. Confirm windows pop up - we click OK everywhere. This is in reserve, so that later you can play with RGB LEDs.

Now you need to set the settings for the serial port. To do this, you need to open the port, for example, simply by connecting to an Arduino computer (if of course you have an Arduino IDE installed and, if necessary, a driver to a USB-UART converter in the case of some Chinese cards) If the port is not open, then the settings will not be possible. So, we connect the Arduino, then click on the right on the name of our controller (UNO) and at the bottom click on the gear. A com-port settings window will pop up.

BEERBRAZZERS

Put a tick Send a text header, and enter two characters there, not numbers, but something usually not used, for example, "+>" without quotes, of course. We need it when we write a sketch.

Drive in +>, now press the Setup / Change Serial Port button, the following window will open:

BEERBRAZZERS

In the Port Name field, your port (COM7) is determined, it can get up automatically, and it happens that you need to select it from the list. Also, if you have several ports, select the one that corresponds to the connected Arduino board. After disconnecting the board and then reconnecting it can change - every time you start work, check this point - it can pretty much damage your nerves.
In the Baud Rate field, select the baud rate, the more light sources, the more speed you need to choose. I have always had 115200, 9600 is enough for this example. But we will supply 57600. It is important to set exactly the same bitrate when initializing the port on the arduino, otherwise nothing will work. Take care of this moment.

We press OK everywhere. We press OK again on the right at the very bottom. Is done. We set up Vixen Lights to work with six light sources. This concludes the first part of the first article. If on the Arduino you have a blinking RX LED - it means you did everything correctly. In the second part we will assemble a wrap for Arduino so that in the third part you can see the result of your torments.

PS To avoid rakes.
Since the software is free, it sometimes shows character. For everything to be okay, keep to the following algorithm of actions:

  1. Vixen is disabled.
  2. We connect to the computer Arduino, give it time to recover, blink, cough.
  3. We start Vixen, after the start window appears, the RX LED on the Arduino should start blinking quickly.
  4. If it does not blink, then the port has changed (plugged into another USB connector, for example), then
  5. Click the Setup Display
  6. Click on the name of the controller in the upper right> click on the gear in the lower right> click on Setup / Change Serial Port
  7. Check the port number> click OK> OK> and OK again at the bottom right.
  8. Close Vixen, open Vixen.

Only registered users can participate in the survey. Sign in , please.

Let's arrange a draw for the official red glass for beer from the World Cup after the publication of the next part of the article?

  • 20% will participate 4
  • 30% I will not participate 6
  • 45% Come after the publication of all parts of the article, otherwise you will write two parts and you will be lost again for 5 years! 9
  • 20% And what will you need to do to get such a glass? four

Also popular now: