A simple COVID-19 exposure notification detector for ESP32.
Allows you to build a simple device that beeps and flashes an LED whenever someone using a COVID-19 warning/tracing app that uses Bluetooth LE Exposure Notifications, like the german Corona-Warn-App, is seen nearby.
Notifiers (nearby devices with a warning app) are remembered for 20 minutes so it only beeps for newly detected ones. Note that the IDs will change every 15 minutes or so for privacy reasons, triggering new beeps.
ESP32 pin | goes to |
---|---|
GPIO 0 | LED (+) |
GPIO 2 | Buzzer (+) |
GND | LED (-), Buzzer (-) |
src/main.cpp
).If you don't have PlatfomIO installed, you can flash precompiled binaries directly with esptool.py.
platformio run -t upload
pip install esptool
cd
into the directory where the (unzipped) binaries are located.esptool.py \
--chip esp32 \
--baud 460800 \
--before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect \
0x1000 bootloader_dio_40m.bin \
0x8000 partitions.bin \
0xe000 boot_app0.bin \
0x10000 firmware.bin
--port "/dev/cu.usbserial-0001"
if esptool.py doesn't automatically find it.