MediBrick Firmware is optimized for ESP32 micro controllers.
-
♾️ Arduino IDE is used to program the firmware into the MediBrick.
- In the IDE under Files -> Preferences -> Additional Board Managers URL add
,https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.jsonat the end of the field - Ctrl-Shift-B opens Board Manager: Select
esp32 by Espressif Systems- Select the latest version but do not select release candidates (RC), alpha (a) and beta (b) versions.
- If you use Adafruit ESP32 S3: under Tools menu select USB Mode:
Hardware CDC and JTAG, Upload Mode:UART / Hardware CDC, Partition Scheme:Default 3MB APPand USB CDC on Boot:Enabled - If you use Sparkfun ESP32 Thing Plus C use default board settings.
- In the IDE under Files -> Preferences -> Additional Board Managers URL add
-
💻 SerialUI is used to communicate with the MediBrick over USB or Bluetooth Low Energy Serial. When both Arduino IDE and SerialUI are running, you need to close the Arduino IDE Serial Monitor or Plotter tab in order to connect to MediBrick over USB with SerialUI. If you want to upload the Firmware with ArduinoIDE you need to close SerialUI USB connection.
-
🧰 Arduino Libraries are imported and needed to create the Firmware for the MediBricks. You can install them with these automated scripts:
and then execute on unix:
./install_libraries.sh
or on Windows:
powershell -ExecutionPolicy Bypass -File install_libraries.ps1
Linux / macOS (installs into
~/Arduino/libraries), Windows (installs into%USERPROFILE%\Arduino\libraries)
- ESP32 (basic hardware tests)
- 📋 ESP32 Hardware Test Will report if PSRAM is available, LED, Battery, BLE works.
- 📋 I2C Scan Will check for all devices typically connected to MediBricks.
- 📋 Display, Battery & Deep Sleep Test Will test deep sleep and wake.
- 📋 BlueTooth Low Energy Serial Test Will test maximum throughput.
- ECG & BIOZ
- Spirometer
- Not available yet
- Pulse Oximeter
- Stethoscope
- 🔌 Current Firmware with BLESerial, Display & Sleep
- 📖 Instructions for Stethoscope Firmware
- MediBrick_Stethoscope_ES8388_to_CSV: Prints the two-channel audio signal to the serial port for visualization with SerialUI application.
- MediBrick_Stethoscope_ES8388_TestSound: Creates test tone in left and right channels for headphones.
- MediBrick_Stethoscope_ES8388_to_Headphone: Plays the recorded sound to the headphone.
- MediBrick_Stethoscope_PressureTest: Test the arm cuff pressure sensor.
- Activity (legacy)
- 📋 Individual test programs for each sensor are in folder
- Activity
- Not available yet
- Temperature
- Environment
- 📋 Individual test programs are available in folder
- Need to write Firmware
- DC PowerBrick
You can find the libraries original repository listed below. Items listed in bold are libraries created by the author.
- General for all MediBrick Modules
- ECG & BIOZ
- Spirometer
- ↗Git 📂 Flow Sensirion SFM3505
- ↗Git 📂 Flow Sensirion SFM3300
- Pressure, Amphenol ELVH-M100D-HRND-I-N2A4, create your own simple driver
- Pulse Oximeter
- Stethoscope
- Activity v1
- Activity v2
- Temperature
- Environment
- DC PowerBrick