Difference between revisions of "Pseudo-Medical Monitor Code"

From LVL1
Jump to navigation Jump to search
 
Line 50: Line 50:
 
[[Pseudo-Medical Monitor Code HeartBeat_STUFF|#include "HeartBeat_Stuff.h"]]
 
[[Pseudo-Medical Monitor Code HeartBeat_STUFF|#include "HeartBeat_Stuff.h"]]
  
Two related include files from Library for MAX30102 examples not included here
+
Two related include files from Library for MAX30105 examples not included here
 
* bmpHeader.h
 
* bmpHeader.h
 
* Interoplation.
 
* Interoplation.

Latest revision as of 17:18, 14 December 2021

Being written on the fly, expect rewrites and restructures. Enough information is here for writing code on the completed hardware.

Basic Software Load for Main Device Only. Later Update to Incorporate Port Usage with External Units.

Hardware Libraries

 #include <Wire.h>
 #include <SPI.h>
 #include <Adafruit_GFX.h>
 #include <Adafruit_ST7735.h>
 #include <Adafruit_VL53L0X.h>
 #include <Adafruit_AMG88xx.h>
 #include <MAX30105.h>
 #include <SparkFunMLX90614.h> 
 #include <DFRobot_ID809.h>
 #include <SD.h>
 #include <pu2clr_pcf8574.h>
 #include <TCA9548A.h>
 

Library Modification

// In this Library : #include <SparkFunMLX90614.h> 
//Change the following line in the bool IRTherm::I2CReadWord(byte reg, int16_t * dest) routine.
//
//  I2C processing change needed for Arduino Due implementation
//
// Comment Out Line Below
//	_i2cPort->requestFrom(_deviceAddress, (uint8_t) 3, (uint8_t) true); 

// Add Line Below
      _i2cPort->requestFrom(_deviceAddress, (uint8_t) 3, (uint32_t)reg, (uint8_t)1, (uint8_t)true);


Defines - Variables - Routines

The following code is a mixing and matching of the example code provided by the referenced Special Libraries.

Custom Includes

#include "I2CMUX_Stuff.h"

#include "TFT_Stuff.h"

#include "SD_Stuff.h"


#include "HeartBeat_Stuff.h"

Two related include files from Library for MAX30105 examples not included here

  • bmpHeader.h
  • Interoplation.


#include "ThermalImager_Stuff.h"

#include "TOFLaser_Stuff.h"

#include "NonContactThermometer_Stuff.h"

#include "FingerPrint_Stuff.h"


#include "ControlPanel_Stuff.h"

#include "AudioBoard_Stuff.h"


#include "I2CMUX_Stuff.h"
#include "TFT_Stuff.h"
#include "SD_Stuff.h"

#include "HeartBeat_Stuff.h"
#include "ThermalImager_Stuff.h"
#include "TOFLaser_Stuff.h"
#include "NonContactThermometer_Stuff.h"
#include "FingerPrint_Stuff.h"

#include "ControlPanel_Stuff.h"
#include "AudioBoard_Stuff.h"

void setup()
{
  Wire.begin();
  Wire1.begin();
  Serial.begin(115200);

  analogReadResolution(12);
  
  Serial.println("SETUP - Begin");
  Serial.println("TFT");
  setup_TFT();
  Serial.println("SD Card");
  setup_SD();

  Serial.println("CT");
  setup_NonContactThermometer();
  Serial.println("ThermalImager");
  setup_ThermalImager();
  Serial.println("TOFLaser");
  setup_TOFLaser();  
  Serial.println("HeartBeat");
  setup_HeartBeat();
  Serial.println("FingerPrint");
  setup_FingerPrint();
  Serial.println("ControlPanel");
  setup_ControlPanel();
  Serial.println("AudioBoard");
  setup_AudioBoard();
  Serial.println("SETUP - End");
}


void loop()
{
      TOFLaser_Frame();
      ThermalImager_Frame();
      NonContactThermometer_Frame();
      FingerPrint_Frame();
      HeartBeat_Frame();
}

 

Pseudo-Medical Monitor