Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Design a PIC 1 6 F 8 8 7 based intelligent wrist band which measures the temperature and the SPO 2 level ( blood oxygen
Design a PIC based intelligent wrist band which measures the temperature and the SPO level blood oxygen level of a patient. The intellgent band is connected to a PC via the serial port and they communicate via the UART in asynchronous mode.
Body temperature of the patient is measured using an LM mVdegC connected to the AN pin. Assume that a reference voltage of is used in the ADC module of the microcontroller.
It is assumed that the SPO sensor module produces an analog output which is proportional to the SPO value such that the maximum output voltage of the module is when the SPO value is The output of the SPO sensor module is connected to the AN input
PIC sends the values of the temperature, heart rate and SPO values to the PC via the USART serial port in the asynchronous serial communication mode, at a baud rate of bitss
If the temperature of the patient is greater than degC or the SPO value is less than an SOS message is sent to the PC via the USART module and also an alarm is generated via a buzzer which is connected to the RD pin via a BC transistor.
a Draw the circuit diagram of the system by using the component models given in the Appendix. Indicate the connections and the components clearly
b Write a MicroC program to perform the above functions. Write your comments for each instruction, to explain its function and parameters clearly.
unsigned int temp, spo;
char tempstr spostr;
void main
ANSEL ;
ANSELH ;
UARTinit;
while
temp ADC ead;
temp long temp;
ALARM
ifspo temp
RDObit ;
delayms ;
RDbit ;
else RDObit ;
Int ToStrtemp tempstr;
IntToStrspo spostr;
UARTWriteText Temperature : ;
UARTWriteTexttempstr;
UARTWriteTextr;
UARTWriteText Oxygen Level : ;
UARTWriteTextspostr;
UARTWriteText;
delayms ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started