打印
[UNO]

AD8232心率脉搏传感器的arduino程序

[复制链接]
3798|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
初学者MCU|  楼主 | 2018-5-7 22:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
沙发
dirtwillfly| | 2018-5-8 08:30 | 只看该作者
板凳
cos12a| | 2018-5-23 12:28 | 只看该作者
/******************************************************************************
Heart_Rate_Display.ino
Demo Program for AD8232 Heart Rate sensor.
Casey Kuhns @ SparkFun Electronics
6/27/2014
https://github.com/sparkfun/AD8232_Heart_Rate_Monitor

The AD8232 Heart Rate sensor is a low cost EKG/ECG sensor.  This example shows
how to create an ECG with real time display.  The display is using Processing.
This sketch is based heavily on the Graphing Tutorial provided in the Arduino
IDE. http://www.arduino.cc/en/Tutorial/Graph

Resources:
This program requires a Processing sketch to view the data in real time.

Development environment specifics:
        IDE: Arduino 1.0.5
        Hardware Platform: Arduino Pro 3.3V/8MHz
        AD8232 Heart Monitor Version: 1.0

This code is beerware. If you see me (or any other SparkFun employee) at the
local pub, and you've found our code helpful, please buy us a round!

Distributed as-is; no warranty is given.
******************************************************************************/

void setup() {
  // initialize the serial communication:
  Serial.begin(9600);
  pinMode(10, INPUT); // Setup for leads off detection LO +
  pinMode(11, INPUT); // Setup for leads off detection LO -

}

void loop() {
  
  if((digitalRead(10) == 1)||(digitalRead(11) == 1)){
    Serial.println('!');
  }
  else{
    // send the value of analog input 0:
      Serial.println(analogRead(A0));
  }
  //Wait for a bit to keep serial data from saturating
  delay(20);
}

使用特权

评论回复
评论
旧铁皮石斛 2020-3-24 12:12 回复TA
请问怎样把数据导出啊 
地板
chenguang1234| | 2020-1-1 17:44 | 只看该作者
挺好的

使用特权

评论回复
5
旧铁皮石斛| | 2020-3-24 12:11 | 只看该作者

你好,请问你们会不会把数据导出或者成表格

使用特权

评论回复
6
lioncity| | 2020-9-5 20:34 | 只看该作者
谢谢分享

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

13

帖子

2

粉丝