Skip to content

Final Project

The initial idea is to create a customizable, modular, IoT, on-the-go environmental indoor/outdoor personal monitoring ecosystem.

I worked on this idea in week01 and week03 and I’ve returned back to the final project on week08.

Week01

The environmental personal monitor (EPM) is comprised of a base station and a two (for now) modular devices with specific functions:

  • Micrometric particle concentration measurement (PM10, PM2.5, PM1)
  • Meteorologic physical variables measurement (Temperature, Humidity, Pressure)
  • Cell phone App with control and simple data analysis capability
  • Integrated CO, Smoke and Gas Alarm device (indoor - optional)
  • Noise and Illumination measurement (optional)
  • Air quality forecast information (optional - if there is time)

The ones this project will address first and foremost are in bold.

The base station connects to the internet via wi-fi and to the other devices via wi-fi or/and bluetooth or/and LoRa or/and radio. The devices recharge their batteries via an inductive charging pad or surface. All devices are controlled by a simple cell phone app.

The intended audience for this product would be:

  • Everyone who has the need to know their own personal air quality, whether it may be indoors, outdoors or on the go.
  • People with respiratory conditions to know the quality of the air around them, and empowering them and act accordingly.
  • People with fireplaces and appliances that use gas to know if they have a potentially deadly problem on their hands, and it can also double up as a smoke detector.
  • Everyone working inside all the time during the pandemic and worried about indoor air quality.

I (tried to) sketched this idea by hand. I hope you can understand it! :) I will start with the base station and one device and, if time allows, I will move on to other devices.

Week02

During week02 a made an initial basic sketch of the design (v0.1) of the base station. The initial design idea here was inspired by several organic designs around the circular charging pad to make it emotionally more appealing and interesting. I thought to add to the design, for example, some lotus flower petals or some leafs (left image). I also thought about using an ellipsoidal form (middle left image), a bird’s nest design (middle right right image) or a more organic, tree like structure around the base (rightmost image).

The details of the design construction process are shown on week02 documentation. The complete v0.1 design is pictured below.

I will leave this design at this point. Things than need to be done:

  • Create realistic leafs. I am thinking about a 3D 3 spline leaf design: four going from the middle center down and 3 or 4 going up.
  • Adding some tolerances.
  • Create an alternative design for the base station.
  • Set up places for the leds, PCB, wiring, components.

Week03-07

During these weeks I was too busy to even think about the project. I hope I can, from now on, and especially after the machine design and construction week, to dedicate more time to the final project.

Week08

Updating the initial idea

In week08 I updated my original idea to include more detail.

What would be the functions of each element of the EPM?

  • Base station
  • Inductive charging pad.
  • Wi-fi, BLE and LORA-WAN communication.

  • Alarm monitor

  • Sensing capabilities: VOCs, CO, Gas, Smoke
  • Wi-fi and LORA-WAN communication
  • Battery and integrated inductive coils

  • Indoor/Outdoor/On the Go environmental monitor

  • Sensing capabilities: Temperature, Humidity, Pressure, PMs, CO2, VOCs…
  • Wi-fi, BLE and LORA-WAN communication
  • Ability to detect movement to increase measurements on the go
  • Battery and integrated inductive coils

Week09

What would be the best MC platform for this project?

After some research and reflection I ended up choosing ESP32 as the ideal platform for this project.

The advantages are many namely:

I don’t know yet which specific ESP32 chip I’m going to choose but I’ll see about that later on.

What would be the preferential communication protocol?

Break week

During the break week I was mostly sick with a strong spring allergy :\ but I could think about some designs for a prototyping board. And yes..still at home. :(

After some iterations, I designed a ESP32 board, based on Neil’s design, as shown below.

The new board design, shown below, has:

  • 12 I/O ports
  • FTDI communication
  • 2 3V power pins and 2 5V power pins.
  • reset button
  • programming switch
  • LED light

The idea is to be able to connect several sensor devices at the same time and have a board for other uses and projects. The relevant files are at the bottom of this page.

Week 12

During week 12 I successfully connected an OLED screen to a ESP32 prototyping board. My fabricated board didn’t came out well so I had to do it in the following week.

The following picture shows the wired setup communicating via I²C.

The following video shows the OLED screen output of a “hello world” message just typed on the keyboard.

Week 13

From the board designed in the Break Week, I created a simpler one to fabricate for the output devices week, and corrected a few mistakes. It is basically the same board, but with less I/O pins and a more concentrated design.

The next two pictures show the circuit schematics

and the PCB layout.

Then I fabricated the board in my 1060 milling machine, with the following design rules: 0.3 mm clearance (due to the small footprints of the ESP32) and 0.4 mm tracks.

The fabricated board is shown here. I could only fabricate it on week14 though, and I used it during this week (for now). Anyway, I’ll need a new version of the board for the final project.

After the board is ready, I established a communication via wifi between my own fabricated board and and ESP32 prototyping board. A BME280 sensor was connected to one of them and the other was connected to the OLED screen. The materials I used are depicted in the following picture.

The prototyping board (ESP32 Server) was connected to the BME280 and my board (ESP32 Client) was connected to the OLED screen, as shown in the picture below.

The following video shows the whole system working, showing sequentially the BME280 sensor, the server board, the client board, the OLED display and finally the serial monitor output from both boards. In the last seconds of the video, the system monitor on the upper window is the server and on the lower window is the client.

Week 14

During week 14 I created an MQTT broker on the cloud and used Node-RED to program it and to display a dashboard of the measurements.

The following video shows the packets being transferred from the MQTT client (left window) to the MQTT server (right window), using the Mosquitto MQTT broker.

Then I setup a Node-RED server on the cloud. The Node-Red flow is depicted below.

From here I created this simple dashboard to test it out.

The circuit feeding this dashboard can be seen below.

Research

There are many open source projects on air quality monitoring but some are not mobile. For instance:

  • Sensor Community. The latest version of an air quality (PM) and noise monitoring project, originally developed by luftdaten.info a project stemming from the OK Lab Stuttgart. I work with these sensors in project MAPEAR and my project ideia is to improve on them.
  • Smart Citizen project. An initiative from Fablab Barcelona that took off globally, in a similar fashion as the Sensor Community project. They have three main products:
    • A more affordable smart citizen kit (~ 110 euro) that contains a PM counter, VOC and CO_2 sensors. It also measures weather conditions, noise pollution, and light pollution.
    • The smart citizen kit 2.1, which incorporates the smart citizen kit capabilities plus precisely measures Carbon Mononixe (CO), Nitrogen Dioxide (NO2), Ozone (O3) with electrochemical sensors.
    • The platform that displays in real time the measurements made all over the world.
    • The almabike branch project I found out recently. It is very similar to the one I’m developing.
  • Air Casting from Habitat Map. It is a mobile and fixed mapping PM sensing with an online platform. It didn’t took off for now. I tested their platform to track positon with the phone but there were crashing problems.
  • Open Seneca. A very similar project, also doing bike measurements, but it is not clear if it is open source hardware or just open source software.

  • There are many projects that had the duration of the funding period (e.g.):

  • There are also some previous (non-exhaustive!) air quality projects made in Fablab Academy:

2D and 3D Modeling

Materials

The materials section is still in its early stages. A preliminary online BOM listing is being constantly updated.

I also did a more recent version of that list during week 16, shown here.

Part Cost (euro) link
Inductive coil pair 5V @ 500mA 8.20 link
16650 Battery 7.45 link
Keystone PN1042 Battery holder 2,94 link
OLED Display 0.96’‘ I2C 128x64 SSD1306 White 4,54 link
NEO6Mv2 GPS module 5,90 link
BME280 Temp/Humi/Pressure module 5,68 link
PMS 7003 PM Sensor 23,89 link
RFM96W LORA IC 14,00 link
ESP32-WROOM-32E (16MB) 2,98 link
Electronic parts and components (FR1, resistors, condensers, switches, regulators, diodes, pins, buttons…) 10,00 estimated
12V Charger 4,92 link
PLA plastic 5,00 estimated
Thermoforming sheet 1,00 estimated
Acrylic laser cut part 1,00 estimated

Grand Total: 97,50 €

Files


Last update: May 26, 2021