Pingtouge RISC-V Development Board--STEP2--Intelligent Voltage and Current Acquisition Controller Design Preparation Part 1
[Copy link]
This post was last edited by ylyfxzsx on 2022-3-23 21:03
Since my main work is in testing instruments and I have a lot of dealings with factories, I plan to use the Pingtou Ge development board to design a device that must be used in the production process of digital factories: a load aging rack. In a conventional factory, it may look like the following figure. Especially in small appliances and digital product factories that use lithium batteries, pre-charging and aging tests of batteries before products leave the factory may have always been a headache. For example, in the factory where I used to produce small digital home appliances, the method was to weld a rack as shown in Figure 1, connect a plug board, and then plug N 5V small power supplies into the plug board, connect a PCB board with a USB female head, and the products off the line were directly plugged into the new machine shipped from the factory through the USB cable for charging and aging.
In actual use, many disadvantages occur, such as too many power supplies plugged into the socket board, poor power quality or short circuit caused by product reasons, which often cause the machine and power supply to burn out. During the aging process of a batch of new machines, data statistics are manually collected and cannot be intelligentized. The charging current at each load end is uncontrollable, and short-circuit protection relies only on the fuse on the PCB.
To sum up, there is a device that can control the current at each load end, display the voltage and current at the load end in real time, monitor in real time, record data, display the working status of each load, count the yield of each batch of products, and have short-circuit protection alarm, aging time programming and other functions. This machine will greatly improve and help the factory's production.
Then, I will conceive a simple model of the product, integrate the architecture and resources of RVB2601, and conduct targeted learning and understanding. Since I plan to use 2601 as the host, mainly through WIFI to exchange data with the extension, real-time monitoring, control and display at the same time, the focus is on the network and GUI, and the audio and MIC parts on the board can be skipped. Of course, if conditions permit, voice can be used to remind functions, such as when the extension connected has a problem. This function is the icing on the cake, and it can be improved later when there is time.
Since it is a completely unfamiliar board, there are not many aspects that can be learned. I looked at the official simple DEMO routines and adopted the LVGL open source lightweight display framework. Here I briefly list some pictures and information about LVGL that I learned on the Internet and share them with you. If you need to know more, you can learn more on the Internet. There are many Chinese learning routines on the Internet.
I took a quick look at the introduction and thought it was good, but I have never used it. Since my focus is mainly on GUI and network, this aspect is estimated to take the most time, so I will spend some time to learn YOC and LVGL_GUI before starting the next step. GUI and communication protocol will be the most time-consuming steps. The hardware is relatively simple, so I will consider designing the PCB according to the situation after designing the GUI framework and conducting simple hardware construction and testing, and finally integrating it.
Community Documentation Links
https://docs.lvgl.io/master/index.html
LVGL official English PDF manual
LVGL.pdf
(2.81 MB, downloads: 1)
AliOS Things 3.3, the IoT operating system
https://g.alicdn.com/alios-things-3.3/doc/index.html?spm=a2cti.24227744.0.0.61bfe8dc2w1XGn
https://occ.t-head.cn/docs/
-------------------------------------------------- -------------------------------------------------- --------------------------------------------------------
https://github.com/lvgl/lv_port_win_codeblocks Git code repository URL, you can access the PC simulator. The following is the installation method based on codeblocks. After installing codeblocks, follow the steps below to start using LVGL on your PC.
1. Download and install git https://git-scm.com/download/win
2. Download and install Code::Blocks http://www.codeblocks.org/downloads/binaries/#imagesoswindows48pnglogo-microsoft-windows
3. Open the PC console and enter: git clone https://github.com/lvgl/lv_sim_codeblocks_win.git
4. Continue to enter cd lv_sim_codeblocks_win in the PC console ----> git submodule update --init --recursive
5. After the resource download is complete, open Code::Blocks, then open the downloaded LVGL folder, open the project file, press F9 to compile and run, and the PC simulator LVGL running effect.
Next, I need to spend some time learning LVGL. I will not discuss the learning process here. Let’s work hard together with my friends who are participating in the evaluation!
|