Skip to the content
2 layers36 × 29.3 mmBle mvp 1b rev0, the printed circuit board in 3D

Repo to implement the advertise and scanner portion for bluetooth to enable encounter/exposure tracing (e.g. Apple/Google / TCN / etc...) on a nRF52840 based battery powered dongle/device

Size
36 × 29.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
71
Nets
93
Pads
327
Tracks, vias
785, 38
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
14 Apr 2020
Updated
11 Jun 2020

Overview

Ble mvp 1b rev0 is an open-source printed circuit board by saewoonam, from the saewoonam/ble_adv_covid repository on GitHub. It is a 2-layer board of 36 × 29.3 mm with 71 parts on 93 nets, routed with 785 tracks and 38 vias.

It is built around the MX25R6435FM2IL0, BAT-HLD-001 and LP5907MFX-3.3, with the LTC4054LES5-4.2#TRPBF, PCF8523T and PRTR5V0U2X among its other parts. Its parts include 30 capacitors, 10 resistors, 9 ICs, 5 diodes and 4 inductors. It belongs with the radio and wireless boards and the nRF52 and nRF5x boards of this library.

Main components

7

README

README.md

nRF5 nordic devices project to implement bluetooth part of Google/Apple contact tracing bluetooth protocol, radio part works for BBC microbit, Adafruit nRF52840 feather, nrf52840 dongle, Particle Gen 3 devices (Argon, Boron, Xenon), Sparkfun Pro nRF52840 mini, and our custom open source hardware we are developing

Apple/Google announcment
Bluetooth spec

Latest codes works using Zephyr Development environment

Nordic Devices, nrf52840 Dongle or nRF52840DK

Code in zephyr/bt_cdc_fs

This version seems to get bt, usb-serial (CDC), and flash memory working together

  1. Works to advertise and scan, encounter BT signals
  2. Logs data to external flash memory when requested via usb serial
  3. Dumps logged data from flash memory to usb serial port when requested
  4. Following commands implemented via usb serial
    • 'r': Toggles on/off streaming raw scans results to serial port
    • 'g': Get data from flash memory and send over serial port
    • 'c': Clear flash memory
    • 'k': Toggles on/off stream of raw ecounter packets to the debugger port
    • 'l': List files on flash memory to debugger
    • 'w': Start writing encounter packets to the flash memory
    • 's': Stop writing encounter packets to the flash memory

For older code look in zephyr/bt_cdc folder

Issues

  1. This works... does not implement anything to flash memory
  2. Stripped out all "helper" code from covid2 code to eliminate memory leak between the BT scan and the CDC
  3. Needs to be stress tested...
  4. Also seems to solve the usb disconnect problem... It recovers when usb is disconnected... Also needs to be stress tested.
  5. Does implement the latest protocol

Old version in zephyr/covid2 folder

Issues

  1. Does not implement latest Apple/Google protocol
  2. BT and CDC are not playing well together.
  3. Device crashes if USB disconnects during serial port transmission

BBC:Microbit

This works and advertises the accelerometer and compass readings instead of a RPI in the google/apple protocol

Code

text
*  Latest version in ubit/zephyr/all_no_fs
*  Other versions with bt, accelerometer, compass separately in other folders
*  Look at README in all_no_fs folder to access data from scanning

Adafruit notes

Implementation notes:

  1. Data is logged in external Flash memory
  2. Data can be fetched by sending commands via usb-serial to the device
  3. time information can be transferred to the device via usb-serial, untested

Things missing for Adafruit

  1. Cryptographic code for calculting RPI
  2. Real time clock for crypto
  3. How to handle error?

Remaining minor issues

  1. Figure out how to port this to the nRF52840 Dongle from Nordic Semiconductors with their SDK so it can be ported to other types of dongles.
  2. The scanner does not seem to continuously receive advertisements... It could be because of the interval settings, but I have not checked carefully. Need to do that.
  3. Check if it can be powered by an external source and still be connected to a computer as needed to retrieve data or sync the clock
  4. Need to sort out the byte order of the UUID.

Requirements

  1. Hardware: Adafruit nRF52840
  2. Libraries: nRF52 Adafruit arduino library

Modifications to nRF52 library

  1. Need to modify files installed by the arduino IDE to run the board. The base location by operating system is
  • macOS : ~/Library/Arduino15/packages/adafruit/hardware/nrf52
  • Linux : ~/.arduino15/packages/adafruit/hardware/nrf52
  • Windows: %APPDATA%\Local\Arduino15\packages\adafruit\hardware\nrf52
  1. Need to replace these two files which are located relative to the base path above in 0.19.0/libraries/Bluefruit52Lib/src
    a. BLEAdvertising.cpp
    b. BLEAdvertising.h
  2. These files are modified so that the advertising data which contains the rotating proximity identifier can be changed easily. The modified files are in the subdirectory modified_files in the repo

Tested with Arduino 1.18.12, nRF52 library 0.19

nRF52840 dongle with nRF5 SDK

Requirements

  1. nRFConnect on computer to program
  2. Uses SoftDevice 7.0
  3. Uses nRF5 SDK v16

Compiler setup

  1. Compiles only with the SEGGER IDE so far, (SaeWoo is using osX).
  2. Look in 'ses' folder in the 'nrf52 dongle/PCA10059' directory
  3. Must set up a global macro to the nRF5 SDK... Go to "Tools" from the menu bar, then go to "Options...->Building -> Build -> Global macros". Must define a 'sdk' macro. For SaeWoo, sdk=/Users/nams/Documents/projects/covid/nrf5/nRF5SDK160098a08e2
  4. Now, the project can be built in the git repo, WITHOUT copying to a subdirectory of the nrf5 SDK.

Issues

  1. The dongle has no memory to log data, so it sends the data back through usb as a serial device
  2. Trouble with CDC_ACM interface... Crashes after a while.. Can't figure out why.

Progress so far

  1. The app compiles in SEGGER IDE. I didn't configure any of the other projects.
  2. The app should compile and emit a covid tracing advertisement packet that is consistent with Apple/Google bluetooth spec.
  3. Sends contact packets over usb serial back to computer

LED OUTPUTS

  1. Multicolor LED: Red periodically to indicate advertising (1 per second)
  2. Multicolor Blue: Inidicate detection of contact via bluetooth
  3. Multicolor Green: Serial port write or other serial port related stuff

Things to do

  1. Implement capability to change advertising packet every 10 to 15 minutes (i.e. RPI)
  2. Crytpo
  3. Changing RPI
  4. Write code to log to an add-on flash
  5. Figure out how to power nrf52 via a battery.

Particle Argon/Boron

Requirements

  1. Developed using DeviceOS 1.5.0
  2. Installed "Particle Workbench"

Issues

  1. Can't access Flash memory for logging... Need to investigate how
  2. Need to figure out how to push logging data to the web for logging into a database for data taking / evaluation

LED output

  1. Blue LED flashes when contact detected

Things to do for testimg

  1. Implement WiFi data logging
  2. For remote testing (no wifi), get flash logging working
  3. Implement scheme to retrieve data from flash memory

Sparkfun pro nRF52840 mini

Requirements

  1. nRF5 Nordic SDK
  2. gnu gcc toolchain, follow sparkfun instructions for setting up

Issues

  1. Only implemented advertising

LED output

  1. Blink when advertising SaeWoo Nam, started 2020-04-13, last edit 2020-04-19

Parts

71
QtyValueFootprintReferences
412pFCapacitor_SMD:C_0201_0603MetricC12, C13, C25, C26
30.1uFCapacitor_SMD:C_0201_0603MetricC8, C9, C30
31uFCapacitor_SMD:C_0402_1005MetricC2, C3, C4
20.01uFCapacitor_SMD:C_0201_0603MetricC6, C31
20.1uFCapacitor_SMD:C_0402_1005MetricC1, C5
2100nFCapacitor_SMD:C_0201_0603MetricC27, C28
210KResistor_SMD:R_0402_1005MetricR5, R6
210uHInductor_SMD:L_0603_1608MetricL2, L3
21pFCapacitor_SMD:C_0201_0603MetricC10, C14
21uFCapacitor_SMD:C_0603_1608MetricC23, C24
232.768KHZCrystal:Crystal_SMD_3215-2Pin_3.2x1.5mmX2, X3
24.7uFCapacitor_SMD:C_0603_1608MetricC20, C22
2D_SchottkyDiode_SMD:D_SOD-123FD1, D2
2ESD4010my_footprints:ESD401DPYRU2, U3
2Ferrite_BeadInductor_SMD:L_0402_1005MetricFB1, FB2
2Jumper_NO_SmallJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP2, JP3
2N.C.Capacitor_SMD:C_0201_0603MetricC11, C17
10Resistor_SMD:R_0201_0603MetricR11
10.01uFCapacitor_SMD:C_0402_1005MetricC16
11.5pFCapacitor_SMD:C_0201_0603MetricC15
11.69KResistor_SMD:R_0402_1005MetricR3
1100pFCapacitor_SMD:C_0201_0603MetricC18
110KResistor_SMD:R_0201_0603MetricR12
115nHInductor_SMD:L_0402_1005MetricL4
11K2Resistor_SMD:R_0201_0603MetricR8
1220Resistor_SMD:R_0201_0603MetricR7
12K2Resistor_SMD:R_0201_0603MetricR9
13.9nHInductor_SMD:L_0201_0603MetricL1
132MHzCrystal:Crystal_SMD_2016-4Pin_2.0x1.6mmX1
1390Resistor_SMD:R_0201_0603MetricR10
14.7uFCapacitor_SMD:C_0402_1005MetricC7
147nFCapacitor_SMD:C_0201_0603MetricC29
1560KResistor_SMD:R_0603_1608MetricR2
1820pFCapacitor_SMD:C_0201_0603MetricC21
1BAT-HLD-0010my_footprints:BAT-HLD-001_smallerGNDU1
1Conn_02x05_Odd_Even0my_footprints:TC2050-IDC-NLFPJ3
1Jumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP1
1LEDLED_SMD:LED_0603_1608MetricD5
1LED_ABRG0my_footprints:LED_APHF1608SEEQBDZGKCD4
1LP5907MFX-3.3Package_TO_SOT_SMD:SOT-23-5U4
1LTC4054LES5-4.2#TRPBF0my_footprints:LTC4054LES5-4.2_TRPBFIC2
1LTC4412xS6Package_TO_SOT_SMD:TSOT-23-6IC1
1MX25R6435FM2IL00my_footprints:MX25R6435FM2IL0IC4
1NO0my_footprints:EVQP7A_J_B_KSW1
1PCF8523TPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmIC3
1PRTR5V0U2XPackage_TO_SOT_SMD:SOT-143D3
1SW_MEC_5G0my_footprints:C&K_PTS810SW2
1Si2307CDSPackage_TO_SOT_SMD:SOT-23Q1
1USB_B_MicroConnector_USB:USB_Micro-B_Molex-105017-0001J1
1nRF52840Package_DFN_QFN:Nordic_AQFN-73-1EP_7x7mm_P0.5mmU5

More from saewoonam/ble_adv_covid

5
  • 2 layers40.7 × 31.3 mmBle mvp 1A rev0, the printed circuit board in 3D

    Ble mvp 1A rev0

    saewoonam/ble_adv_covid

    Repo to implement the advertise and scanner portion for bluetooth to enable encounter/exposure tracing (e.g. Apple/Google / TCN / etc...) on a nRF52840 based battery powered dongle/device

    35 parts10
  • 2 layers40.7 × 28.6 mmBle mvp 1A rev1, the printed circuit board in 3D

    Ble mvp 1A rev1

    saewoonam/ble_adv_covid

    Repo to implement the advertise and scanner portion for bluetooth to enable encounter/exposure tracing (e.g. Apple/Google / TCN / etc...) on a nRF52840 based battery powered dongle/device

    25 parts10
  • 2 layers45.3 × 27.5 mmBle mvp 1A rev3, the printed circuit board in 3D

    Ble mvp 1A rev3

    saewoonam/ble_adv_covid

    Repo to implement the advertise and scanner portion for bluetooth to enable encounter/exposure tracing (e.g. Apple/Google / TCN / etc...) on a nRF52840 based battery powered dongle/device

    19 parts10
  • 2 layers57.8 × 39.3 mmUBit carrier, the printed circuit board in 3D

    UBit carrier

    saewoonam/ble_adv_covid

    Repo to implement the advertise and scanner portion for bluetooth to enable encounter/exposure tracing (e.g. Apple/Google / TCN / etc...) on a nRF52840 based battery powered dongle/device

    14 parts10
  • 2 layers45.3 × 27.5 mmBle mvp 1A rev2-ButtonDaughter, the printed circuit board in 3D

    Ble mvp 1A rev2-ButtonDaughter

    saewoonam/ble_adv_covid

    Repo to implement the advertise and scanner portion for bluetooth to enable encounter/exposure tracing (e.g. Apple/Google / TCN / etc...) on a nRF52840 based battery powered dongle/device

    6 parts10

Similar boards

  • 2 layers73 × 139 mmOpenRPNCalc, the printed circuit board in 3D

    OpenRPNCalc

    apoluekt/OpenRPNCalc

    Open-source and open-hardware scientific RPN calculator

    141 parts414CERN-OHL-P-2.0
  • 2 layers187.5 × 45 mmGamma spectrometer, the printed circuit board in 3D

    Gamma spectrometer

    Motokichirou/gamma-spectrometer

    NaI(Tl) gamma spectrometer: STM32G474 + R1307 PMT + 4-board stack, KiCad schematics, LTspice simulations

    231 parts
  • 2 layers51 × 60 mmRowing Computer, the printed circuit board in 3D

    Rowing Computer

    set321go/OpenRow

    Open Source Rowing Computer

    59 partsMIT
  • 2 layers41 × 32.2 mmUsb uart, the printed circuit board in 3D

    Usb uart

    absmach/synth

    Open-source circuit compiler for engineers and AI agents

    36 parts29Apache-2.0
  • 2 layers83.5 × 66 mmOpen ed Rev.B, the printed circuit board in 3D

    Open ed Rev.B

    krikzz/open-ed

    Open-ED is a very simple and cheap open source Genesis/Megadrive cartridge. The cartridge does not have its own processor or FPGA, it is built in the old school style using only memory and discrete logic.

    82 parts169MIT
  • 2 layers36 × 33 mmNrf52-sensor tag, the printed circuit board in 3D

    Nrf52-sensor tag

    HomeSmartMesh/nrf52_thread_sensortag

    nRF52840 small sensor Tag, Low power design, battery operated

    23 parts41MIT
  • 2 layers26.1 × 19.3 mmBaken, the printed circuit board in 3D

    Baken

    RedBulletTooling/NRF9160-Tracker

    This is hardware project concept of a CR2032 Operated small size LTE-M/NB-Iot GPS tracker

    37 parts15
  • 2 layers33 × 99.1 mmSoilmoisture, the printed circuit board in 3D

    Soilmoisture

    bahildebrand/soil-moisture-pcb

    Capacitive soil moisture sensor routed in KiCad

    9 parts8GPL-3.0

Questions

How big is the Ble mvp 1b rev0 PCB?

It measures 36 × 29.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Ble mvp 1b rev0 use?

71 parts, built around the MX25R6435FM2IL0, BAT-HLD-001, LP5907MFX-3.3 and LTC4054LES5-4.2#TRPBF. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Ble mvp 1b rev0 KiCad files?

From the saewoonam/ble_adv_covid repository on GitHub, at the commit this page was made from: the board is BLEelectronics/ble_mvp_1B-rev0/ble_mvp_1b-rev0.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Ble mvp 1b rev0 design in my own project?

Its repository states no licence, so its author keeps all rights: ask saewoonam before reusing the design.