I've changed the design for the analyser from Arduino to ESP32, which allows better graphics. It's also possible to load newer firmware versions.
Changes in the layout:
- Arduino nano has been replaced with ESP32 (30-pin WROOM version)
- Two color screen options: ST7789 (1.3" 240x240) and ILI9431 (2.2" or 2.4" 320x240). The ST7789 display has no CS pin, in that case no connection from pin D5 is required.
- Either use push buttons or capacitive touch buttons (type: TTP223). Advantage of the touch button: no moving parts and they work through a (polycarbonate) display cover.
- Lithium ion battery powered. Layout will get an update once the wireless charging option has been tested.
How to get the analyser up and running:
- Build the board. Solder the MD61 or MD62 sensor to the 2k2 resistors and the 500 Ohm potmeter.
- Add the ESP32 board to the software package Arduino IDE on your computer
- Load the sketch: File -> Examples -> ArduinoOTA -> OTAwebUpdater
- In the sketch, change 2 lines and fill in the SSID and key of your own WiFi network where it says xxx:
-
Code:
const char* ssid = "xxx";
const char* password = "xxxx";
Upload the image to ESP32, it will connect to your WiFi network and start as a webserver. Check the serial monitor which IP address is assigned.
- In your browser, go to http://<ip address>/serverIndex
- For the ST7789 display, load this firmware file (note: I will discontinue the firmware for this display)
- For the ILI9341 display, load this firmware file
After the upload, the analyser will reboot and you'll see the Scubaboard logo. Use the left button to walk through the menu, use the right button to select an option.
In the Firmware menu, select Network to add your SSID and Key (settings will be remembered) by following the instructions on the screen. (Only the options in
this menu require an internet connection)
Next, choose
Get license.
Finally, choose
Upgrade firmware. A fully functional firmware will now be downloaded and installed.
If you built the board with the helium part, turn helium on in the settings.
If you built the board with the CO part, turn CO on in the settings.
If you want the numbers in imperial, change the setting from metric to imperial.
Note: MOD and Equivalent Air Density Depth are still work-in-progress.
Once done, calibrate the analyser with 100% oxygen and 100% helium. The carbon monoxide doesn't need to be calibrated.
Why the option
Get license ?
To prevent commercial exploitation, I've added the Scubaboard logo. Next to that, the firmware file requires a license to prevent unlimited copying. Send me a pm with the time&date you requested the license and I'll enable your analyser (when your post count is higher than 10).