Mwc.microprject.c
Mwc.microprject.c
MUMBAI
A Project Report On
“Arduino and IOT based patient health monitoring system project,,
DIPLOMA
In
ELECTRONICS AND TELECOMMUNICATION ENGINEERING
Submitted by
1
SANT GAJANAN MAHARAJ RURAL POLYTECHINE ,MAHAGAON
A/P–MAHAGAON,SITE–CHINCHEWADI,TAL-GADHINGLAJ,DIST-KOLHAPUR
Certificate
This is to that the following student off our semester of Diploma in Electronics and
Telecommunication Engineering of institute Sant Gajanan Maharaj Rural
Polytechnic,Mahagaon-416503(CODE-0965) has complete Micro project on ‘’Arduino and
IOT based patient health monitoring system project,, satisfaction in subject MOBILE
WIRELESS COMMUNICATION Subject CODE(22533) for academic year 2022 to 2023 as pre
scribed in the curriculem
2
INDEX
Sr.
No Parameter
1 Introduction
3 Literature review
4 Proposed Methodology
5 Resources required
6 Features
7 Pin diagram
8 Pin description
9 Connection diagram
10 Code
11 Output
12 Conclusion
3
• Arduino and IOT based patient health monitoring system project
1. BRIEF INTRODUCTION
Analog to digital converters find huge applications as an intermediate device to convert the
signals from analog to digital form. These digital signals are used for further processing by the
digital processors. Various sensors like temperature, pressure, force, etc. convert the physical
characteristics into electrical signals that are analog in nature.
Analog to digital converters find huge applications as an intermediate device to convert the
signals from analog to digital form. These digital signals are used for further processing by the
digital processors. Various sensors like temperature, pressure, force, etc. convert the physical
characteristics into electrical signals that are analog in nature.
3.LITERATURE REVIEW
ADC converts them into particular levels or states, which can be measured in numbers as a physical
quantity. Instead of continuous conversion, ADC converts data periodically, which is usually known as
sampling rate. Telephone modem is one of the examples of ADC, which is used for internet, it converts
analog data into digital data, so that computer can understand, because computer can only
understand Digital data. The major advantage, of using ADC is that, we noise can be efficiently
eliminated from the original signal and digital signal can travel more efficiently than analog one. That’s
the reason that digital audio is very clear, while listening.
4
In present time there are lots of microcontrollers in market which has inbuilt ADC with one or more
channels. And by using their ADC register we can interface. When we select 8051 microcontroller
family for making any project, in which we need of an ADC conversion, then we use external ADC.
Some external ADC chips are 0803,0804,0808,0809 and there are many more. Today we are going to
interface 8-channel ADC with AT89s52 Microcontroller namely ADC0808/0809.
4. PROPOSED METHODOLOGY
The ADC0804 is a converter from analog to digital 8 bits. This ADC0804 has
only one analog input channel with digital output of eight bits that can be 256
values of different measures. The step size is adjusted by setting the reference
voltage in pin9 the reference input voltage can be adjusted to allow encoding
any smaller range for the entire 8-bit resolution analog voltage. When the
voltage reference pin is not connected to the ADC0804, the reference voltage
defaults to the operating voltage, ie, Vcc. The step size is 19.53mV 5V (5V /
255), ie, for every increase of 19.53mV at the analog input, the output varies
by 1 unit. To establish a determined voltage level as the reference value, this
pin is connected to half the voltage. For example, to establish a reference 2V
(Vref) is connected to 1V pin9 (Vref / 2), thereby reducing the step size to
7.84mV (2V / 255).
ADC0804 also needs a clock to operate. The conversion time of the analog value
to a digital value depends on the clock source. An external clock can be given at
the Clock IN pin. ADC 0804 also has an inbuilt clock that can be used in absence
of an external clock. A suitable RC circuit is connected between the Clock IN and
Clock R pins to use the internal clock.
5
5. RESOURCES REQUIRED
1) 8051 Microcontroller (AT89S52)
2) ADC0808/0809
3) 16x2 LCD
4) Resistor (1k,10k)
5) POT(10k x4)
6) Capacitor(10uf,1000uf)
7) Red led
8) Bread board or PCB
9) 7805
10) 11.0592 MHz Crystal
11) Power
12) Connecting wires
6.Features
• 0V to 5V analog input voltage range with single 5V supply
• Compatible with microcontrollers, access time is 135 ns
• Easy interface to all microprocessors
• Logic inputs and outputs meet both MOS and TTL voltage level specifications
• Works with 2.5V (LM336) voltage reference
• On-chip clock generator
• No zero adjust required
• 0.3[Prime] standard width 20-pin DIP package
• Operates ratio metrically or with 5 VDC, 2.5 VDC, or analog span adjusted voltage
reference • Differential analog voltage inputs
6
7.Pin diagram
7
8. Pin description
8
9.Connection diagram
9
10.Code
#include<reg51.h>
#define delay for(i=0;i<1000;i++);
#define lcd P2
Sbit rd=P0^0;
Sbit wr=P0^1;
Sbit intr=P0^2;
Sbit rs=P0^5;
Sbit rw=P0^6;
Sbit en=P0^7;
Void lcd_int();
Void cmd(unsigned int b);
Void dat(unsigned int c);
Void show(unsigned char *s);
Unsigned char adc(),get_value, conv;
Int I;
Void main()
{
Lcd_int();
Show(“Temp : “);
While(1)
{
Get_value = adc();
Cmd(0x87);
Dat((get_value/100)+48);
Dat(((get_value/10)%10)+48);
Dat((get_value%10)+48);
Dat(0x60);
Dat(‘C’);
10
}
}
Void lcd_int()
{
Cmd(0x38);
Cmd(0x0e);
Cmd(0x06);
Cmd(0x01);
Cmd(0x80);
}
Void cmd(unsigned int b)
{
Lcd=b;
Rs=0;
Rw=0;
En=1;
Delay;
En=0;
}
Void dat(unsigned int c)
{
Lcd=c;
Rs=1;
Rw=0;
En=1;
Delay;
En=0;
}
Void show(unsigned char *s)
11
{
While(*s)
Dat(*s++);
}
Unsigned char adc()
{
Wr=0;
Rd=1;
Wr=1;
While(intr==1);
Rd=0;
Conv=P1;
Return conv;
}
12
11. Output
13
12.Conclusion
14
q
15