64
edits
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
Technique<br> | Technique<br> | ||
1. pulse sensor + arduino UNO board | 1. pulse sensor + arduino UNO board | ||
[[File:pulsesensor.png|left|500px|]] | [[File:pulsesensor.png|left|500px|]]<br> | ||
———arduino code———————————————————————————————————————————— | ———arduino code————————————————————————————————————————————<br> | ||
int PulseSensorPurplePin = 0; // Pulse Sensor PURPLE WIRE connected to ANALOG PIN 0 | int PulseSensorPurplePin = 0; // Pulse Sensor PURPLE WIRE connected to ANALOG PIN 0<br> | ||
void setup( ) { | void setup( ) {<br> | ||
Serial.begin(9600); // Set's up Serial Communication at certain speed. | Serial.begin(9600); // Set's up Serial Communication at certain speed.<br> | ||
} | }<br> | ||
void loop( ) { | void loop( ) {<br> | ||
Serial.println(map(analogRead(PulseSensorPurplePin),0,600,0,360)); | Serial.println(map(analogRead(PulseSensorPurplePin),0,600,0,360));<br> | ||
delay(10); | delay(10);<br> | ||
} | }<br> | ||
———arduino code———————————————————————————————————————————— | ———arduino code————————————————————————————————————————————<br> | ||
source: | source:<br> | ||
https://pulsesensor.com/ | https://pulsesensor.com/<br> | ||
https://github.com/WorldFamousElectronics/ | https://github.com/WorldFamousElectronics/<br> | ||
<br clear="all" /> | <br clear="all" /> |
edits