Installing the Firmware on an ESP32¶
Installation using BrewFlasher¶
The easiest way to install TiltBridge is using BrewFlasher. BrewFlasher is a standalone application for Windows and Mac OS which allows flashing the same set of firmware that is available through Fermentrack without having to delve into the command line. It is free, easy to use, and is recommended for most users.
To install using BrewFlasher simply connect your ESP32 to your computer, download and open BrewFlasher, and follow the prompts on screen.
Installation using Fermentrack¶
Installation via Fermentrack is incredibly easy as it leverages the existing “firmware flash” workflow. To flash via this method simply log into your Fermentrack installation, choose “Flash Device” from the devices menu, select the “ESP32” device family, and follow the prompts. When prompted to choose a firmware to flash simply choose “TiltBridge”.
Installation using esptool.py¶
TiltBridge can also be installed using esptool.py. Although slightly more involved, this method does not require the use of a Raspberry Pi running Fermentrack.
The command below will automatically detect & flash any Espressif chips connected to the computer running esptool.py. Please leave only the device you are setting up connected to the computer to avoid the risk of misflashing.
- Install esptool.py using the instructions here.
- Download all five of the appropriate TiltBridge firmware files for your controller from GitHub and rename them to the following - spiffs.bin, firmware.bin, partitions.bin, boot_app0.bin, and bootloader_dio_40m.bin
- Connect the ESP32 board to the computer you will be using to flash
- Open a command prompt and run the appropriate flash command
The appropriate flash command for your build depends on the version firmware you are using. You may need to tweak the command, but sample flash commands are as follows:
- “TFT” Firmware:
esptool.py --chip esp32 --before default_reset --after hard_reset write_flash 0xe000 boot_app0.bin 0x1000 bootloader_dio_40m.bin 0x10000 firmware.bin 0x8000 partitions.bin 0x910000 spiffs.bin
- “OLED” Firmware:
esptool.py --chip esp32 --before default_reset --after hard_reset write_flash 0xe000 boot_app0.bin 0x1000 bootloader_dio_40m.bin 0x10000 firmware.bin 0x8000 partitions.bin 0x310000 spiffs.bin