Skip to content

wydaegheb/divec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

divec

Description

Software for my own dive computer using Buhlmann ZHL A/B/C algorithm with Gradient Factors (can be extended later to VPM)

  • I hope to evolve it one day in a CCR computer (not a controller but with cell measurements so it can be used as backup with manual control when my main controller computer breaks)

Hardware

Total price of the parts is therefore just shy of 100 $/€

Still working on the housing (I have a home built CNC and a 3D printer and I am thinking about cnc-en the external housing from Delrin (POM) and 3D printing the "inner housing" and fill it up with epoxy.

Software

Generic remark: available source code online is mainly for "deco planners" (DiveInno being the only exception). Many questions remain therefore "open".

  • how to determine when dive starts/stops?
  • what to take as surface pressure/surface interval?
  • when do we log a dive?
  • what is the "onset" of the low gradient factor, (lowest deepstop at the end of the dive or encountered during the dive? when we hit the first deepstop? last dive segment? ...)
  • warnings for not being on the right gas.
  • adding gas switch stops,
  • what if the diver violates a stop?
  • how to know when tissues are reset? (clock reset, out of battery, deco violation, ...)
  • is "extra" safety needed on top of the gradient factors? (e.g. OSTC speeds up and slow down time while on/off gassing. others consider the diver to be one meter lower than he/she really is, ...)

-> CONCLUSION: DO NOT TRUST YOUR LIFE TO THIS SOFTWARE!!!

Development environment: Clion with PlatformIO.

Algorithm heavily based on:

  1. Erik C. Baker - (fortran - original gradientfactor source code) http://uwexplorers.net/downloads/Baker/Gradient%20Factor%20Deco%20Program.pdf (an automatic translation to C# can be downloaded here: https://www.scubaboard.com/community/attachments/decocalc-zip.61302/)

  2. Archisgore (Javascript). github - https://github.com/archisgore/online-deco-console source - https://github.com/archisgore/online-deco-console/blob/master/src/scuba-dive.js gui (can be tried directly in a browser!) - https://deco-planner.archisgore.com/

  3. DiveInno - dive computer project (including c++ source code) homepage - http://www.diveino.hu/ github - https://github.com/kornel-schrenk/DiveIno

  4. DecoTengu (Python) code: https://files.pythonhosted.org/packages/b2/ca/8ceb72cbf9082152f14496da0f5f7508353258c944aa1b8bc50a96621e9f/decotengu-0.14.1.tar.gz

Further background https://thetheoreticaldiver.org/wordpress/index.php/tag/buhlmann/ https://thetheoreticaldiver.org/wordpress/index.php/2018/07/23/can-we-calculate-no-fly-times/

The Bluetooth app (Android) was forked from: https://github.com/adafruit/Bluefruit_LE_Connect_Android_V2/find/master

About

Software for my own dive computer using Buhlmann ZHL A/B/C algorithm with Gradient Factors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published