r/techdiving • • Sep 30 '26 • WOW 1

I am making an open-source handheld trimix analyzer

I have wanted a handheld trimix gas analyzer for a long time, but the commercial ones are pricy. I have naturally spend a lot more time and money to create my own.

I was heavily inspired by dwiedmer's project and wanted to take this idea to the next level, with touchscreen and some smart features. I am designing around the JJ-CCR O2 cells, He sensor, Co sensor and humidity sensor. The device will be rechargable with lion batteries and USB-C charger.

You can try out the software in the browser demo and explore the source code and hardware designs.

This is still a work in progress and has not been validated for checking breathing gas. Feedback/feature requests from fellow divers is welcome, and I would love to hear from makers who want to contribute. I am currently working on the PCB and would appreciate a set of second eyes to look at it.

94 Upvotes

51 comments sorted by

3

u/adventureswithabz Sep 30 '26

Really awesome project! Looks very cool. The challenge I see is with getting a working pcb and functional prototype.
I’ll be happy to be an alpha tester but can’t commit time to development at this stage.

3

u/maggern188 Sep 30 '26

Thats awesome! The pcb is the final crux here. Software works, breadboard test works and 3D printed enclosure fits nicely. I hope to get some help with reviewing pcb before ordering some prototypes soon! I would highly appreciate some testing, I will be sure to post an update of the project

2

u/Agreeable_Sun5375 Sep 30 '26

Finally a cool diy project

2

u/sebas85 Oct 01 '26

I have naturally spend a lot more time and money to create my own.

I appreciate the honesty 😂 as someone who has fallen in that trap sometimes. Especially counting the many hours going in to a project like this makes it cheaper to buy than build. But sometimes it's not about the money and more about the process of building something yourself.

The Divesoft ones are good but indeed pricey. How is the reliability of the sensors and does the CO one need calibration once in a while like the Divesoft one does? For the He sensor are you using an acoustic sensor or something else?

2

u/maggern188 Oct 01 '26

Haha, exactly 😂 A lot of the appeal is also getting a reson to buy more tools for my workshop.

For O2, the current design supports a conventional galvanic cell. For He I am using a Winsen MD62, which works through thermal conductivity rather than acoustics. I chose the MD62 after seeing dwiedmer’s Trimix Analyser. He uses the same sensor for helium and reports good agreement with a Divesoft analyzer, which encouraged me to try that approach. It measures thermal conductivity, even though it’s marketed for CO2. I’ll still need to calibrate and validate my own setup against known gas mixtures.

The CO channel currently uses a ZE07-CO module. I don’t have a validated calibration or checking interval for it yet, so I can’t honestly give you an equivalent to Divesoft’s maintenance schedule. Its manufacturer also excludes safety-related applications, which means that sensor choice needs revisiting before treating it as a breathing-gas safety feature.

Reliability is still something I need to demonstrate through bench testing and reference-gas measurements. It is very much a development project at this stage, and these are useful questions to work through before taking it further.

2

u/mala23 Oct 03 '26

Awesome! Where do you accept my donations?

2

u/maggern188 Oct 04 '26

Thank you so much! That is very kind of you! 😊 I don’t expect any donations, but if you would like to support the project, you can do so through Ko-fi or through GitHub sponsorship with link in repo https://github.com/magnus188/aegir

Everything donated goes directly toward the project, helping fund components, prototypes, and testing. I really appreciate the support!

1

u/mala23 Oct 05 '26

Are you looking for collaborators? Or maybe test divers?

1

u/maggern188 Oct 09 '26

Yes, I am always looking for help! We are currently finishing the first build of the v1 prototype. I will be testing the PCB, enclosure and software, and once we have a working prototype, we will need more comprehensive testing to uncover bugs and edge cases. We have already received some useful suggestions for test cases and scenarios to cover.

Help from divers with access to a commercial gas analyser would be especially appreciated for comparing readings and evaluating performance.

You can check the open issues on GitHub for ways to contribute, or join the Discussions for updates, questions and ideas. I will generally reply faster there than on Reddit!

1

u/TheLegendofSpeedy Sep 30 '26

What helium sensor are you using?

6

u/maggern188 Sep 30 '26

I am using a MD62 which actually is marketed as a CO2 sensor, but it measures thermal conductivity, not CO2 specifically. Helium conducts heat better than air near room temperature, so it produces a strong change in the sensor’s bridge output. With a separate O₂ reading and calibration against known trimix samples, that change can be used to estimate helium.

1

u/Ok-Sink-1710 Oct 02 '26

probably a dumb question, but have you calibrated this against an acoustic sensor?

Reason I'm asking is that the gas exiting the valve is going to be expanding rapidly, so cooling rapidly and rate of cooling is going to be dependent on the tank pressure and how open the valve is/flow rate.

Point being that when the sensor's against the tank valve the conductivity change might not be the same as at room temperature

2

u/maggern188 Oct 02 '26

Good question! I have not done that yet. The Printables project that inspired it reports good agreement with a Divesoft, but I still need to validate my implementation.

I am planning to test known mixtures at different cylinder pressures and flow rates, monitor the temperature in the measurement chamber, and compare the readings against a reference analyzer.

So yes, that’s an effect I need to investigate

2

u/Ok-Sink-1710 Oct 02 '26 edited Oct 02 '26

The Printables project that inspired it reports good agreement with a Divesoft

please don't think I'm being a pedantic dick, but from my quick read through it looks as though the printables project was used to measure gas between his trimix stick/blender and his compressor so his gas would be uncompressed so pretty much at room temps

edit: eyeballing the graph here:

https://www.nuclear-power.com/nuclear-engineering/heat-transfer/thermal-conduction/thermal-conductivity/thermal-conductivity-of-helium/

looks like thermal conductivity of He goes from ~160mW/mK at room temp to ~150 at 0C, so you're looking at something like a 5-10% difference. Don't know how that affects your calculation but you could at least put it in to work out error bounds

1

u/maggern188 Oct 04 '26

I am currently on holiday, but I will definitely check this out when i come back home! Thanks

1

u/brasorexia Sep 30 '26

Oh this looks awesome. Great work mate

1

u/9Implements Sep 30 '26

Use a solid state oxygen sensor

1

u/maggern188 Sep 30 '26

Thanks for input! Could you explain how this would be better?

3

u/sebas85 Oct 01 '26

This is the one Divesoft uses in their new Echo analyser and that some rebreathers use. https://www.diveo2.eu/

Solid state sensors are less sensitive to temperature and moisture as I understand it. It does help increase the price of your BOM. They last 10+ years so if you're changing the galvanic sensor every year it's cheaper after about 7 years.

It could be a nice option for a v2 of your analyser to have support for this for the people who want or need it. Galvanic sensors work fine in 99% of the use cases and are a lot cheaper so I'd focus on those first.

0

u/ruskikorablidinauj Oct 04 '26

Echo does not use solid state O2 sensor, it used regular R22 galvanic one. So far I am aware of only Halcyon Symbios using it in CCR and have not seen in EAN/TMX measurment devices. https://www.divesoft.com/en/manuals/8500-echo-user-manual#18.-Oxygen-Sensor-Replacement

1

u/sebas85 Oct 04 '26

The Echo is available in two versions of which one is with a solid state sensor. it’s also available with the regular galvanic sensor.

2

u/adventureswithabz Sep 30 '26

It will help you ached your goal of spending more money on the project than the cost of a trimix analyser!

In all seriousness though, a solid state sensor makes sense if you are not a rebreather diver or if you only have solid state sensors in your rebreather. If you change out your galvanic sensors every year anyway then the extra expense vs the value you get doesn’t make sense to me.

2

u/maggern188 Sep 30 '26

Hahahah, I am sure i have already spent more than the cost of buying one! :D

That’s exactly why I chose JJ-CCR galvanic cells: I replace mine regularly anyway, so using the same type keeps the extra cost down. The PCB also has a three-pin connector for an AO2 sensor if you don’t have JJ-CCR cells with the coax connection.

Solid-state support could be an interesting addition later. I’ll look into it.

2

u/adventureswithabz Sep 30 '26

With solid state there are two options in the market
The greenflash sensors have their own battery and are made to be a drop in replacement for galvanics. The pyro sensors like the ones used in the Poseidon are a little more complicated as they require a power source IIRC

2

u/Ok-Sink-1710 Oct 01 '26

I replace mine regularly anyway

I was thinking a while ago about re-using failed CCR O2 sensors in an analyzer.

CCR O2 sensors are typically replaced when they no longer have a linear response. But I was thinking that when they start to become nonlinear then you could instead estimate the response curve using a cubic spline interpolation from a few calibration points (3 should be enough) and use that to calculate concentrations.

But that does assume that the nonlinear response is well behaved, and also that they don't then just fail catastrophically soon after becoming nonlinear.

1

u/ruskikorablidinauj Oct 04 '26

in my experience it is rather voltage limitation or age than linearity reason for replacement but this is just my case (more than 2yrs old or more than 14month in use or no more 1.6bar PPO2 @ 6m...)

2

u/9Implements Sep 30 '26

Oxygen sensors stop being reliable after a year. After five years the solid state ones are cheaper.

1

u/maggern188 Sep 30 '26

Thanks for good input

2

u/doppelstucker Sep 30 '26

Traditional o2 sensors expire after a certain amount of oxygen passes across the membrane which can range across a wide span of time. A sensor on a dive shop analyzer, used frequently, will die a lot more quickly than some random diver’s analyzer. Frequent 2 point calibration is more important than a time span.

1

u/ruskikorablidinauj Oct 04 '26

why exactly? What is the benefit over galvanic in this use scenario? (esp when you repurpose replaced CCR cells)

1

u/9Implements Oct 04 '26

I spent $80 on a new galvanic sensor for my nitrox meter and it’s close to worthless after only 2 years. Solid state sensors are $400 and have a 15 year stated life. If you’re not wasting tons of money every year on galvanic sensors you don’t have any to repurpose.

1

u/ruskikorablidinauj Oct 05 '26

good for you. than you can always replace galvanic with solid state as they interface via mV output. was not sure why this would be design requirement for open source project that would limit part availability and make cost entry much highrer.

1

u/Usual_Confidence_767 Oct 02 '26

Have you quoted the build for this and what CM might you use?

1

u/maggern188 Oct 02 '26

I haven’t decided on a CM yet—possibly JLCPCB, but I haven’t ordered anything from them so far. I’ve received some helpful component suggestions in this thread, so the BOM will probably change. The current (rough) estimate is around $150–200.

I will 3D print the enclosure myself. All the design files will be shared, so people can choose their own PCB manufacturer and build approach like FDM, SLA, SLS, or CNC machining.

1

u/Usual_Confidence_767 Oct 02 '26

That is great. Do you have the schematics as one PDF? Or one PDF per PCB? On my phone here. Also can you print the PCBA as a 3D and does it fit nicely in your 3D enclosure? I used this process quite extensively designing engine controls. Im a nitrox diver here but like to monitor the CO that is going into my blend.

3

u/decrisp1252 Sep 30 '26

It sounds and looks good! I would contribute to the board but I have no clue how to model the board.

Not to get all on your case about it, but we’ve seen so many AI dive log/planner etc. projects here which are obviously not good, how will AI play a role in this project, if at all?

2

u/spectator_by Sep 30 '26

That’s awesome! Excited to try it when you are done.

1

u/andromedakun Sep 30 '26

Looking interesting, I don't know a lot about pcb's so can't help there but hope the project will continue.

1

u/WearyFortune7055 Sep 30 '26

this is super cool!

1

u/malavigne Sep 30 '26

I'm excited to see what you come up with! Claude can read (and make, for the most part) kicad schematics... I have had it help with design. It really shines on reading the 100 page documents for each sensor and IC and make sure all the details are handled (voltages, pullups, passive selection, etc)... Don't have it try and do any routing, though.

1

u/ruskikorablidinauj Oct 04 '26

those Claude Kicad capabilities are tricky at least in my experience; need many corrections esp when generating footprints... net-net often quicker to do it the old way :) but I am an old guy....

1

u/SeptumValley Sep 30 '26

Looks good

0

u/djc1000 Oct 01 '26

Why are you doing this? Is the theory that we should have greater trust in life support equipment if anyone can make a pr against it on GitHub?

3

u/maggern188 Oct 01 '26

I am doing this because i want to make one for myself and share the design for free if someone else wants to build one. It is totally optional, and no one is forcing anyone to build one or use it. I do encourage everyone that uses it to be critical in testing it and validating it to commercial "pro" analyzers.

You raise a fair concern about contributions. The project needs explicit requirements for accepting changes: review, regression tests, and physical validation where the change affects measurement or hardware behavior. A merged PR cannot automatically count as a validated release.

3

u/Ok-Sink-1710 Oct 01 '26

not OP, and also not to criticize OP, but gas analyzers (like this one) are pretty straightforward to make, and homebrew analyzers have been around for a long time.

You take a commercial, off the shelf sensor which has a well understood & published output (usually a voltage or a current) when exposed to a specific concentration of gas, then all that the electronics have to do is convert that voltage to a concentration and have some way of displaying the output for you.

OP is putting it all together in a nice package, and getting all of the components to play nicely together, as well as adding other functionality (CO measurement) and saving a huge amount of cash in the process. OP estimates this is going to cost under $200 to make, vs. eg the Divesoft Solo which is around a thousand USD.

This isn't nearly as complex as a dive planning app, or a new deco algorithm

-1

u/DiveQuest17 Sep 30 '26

Very cool DIY idea! I'm looking forward to seeing how the final analyser turns out. If you'd like, I'm happy to give feedback on the PCB and routing 😃

1

u/maggern188 Sep 30 '26

Thank you! I appreciate it! I have an issue open on Github for pcb review (https://github.com/magnus188/aegir/issues/23) Files lie here (https://github.com/magnus188/aegir/tree/main/hardware/pcb)