amc2021:report:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
amc2021:report:start [2021/09/03 17:19] – old revision restored (2021/09/03 15:06) leen001 | amc2021:report:start [2021/09/03 18:49] (current) – removed kshama001 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Air Quality and Noise Levels in Different Parts of Kamp-Lintfort City ====== | ||
- | |||
- | ===== 1. Introduction ===== | ||
- | |||
- | |||
- | The German Environment Agency (UBA) and the European Environment Agency (EEA) reported that tens of thousands of people die because of high air pollution of early deaths and Year of Life Lost due to premature mortality. The dominant air pollutants with the highest impact on the European citizens' | ||
- | Air quality is essential when deciding where to live and pursue a life with good living standards. In particular, serious health issues are caused by air pollution, such as neurological, | ||
- | This project aims to measure mainly the concentrations of carbon dioxide (CO2) and the sound intensity in three different locations in Kamp-Lintfort. The first one is Meisenweg, the second one is Moerserstraße, | ||
- | |||
- | ===== 2. Materials Description===== | ||
- | |||
- | *1x Arduino Uno R3\\ | ||
- | *1x ESP-32 Microcontroller\\ | ||
- | *1x MQ-135 gas sensor\\ | ||
- | *1x LM-393 sound sensor\\ | ||
- | *1x LCD display with I2C adapter (16 chars x 2 lines)\\ | ||
- | *2xLED lights\\ | ||
- | *2x220 Ohm Resistors\\ | ||
- | *1x10k Ohm Resistor\\ | ||
- | *Jumper/ connecting wires\\ | ||
- | *1x White breadboard\\ | ||
- | |||
- | ==== 2.1 MQ135 Sensor ==== | ||
- | |||
- | |||
- | https:// | ||
- | https:// | ||
- | https:// | ||
- | |||
- | MQ135 sensors are commonly used in air quality control equipment for buildings/ | ||
- | |||
- | {{ : | ||
- | |||
- | //Figure 3: MQ135 Air Quality Sensor. Source: AZ-Delivery Vertriebs GmbH, Bräugasse 9, 94469, Deggendorf, Deutschland// | ||
- | |||
- | |||
- | **Specifications: | ||
- | MQ135 senses the air quality via a chemical-sensitive element covered by a steel exoskeleton. This element is subjected to a preheating current, where the gases to be measured later get ionized and absorbed. The preheating time required is around 12-24 hours. After absorption of these gases, the resistance of the sensing substance changes, which in turn changes the amount of current going out. When the gas concentrations transcend specific safety limit values, an LED light is illuminated as an alarm.\\ | ||
- | The wire connections in the circuit are as followed:\\ | ||
- | *Arduino Analog Output pin A0 with the MQ135 Sensor Analog Output\\ | ||
- | *Arduino 5V pin with the MQ135 Sensor Vcc\\ | ||
- | *Arduino Ground (GND) pin with the MQ135 sensor Ground (GND)\\ | ||
- | |||
- | ==== 2.2 LM393 Sensor ==== | ||
- | |||
- | |||
- | https:// | ||
- | https:// | ||
- | https:// | ||
- | https:// | ||
- | |||
- | |||
- | A sound sensor with an LM393 comparator is used to measure sound intensity in the three selected areas in Kamp-Lintfort in this project. The sensor consists mainly of a microphone, a voltage comparator IC LM393, a sensitivity adjustment potentiometer, | ||
- | The microphone, a capacitor-based electronic component, detects the sound wave and sends electrical pulses to the circuit board. The potentiometer is used to adjust the sensor' | ||
- | **Specifications: | ||
- | |||
- | {{ : | ||
- | //Figure 4: LM393 Microphone Sound Sensor | ||
- | Source: The most complete starter kit UNO R3 Project from Rhein-Waal Hochschule// | ||
- | |||
- | The wire connections in the circuit are as followed:\\ | ||
- | *Arduino Digital Output pin 12 with the LM393 Sensor Digital Output\\ | ||
- | *Arduino 5V pin with the LM393 Sensor Vcc\\ | ||
- | *Arduino Ground (GND) pin with the LM393 sensor Ground (GND)\\ | ||
- | |||
- | ==== 2.3 LCD Screen Paired with I2C ==== | ||
- | |||
- | |||
- | https:// | ||
- | http:// | ||
- | |||
- | {{ : | ||
- | // Figure 5: Liquid Crystal Display (LCD) screen (16 x 2) paired with I2C | ||
- | | ||
- | |||
- | Liquid Crystal Display is a screen used to display values and data when working with Arduino IDE 1.8.15. It is composed of a liquid crystal inserted between 2 glass pieces, | ||
- | The I2C or Inter-Integrated circuits make it easier to connect multiple “slaves” to a single master. Instead of utilizing numerous pins between the Arduino Uno and the LCD, only the following I2C pins are connected with the Arduino Uno.\\ | ||
- | *SDA pins\\ | ||
- | *SCL pins\\ | ||
- | *GND\\ | ||
- | *VCC to a 5V output in the Arduino Uno\\ | ||
- | Meanwhile, the LCD should ideally be soldered to the I2C. But in this project, the LCD and I2C were connected directly on the breadboard.\\ | ||
- | |||
- | ===== 3. Setup Diagram ===== | ||
- | |||
- | |||
- | After testing each sensor alone, they are all set up together with the help of an Arduino white breadboard. The breadboard is powered by a 5V voltage supply on the positive red line, whereas the ground is the negative blue line. Since more than the pins provided by the Arduino microcontroller board were needed to suffice sensors, the LCD and its adapter, and alarm systems (with the LEDs and the buzzer), The white breadboard is used. For better visualization, | ||
- | |||
- | {{ : | ||
- | //Figure 6: Circuit Diagram Schematic of the Connections between the sensors MQ135 and LM393.// | ||
- | | ||
- | ===== 4. Software ===== | ||
- | |||
- | |||
- | https:// | ||
- | https:// | ||
- | https:// | ||
- | https:// | ||
- | |||
- | ==== Additional Libraries required ==== | ||
- | |||
- | |||
- | The open-source Arduino Software (IDE 1.8.15) is used to write the code, upload it to the Arduino board and run it. The MQ135 library is uploaded to the code using the Library Manager Tool to communicate with the MQ135 air quality sensor. LiquidCrystal_I2C library is uploaded to communicate with the LCD screen.\\ | ||
- | __**Sound detection with the LM393 Sensor (See code explained below): | ||
- | The sensor' | ||
- | First, the digital output of the sound sensor is checked directly on the serial monitor (laptop), and the sensitivity of the sensor is adjusted to a reasonable level (see figure 7). | ||
- | | ||
- | {{ : | ||
- | //Figure 7 : Serial Plotter: Adjustment of the sensor sensitivity using the potentiometer// | ||
- | |||
- | Second, to get the information about the intensity of the sound, we introduced a sampling time (SAMPLE_TIME) into the loop void of the code. The code will sum up the number of times the sensor' | ||
- | |||
- | {{ : | ||
- | //Figure 8 : Serial Plotter: “sampleBufferValue” as a proxy to the intensity of sound detected by the LM393 for the case of vacuum cleaner as a source of sound.// | ||
- | |||
- | |||
- | Figure 8 shows an example of the Serial Plotter output for the Vacuum cleaner case as a source of continuous sound and detected by the digital sensor LM393.\\ | ||
- | Finally, to obtain a reasonable calibration of our sound sensor, we use an application called " | ||
- | |||
- | {{ : | ||
- | |||
- | The four measured points in the table allow extracting the two fitting parameters through linear regression using Excel, as seen in figure 9. The two parameters are then used in the code to convert the sensor' | ||
- | The threshold is set to be 90 dB over the sampling time of 10s. Anything above 90 dB is considered noisy, and anything below 90 dB is considered acceptable.\\ | ||
- | __**Air quality detection with the MQ135 Sensor (See code explain below):**__ | ||
- | |||
- | ===== 5. Tests and Results ===== | ||
- | |||
- | |||
- | -__Meisenweg, | ||
- | At 14:00, windows open examines the outdoor air quality in a decently calm, clean residential neighborhood.\\ | ||
- | ==== Using the MQ135 Air Quality Sensor: ==== | ||
- | The average measurement of CO2 levels = 679.65 ppm→ good air quality.\\ | ||
- | Extra testing of MQ135 sensor sensitivity: | ||
- | |||
- | {{ : | ||
- | //Figure 9: Screenshots of sample CO2 levels in ppm using python. Location: Meisenweg, Kamp-Lintfort. Case on the left: normal without any interference in gases detecting. Case on the right: alcohol is sprayed in the air.// | ||
- | |||
- | ==== Using the LM393 Sound Sensor: ==== | ||
- | |||
- | The measurement of the sound intensity = zero decibel typically in Meisenweg if no one is talking indoors. The neighborhood here is mostly completely silent; i.e., you can not hear any loud noises. In the medium talking voice, the sound frequency value rose to around 70 dB at most (see figure 10). Nevertheless, | ||
- | |||
- | |||
- | ===== 6. Discussion and Conclusion ===== | ||
- | |||
- | The LM393 sensor narrowly detected enough noise or not in a minimal range at one particular moment. Since it had only digital outputs (zeros or ones), selecting a specific sample time interval and collecting the digital results over that period helped obtain numerical readings to compare them between the three different locations. Additionally, | ||
- | Considering the precision limitation…. was the least noisy location with around …… dB over the time interval, followed by….. With around….. dB, and the last spot was…. With the most noise of around……. dB.\\ | ||
- | The MQ135 sensor was able to produce analog values in the three locations, giving more valid values that continuously can vary over time. With the help of the MQ135 library, CO2 gas was selected as a parameter and used for calibration in order to convert those analog signals to concentration values of the unit particles per million (ppm). Since the MQ135 sensor is more sensitive, the results could be more reliable than those generated by the LM393 sound sensor. Therefore, the comparison between the three measurements is well-justified. The air quality in ….. Was the best with ….. CO2 ppm, followed by the one in….. With …. CO2 ppm, and last is …. With relatively high gases’ concentrations in the air corresponding to …. CO2 ppm. Nevertheless, | ||
- | |||
- | ===== 7. Further improvements ===== | ||
- | |||
- | |||
- | ===== 8. References ===== | ||
- | |||
- | -L. Petry, H. Herold, G. Meinel, T. Meiers , I. Müller , E. Kalusche , T. Erbertseder , H. Taubenböck 2, E. Zaunseder, V. Srinivasan, A. Osman, B. Weber, S. Jäger, C. Mayer, C. Gengenbach, “AIR QUALITY MONITORING AND DATA MANAGEMENT IN GERMANY – STATUS QUO AND SUGGESTIONS FOR IMPROVEMENT”, | ||
- | __https:// | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
amc2021/report/start.1630682373.txt.gz · Last modified: 2023/01/05 14:38 (external edit)