Badgetastic is a synergistic exercise in awesomeness for thrill seekers. Come one come all. Making a dope AF badge for BHV @ DEF CON 31. If you don't get the reference: https://www.youtube.com/watch?v=d0VO-zi5EgY
Please be advised that the badge reader is solely intended for visualization purposes and should not be utilized to conduct any heart measurements intended for clinical or medical applications.
Here are the basic parts that were used during development of the badge:
Wiring:
- HR Monitor (VIN/RPi3V3, GND/RPiGND, SCL/RPiGP17, and SDA/RPiGP16)
- LEDs (5VDC/RPiVSYS, GND/RPiGND, DIN/RPiGP15 or RPiGP22)
- Download the MicroPython UF2 file: https://micropython.org/download/rp2-pico/rp2-pico-latest.uf2
- Hold BOOTSEL while connecting to your computer via micro-USB cable
- Device will reset and then you can use Thonny but it kind of stinks. I use Visual Studio Code for proper version control / IDE.
- Connect to the pico given the tty interface
rshell -p /dev/tty.usbmodemXXXXXX --buffer-size 512
- Sync your local changes (assuming you have the firmware repo pulled down locally)
rsync -m . /pyboard
- Connect to the REPL shell
repl
- Soft reboot the pico to run main.py
CTRL-D
- To exit you can press CTRL+C and to leave the repl shell you need to press CTRL+X
cadlab is cool: https://cadlab.io/project/26426/master/files