scubaben / mixmonitor Goto Github PK
View Code? Open in Web Editor NEWArduino based two-sensor oxygen analyzer designed for continuous blending of trimix for technical and rebreather diving.
License: Other
Arduino based two-sensor oxygen analyzer designed for continuous blending of trimix for technical and rebreather diving.
License: Other
one example: S1 can't be less than 21.
EEPROM commands should be their own class with a versioned data structure and migration ability so in future other parts of the program can utilize it, not just sensor class.
the feather uses a voltage divider on pin A9, which we can use to read the voltage of the rechargable battery pack.
https://learn.adafruit.com/adafruit-feather-32u4-basic-proto/power-management
sample code:
#define VBATPIN A9
float measuredvbat = analogRead(VBATPIN);
measuredvbat *= 2; // we divided by 2, so multiply back
measuredvbat *= 3.3; // Multiply by 3.3V, our reference voltage
measuredvbat /= 1024; // convert to voltage
Serial.print("VBat: " ); Serial.println(measuredvbat);
user inputs or chooses a predefined (10/50, 21/35, etc...) desired o2/he blend.
s2 target setting = desired o2
s1 target setting = desired o2/(1-desired he)
)target settings in decimal format)
need to have validations in place so that a user cannot input an impossible blend. s1 minimum should be .21
results should be used to update target settings
currently, MV readings are only shown while calibrating. it would be nice to have the option to see MV readings during analysis too.
Currently sensor class references global variables, so it is not possible to use it independent of the project... so it should be refactored to not do this.
(s1-s2)/s1 should work, where s1 is downstream of the o2 injection and s2 is downstream of o2 AND he injection.
there are a handful of new enhancements that will require new menus to configure. Clicking the button should first bring up a menu, and then allow the user to choose which settings they want to modify.
maybe something like:
right now you have to read from the eeprom each time you want to check to see if there is valid calibration. It would be nice to do this just once and then have that available for each of the functions that update the display.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.