Host software for the MAXREFDES220 Heart Rate Monitor Smart Sensor. Hosted on the MAX32630FTHR.

Dependencies:   max32630fthr USBDevice

Fork of MAXREFDES220_HEART_RATE_MONITOR by Maxim Integrated

Finger Heart Rate Monitor and SpO2 Monitor

The MAXREFDES220 Smart Sensor FeatherWing board is a integrated solution for providing finger-based heart rate measurements and SpO2 (blood oxygen saturation). This evaluation board interfaces to the host computer using the I2C interface. Heart rate outpu is available in beats per minute (BPM) and SpO2 is reported in percentages.; the PPG (photoplethysmography) raw data is also available. The board has an MAX30101 chip which is a low power heart rate monitor with adjustable sample rates and adjustable LED currents. The low cost MAX32664 microcontroller is pre-flashed with C code for finger-based pulse rate and SpO2 monitoring. Bootloader software is included to allow for future algorithms or updates to the algorithm from Maxim Integrated.

Ordering information will be available soon.

Note: SpO2 values are not calibrated. Calibration should be performed using the final end product.

Warning

The MAXREFDES220 source code listed is dated and only compatible with the 1.2.8a.msbl. The latest sample host source code is available on the MAX32664 website.

MAXREFDES220 FeatherWing Pinout Connections

/media/uploads/phonemacro/maxrefdes220_pinouts_heart_rate_monitor.jpg

Committer:
phonemacro
Date:
Fri Feb 05 01:59:25 2021 +0000
Revision:
14:3fdc09d9017b
Parent:
8:0f55f59ca341
Remove code for EventStats irq_evt - it no longer compiles on mBed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Shaun Kelsey 6:af745c7b8520 1 /*******************************************************************************
Shaun Kelsey 6:af745c7b8520 2 * Author: Shaun Kelsey, shaun.kelsey@maximintegrated.com
keremsahin 8:0f55f59ca341 3
Shaun Kelsey 6:af745c7b8520 4 * Copyright (C) 2017 Maxim Integrated Products, Inc., All Rights Reserved.
Shaun Kelsey 6:af745c7b8520 5 *
Shaun Kelsey 6:af745c7b8520 6 * Permission is hereby granted, free of charge, to any person obtaining a
Shaun Kelsey 6:af745c7b8520 7 * copy of this software and associated documentation files (the "Software"),
Shaun Kelsey 6:af745c7b8520 8 * to deal in the Software without restriction, including without limitation
Shaun Kelsey 6:af745c7b8520 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
Shaun Kelsey 6:af745c7b8520 10 * and/or sell copies of the Software, and to permit persons to whom the
Shaun Kelsey 6:af745c7b8520 11 * Software is furnished to do so, subject to the following conditions:
Shaun Kelsey 6:af745c7b8520 12 *
Shaun Kelsey 6:af745c7b8520 13 * The above copyright notice and this permission notice shall be included
Shaun Kelsey 6:af745c7b8520 14 * in all copies or substantial portions of the Software.
Shaun Kelsey 6:af745c7b8520 15 *
Shaun Kelsey 6:af745c7b8520 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Shaun Kelsey 6:af745c7b8520 17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Shaun Kelsey 6:af745c7b8520 18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Shaun Kelsey 6:af745c7b8520 19 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
Shaun Kelsey 6:af745c7b8520 20 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
Shaun Kelsey 6:af745c7b8520 21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
Shaun Kelsey 6:af745c7b8520 22 * OTHER DEALINGS IN THE SOFTWARE.
Shaun Kelsey 6:af745c7b8520 23 *
Shaun Kelsey 6:af745c7b8520 24 * Except as contained in this notice, the name of Maxim Integrated
Shaun Kelsey 6:af745c7b8520 25 * Products, Inc. shall not be used except as stated in the Maxim Integrated
Shaun Kelsey 6:af745c7b8520 26 * Products, Inc. Branding Policy.
Shaun Kelsey 6:af745c7b8520 27 *
Shaun Kelsey 6:af745c7b8520 28 * The mere transfer of this software does not imply any licenses
Shaun Kelsey 6:af745c7b8520 29 * of trade secrets, proprietary technology, copyrights, patents,
Shaun Kelsey 6:af745c7b8520 30 * trademarks, maskwork rights, or any other form of intellectual
Shaun Kelsey 6:af745c7b8520 31 * property whatsoever. Maxim Integrated Products, Inc. retains all
Shaun Kelsey 6:af745c7b8520 32 * ownership rights.
Shaun Kelsey 6:af745c7b8520 33 *
Shaun Kelsey 6:af745c7b8520 34 ******************************************************************************/
keremsahin 8:0f55f59ca341 35 #ifdef ENABLE_EVENTSTATS
Shaun Kelsey 6:af745c7b8520 36 #ifndef _PLATFORM_EVENT_H
Shaun Kelsey 6:af745c7b8520 37 #define _PLATFORM_EVENT_H
Shaun Kelsey 6:af745c7b8520 38
Shaun Kelsey 6:af745c7b8520 39
Shaun Kelsey 6:af745c7b8520 40 #include "mbed.h"
Shaun Kelsey 6:af745c7b8520 41
Shaun Kelsey 6:af745c7b8520 42 class EventStats
Shaun Kelsey 6:af745c7b8520 43 {
Shaun Kelsey 6:af745c7b8520 44 public:
Shaun Kelsey 6:af745c7b8520 45 EventStats();
Shaun Kelsey 6:af745c7b8520 46 EventStats(int report_period, const char* name);
Shaun Kelsey 6:af745c7b8520 47
Shaun Kelsey 6:af745c7b8520 48 //Start an event
Shaun Kelsey 6:af745c7b8520 49 void start();
Shaun Kelsey 6:af745c7b8520 50
Shaun Kelsey 6:af745c7b8520 51 //Stop an event. If report_period time has passed, prints stats
Shaun Kelsey 6:af745c7b8520 52 void stop();
Shaun Kelsey 6:af745c7b8520 53
Shaun Kelsey 6:af745c7b8520 54 //Print out stats. Set report_period to < 0 if you want to call this manually
Shaun Kelsey 6:af745c7b8520 55 void print_events(bool reset);
Shaun Kelsey 6:af745c7b8520 56
Shaun Kelsey 6:af745c7b8520 57 private:
Shaun Kelsey 6:af745c7b8520 58
Shaun Kelsey 6:af745c7b8520 59 const char* name;
Shaun Kelsey 6:af745c7b8520 60 int report_period;
Shaun Kelsey 6:af745c7b8520 61 int num_evts;
Shaun Kelsey 6:af745c7b8520 62 int total_evt_time;
Shaun Kelsey 6:af745c7b8520 63
Shaun Kelsey 6:af745c7b8520 64 bool evt_in_prog;
Shaun Kelsey 6:af745c7b8520 65 Timer single_evt;
Shaun Kelsey 6:af745c7b8520 66 Timer all_evts;
Shaun Kelsey 6:af745c7b8520 67 };
Shaun Kelsey 6:af745c7b8520 68
Shaun Kelsey 6:af745c7b8520 69
Shaun Kelsey 6:af745c7b8520 70 #endif
keremsahin 8:0f55f59ca341 71 #endif //ENABLE_EVENTSTATS