A small ESP32-based device that fetches the live Bitcoin price from the CoinGecko API and displays it on a TFT screen, refreshing every few seconds.
- Live BTC price (EUR) via the CoinGecko API
- TFT display output with error handling (WiFi and API failures shown on screen)
- Non-blocking update loop using
millis()timing - WiFi credentials kept out of source control via a local secrets file
| Component | Model |
|---|---|
| Microcontroller | ESP32 DevKit V1 |
| Display | GERUI 1.8" TFT, 128x160, ST7735 driver, SPI |
Wiring diagram coming soon.
- PlatformIO (VSCode extension or CLI)
- ESP32 board and TFT display wired and configured for
TFT_eSPI
- Clone the repository
git clone https://github.com/<your-username>/BTC_Notifier.git
cd BTC_Notifier- Create your secrets file from the template:
cp include/Secrets.example.h include/Secrets.h- Fill in your WiFi credentials and API URL in
include/Secrets.h:
const char *WIFI_SSID = "your-ssid";
const char *WIFI_PASSWORD = "your-password";
const char *COINGECKO_API_URL = "https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=eur";- Build and upload:
pio run --target upload- Open the serial monitor to watch connection and price logs:
pio device monitorBTC_Notifier/
├── include/
│ ├── Secrets.example.h # Template for WiFi credentials & API URL
│ └── Secrets.h # Your actual credentials (gitignored, not committed)
├── src/
│ └── main.cpp # Main application logic
├── platformio.ini # PlatformIO project configuration
└── README.md
- Alternative crypto tracking alongside BTC
- Button-based toggle between assets
- Price change indicator (colour-coded)
- Wiring diagram
MIT