**My assignment/project is in French so I translated it in English. If you want the original one in French , please tell me . ** **It is a whole project but I am only responsible for the part “signal...

Please check the file attached , I added in my assignement where I need help .


**My assignment/project is in French so I translated it in English. If you want the original one in French , please tell me . ** **It is a whole project but I am only responsible for the part “signal processing”. I have to write on PSOC Creator 6 ,which uses the C language , so I can then put it on my microcontroller : ** INTRODUCTION You are required to develop a portable oxygen saturation monitor that will be sent to a developing country. You must therefore develop a system that is easy to use and the cost of which should not exceed $ 100. Your system will need to calculate heart rate and oxygen saturation and display it on a screen. Since access to the mains is not guaranteed, you will need to think of a device that can operate on battery power and assess its lifespan. The operation of a saturation monitor (SpO2) is based on the difference in light absorption of oxygenated versus deoxygenated blood. The following figure shows the absorption curve of the hemoglobin molecule. The curve differs between HBO2 (Hemoglobin Bound Oxygen Molecule) and HBR (Deoxygenated Hemoglobin). It is therefore possible to extract the ratio of HBO2 / HBR using light emitting diodes (LEDs) at two distinct wavelengths and to measure the return signal using a photodiode. In this case, the wavelengths used are 660 nm (red) and 880 nm (Infrared). If the blood is well oxygenated, it will absorb more at 880 nm than at 660 nm and opposite. The shape of the expected signal is shown in the following figure. You need to do a literary research to determine the best method to extract the heartbeat as well as the oxygen saturation from this signal. When there is significant movement, the readings obtained are polluted by movement artefacts, so you are asked to use the accelerometer on your pad in order to indicate to the user, through an alarm, when the signal is not valid. You can display a message on the screen or turn on an LED. As part of the course, you will only have time to develop the prototype. However, you must submit a report in which you will model or diagram a finished product. You must therefore define the approximate dimensions of your device, the shape, the buttons and the interface that the user will be able to communicate with the system. The position of the sensors, etc. The report should also explain your path and your choices throughout the project. The detailed content of the report will be developed in a subsequent section. COMPONENTS MAX30102 SpO2 Sensor You will use the MAX30102 sensor to obtain red and infrared absorption of blood. The datasheet of the latter is available here: https://datasheets.maximintegrated.com/en/ds/MAX30102.pdf. Note that this sensor has been widely used for "DIY" projects, do not hesitate to search for information. If you would like to purchase an additional sensor: https://www.mouser.ca/ProductDetail/Maxim- Integrated / MAXREFDES117? Qs = L5CenAjuTY7RgAB22JU8Sw% 3D% 3D BMI160 motion sensor You must use the BMI160 to determine if there is movement. It is an accelerometer and a 3- axis gyroscope. The datasheet of the latter is available here: https: //www.bosch- sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmi160-ds000.pdf. This sensor is already present on your micrcocontroller board and the position is shown in the following figure. INTERFACE You need to develop an interface using the e-INK screen on your board. The latter will allow the actions listed below. • Modification of the current in the LEDs. • Activate or deactivate the alarm from the movement of the accelerometer. • Programming an alarm when the heart rate is outside the limits defined by the user • Change the display between red and infrared curve (You can start today with the example curves on Moodle) To control your interface, you can use the 2 CapSense buttons and its slider. You can also use the button used during lab 2 (P0 [4]). If you want, you can add more buttons, using wire and pushbutton or a switch. HEART RATE AND OXYGEN SATURATION To calculate the heart rate, you need to do some literary research and implement appropriate signal processing. You are invited to use the CMSIS DSP library to implement your algorithm. This library allows you to calculate maximums, minimums, fourrier transforms, and much more. You can refer to this library here: https://www.keil.com/pack/doc/CMSIS/DSP/html/index.html Several sample signals are available on the course's Moodle site to help you implement signal processing from day one. *If you want the signal examples I have the file * It is recommended to use this programming method “Real-Time Operating Systems (RTOS)”., as modular development is easier as a team. Indeed, it will be easier to test and separate the code in this way. Distribution of the Tasks Expert 1: Communications to modules. This person will be responsible for programming between the microcontroller and the two modules used. This person needs the max30102 sensor. This person must like to handle a breadboard and bits / bytes. Expert 2: Signal processing.* I AM RESPONSIBLE FOR THIS PART * This person is in charge of finding the ideal algorithm in the literature. He/She could use Matlab or Octave (free version of Matlab) to test an algorithm on sample files. He/She could then translate this algorithm into C and integrate it into the system. Expert 3: Interface and menu. This person will have to develop the user interface, menus and alarms. This person is structured and organized, she has an eye for detail and likes geometry, layout. He/She cares about the usability of the system and develops an intuitive system. Expert 4: Management of all parties. This person will take care that all parties communicate with each other. It is this person who should be the link between the previous experts. She should ask others: "Write me a function that takes such parameters and does such and such an action". This person needs the max30102 sensor to test the entire system. CONTENT OF THE REPORT The report should contain an analysis of the estimated costs of a commercial product. You can also refer to “bulk” prices. The report should contain a detailed testing procedure and associated results. In order to fully understand how your program works, you need to include a flowchart. A solution analysis for a battery-powered device should be included in your report. In this analysis, you need to identify a battery as well as the lifespan of the system. The type of battery must also be mentioned and justify. The Algorithm used for signal processing should be explained and justified. If this is a home treatment, explain the steps. The modeling or schematization of the finished product must be found in the report as well as a min user manual. This should last on 1 page at most. Finally a connection diagram must be included. In the latter, we should find the main components of your system. (μC, sensor, screen, power management, etc.). This paragraph summarizes the content of the report. For detailed content, see evaluation section, more details MORE DETAILS Code o Acquisition and adjustment of the MAX30102 registers o Acquisition and adjustment of the BMI160 registers o Red and Infrared graphical display (one at a time) o Interface / Menu o LED current control ( o Alarm configuration o Red / infrared curve o Calculation of heart rate and oxygen saturation. (4 pts) o Alarm triggering if movement detected by the accelerometer (1 pts) o Alarm triggering if the heart rate is outside the limits (1 pts) o Cleanliness and clarity of the code (2 pts)
Mar 31, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here