nikoniko
Published

Medical Ventilator STONE Touch Screen STM32-Part 1

Medical Ventilator STONE Touch Screen STM32-Part 1

IntermediateFull instructions provided3 hours685
Medical Ventilator STONE Touch Screen STM32-Part 1

Things used in this project

Hardware components

STONE HMI Display
×1
STONE TOOL Box
×1
MapleTree Mini - STM32duino STM32F103RB Compatible with Leaf Maple
MapleTree Mini - STM32duino STM32F103RB Compatible with Leaf Maple
×1
Loudspeaker, 2W
Loudspeaker, 2W
×1

Story

Read more

Code

Medical ventilator +STONE touch screen +STM32 project !!!

C/C++
The buttons and serial ports are used here, so the change code is as follows
#include "led.h"
#include "delay.h"
#include "sys.h"
#include "key.h"
#include "usart.h"
#include "stdbool.h"
#include "stdlib.h"
#define CMD_LEN     9//21
//uint8_t wave_cmd[CMD_LEN] = {0x00, 0x04, 0x00, 0x08, 0x00, 0x0C, 0x01, 0x00, 0x01, 0x04, 0x01, 0x08, 0x01, 0x0C, 0x02, 0x00};
//uint8_t wave_cmd[CMD_LEN] = {0x00, 0x04};
uint8_t wave_cmd[CMD_LEN] = {0xA5, 0x5A, 0x06, 0x84, 0x01, 0x00, 0x05, 0x01, 0x05};
uint8_t data_buf_bat[]     = {0xA5, 0x5A, 0x05, 0x82, 0x00, 0x18, 0xAA, 0x66};
uint8_t clr_cmd[6] = {0xA5, 0x5A, 0x03, 0x80, 0xEB, 0x56};
int main(void)
{
u8 t=0, coutn= 0, wave_flag = 0, i, j;

Credits

nikoniko
5 projects • 2 followers

Comments