HEART ARDUINO CODE
/*
* Project name:
HEART BEAT sensor
* Copyright
(c) Researchdesignlab.com
* Description:
* Test configuration:
MCU: ATMEGA328
Dev.Board: Arduino uno
Oscillator: 16 MHz
Software: Arduino
*/
#include <LiquidCrystal.h>
LiquidCrystal lcd(6, 7, 2, 3, 4, 5); // initialize the library with the numbers of the interface pins
void setup(){
lcd.begin(16, 2); // set up the LCD's number of columns and rows:
Serial.begin(9600); // initialize the serial communications:
}
void loop()
{
if (Serial.available()) // when characters arrive over the serial port...
{
delay(100); // wait a bit for the entire message to arrive
lcd.clear();
while (Serial.available() > 0) // read all the available characters
{
lcd.write(Serial.read()); // display each character to the LCD
}
}
}