Professional Documents
Culture Documents
Embedded Project
Embedded Project
1|P a g e
OBJECTIVE OF THE EXPERIMENT:-
EQUIPMENTS REQUIRED:-
AT89S51 micro-controller
8051 development board
8051 USB programmer
Heart beat sensor
Breadboard
2-digit seven segment LED display
Transistors
Jumpers
Resistors (1k,470)
Connecting wires
SOFTWARE USED:-
Proteus 8 Professional
WLPRO 8051 USB programmer
Keil uVision5
2|P a g e
BILL OF MATERIALS:-
1 AT89S51 1 95
2 DEVELOPMENT 1 220
BOARD
4 7 SEGMENT 2 30
DISPLAY
3|P a g e
THEORY AND PIN CONFIGURATIONS:-
AT89S51 micro-controller:
TIMER T1 AND TIMER T0:
Here we have used both Timer T1 and Timer T0. The Timer T1
is used as mode 2 counter and Timer 0 is used as mode 1 timer. Then the counter is
started with initial value of 0000. Since 8051 has 16-bit timers, the maximum count
that they can go up to is65536. The frequency provided to the timer internally is
1MHz. So, the 16-bit timer can provide a maximum delay of 65ms. Hence it was then
iterated 230 times to create a delay of 15s. after 15 s of delay the counter and the
timer was stopped and the content of the counter gave the no of heart beats in 15s
which was then multiplied by 4 to get the no of heart beats per minute in BPM.
4|P a g e
HEART-BEAT SENSOR:
Pin description:-
GND: Ground
Vcc: power
5|P a g e
Fig 2:- Internal Structure of Heart Beat Sensor
Pin description:-
P2: Data lines of 7 segment led
P1.0: common anode of 1st digit segment(Vcc)
P1.1:common anode of 2nd digit segment(Vcc)
6|P a g e
PROCEDURE :-
❖ A new project was created on Proteus using AT89C51 as the microcontroller model.
The necessary circuit diagram was made as shown in Figure 1.
❖ The code was written in the Keil software and a hex file was created as there was
no error in the code. Then the simulation was tested in the Proteus .
❖ The hex file was burnt into the microcontroller(AT89S51) using the USB
programmer module.
❖ The hardware connections for the 7 segment displays was done on the breadboard.
❖ The hardware circuit was then designed by interfacing display part and the heart
beat sensor with 8051.
❖ Then the circuit was run and tested for errors which were rectified to obtain the
final product.
7|P a g e
CODE WITH COMMENTS:-
8|P a g e
9|P a g e
RESULTS:-
The simulation was made by interfacing the required components as necessary for the
circuit. The circuit design of the simulation environment is shown in the figure 3 and
the next following figure 4 shows the working of the heart beat rate in the simulation.
The results of the simulation obtained were exactly as per the desired requirement.
The actual hardware circuit is shown by the figure 5.
10 | P a g e
Figure 4:- LED output of the simulation in BPS for a pulse frequency of 1Hz
11 | P a g e
PROBLEMS FACED DURING EXPERIMENTAL DESIGN:-
The processor that we used in the simulation AT89C51, but we have used
AT89S51 in the hardware designing. It still gives the desired result.
There was no library for heart rate sensor in the proteus software. Then we
add the sensor to the library by downloading from the internet.
The sensor gives digital output when fingertip is pressed on it. But in
simulation , we cannot give physical input to the sensor. So we used a digital
pulse generator to give input to the microcontroller.
For different input, we changed the frequency of pulse generator and
observed the output.
We could not find the 3 digit 7 segment display due to its unavailability. So
we used 3 individual 7 segment displays. The connection of three 7 segment
LED displays was done parallelly. So this required extra connection and due
to this complexity there was problem displaying the heart beat rate.
The heart pulse sensor was very sensitive to light so it was giving the output
heart rate with some margin of error.
CONCLUSION:-
So finally we are successful in developing a human heart beat monitor system using
8051 microcontroller. The future development like to send the heart beat data of a
project that will help the patient to check on his heart beat without visiting the
doctor.
12 | P a g e