Repository navigation
Adds "SENSOR_NAME" and "BATT_VOLTAGE" to K6P and S1 JSON packets.
Note: if submodule isn't added for config script, some errors may be encountered. See working with submodules for solutions. Or quickly run git submodule update --init --recursive
Building From Source
To configure firmware for preset network before uploading use: pio run -e config-firebeetle32 -t upload
Deployment
PlatformIO Options
With laptop connected to Data Gator, build and upload the source code with:
- VSCode Plugin
- OR
pio run -t uploadfrom the command line - OR Espressif Flash Tool
Espressif Flash Download Tool
To flash the linked firmware, use the Espressif Flash Download Tool(Windows) from here.
-
Download and open Flash Download Tool. Also download the binary file (
.bin) linked below. -
Select ESP32 as the chip. Leave all other options as default and click "Okay".
-
Open the binary file by clicking the three dots button next to the top entry. For each binary loaded, enter an offset (ex.
0x10000) in the far right field on the same line. This sets the program to be written to the memory block.bootloader.binshould be flashed with offset0x1000partitions.binshould be flashed with offset0x8000firmware_v#.#.#.binshould be flashed with offset0x10000
-
Click the check box next to the file selector field for each loaded binary to be flashed.
-
Next, connect the Data Gator board via USB to your laptop. Open device manager to see which COM port the USB device is connected to.
-
Select that COM port in the Flash Download Tool.
-
Click "Start". The tool should SYNC, then flash the firmware to the device. Do not disconnect until it is done. Once finished, use the PlatformIO serial monitor or other serial monitor to make sure the device is running the correct firmware.
Supported Sensors
| Sensor | Link |
|---|---|
| Meter Teros 10 | product link |
| Atlas Gravity pH | product link |
| Atlas EZO-pH | product link |
| Minew S1 BLE T&H | product link |
| KKM K6P | product link |