ONLY EMBEDDED C CODE USING AVR LIBRARYFUNCTIONS are accepted, the Arduino library functions are NOTACCEPTED.
Question
Patient monitor is one of the important medical equipment inhospital. It measures vital signsof a patient such as ECG, blood pressure, breathing and bodytemperature. However, due to theCovid19 crisis, the number of patient monitor is not enough. Yourteam are required to developan ad-hoc prototype 6 channel ECG device by using ATMega328microcontroller.The devicemust fulfill the specifications below:-
i. Six channel ECG consisting of three limbleads and three augmented limb leads. Thegain of the entire biopotential amplifier is 2000, consideringtypical ECG voltage of1.0 mV
ii. The ADC values of each ECG channel aregoing to be stored in the entire SRAM in theATMega328, before being displayed to the OLED display. After 5seconds, the nextECG channel will be sampled. When all six channels are completed,it will repeat withthe first channel.
iii. Sampling rate per channel must be set to 256samples per second, and using the internaloscillator clock set at 8 MHz.
a) Based on the specifications above, freelysketch the schematic diagram which connectsthe singel chip microprocessor ATMega328, to the six channelbiopotential amplier.Ensure pin numbers and labels are clearly state and as detailed aspossible. Notes: You could refer to ATMega328 Detail Pins Layout inAppendix 1 and only drawthe necessary I/O pins for system peripheral connection, includingVCC and GND. Youcan choose to connect the non-reserved pins to any digital I/Opins.
b) The device will sample a single ECG channelfor a certain time, and store in the internalSRAM. With 10-bit precision, how many seconds of a the ECG signalcan be recorded inthe internal SRAM. Write and show all parameters involved tocalculate the time.
c) Write the C program of the main function andthe other required functions for the systemwith the given specifications in (i), (ii) and (iii). A functionnamed SRAMtoOLED( ) isalready provided. This function will read all the value in the SRAMand display on to theOLED display. You can call this function when ever needed.
ONLY EMBEDDED C CODE USING AVR LIBRARY FUNCTIONS are accepted, the Arduino library functions are NOT ACCEPTED. Question
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am