You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
# conduction1_dynamic_electrocardiograph
## 使用说明
``` https://iflytop1.feishu.cn/wiki/Fp0fwciUEibtm4kaUeXcraOCneg
```
``` 开发板IO资源说明:
#define BSP_LED_0 13
#define BSP_LED_1 14
#define BSP_LED_2 15
#define BSP_LED_3 16
#define BUTTON_1 11 // 上拉低电平有效
#define BUTTON_2 12 // 上拉低电平有效
#define BUTTON_3 24 // 上拉低电平有效
#define BUTTON_4 25 // 上拉低电平有效
sdk\components\boards\pca10100.h
清风开发板
AIN2 -> 光感
I2C #define TWI_SCL_M 28 //I2C SCL引脚
#define TWI_SDA_M 30 //I2C SDA引脚
------------------------------------
PIN4 PIN30/PIN31 PIN28/PIN29 PIN11/PIN20
```
``` 设备行为: 1. 按下按键或者电极触发后开始广播
2. 当电极没有触发,且蓝牙没有连接,且超时10s后,停止广播,进入低功耗模式
3. 设备状态
关机(休眠) 开机蓝牙未连接(广播中) 蓝牙已连接
``` ``` 难点: 1.采样间隔2ms (500HZ) 2.数据往flash中写入时间消耗,cache选择多大,数据什么时候上报。 1. ADC:单次采样,阻塞拿数值(50us) 2. 电池电量的采集ADC和电压采集ADC用的是同一个ADC
(这里先使用最简单的阻塞式ADC采集,电池ADC3次,采样ADC3次)
```
``` 屏幕驱动: https://github.com/libdriver/ssd1306 1306驱动和1312是一样的,只不过1312默认是镜像的
```
|