Skip to content

Environment Setup

Download Software

Readers can download the Mixly development environment from the Mixly website https://mixly.cn

If you are using a Windows system, we recommend downloading the version that already has the plugins installed --> Click to download Mixly

After downloading, just extract it and it can be used directly without reading the tutorial below.

If you are not using the Windows version, you can follow the tutorial below to download version 3.0 from the official website.

Click the link in the red box in the image below to enter the Baidu Cloud Drive main interface.

Img

Img

Mixly For Windows:

Img

Mixly For Mac(select according to your system):

Img

Install Software

1.Windows version installation:

It is recommended to download the latest version. This case uses the mixly3.0-win32-x64-rc4 full version as an example. After downloading, rename it to mixly3.0, then right-click to extract it to a local disk.

Special reminder:
(1)It is recommended to extract it to the root directory of the hard drive. The path must not contain Chinese characters or special characters (such as: . _ ( ) etc.).
(2)It is recommended to use an installation path such as D:mixly3.0

Because Mixly is a green, installation-free software, the "Mixly3.0-win32-x64-rc4 full version" can be used directly after extraction. If you downloaded the "one-click update.7z" compressed package, after extracting the package, you need to left-click and double-click to open "one-click update.bat" and update Mixly according to the prompts.

The contents of the complete Mixly folder are shown in the image below:

Img

Start the software:

Here, double-click "Mixly.exe" to open the Mixly software. As shown in the image below:

Img

After opening the Mixly software, find and click " Arduino ESP32 " to enter the Mixly programming interface. The software interface is shown in the image below:

Img

2.Mac version installation:

There is a file "MAC install Mixly3.0.txt" with instructions here.

Img

Page Introduction:

Img

Img

Overall, the Mixly software interface is divided into 4 parts.

1.The left side of the interface is the module area, which contains all the program modules that can be used in Mixly. According to different functions, they are roughly divided into the following categories: "Input/Output", "Control", "Math", "Logic", "Text", "Arrays", "Variables", "Functions", "Serial", "Sensors", "Actuators", "Display", "Communication", "Storage", "Network". Each type of module is represented by a block of a different color, and the modules in each category will be introduced separately in Appendix A.

2.To the right of the module area is the program construction area. The modules in the module area can be dragged and placed into the program construction area with the mouse. The dragged modules will be combined here into a program block with a certain logical relationship. This area is somewhat similar to the place where code is written in a code program editing software. In the lower right corner of this area there is a trash can. When we delete a module, we need to drag the module into the trash can. Above the trash can there are three circular buttons, which can realize zooming in, zooming out, and centering of the program construction area.

3.Above the module area and the program construction area is the basic function area, similar to the menu area of general software. It not only contains the buttons that general software has, such as "New", "Open", "Save", "Save As", "Export Library", and "Manage Library", but also contains the buttons needed in hardware programming software, such as "Compile", "Upload", "Board Selection", "Serial Port", and "Serial".

4.At the very bottom of the interface is the prompt area, where corresponding prompt information is displayed during the process of compiling and uploading the software. We can use the prompt information to solve some problems that occur during compilation and uploading.

Finally, two more points need to be added:

The first point is that Mixly supports multiple languages. We can find and click Img through the following interface to enter the personalization settings page, find the Simplified Chinese drop-down menu under Language, and select different language versions. At this time the drop-down menu displays Simplified Chinese, as shown in the image below:

Img

Img

The second point is that at the top right of the interface there is a Img button. Clicking this button enters the pure code form, as shown in the image below:

Img

As a development environment that integrates graphical programming and code programming, Mixly would not be good enough if it could only display code or display graphical program blocks separately. In Mixly, the code and graphical program blocks can be presented on the screen at the same time. This function can be realized through a button at the top right of the interface. After clicking this Img button, it is shown in the image below:

Img

At this time, the corresponding code will be displayed on the right side of the program construction area. This code corresponds to the program block composed of the modules in the program construction area and will change as the modules change, but the code in this area is not editable. At the same time, the left-pointing arrow button on the far right of the interface changes into a right-pointing arrow.

Note: To learn more about Mixly-related knowledge, please click the link:https://mixly.readthedocs.io/zh-cn/latest/ 。

ESP32 Main Board Driver Installation:

For the ESP32 main board driver installation method, please refer to the earlier "Arduino C Tutorial Windows System" section, so it will not be repeated here. If the driver has already been installed, you can skip this step.

Add Library Files

If you downloaded Mixly from the official Mixly website, you need to install the library files.
Special reminder: The library files are provided in the Data Download section above. Please download and install the library files.
After the Mixly software is downloaded and installed, click Arduino ESP32 to enter the code editor. First click " Settings " in the upper right corner, then click " Manage Library " to enter the interface for adding library files. As shown in the image below:

Img

Img

First click " Import Library ", then click Img to enter the location where the library files are stored, find the index.xml library file and select it, then click " OK ". After that, you can see the library file being imported, and after a while the words "Import successful" will appear, indicating that the library file was imported successfully. As shown in the image below:

Img

Img

Img

Click " Manage Library " to see the successfully added library files. As shown in the image below:

Img

Close the window interface for adding library files, and you can see the added library files on the left side of the code editor. As shown in the image below:

Img

Write Code and Upload to the ESP32 Main Board: (The steps for uploading the project code later are the same, i.e., the same as below。)

Make sure the ESP32 main board is successfully connected to the computer, then double-click the " Mixly.exe " icon to open the Mixly software.

Method ①: Drag code blocks directly to the program construction area to write code, using pin IO15, as shown in the image below:

Img

After writing, save it to the computer, and click " File " --> " Save As ", as shown in the image below:

Img

Select the ESP32 main board model " ESP32 Dev Moduel " and the serial port (COM6) (Tip: On different computers, the serial port is different), (Note:Connect the ESP32 board to the computer via a USB cable before you can see the corresponding port.), as shown in the image below:

Img

Img

Click Img to upload the code to the ESP32 main board, as shown in the image below:

Img

Method ②: Open the already-written code from the computer

Extract the compressed package of the code files we provide, and save the extracted code folder to a convenient location.

" File " --> " Open ", then select the path where the code is saved, select the code file and open it. As shown in the image below:

Img

Img

After the code file is opened, you need to manually select the ESP32 main board model " ESP32 Dev Moduel " and the serial port (COM6) (Tip: On different computers, the serial port is different), (Note:Connect the ESP32 board to the computer via a USB cable before you can see the corresponding port.), as shown in the image below:

Img

Img

Click Img to upload the code to the ESP32 main board, as shown in the image below:

Img