Twitter icon
Facebook icon
LinkedIn icon
Google icon
Reddit icon
StumbleUpon icon icon

TraceX-Contact Tracing & Social Distancing Ecosystem

Added to IoTplaybook or last updated on: 09/04/2020
TraceX-Contact Tracing & Social Distancing Ecosystem


Before I begin, let's watch the teaser video.

Since COVID-19 break out, the entire world went into isolation, offices were closed, factories were shut down, airports are locked down. This brings the fear of big financial crisis and recession. People started realizing locked down helped to flatten the curve but they can't afford to continue any longer. It's time to face it and live with it.

Image credit -
Image credit -

As governments and states are considering to lift the lockdown and employers are planning to bring their workforce back, our safety is the foremost priority for everyone. We need a smart mechanism to trace someone who was exposed to COVID-19 to stop the spread in the entire workforce plus a mechanism to enable/enforce social distancing guidelines recommenced by CDC.

What is social distancing?

Source CDC website

Limiting face-to-face contact with others is the best way to reduce the spread of coronavirus disease in 2020 (COVID-19).

Social distancing, also called “physical distancing, ” means keeping space between yourself and other people outside of your home.

To practice social or physical distancing stay at least 6 feet (about 2 arms’ length) from other people.

In addition to everyday steps to prevent COVID-19, keeping space between you and others is one of the best tools we have to avoid being exposed to this virus and slowing its spread locally and across the country and world.

Limit close contact with others outside your household in indoor and outdoor spaces. Since people can spread the virus before they know they are sick, it is important to stay away from others when possible, even if you—or they—have no symptoms. Social distancing is especially important for people who are at higher risk for severe illness from COVID-19.

Why social distancing is so important?

COVID-19 spreads mainly among people who are in close contact (within about 6 feet) for a prolonged period. Spread happens when an infected person coughs, sneezes, or talks, and droplets from their mouth or nose are launched into the air and land in the mouths or noses of people nearby. The droplets can also be inhaled into the lungs. Recent studies indicate that people who are infected but do not have symptoms likely also play a role in the spread of COVID-19.

It may be possible that a person can get COVID-19 by touching a surface or object that has the virus on it and then touching their own mouth, nose, or eyes. However, this is not thought to be the main way the virus spreads. COVID-19 can live for hours or days on a surface, depending on factors such as sunlight, humidity, and the type of surface. Social distancing helps limit opportunities to come in contact with contaminated surfaces and infected people outside the home.

Although the risk of severe illness may be different for everyone, anyone can get and spread COVID-19. Everyone has a role to play in slowing the spread and protecting themselves, their family, and their community.

Well, this is well understood that social distancing is the way to stop spreading the infection when we are back to our usual social life again. But how do we actually do it?

  • Go to grocery stores with measuring tape? :)
  • What if we come close to a stranger accidentally? We should panic and go to the doctor?
  • What if someone is diagnosed positive? Do we know whom that person met in the last 14 days and transmitted the virus?

The answer is Contact Tracing

Things used in this project

Hardware components

Nano 33 BLE Sense
Arduino Nano 33 BLE Sense
This MCU is the heart of the smart band. I am using on board sensors for temperature, humidity and air pressure readings, fall detection using on board IMU sensor.
× 1 Arduino
MAX30102 High-Sensitivity Pulse Oximeter and Heart-Rate Sensor for Wearable Health
Maxim Integrated MAX30102 High-Sensitivity Pulse Oximeter and Heart-Rate Sensor for Wearable Health
I am using this low cost sensor to measure blood pressure or BPM
× 1

Maxim Integrated

0.96" OLED 64x128 Display Module
ElectroPeak 0.96" OLED 64x128 Display Module
OLED display to show readings on smart band
× 1


Bluetooth 4.0 Module. Separate from Nano 33 BLE. This module is used solely for transmitting iBeacon advertisement.
× 1 Amazon
LiPo 3.7v battery
× 1 Amazon

Software apps and online services

IOTA Tangle
IOTA Tangle


AWS Lambda
Amazon Web Services AWS Lambda
AWS DynamoDB
Amazon Web Services AWS DynamoDB
AWS Pinpoint
Swift Programming Language

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
10 Pc. Jumper Wire Kit, 5 cm Long
10 Pc. Jumper Wire Kit, 5 cm Long


So, what is Contact Tracing?

[Source UT Austin]

Contact tracing is a very lengthy process that requires many steps, but when done successfully, it can interrupt the ongoing transmission of a disease and reduce the spread of infection. Contact tracing helps catch and control new outbreaks before they are able to grow, effectively stopping the disease in its tracks.

When deployed early enough, contact tracing can often make a difference in the dynamics of an outbreak. As in the case of South Korea, whose rapid response involved enhanced testing availability, safe COVID-19 medical facilities, and a government-run, technologically advanced contact tracing system. South Korea was able to lower the number of new infections from 851 on March 3 to 11 infections as of April 21. Their mortality rate from COVID-19 hovers around 2%.

Data gathered from contact tracing also helps epidemiologists learn more about a disease and its transmission in a particular population, which is used to track impact regionally, nationally, and globally. Enhancing contract tracing funding and efforts can help keep communities safe from outbreaks and death rates low..

Our concerns about Contact Tracing

  • Privacy - First thing comes in mind with contact tracing is sharing GPS location through smart phones. But recent poll in the United States reveals 50% of smartphone users said they would not use Apple or Google’s contact tracing app, and only 43% said they trusted the big tech companies with their information. So clearly, people are scared to share their GPS coordinates with government agencies or big tech companies.

  • Cross border data sharing - COVID-19 is a global crisis and contact tracing data must be shared across border. But there is not trust-less system to share data between two countries or government agencies.

  • Data transparency and immutability - Another big issue we have to deal with is data transparency and immutability. We need to make sure no traces are deleted or modified or hide for any reasons.

Presenting TraceX, most affordable contact tracing solution which solves all the above problems with contact tracing, cross border data sharing and data transparency.

TraceX - Contact tracing with a pulse oximeter

Only tracing

TraceX is a wearable bracelet accompanying by a mobile

How does it work?

The principal is very simple and explained in 3 simple comic screens below. Please watch the video for a more detailed explanation.



Later that day

TraceX app alerts user when someone is diagnosed positive and was in contact in last 14 days

How Does It Cost?

The whole idea behind my innovation is keeping the cost low. Using the beacon protocol and BLE device we can keep the cost to less than $10 and retail at less than $20. This is a device everyone would carry like they carry wallets. We can't make a device worth a few hundred dollars and expect common citizens to buy.

Features at a glance

  • Enable social distancing by on-screen notification and beep as well as vibration on the bracelet.
  • Enable contact tracing by exchanging secret data, iBeacon advertisement.
  • Securely and anonymously record new cases with the option to share coordinate and local traces to help frontline health care providers and governments to proactively take necessary steps to disinfect and quarantine the place, object, or persons.
  • Each case is recorded in an immutable IOTA tangle making it tamper proof.
  • On-device pulse oximeter sensor to trace BMP and SpO2 level. Data is streamed to TraceX app over Bluetooth.

  • On-device temperature, humidity and pressure sensor to monitor the surroundings of a person. This is very useful for a senior citizen to monitor remotely maintaining social distancing guidelines.

  • On click device activation. Simply scan the QR code on TraceX app and you are ready to go.
  • Push Notification - Realtime notification as soon as user is identified at risk. No need to wait for the symptoms to surface.

TraceX is available in two variants.

  • Lite is the most affordable contact tracing enabled wearable. Build cost is less than $8
  • Pro is loaded with sensors such as pulse oximeter, OLED display, IMU for fall detection/measuring steps, environmental sensors to measure humidity, temperature, and pressure with Bluetooth connectivity. Arduino Nano 33 BLE sense is the heart of the device. The build cost is around $40.

Choice 1 - TraceX Lite ( Only trace enabled iBeacon )

Choice 1 - Most affordable - without Pulse Oximeter, Temp & Humidity sensor

Choice 2 - TraceX Pro ( With Pulse Oximeter and MEMS sensors with Bluetooth )


Before we deep dive, let's watch the demo

High-Level Design / Architecture

Considering the cost, scale, and availability I chose AWS serverless architecture. Backend is written in NodeJS/ExpressJS, deployed to Lambda. User profile and device token ( for psh notification ) are stored in dynamoDB. Backend is accessed as REST API through API Gateway. Lambda connects to IOTA Tangle.

Why IOTA ?

IOTA has fundamentally reengineered distributed ledger technology, enabling secure exchange of both value and data, without any fees. IOTA is not Blockchain but more than a Blockchain. No blocks. No Miners. When you send an IOTA transaction you validate two other transactions. This allows IOTA to overcome the cost and scalability limitations of blockchain. IOTA has endless possibilities and promises. If you are not familiar with it, I would strongly encourage you to visit their website

Case recorded in IOTA Tangle

As IOTA is built on distributed ledger technology, fundamentally data is immutable. This makes it a perfect fit for my use case as I like to record the traces as immutable records. Moreover, as there is no real owner of the data, it breaks the cross border barrier. Any healthcare organization, government agencies with a valid secret key can look up data and integrate with their own system. There is no trust issue as no one has full control over the data to alter.

TraceX Mobile Application

TraceX mobile app is super easy to use and loaded with all the features needed for contact tracing at a high scale.

The dashboard gives you all the information you need right at your fingertip. You can monitor your BPM and environment just registering the bracelet with TraceX app.

TraceX Home screen

Users can see a graphical representation of traces and proximity through the app as well.

Trace graph

Trace log

Use report the case through the app and elect to share coordinate.


Arduino Nano 33 BLE code for wearable 


Mithun Das

  Mithun Das

  A tech enthusiast who loves creating, sharing, evaluating, and learning new technology.