Air Quality Game

p5, physical computing, environmental sensor

Tags: 

p5, physical computing, environmental sensor

Tools: 

Arduino, p5

Year: 

2020

11/12

p5 sketch: https://editor.p5js.org/lucas.wozniak1/sketches/SfH8G1OaP

joystick and sound sensor
joystick and sound sensor

air quality sensor
air quality sensor

high pollution test w incense
high pollution test w incense

11/5

Hardware:

The air quality sensor arrived! I decided to go with the "Grove -- Air Quality Sensor v1.3" from this sensor comparison article (mentioned in my previous update below), for its affordability and versatility. It can sense a wide range of Volatile Organic Compounds (VOCs), such as carbon monoxide, alcohol, acetone, thinner, formaldehyde, and other slightly toxic gases. I think it will work well for mapping the general air pollution / toxicity of different areas of the city.

sensors for the project: air quality, sound detection, joystick (and some gas detection sensors to test out)
sensors for the project: air quality, sound detection, joystick (and some gas detection sensors to test out)

Software:

Here's an example I found of using a joystick to control p5: https://www.youtube.com/watch?v=amvvttIN7Bs

I found a sketch example of a "breathing ball" that animates larger and smaller over time. I plan to work off some of this code to animate the scaling up and down of a "breath circle" based on serial data coming in from the sound sensor (as the participant breathes over it).

I plan to put some of my in-progress Illustrator skills to use in creating a colorful puzzle-piece map of Brooklyn like this:

Neighborhoods of Brooklyn [1191x842] | Brooklyn map, Brooklyn neighborhoods, Map
colored map of brooklyn found online

Game Logic:

The participant is enlisted to "restore the ecological health" of the urban forest of northwest Brooklyn (the neighborhoods I frequent the most and in which I will document the air quality). Using the joystick, they can move a "cloud" icon (symbolizing air/breath/atmosphere) around a map like the one pictured above. Lingering over a neighborhood will change the scene into an animated challenge requiring the participant to match their rate of breathing out over the sound sensor with the air quality sensor reading of air toxicity. Pollution particulates will be floating aimlessly around the screen and will "swarm" in sort of like a bee hive effect as the participant breathes harder over the sound sensor. The animated "breath circle" will give color feedback as well, switching from blue (no/little breath) to green (breath matches pollution density) to red (breath too heavy). If the participant can maintain the flow of breath in the green zone for a couple of seconds, then the air flow of that neighborhood will be cleared. The scene will transition back to the map view, and that neighborhood's color overlay will switch to green. The participant will be encouraged to keep clearing the air flows of the various neighborhood until all the "puzzle pieces" are green, at which point an animation finale will play, and some more data on local air pollution (found from online research) and links to further reading will appear.

 

10/29

Brainstorming:

  • sketch plays music at rate of particulate matter air quality
  • can go into individual rooms (my apartment room, forest, itp floor, under highway, in subway, at river) from map
  • option to layer the instruments
  • x humidity?
  • it will either sequence through the rooms or let you pick your own adventure through the rooms
  • as you breathe out, the sound of the room’s air quality plays out
  • to move to the next room, you have to match the speed of your breathing to the density of the air particles (pre-programmed scale)

 

sketching out the p5 ui
a map of air quality measurements; a challenge to exhale at a rate that correlates to the pollution density

Effect:

  • get a visceral connection to the quality of air and its suitability for breathing

Resources:

References: