Motor remote monitoring design based on Alibaba Cloud IOT Studio and STM32

Today, let’s summarize a small system for remote monitoring of motors made with Alibaba Cloud’s IOT Studio!

       It's a long story, in September last year, I stepped into the ranks of graduate students. My tutor is in the direction of motors, but my undergraduate degree is in measurement and control. Considering my foundation, the tutor recommended to me the learning direction of the Internet of Things. He said that it would be very painful for me to learn motor control. I felt very tall when I heard it. From that moment on, my study in the next three years may even form an indissoluble bond with the Internet of Things for the rest of my life.

      At the beginning, my instructor asked me to read books about the Internet of Things, and I read a lot of them like the Internet of Everything, from Bill Gates’ future road, to the 2009 Prime Minister’s perception of China, and now everything is smart, smart home, Smart parks, smart cities, etc. It was later discovered that these understandings must be enough, and graduate students have to do practical work. The supervisor said that I had to watch the development, so that the things I talked about would be empty, and recommended the Internet of Things to me. Develop cloud platforms, Tuya, Alibaba Cloud, Baidu Cloud, etc.

       I first registered for Tuya’s Internet of Things platform account. Through understanding, many of Tuya’s things are highly professional and have poor scalability. It seems that they are not very friendly to students who study the Internet of Things. I mainly study the IoT platform - Alibaba Cloud. Its IoT platform can be said to be the best IoT platform in China. It provides SDKs and APIs for various products, and the documentation is very detailed, which is very suitable for beginners.

Haha, it’s a bit far-fetched, let’s talk about the process in detail next, if a worker wants to do a good job, he must first sharpen his tools!

Baidu search Alibaba Cloud, click the upper right corner to register now ...

       I won’t go into details about the specific registration process. Compared with most IoT platforms, Alibaba Cloud’s registration process is more troublesome and more formal. After the registration is complete, click the console in the upper right corner to enter the IoT platform. If you can’t find the entrance, you can directly search for the address in the picture below:

         Click to open a public instance, enter and click on the product under device management, create a product, select custom for the category, WIFI for networking, and default for others.

Then create the device, and then click the device under the product on the left to create the device. Then go back to the product page, click on the created product, enter the function definition, and create variables:

After completion, exit the Internet of Things platform, search for Internet of Things application development on the homepage, and enter the learning of IOT Studio:

Click on the project management on the left, enter to create a project, and bind the previous products and devices.

       Next, create an application development, select the Web application on the PC side, select the mobile application on the mobile phone side, and click to enter the development interface after creation. There are a wealth of components for us to choose from, zero-code development, and data binding.

       I won't go into details about the specific operation, each component has a detailed documentation. Next, let's show the effect after I drag and drop!

First page:

The second page:

The third page:

       That’s basically it. Finally, click Save and Publish in the upper right corner. Here you need to bind your own domain name. If not, the link generated is only valid for 24 hours, and it seems to be valid only on the same day. I don’t remember the details. Click on the application settings on the left - domain name management:

       Here we see that a domain name is needed, what is a domain name? Just like www.taobao.com , we need to go to Alibaba Cloud Wanwang to apply for a domain name of our own... After the application is completed, follow the steps in the above picture to complete the domain name resolution, filing, etc., and we will pay a fee of 120 yuan in the middle Internet of Things small package for 2019, the service is paid immediately, you need to learn from the suggestions of the Alibaba Cloud Internet of Things platform to activate it. After everything is done, add the binding to the domain name list, so that the application you published will not be affected. You only need to enter your domain name in the browser to use it. You can also use related software to package the application into an app and install it on the mobile phone. Use, recommend the software HbuilderX, free of charge, the effect on the mobile phone:

Motor remote monitoring design based on Alibaba Cloud Iot studio and stm32_哔哩哔哩_bilibili

The common system architecture for IoT development is as follows:

        In this design, my perception control layer uses the sensor dth11 to report temperature and humidity, and the motor has its own hall for speed measurement. The MCU uses STM32F103C8T6, and the transport layer uses the esp8266WIFI module. It establishes a connection with Alibaba Cloud through the MOTT protocol for data transfer. Report and issue commands (Jansson is used for data analysis), monitor the running status of the motor, and achieve functions such as parameter monitoring, remote control, and status warning.

It's a bit of a pity that:

1. The function of recording and displaying the motor running status on the first page with the table component has not been realized. This has to be realized by adjusting scripts in Alibaba Cloud's Open API , but it has not been successful ....

2. The one-to-many function through the drop-down box component or other methods is not realized.

I hope that the big guys who will meet will leave a message to give pointers. The overall realization is not difficult, don't laugh at the boss!

If you need help or source code for this design, please contact QQ : 2627075749

Remarks: remote monitoring help

Guess you like

Origin blog.csdn.net/th971212/article/details/123868892