0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Aruduino UNOで脈拍センサー,AE-NJL5501Rので脈拍を見る

Last updated at Posted at 2021-03-14

1.センサーの接続
2.下記のソースコードを書き込む
3.コンパイル実行で表示されたら終了
4.Arduinoプロッターで開く
5.おわり

秋月のセンサー
NJL5501R搭載 パルスオキシメータ用・反射型センサ DIP化モジュールキット
[AE-NJL5501R]
通販コード K-09433
発売日 2015/07/01
メーカーカテゴリ 株式会社秋月電子通商

delay(1); -> delay(10);へ変更した。

秋月の脈拍センサー,AE-NJL5501Rで脈拍を見る NJL5501R
https://qiita.com/caa45040/items/f3a5674e825c9ac542fb


/*
  AnalogReadSerial

  Reads an analog input on pin 0, prints the result to the Serial Monitor.
  Graphical representation is available using Serial Plotter (Tools > Serial Plotter menu).
  Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.

  This example code is in the public domain.

  http://www.arduino.cc/en/Tutorial/AnalogReadSerial
*/

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
}

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  // print out the value you read:
  Serial.println(sensorValue);
  //delay(1);        // delay in between reads for stability
  delay(10);

}


pm_an_dd_5.jpg

pm_an_dd_6.jpg

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?