Host software for the MAXREFDES220 Heart Rate Monitor Smart Sensor. Hosted on the MAX32630FTHR.
Dependencies: max32630fthr USBDevice
Fork of MAXREFDES220_HEART_RATE_MONITOR by
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
Makefile
- Committer:
- phonemacro
- Date:
- 2021-02-05
- Revision:
- 14:3fdc09d9017b
- Parent:
- 10:022b2cad9e9b
File content as of revision 14:3fdc09d9017b:
STACK_SIZE=0x30000 HEAP_SIZE=0x30000 PROJECT_PATH=$(realpath ./) PROJECT_NAME=$(shell basename $(realpath ./)) PROJECT_BUILD_PATH=$(realpath BUILD/) PROJECT_TOOLS_PATH=$(realpath tools/) PROJECT_CONFIGS_PATH=$(realpath configs/) PROJECT_TOOLCHAIN=GCC_ARM PROJECT_SCM_BRANCH=$(shell git rev-parse --abbrev-ref HEAD) PROJECT_SCM_HASH=$(shell git rev-parse HEAD) -include .config ALGO_DIR = Algorithms/ DRIVERS_DIR = Drivers/ INTERFACES_DIR = Interfaces/ SCOMMS_DIR = $(INTERFACES_DIR)/SensorComm/ DSINT_DIR = $(INTERFACES_DIR)/DeviceStudio/ SSCOMMS_DIR = $(SCOMMS_DIR)/SmartSensorComm/ SSINT_DIR = $(INTERFACES_DIR)/SmartSensor/ PLATFORMS_DIR = Platforms/ EXTERNAL_SOURCES += mbed-os EXTERNAL_SOURCES += $(DRIVERS_DIR)USBDevice PROJECT_SOURCES += $(wildcard *.cpp) PROJECT_SOURCES += $(wildcard *.h) PROJECT_SOURCES += $(SCOMMS_DIR)/SensorComm PROJECT_SOURCES += $(DSINT_DIR) PROJECT_SOURCES += $(DRIVERS_DIR)MaximSensor PROJECT_SOURCES += Utilities CONFIG_FLAGS += PLATFORM_MAX32630FTHR CONFIG_PLATFORM_NAME=MAX32630FTHR EXTERNAL_SOURCES += $(PLATFORMS_DIR)max32630fthr CONFIG_FLAGS += MAXIM_PLATFORM_NAME=\"$(CONFIG_MAXIM_PLATFORM_NAME)\" ifeq ($(CONFIG_ENABLE_LED_STATUS), y) CONFIG_FLAGS += ENABLE_LED_STATUS endif ifeq ($(CONFIG_ENABLE_EVENTSTATS), y) CONFIG_FLAGS += ENABLE_EVENTSTATS endif ifeq ($(CONFIG_BOOTLOADER_USES_MFIO), y) CONFIG_FLAGS += BOOTLOADER_USES_MFIO endif CONFIG_FLAGS += ENABLE_SMARTSENSOR PROJECT_SOURCES += $(SSINT_DIR) CONFIG_FLAGS += ENABLE_SS_BOOTLOADER PROJECT_SOURCES += $(SSCOMMS_DIR)SSBootloader CONFIG_FLAGS += ENABLE_SS_MAX30101 PROJECT_SOURCES += $(SSCOMMS_DIR)SSMAX30101 ifeq ($(CONFIG_ASCII_COMM), y) CONFIG_FLAGS += ASCII_COMM endif ifeq ($(CONFIG_SHOW_DEBUG_MSGS), y) CONFIG_FLAGS += SHOW_DEBUG_MSGS endif ifeq ($(CONFIG_SHOW_INFO_MSGS), y) CONFIG_FLAGS += SHOW_INFO_MSGS endif ifeq ($(V), 1) BUILD_VERBOSE = -v endif SRC_ARGS += $(addprefix --source $(PROJECT_PATH)/, $(EXTERNAL_SOURCES)) SRC_ARGS += $(addprefix --source $(PROJECT_PATH)/, $(PROJECT_SOURCES)) CFG_ARGS = $(addprefix -D, $(CONFIG_FLAGS)) $(info SELECTED_CONFIG=$(CONFIG_CONFIG_NAME)) $(info CONFIG_PLATFORM_NAME=$(CONFIG_PLATFORM_NAME) CONFIG_MAXIM_PLATFORM_NAME=$(CONFIG_MAXIM_PLATFORM_NAME) CONFIG_FLAGS=$(CONFIG_FLAGS)) $(info PROJECT_SOURCES=$(PROJECT_SOURCES)) $(info EXTERNAL_SOURCES=$(EXTERNAL_SOURCES)) ## BEGIN MAKEFILE RULES ## all: @if [ -f $(CONFIG_CONFIG_NAME) ]; then \ printf "NO CONFIG SELECTED!\n"; \ exit 1; \ fi; @if [ ! -f .checkout ]; then \ $(MAKE) checkout ; \ fi; mbed compile -t $(PROJECT_TOOLCHAIN) -m $(CONFIG_PLATFORM_NAME) -D__STACK_SIZE=$(STACK_SIZE) -D__HEAP_SIZE=$(HEAP_SIZE) $(BUILD_VERBOSE) $(CFG_ARGS) $(SRC_ARGS) debug_build: mbed compile -t $(PROJECT_TOOLCHAIN) -m $(CONFIG_PLATFORM_NAME) -D__STACK_SIZE=$(STACK_SIZE) -D__HEAP_SIZE=$(HEAP_SIZE) $(BUILD_VERBOSE) $(CFG_ARGS) $(SRC_ARGS) --profile $(PROJECT_PATH)/debug_oldmbedos.json clean_build: mbed compile -t $(PROJECT_TOOLCHAIN) -m $(CONFIG_PLATFORM_NAME) -D__STACK_SIZE=$(STACK_SIZE) -D__HEAP_SIZE=$(HEAP_SIZE) -c $(BUILD_VERBOSE) $(CFG_ARGS) $(SRC_ARGS) werror_build: mbed compile -t $(PROJECT_TOOLCHAIN) -m $(CONFIG_PLATFORM_NAME) -D__STACK_SIZE=$(STACK_SIZE) -D__HEAP_SIZE=$(HEAP_SIZE) -c $(BUILD_VERBOSE) $(CFG_ARGS) $(SRC_ARGS) --profile $(PROJECT_PATH)/werror_build_profile.json clean: rm -rf $(PROJECT_BUILD_PATH) co: checkout checkout: @echo "Downloading libraries" mbed deploy @touch .$@ doxygen: mkdir -p $(PROJECT_BUILD_PATH) export PROJECT_SOURCES="$(PROJECT_SOURCES)"; \ export PROJECT_SCM_HASH="$(PROJECT_SCM_HASH)"; \ doxygen doxygen.conf start $(PROJECT_BUILD_PATH)/doc/html/index.html ## END MAKEFILE RULES ##