Video:-
![](http://www.weebly.com/weebly/images/file_icons/file.png)
bedside1418.m | |
File Size: | 0 kb |
File Type: | m |
![](http://www.weebly.com/weebly/images/file_icons/gz.png)
bodside.zip | |
File Size: | 408 kb |
File Type: | zip |
![](http://www.weebly.com/weebly/images/file_icons/pdf.png)
bedside..pdf | |
File Size: | 40 kb |
File Type: |
Block diagram:-
#include <LiquidCrystal.h>
LiquidCrystal lcd(10, 9, 8, 7, 6, 5);
int buttonState = LOW;
char A;
int flag=0;
void setup()
{
pinMode(4, OUTPUT);
pinMode(13, INPUT);
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print(" A.P.M. ");
lcd.setCursor(0, 1);
lcd.print(" Device ");
Serial.begin(9600);
Serial.println(" Advance patient monitoring devices");
delay(3000);
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000);
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
void loop()
{
if(flag==1)
{
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000);
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
delay(1000);
}
buttonState = digitalRead(13);
if(buttonState == LOW)
{
flag=0;
} // wait for a second
if (Serial.available() > 0)
{
while(Serial.available())
{
A= Serial.read();
if(A=='X')
{
flag=1;
A=' ';
}
if(A=='y')
{
lcd.print(" ");
lcd.setCursor(0, 1);
A=' ';
}
if(A=='w')
{ lcd.print(" ");
lcd.setCursor(0, 0);
A=' ';
}
lcd.write(A);
}
}
}
LiquidCrystal lcd(10, 9, 8, 7, 6, 5);
int buttonState = LOW;
char A;
int flag=0;
void setup()
{
pinMode(4, OUTPUT);
pinMode(13, INPUT);
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print(" A.P.M. ");
lcd.setCursor(0, 1);
lcd.print(" Device ");
Serial.begin(9600);
Serial.println(" Advance patient monitoring devices");
delay(3000);
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000);
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
void loop()
{
if(flag==1)
{
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000);
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
delay(1000);
}
buttonState = digitalRead(13);
if(buttonState == LOW)
{
flag=0;
} // wait for a second
if (Serial.available() > 0)
{
while(Serial.available())
{
A= Serial.read();
if(A=='X')
{
flag=1;
A=' ';
}
if(A=='y')
{
lcd.print(" ");
lcd.setCursor(0, 1);
A=' ';
}
if(A=='w')
{ lcd.print(" ");
lcd.setCursor(0, 0);
A=' ';
}
lcd.write(A);
}
}
}
Circuit diagram:-