Design Specification
Environmental Detection Device (EDD)
Christian Doyle, Joshua Wagner, and Logan Howell
Owner: Christian Doyle
June 9th, 2022
Version 1.0
Revision History Block
Revision # | Date | Revision contents | Author of updates |
0.1 | 10/21/2021 |
| Christian Doyle |
0.2 | 10/30/2021 |
| Christian Doyle |
0.3 | 11/14/2021 |
| Christian Doyle |
0.4 | 11/28/2021 |
| Christian Doyle |
0.5 | 1/23/2022 |
| Christian Doyle |
0.6 | 2/20/2022 |
| Christian Doyle |
0.7 | 04/10/2022 |
| Christian Doyle |
0.8 | 05/31/2022 |
| Christian Doyle |
0.9 | 06/05/2022 |
| Christian Doyle |
1.0 | 06/09/2022 |
| Christian Doyle |
Table of Contents
3.11: Microcontroller/Bluetooth module 11
3.121 Multichannel gas sensor 11
4.3: Human Interface Design: 14
5: Project Bill of Materials (BOM) 16
The goal of this project is to design and create a wearable, low-cost, battery-powered & Bluetooth-enabled device that uses sensors to measure and record exposure levels of a variety of hazardous gasses and compounds that first responders encounter during emergency scenarios.
In this document, one can find a description and diagram of the high-level architecture of this device, as well as that of its low-level components. This document will also describe the architecture of the firmware used by the device’s microcontroller and the human interface which the device uses.
This document is designed to be a resource for any person interested in the architecture and functionality of the Environmental Detection Device or any person looking to implement the device, and in essence can serve as a training guide for those people.
With this specification, one will be able to understand the architecture of the Environmental Detection Device, ensure that it meets their requirements, and have a reference for future projects that accomplish a similar task.
This document should be read by someone with a technical background who has experience developing and working with PCBs and device firmware, implementing Bluetooth, and a general knowledge of engineering concepts.
First responders, such as firefighters, have frequent encounters with a variety of gasses and toxins during emergency situations. Many of these are known to be dangerous to humans for various reasons, such as being lung/eye irritants and being carcinogenic. These toxic gasses are especially dangerous considering many of them are colorless and\or odorless. As a result of these risks firefighters have a 9% higher chance of being diagnosed with cancer and a 14% higher chance of dying from cancer when compared to the general population according to research from the CDC and NIOSH. Therefore, it is important to have a device to monitor what these first responders are exposed to so that they can be properly treated and steps can be taken to reduce their exposure. The Environmental Detection Device fulfills this need by measuring the levels of a variety of gasses and toxins and communicating these values to a system in which they can be monitored, via Bluetooth.
With the Environmental Detection Device we will be able to infer the concentrations of:
Compound | Range |
Carbon Monoxide (CO) | 1 – 1000ppm |
Equivalent Carbon Dioxide (eCO2) | 400 ppm - 60000 ppm |
Oxygen (O2) | 0-25% |
Nitrogen Dioxide (NO2) | 0.05 – 10ppm |
Ethanol | 10 – 500ppm |
Hydrogen (H2) | 1 – 1000ppm |
Ammonia | 1 – 500ppm |
Methane | >1000ppm |
Propane | >1000ppm |
Isobutane | >1000ppm |
VOCs | 0 ppb - 60000ppb |
Hardware Diagram of Environmental Detection Device
Front and back of PCB board
High-level diagram of Environmental Detection Device
The diagram above shows the high-level architecture of the Environmental Detection Device. The microcontroller, with our custom firmware, communicates with the gas and toxin sensors and sends the measured values via Bluetooth so that they can be recorded or monitored in real-time.
The sensors are connected to the microcontroller, which is where they communicate the gas values. The microcontroller also has a Bluetooth module so it can transmit these values to another device. All components are connected to the switch, which connects to the battery pack through a 5V buck converter. This acts as the power supply. Power may also be supplied through the USB port on the microcontroller.
The Arduino Nano 33 IoT acts as our Bluetooth microcontroller for the device. The main function of this microcontroller is to read gas/toxin values from the sensors and compare them to specific threshold values. Depending on whether the read gas/toxin levels exceed one or more of the specified thresholds, the microcontroller may signal to the RGB LED to change color and indicate a warning or GTFO situation. This microcontroller is also responsible for sending gas/toxin levels, as well as the measured temperature, via Bluetooth to an external receiver.
For the multichannel gas sensor used in the device, we used the Adafruit MiCS5524 multi gas sensor in our integration. This multi gas sensor can detect CO, C2H6OH(Ethanol), H2, NH3(Ammonia), CH4(Methane). Platforms supported: Arduino.
For the VOC/eCO2 sensor, we used the Grove SGP30 sensor. The input voltage for the sensor is 3.3-5V. The output range is 0-60000ppb for TVOC, and 400-60000ppm for CO2eq. Sampling rate for both substances is 1HZ. Platforms supported: Arduino and Raspberry Pi. Default I2C address: 0x58.
For the O2 sensor in the device, we used the Grove MIX8410 sensor. The input voltage for the sensor is 3.3-5V. The temperature range is -20 oC~50 oC. The sensitivity is 0.05~0.15 mA(in air). It takes 20 minutes for the sensor to preheat. It can measure between 0% and 25% oxygen. The sensor’s “detect life” is listed as 2 years. Platforms supported: Arduino and Raspberry Pi.
For the temperature sensor in the device, we used the TMP36 sensor. This sensor outputs an analog voltage that is proportional to the ambient temperature. The voltage input range for this sensor is between 2.7V and 5.5V. The output range for the sensor is between 0.1V (-40°C) and 2.0V (150°C) with an accuracy of 2°C.
The diagram above shows the firmware architecture of the Environmental Detection Device. The gas levels and temperature are communicated to the microcontroller. The firmware checks the values of all these gasses/toxins to see if they are within a range that should trigger the GTFO light or the warning light, which is done by sending a signal from the microcontroller to the RGB LED. If they are, then this will trigger the GTFO light or warning light depending on which threshold has been exceeded. If not, then the firmware will trigger the normal “on” state light. Lastly, the firmware will transmit the gas/toxin values and temperature via Bluetooth. This entire procedure will be performed repeatedly at a specified interval.
One of the primary objectives of the hardware design is to make the device as compact as possible. The only hard restraint is that it must be wearable.
Components planned for use are as follows:
The device has an on/off switch and USB charging port. The RGB LED is the only data indicator on the hardware itself giving simple data based on the highest concentration of detected gas in the area.
Software is written with Arduino. The objective of the software is to relay the detailed information from the sensors through Bluetooth to a receiver to display them in detail. Additionally, the software will work in tandem with the microcontroller to monitor gas levels and control a RGB LED based on the highest concentration of all measured substances.
For the interface, we have a simple communication method to avoid confusion in intense emergency situations. The device has a RGB LED that shines in different colors based on the highest concentration of detected gas in the area. An “On/Off” switch is placed in a convenient spot on the device and the “On” status of the device can be determined by the presence of light being emitted from the LED. There are three basic levels communicated from the LED: safe, caution, and GTFO. The system is intended to be worn somewhere on the user’s body where it can sample air around the user. The system is not intended to be used in liquid environments. For detailed sensor information, the device can be paired with Bluetooth to a display. Subject to range of the Bluetooth. The device will only require knowledge of the color code by the wearer.
List of Required Components:
Total cost: $239.38 (including extra parts)
Cost of parts: $158.30
Due to the situations this product is intended for use in, it is imperative that there is no significant error in detection or in communication of the work, as it could lead to the injury or even death of the users. The best way to mitigate this possibility is to perform thorough testing of the device, and in the event that the device should fail: make it obvious to the user that something is wrong with the machine. This could be done through a failsafe or possibly redundant sensor testing and reporting discrepancies. At the least, a lack of measurement variation for a period of time could be detected and a warning given.
As a secondary concern, failure of the measurement system could result in a responder being unable to properly file for medical care based on the substances they have been exposed to. The mitigation being the same as above: don’t have the device fail.