I drive a Crown Victoria Police Interceptor. It is old. The only way I can tell if it has issues is through the instrument cluster.
When I don't drive for extended periods, the battery can drain to a harmful level. I needed an alert system for when the battery needs charging to avoid killing it (again, oops).
But, third-party battery monitor systems require a nearby Phone and Bluetooth. This is a problem.
- GPIO screw terminal block with adjustable voltage divider
- Low Iq LDO regulator
- High accuracy temperature sensor
- USB-C
- Direct USB Serial/JTAG control without a USB to UART IC
The PCB was fabricated through JLCPCB
- JLCPCB's assembly service does not have the required components in their inventory. I assembled mine myself.
Components were ordered from Mouser Electronics. You can find the complete bill of materials in the KiCad project.
- Deep sleep to reduce power consumption
Clone the repository and flash the microcontroller using the PlatformIO IDE Visual Studio Code extension.
Fill in your Home Assistant URL, Long Lived Access Token, Wi-Fi SSID, and Wi-Fi Password in include/secrets.h
- esp-ha-lib
- FreeRTOS
You can modify the program to use a web server other than Home Assistant easily. I use it for other IOT devices, so it was useful to incorporate into this project.
Voltage accuracy is around ± 0.1 V
Power consumption is still being evaluated