Contact tracing with a Raspberry Pi Zero-W

栏目: IT技术 · 发布时间: 5年前

内容简介:Contact tracing via smartphone apps has been widely touted as an important way to control and limit the spread of the COVID-19 epidemic. However, basing contact-tracing on phone apps has several limitations. Here are instructions for constructing a contact

Contact tracing via smartphone apps has been widely touted as an important way to control and limit the spread of the COVID-19 epidemic. However, basing contact-tracing on phone apps has several limitations. Here are instructions for constructing a contact tracing device prototype with a Raspberry Pi Zero-W . The constructed device is compatible with the Apple/Google Bluetooth contact tracing specification. It runs the Epidose software, which is based on the DP3T "unlinkable" design.

Materials

Contact tracing with a Raspberry Pi Zero-W

Required materials

Assemble the following materials:

  • Raspberry Pi Zero-W
  • Micro SSD card (Minimum recommended size 8 GB)
  • Small (3mm) red LED
  • 330 Ohm, 0.25 W resistor
  • Single SPST momentary push button; users press this to authorize the upload of their contacts to the Health Authority.
Contact tracing with a Raspberry Pi Zero-W

Circuit diagram

The objective of this construction is to provide the Raspberry Pi with a switch to authorize the contact upload and a LED to indicate that a user is at risk. The circuit diagram above shows this setup.

Connect the resistor to the LED

Contact tracing with a Raspberry Pi Zero-W

Resistor LED connection

Solder one end of the resistor (it doesn't matter which) to the LED's cathode (the shorter of the LED's two wires) to obtain a 17mm long connection. The connected assembly should be able to fit in pins 20 and 40 of the Raspberry Pi.

Isolate the LED-resistor connection

Contact tracing with a Raspberry Pi Zero-W

Isolating the connection

Cut 17mm of the smallest heat-shrink tube that can fit around the resistor and slide it to cover the entire LED-resistor connection. Heat it to shrink.

Solder components on the Raspberry Pi

Contact tracing with a Raspberry Pi Zero-W

Assembled Raspberry Pi

  • Solder the free end of the LED to pin 40.
  • Solder the free end of the resistor to pin 20.
  • Solder the push button between pins 14 and 10 (orientation isn't important).

Power up and install the Epidose software

  • Connect the Raspberry Pi to a power source. A power bank can make this setup portable.
  • Follow the instructions in the Epidose repository repository to install and configure the software.
  • You can test the hardware's operation by running the command sudo venv/bin/python epidose/device/device_io.py -t . This allows you to toggle the LED by pressing the button. Press Control-C and press the button to terminate the program.
Read and post comments , or share through   

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

第三次工业革命

第三次工业革命

[美] 杰里米•里夫金(Jeremy Rifkin) / 张体伟 / 中信出版社 / 2012-5 / 45.00元

第一次工业革命使19世纪的世界发生了翻天覆地的变化 第二次工业革命为20世纪的人们开创了新世界 第三次工业革命同样也将在21世纪从根本上改变人们的生活和工作 在这本书中,作者为我们描绘了一个宏伟的蓝图:数亿计的人们将在自己家里、办公室里、工厂里生产出自己的绿色能源,并在“能源互联网”上与大家分享,这就好像现在我们在网上发布、分享消息一样。能源民主化将从根本上重塑人际关系,它将影响......一起来看看 《第三次工业革命》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具