1 Star 1 Fork 1

DFRobot / DFRobot_BloodOxygen_S

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

DFRobot_BloodOxygen_S

DFRobot MAX30102 心率血氧传感器模块搭载了美信(maxim)的MAX30102心率血氧芯片和一颗集成心率血氧算法的微控制器,可以直接输出心率血氧数值。MAX30102采用PPG光电容积脉搏波描记法(PhotoPlethysmoGraphy)测量数据,微控制器对这些数据进行处理运算过后得到心率血氧数值,再通过I2C或UART接口输出,大大降低了传感器的使用难度和对主控的资源占用。同时该传感器还配备有对应的上位机,可通过电脑直接读取数据。

正反面svg效果图

产品链接(https://www.dfrobot.com.cn/goods-3392.html

SKU:SEN0344

目录

概述

这个库提供了一个获取此时用户心率和血氧饱和度的例程

库安装

使用此库前,请首先下载库文件,将其粘贴到\Arduino\libraries目录中,然后打开examples文件夹并在该文件夹中运行演示。

Methods

   /**
    * @struct sHeartbeatSPO2
    * @brief 存储心率和血氧饱和度的结构体
    */
   typedef struct
   {
     int SPO2;
     int Heartbeat;
   } sHeartbeatSPO2; 
   /**
    * @enum ebautrate
    * @brief 波特率枚举
    */
   typedef enum
   {
     BAUT_RATE_1200 = 0,
     BAUT_RATE_2400 = 1,
     BAUT_RATE_9600 = 3,
     BAUT_RATE_19200 = 5,
     BAUT_RATE_38400 = 6,
     BAUT_RATE_57600 = 7,
     BAUT_RATE_115200 = 8
   } ebautrate; 
   DFRobot_BloodOxygen_S(void){};
   ~DFRobot_BloodOxygen_S(void){}; 
   /**
    * @fn getHeartbeatSPO2
    * @brief 获取心率和血氧饱和度并存入到结构体sHeartbeatSPO2中
    */
   void getHeartbeatSPO2(void); 
   /**
    * @fn getTemperature_C
    * @brief 获取传感器板子的温度
    * @return 当前板载温度值(单位:摄氏度)
    */
   float getTemperature_C(void); 
   /**
    * @fn setBautrate
    * @brief 设置传感器的串口波特率
    * @param bautrate 波特率
    * @n  BAUT_RATE_1200 
    * @n  BAUT_RATE_2400 
    * @n  BAUT_RATE_9600 
    * @n  BAUT_RATE_19200 
    * @n  BAUT_RATE_38400 
    * @n  BAUT_RATE_57600 
    * @n  BAUT_RATE_115200 
    */
   void setBautrate(ebautrate bautrate); 
   /**
    * @fn getBautrate
    * @brief 获取串口波特率
    * @return 串口波特率
    */
   uint32_t getBautrate(void); 
   /**
    * @fn sensorStartCollect
    * @brief 传感器开始采集数据
    */
   void sensorStartCollect(void); 
   /**
    * @fn sensorEndCollect
    * @brief 传感器结束采集数据
    */
   void sensorEndCollect(void);

兼容性

MCU Work Well Work Wrong Untested Remarks
Arduino Uno
Leonardo
Meag2560
M0
ESP32
ESP8266

历史

  • 2019/12/13 - 1.0.0 版本

Credits

Written by Pengkaixing(kaixing.peng@dfrobot.com), 2021. (Welcome to our website)

MIT License Copyright (c) 2020 DFRobot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Python 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/dfrobot/DFRobot_BloodOxygen_S.git
git@gitee.com:dfrobot/DFRobot_BloodOxygen_S.git
dfrobot
DFRobot_BloodOxygen_S
DFRobot_BloodOxygen_S
master

搜索帮助