medical ventilator +STONE touch screen STM32 Project functions

Estimated read time 8 min read

  notes: 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.

  Brief

  With the increasing shortage of medical ventilators, the medical ventilator made in China has become the “hard currency” in the international market.

  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.

  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.

  ventilator-diagram

  I use STM32 to simulate the respiratory and stm32f103rct6 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.

  medical ventilator +STONE touch screen STM32 Project functions

  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.

  That is, the following functions

  The serial port screen realizes the function of language selection;
Realizes the function of sending touch command and switching pictures;
Single-chip microcomputer realizes the function of data command upload;
Realizes the real-time waveform display function.

  After the function is determined, select the module model

  STVC101WT-01 is adopted for screen end;
stm32f103rct6 is adopted for single-chip microcomputers;
 voice broadcast module.

  Hardware introduction and principle

  Loudspeaker

  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.

   

  ventilator-diagram

  STONE touch screen STVC101WT-01

  10.1 inch 1024×600 industrial grade TFT panel and 4-wire resistance touch screen;
brightness is 300cd / m2, LED backlight;
RGB color is 65K;
visual area is 222.7mm * 125.3mm;
visual angle is 70 / 70 / 50 / 60;
working life is 20000 hours. 32-bit cortex-m4 200Hz CPU;
CPLD epm240 TFT-LCD controller;
128MB (or 1GB) flash memory;
USB port (U disk) download;
toolbox software for GUI design, simple and powerful hex instructions.

  Basic functions

  Touch screen control / display image / display text / display curve / read and write data / play video and audio. It is suitable for various industries.
UART interface is RS232 / RS485 / TTL;
voltage is 6v-35v;
power consumption is 3.0w;
working temperature is – 20 ℃ / + 70 ℃;
air humidity is 60 ℃ 90%.

  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.

  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.

  STM32F103RCT6 EVB

  Stm32f103rct6 development board provides many interfaces for customers to use. Relevant parameters:

Arm 32-bit cortex Gamma -M3 CPU, up to 72mhz;
Up to 64KB SRAM space;
64pin,256KB FLASH;
Onboard USB-TTL serial port, Download debugging communication three in one;
Onboard EEPROM, infrared, JTAG.

  Evaluation board block and interface distribution

  A detailed description of the evaluation board block

  The evaluation board blocks are distributed as follows:

  ventilator-diagram

  ventilator-diagram

  The drawings of the key and serial port are as follows:

  ventilator-diagram

   

  STM32F103RCT6

  flexible GPIO design 32 bit MCU
 maximum main frequency 72mhz
connectivity: can, I2C, IrDA, Lin, SPI, UART / USART, USB
FLASH:256KB
400ksps, 12bit, 8-Channel aux ADC
Voltage power supply (VCC / VDD): 2 V ~ 3.6 V

  STONE TOOLbox Development steps

  There are roughly three steps:

Use STONE Toolbox(GUI Design software) upper computer software design;
realize the communication between MCU and serial screen;
audio file, picture file import.

  Installation of STONE TOOLBox

  The software interface is as follows:

  ventilator-diagram

  Installation of Keil

  Link:https://www.keil.com/
Unzip after downloading
Open folder after unzipping
Double click the c51v900.exe file, and click next in the pop-up dialog box. All the way to next is OK.

  ventilator-diagram

  STONE Tool 2019 interface design

  Use the installed tool 2019, click the new project in the upper left corner, and then click OK.

  ventilator-diagram

  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:

  ventilator-diagram

  Production of power on picture

  ventilator-diagram

  First, import the required pictures into the project, and then add the serial number of the corresponding pictures in the settings

  ventilator-diagram

  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.

  ventilator-diagram

  Making language selection interface

  ventilator-diagram

  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:

  ventilator-diagram

  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:

  

  Set the minimum and maximum values of variable icons, and configure the corresponding pictures to realize the menu selection function.

  Adding audio files

  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.

  ventilator-diagram

  First, import the audio file.

  ventilator-diagram

  Then add a button operation control in the red box, and add picture jump and audio file 0.

  Making of curve

  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

  ventilator-diagram

  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.

  Therefore, serial port instructions can be used as follows

  0xA5, 0x5A, 0x06, 0x84, 0x01, 0x00, 0x05, 0x01, 0x05

  The erase instructions are as follows:

  0xA5, 0x5A, 0x03, 0x80, 0xEB, 0x56

  Development of stm32f103rct6

  Open Keil and import the project file, as shown below:

  ventilator-diagram

  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:

  ventilator-diagram

  The buttons and serial ports are used here, so the change code is as follows:

  Please contact us if you need a complete procedure:

  https://www.stoneitech.com/contact

  We will reply to you within 24 hours.

  Medical ventilator STONE touch screen STM32 project !!!

  ventilator-diagram ventilator-diagram ventilator-diagram

   

  Related posts:

  STONE STVC070WT-01 HMI Screen+Arduino+Musical Metronome
Raspberry Pi GUI using STONE HMI Touch Screen Display Module
Raspberry PI Pico and STONE Display Dazzling Light Control System
Bluetooth communication DEMO: NRF51822 UART communicate with STONE HMI display
The Structure and Display Principle of High Brightness LCD
STONE TFT LCD + ESP32 +Medical Ventilator
Application case of TFT LCD Module in Medical Industry
Smart TFT LCD Display for Machienry
Record Medical Surgery Notes with STONE Serial LCD Screen
Ultrasonic module test with STONE LCD module

medical ventilator +STONE touch screen STM32 Project functions