This is the implementation of an open hardware smart beer coaster. As a core principle the beer coaster is simply a battery powered scale with LEDs and BLE. These components enable a variety of interesting applications that can be implemented on top of the provided hardware.
Currently the default app implementation is a hardcoded rainbow pattern, which gets dimmed relative to the analog input value of the force sensor's measurement. Due to part to part variance on the assembled PCBs the analog values can be different, which means the internal thresholds have to be adapted between PCBs.
The core component to allow for weight measurements is the piezo-electric force sensor. This sensor translates the force transferred from the coaster's feet into an electric signal, which can be used by the ESP32-C3 microcontroller.