Giter Site home page Giter Site logo

bonedaddy / bleexposurenotificationbeeper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kmetz/bleexposurenotificationbeeper

0.0 2.0 0.0 18 KB

A simple COVID-19 exposure notification detector for ESP32.

License: MIT License

CMake 21.91% C++ 55.37% Python 22.72%

bleexposurenotificationbeeper's Introduction

BLE Exposure Notification Beeper

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.

Build your own

You need

  1. Any ESP32 board (like a WEMOS D32 or TTGO ESP32, preferrably with a LiPo battery controller).
  2. A 3V piezo buzzer (a simple speaker or headphones will also work).
  3. Optionally a LED.
  4. Optionally a small 1-cell LiPo battery.
  5. A nice case :)

Wiring

ESP32 pin goes to
GPIO 0 LED (+)
GPIO 2 Buzzer (+)
GND LED (-), Buzzer (-)
  • Pins can easily be changed in code (src/main.cpp).

Flashing the ESP32

If you don't have PlatfomIO installed, you can flash precompiled binaries directly with esptool.py.

Using PlatfomIO

  • Simply open the project and upload.
  • Or via command line: platformio run -t upload
  • You may need to install the arduino-esp32 platform and the lbernstone/Tone library first.

Using esptool.py

  • Install esptool.py: pip install esptool
  • Download the latest binaries.
  • cd into the directory where the (unzipped) binaries are located.
  • Flash using the following command:
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
  • You may need to define your serial port with something like --port "/dev/cu.usbserial-0001" if esptool.py doesn't automatically find it.
  • Some ESP32 boards require you to press (and hold) the flash button until flashing begins.

bleexposurenotificationbeeper's People

Contributors

kmetz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.