Medical Ventilators +STONE Touch Screen+STM32 医用呼吸机+STONE触摸屏+STM32
<p>notes: <em>Here we want to make a project for the medical ventilator +STONE touch screen +STM32. In this project, we can choose the language and function, and draw the respiratory waveform by the way of random number triggering. When the key is pressed, the MCU detects the pressing signal and starts to transmit the waveform data to STVC101WT-01 TFT through the serial port The LCD screen uploads the data command, and then the screen will automatically analyze and display it on the screen by using the waveform control. The screen also has the adjustment function, ventilator display parameters, read ventilator waveforms, and the voice broadcast function. </em></p><h2>Brief</h2>
<p>With the increasing shortage of medical ventilators, the medical ventilator made in China has become the “hard currency” in the international market.<br />
Therefore, I also followed the trend and decided to use the TFT LCD touch screen on my hand as the ventilator display, which is quite suitable.<br />
This is a serial port screen. It is very convenient to develop with a STONE touch screen. The most important thing is that it is simple and easy to use. It can be done without too many complicated instructions. The advantage is that it can quickly develop projects and seize market opportunities.</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram24.webp" /></p>
<p>I use <strong>STM32</strong> to simulate the respiratory and <strong>stm32f103rct6 </strong>to develop it. This module supports serial port or other simple communication interface mode to communicate with stone touch screen and can draw the wave chart in real-time.</p>
<h2>Medical Ventilator +STONE Touch Screen STM32 Project Functions</h2>
<p>Here we want to make a project for the medical equipment, ventilator. In this project, we can choose the language and function, and draw the respiratory waveform by the way of random number triggering. When the key is pressed, the MCU detects the pressing signal and starts to transmit the waveform data to the HMI display through the serial port The LCD screen uploads the data command, and then the screen will automatically analyze and display it on the screen by using the waveform control. The screen also has the adjustment function and the voice broadcast function.</p>
<h3>That Is, The Following Functions</h3>
<ol>
<li>The serial port screen realizes the function of language selection;</li>
<li>Realizes the function of sending touch command and switching pictures;</li>
<li>Single-chip microcomputer realizes the function of data command upload;</li>
<li>Realizes the real-time waveform display function.</li>
</ol>
<h3>After The Function Is Determined, Select The Module Model</h3>
<ol>
<li>STVC101WT-01 is adopted for screen end;</li>
<li>stm32f103rct6 is adopted for single-chip microcomputers;</li>
<li> voice broadcast module.</li>
</ol>
<h2>Hardware Introduction And Principle</h2>
<h3>Loudspeaker</h3>
<p>Because the STONE serial port HMI display has an audio driver and reserved corresponding interface, the most common magnet speaker, commonly known as a loudspeaker, can be used. The loudspeaker is a kind of transducer which transforms the electrical signal into an acoustic signal. The performance of the loudspeaker has a great influence on the sound quality. Loudspeakers are the weakest component in audio equipment, and for audio effect, they are the most important component. There are many kinds of loudspeakers, and the prices vary greatly. Audio electric energy through electromagnetic, piezoelectric, or electrostatic effects, so that its paper basin or diaphragm vibration and resonance with the surrounding air (resonance) and produce sound.</p>
<p> </p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram2.webp" /></p>
<h2>STONE Touch Screen STVC101WT-01</h2>
<ul>
<li>10.1 inch 1024×600 industrial grade TFT panel and 4-wire resistance touch screen;</li>
<li>brightness is 300cd / m2, LED backlight;</li>
<li>RGB color is 65K;</li>
<li>visual area is 222.7mm * 125.3mm;</li>
<li>visual angle is 70 / 70 / 50 / 60;</li>
<li>working life is 20000 hours. 32-bit cortex-m4 200Hz CPU;</li>
<li>CPLD epm240 TFT-LCD controller;</li>
<li>128MB (or 1GB) flash memory;</li>
<li>USB port (U disk) download;</li>
<li>toolbox software for GUI design, simple and powerful hex instructions.</li>
</ul>
<h2>Basic Functions</h2>
<ul>
<li>Touch screen control / display image / display text / display curve / read and write data / play video and audio. It is suitable for various industries.</li>
<li>UART interface is RS232 / RS485 / TTL;</li>
<li>voltage is 6v-35v;</li>
<li>power consumption is 3.0w;</li>
<li>working temperature is – 20 ℃ / + 70 ℃;</li>
<li>air humidity is 60 ℃ 90%.</li>
</ul>
<p>STVC101WT-01 module communicates with MCU through a serial port, which needs to be used in this project. We only need to add the designed GUI picture through the upper computer through the menu bar options to buttons, text boxes, background pictures, and page logic, then generate the configuration file, and finally download it to the display screen to run.</p>
<p>In addition to the data manual, there are user manuals, common development tools, drivers, some simple routine demos, video tutorials, and some for testing projects.</p>
<h2>STM32F103RCT6 EVB</h2>
<p>Stm32f103rct6 development board provides many interfaces for customers to use. Relevant parameters:</p>
<ol>
<li>Arm 32-bit cortex Gamma -M3 CPU, up to 72mhz;</li>
<li>Up to 64KB SRAM space;</li>
<li>64pin,256KB FLASH;</li>
<li>Onboard USB-TTL serial port, Download debugging communication three in one;</li>
<li>Onboard EEPROM, infrared, JTAG.</li>
</ol>
<p>Evaluation board block and interface distribution<br />
A detailed description of the evaluation board block<br />
The evaluation board blocks are distributed as follows:</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram5.webp" /></p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram6.webp" /></p>
<p>The drawings of the key and serial port are as follows:</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram7.webp" /></p>
<p> </p>
<h2>STM32F103RCT6</h2>
<ul>
<li>flexible GPIO design 32 bit MCU</li>
<li> maximum main frequency 72mhz</li>
<li>connectivity: can, I2C, IrDA, Lin, SPI, UART / USART, USB</li>
<li>FLASH:256KB</li>
<li>400ksps, 12bit, 8-Channel aux ADC</li>
<li>Voltage power supply (VCC / VDD): 2 V ~ 3.6 V</li>
</ul>
<h2>STONE TOOLbox Development Steps</h2>
<p>There are roughly three steps:</p>
<ol>
<li>Use STONE Toolbox(GUI Design software) upper computer software design;</li>
<li>realize the communication between MCU and serial screen;</li>
<li>audio file, picture file import.</li>
</ol>
<h2>Installation Of STONE TOOLBox</h2>
<p>The software interface is as follows:</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram8.webp" /></p>
<h2>Installation Of Keil</h2>
<ol>
<li>Link:https://www.keil.com/</li>
<li>Unzip after downloading</li>
<li>Open folder after unzipping</li>
<li>Double click the c51v900.exe file, and click next in the pop-up dialog box. All the way to next is OK.</li>
</ol>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram9.webp" /></p>
<h2>STONE Tool 2019 Interface Design</h2>
<p>Use the installed tool 2019, click the new project in the upper left corner, and then click OK.</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram11.webp" /></p>
<p>After that, a default project will be generated, with a blue background by default. Select it and right-click, then select remove to remove the background. Then right click picture file and click Add to add your own picture background, as follows:</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram12.webp" /></p>
<p>Production of power on picture</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram13.webp" /></p>
<p>First, import the required pictures into the project, and then add the serial number of the corresponding pictures in the settings</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram14.webp" /></p>
<p>Click OK, then we need to add a video control, set the jump interface after the boot image is finished, and make the following configuration.</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram15.webp" /></p>
<p>Making language selection interface</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram16.webp" /></p>
<p>Here you need to add a pop-up menu control, and set the button effect as picture 1, and then set picture 2 as the pop-up interface. Next:</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram17.webp" /></p>
<p>Add button controls respectively, and change the key value to 1 and 2. The key value here is mainly used to display the selected language on the screen, and then continue to add a button control on interface 0:</p>
<p><a href="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram.webp"><img alt="" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram.webp" /></a></p>
<p>Set the minimum and maximum values of variable icons, and configure the corresponding pictures to realize the menu selection function.<br />
Adding audio files<br />
Here we need to make a key sound effect. First, we need to get audio data. Here we have turned on the sound effect function of the ventilator.</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram19.webp" /></p>
<p>First, import the audio file.</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram20.webp" /></p>
<p>Then add a button operation control in the red box, and add picture jump and audio file 0.</p>
<h2>Making Of Curve</h2>
<p>Because we need to display the heart rate waveform dynamically, we need to use the most important control, curve control. and we need ventilator settings</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram21.webp" /></p>
<p>First, add a curve control, which covers the background grid, and then configure the y-axis center position and curve channel according to the grid pixel width. Here I choose channel 0.</p>
<h3>Therefore, Serial Port Instructions Can Be Used As Follows</h3>
<p><strong>0xA5, 0x5A, 0x06, 0x84, 0x01, 0x00, 0x05, 0x01, 0x05</strong></p>
<p>The erase instructions are as follows:<br />
0xA5, 0x5A, 0x03, 0x80, 0xEB, 0x56<br />
Development of stm32f103rct6<br />
Open Keil and import the project file, as shown below:</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram22.webp" /></p>
<p>Here you need to configure the flash algorithm to use the download program. Click the option to find the flash download. The change algorithm is as follows:</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram23.webp" /></p>
<p>The buttons and serial ports are used here, so the change code is as follows:</p>
<p><code>#include "led.h"</code><br />
<code>#include "delay.h"</code><br />
<code>#include "sys.h"</code><br />
<code>#include "key.h"</code><br />
<code>#include "usart.h"</code><br />
<code>#include "stdbool.h"</code><br />
<code>#include "stdlib.h"</code><br />
<code>#define CMD_LEN 9//21</code><br />
<code>//uint8_t wave_cmd = {0x00, 0x04, 0x00, 0x08, 0x00, 0x0C, 0x01, 0x00, 0x01, 0x04, 0x01, 0x08, 0x01, 0x0C, 0x02, 0x00};</code><br />
<code>//uint8_t wave_cmd = {0x00, 0x04};</code><br />
<code>uint8_t wave_cmd = {0xA5, 0x5A, 0x06, 0x84, 0x01, 0x00, 0x05, 0x01, 0x05};</code><br />
<code>uint8_t data_buf_bat[] = {0xA5, 0x5A, 0x05, 0x82, 0x00, 0x18, 0xAA, 0x66};</code><br />
<code>uint8_t clr_cmd = {0xA5, 0x5A, 0x03, 0x80, 0xEB, 0x56};</code><br />
<code> int main(void)</code><br />
<code> {</code><br />
<code>u8 t=0, coutn= 0, wave_flag = 0, i, j; </code></p>
<p><strong>Please contact us if you need a complete procedure:</strong></p>
<p><a href="https://www.stoneitech.com/contact">https://www.stoneitech.com/contact</a></p>
<p>We will reply to you within 24 hours.</p>
<p>Medical ventilator STONE touch screen STM32 project !!!</p>
<p><img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram24.webp" /> <img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram28.webp" /> <img alt="ventilator-diagram" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram29.webp" /> <img alt="" src="https://www.stoneitech.com/wp-content/uploads/2021/11/mb-7-ventilator-diagram.webp" /></p>
<p>看楼主的测评考验英文功底</p>
<p>看看学习一下,看起来很有用</p>
页:
[1]