Portable monitor solution based on DWIN’s COF screen

–Shared From DWIN Forum User

The portable monitor solution based on COF screen uses the T5L0 chip as the control centre for the whole monitoring and display. The electrical signals are collected by sensors such as EDG and SpO2, identified, amplified and filtered by the T5L0 chip, which analyses and calculates the current parameter values, drives the LCD screen to display the parameter changes in real time and makes a comparison judgement with the reference level to monitor and alarm the changes in the body parameters. If there is a range deviation, a voice alarm prompt is automatically issued.

1.Programme diagram

sdcds

2.Program introduction

(1) Interface design

Firstly, design a background screen as required, with the background image shown below.

csdcds

And set he RTC controls, text display controls according to the background image. The interface design is shown below:

cdscs

Next, add the corresponding variable values and upload data to the corresponding controls. In this case, the curve control is configured as follows.

das
Main functions of the software program:
ECG waveform data and CO2 waveform data are plotted via Excel, showing repeated data on screen. The main code is as follows.

void ecg_chart_draw()
{
float val;
static uint8_t point1 = 0, point2 = 0;
uint16_t value = 10;
uint8_t i = 0;
uint16_t temp_value = 0;
for(i = 0;i < X_POINTS_NUM;i++) { val = (float)t5l_read_adc(5); value = (uint16_t)(val / 660.0f + 0.5f); t5l_write_chart(0, ecg_data[point1], co2_data[point2], value); write_dgusii_vp(SPO2_ADDR, (uint8_t *)&value, 1); delayms(12); point1++; IF(point1 >= 60)
{point1 = 0;}
point2++;
if(point2 >= 80)
{point2 = 0;}
}}
3.User Development Experience
“For the ASIC DWIN ‘s development, it’s actually very simple, and anyone who has played with a 51 microcontroller will basically know how to do it after reading the tutorial once. Just use the official libraries provided and then get the OS core to communicate with the screen core.”

“This performance of OS core is perfect, and the ADC acquisition speed is fast, curve drawing is smooth, although I have not tried the effect of 7 channels at the same time, the curve control should be the most CPU-intensive control. To be honest the price of a screen with a dual-core MCU cost performance is cost-effective, subsequent new projects may indeed consider using the DWIN screen, the cost can be greatly controlled.”

“It was actually hard to use DWIN DGUS at first, I couldn’t get used to using it, but after a few days of proficiency, it feels pretty good. I hope DWIN can continue to optimize it, and I look forward to a better experience with the DWIN screen! For more tutorials, you can look on the official website or forum!”


Post time: Jun-02-2022