2021-L3-Galilee-RDT: Ricomincio Da Tre

THE PROJECT CONSISTS IN DETECTING THE LEVEL OF MONOXIDE CARBON ( CO ) IN THE AIR, THE MQ-7 SENSOR WILL DETECT THE PRECISE LEVELS AND THE RGB LED WILL CHANGE ITS COLOR ACCORDING TO THE LOW/HIGH LEVEL OF CO DETECTED.

-GREEN LIGHT: LOW LEVEL ==> NO RISKS

-RED LIGHT: HIGH LEVEL ==> RISKS

-FLASHING LIGHT: VALUES ARE IN A CERTAIN RANGE ==> RISKS

Slides & Videos

Members

NameContribution
Simone VITIELLOREPORT TECHNICAL STUDY
REPORT STATE OF THE ART
DEVICE ASSEMBLING
DIAGRAMS
VIDEO
CODE
Giuseppe PAPPADIAPRESENTATION
DEVICE ASSEMBLING
REPORT INTRODUCTION
REPORT LEGISLATION
REPORT ADDITIONAL INFORMATION ON MQ7 SENSOR
CODE

State of the Art

Business Aspect

X-SENSE

• ACCURATE, RELIABLE AND EXTREMELY SENSITIVE: Equipped with photoelectric and electrochemical CO sensors, which work independently of each other; immediately issues an alarm in the presence of dangerous concentrations of smoke or CO, minimizing false alarms; provides optimal protection from 2 deadly threats, in 1 single unit.

 

• INTEGRATED BATTERY WITH A DURATION OF 10 YEARS: The integrated lithium battery provides 10 years of continuous power, saving energy and respecting the environment; saves you having to constantly change batteries and having to worry about the correct functionality of the detector.

 

• VARIOUS FUNCTIONS: The malfunction and low battery warnings allow you to easily know the operational status of the detector; the Test / Silence button allows you to test the product weekly and to silence the alarm in the
event of false alarms; in case of emergency, the device emits an alarm of over 85 dB throughout the house, immediately alerting the whole family, even people who are sleeping.

 

• CONVENIENT LCD SCREEN: Clearly indicates the current concentration of carbon monoxide (CO) present in the surrounding air in real time, as well as the remaining battery life and operational status of the alarm, if a CO concentration of 30- 999 ppm holds for a certain period of time, the screen lights up blue and the LED indicator flashes red 4 times every 5.8 seconds.

 

• QUICK AND SIMPLE INSTALLATION WITH GUARANTEED QUALITY: The installation does not require a new wiring; with the mounting bracket, screws and plugs included, the detector can be easily mounted on any wall or ceiling; to ensure user peace of mind and complete confidence in our product, the detector is certified to meet the UL safety standard (EN); is covered by a 10-year warranty and lifetime customer support.

PRICE: 33,99 EUR

GOOGLE NEST

Nest Protect has been redesigned from the inside out. It has an industrial grade smoke sensor, can be silenced by the phone, occurs automatically and lasts up to 10 years. And just like the original Nest Protect, it also tells you what’s wrong and can even alert your phone. Note: Backup batteries are included. Note: the dates indicated on the item are different, one is the date of manufacture and the other is replaced by the date.

 

• Voice alarms with customized location.

• Telephone alerts include:
– low battery
– smoke
– carbon monoxide
– sensor failure

• Split spectrum sensor.

• Nest app.

• Silence app.

• There are both the production date and the the replacement date.

PRICE:140,00 EUR

Smartwares RM370

MAIN FUCNTIONALITY
Loud 85dB alarm alerts you, giving you time to take safety measures to prevent carbon monoxide poisoning.

MAINTENANCE
The operation of the carbon monoxide detector can be affected by dust and dirt, so it is important to clean it monthly using a slightly damp cloth and every two years with a vacuum cleaner. Never use detergents or paint the gas detector. It is also important to check the carbon monoxide detector on a regular basis with the test button.

PRICE:23,99 EUR

Technical Aspect

BREADBOARD

BREADBOARD CONNECTED TO ARDUINO UNO,SENSOR AND ALL WIRES ARE PLACED HERE

 

 

 

 

 

 

4XAA BATTERY HOLDER, POWERS THE DEVICE WHEN NO USB IS PRESENT

 

ARDUINO UNO CONNECTED VIA USB OR ATTACHED TO BATTERY ( 4xAA BATTERIES NEEDED )

MQ7 GAS SENSOR,DETECT PPMS IN THE AIR AND TURNS BACK AN ANALOG VALUE

GAS SENSOR BREAKOUT PCB OF THE SENSOR, MUST BE WELDED TO IT TO KEEP STABLE THE SENSOR

RESISTORS TO POWER THE RGB LED

RGB COMMON ANODE LED, MAINLY IMPORTANT TO UNDERSTAND DETECTED LEVELS

USB CABLE TO CONNECT THE DEVICE TO PC

 

MALE/FEMALE JUMPING WIRES TO BUILD THE DEVICE

Project Description

Problem Definition
Living in a city is very convenient under many points of view such as high-levels in education, services and entertainment but is also inconvenient in other ways.
In many heavily urbanized areas, particularly in the developing world such as China, India and Brazil, carbon monoxide detectors often register levels many times higher than accepted “safe” levels.
It is evident that we cannot list all the major cities in the world but we can for sure find a common term between all of them. Metropolis like London, Paris and New York are connected to Asian (mega) cities like Hong Kong, New Delhi and Tokyo because of pollution.
Since the 1970s, more and more people ( like scientists, politicians and workers ) started to get interested and sensible to the effects of pollution on human beings, for example, the verified correlation between the cancer and places in which smoking was allowed has led to anti-smoke laws.
Challenges & Motivation
Because as with every problem, the initial step is to recognize it understand its causes. How can you state, in an objective way, if the air of a place is unhealthy or not?
Well, indicators are a good way and, in particular, the Carbon Monoxide (CO) is considered by the scientists as one of the most polluting and dangerous chemical agents.
Real and Complete Usecases

Carbon monoxide poisoning occurs when you breathe in too much carbon monoxide (CO), a colorless, odorless gas produced by the combustion of fuel.
Symptoms include headaches, dizziness, weakness, vomiting, chest pain, and confusion. The excessive exposure to CO can lead to severe heartbeat irregularities, seizures, unconsciousness, and even death.

Technical Description

THE MAIN COMPONENT IN THIS PROJECT IS THE MQ7 SENSOR. HOW DOES IT WORK?

Sensitive material of MQ-7gas sensor is SnO2, which with lower conductivity in clean air.
It makes detection by method of cycle high and low temperature and detect CO at low temperature (heated by 1.5V).
The sensor’s conductivity gets higher along with the CO gas concentration rising.
At high temperature (heated by 5.0V), it cleans the other gases adsorbed at low temperature.

 

REGARDING ITS BREAKOUT: This breakout board is designed to work with any of the MQ-series gas sensor, simplifying the interface from 6 to 4 pins that are broken out with a 0.1″ spacing, making the board compatible with 0.1″ headers and standard breadboards. The board has a diameter of 16.8 mm, which matches the diameter of the small (plastic) gas sensor packages, providing a more convenient, compact connection within the bounds of the sensor itself.

Hardware

Materials
ImageNamePart NumberPriceCountLink
MQ7 SENSOR1$5.991🛒
GAS SENSOR PCB BREAKOUT2$0.951🛒
USB CABLE3$3.261🛒
JUMPER WIRES PACK4$1.95PACK🛒
RESISTORS5$0.14🛒
RGB LED COMMON ANODE6$1.891🛒
BATTERY HOLDER7$1.741🛒
BREADBOARD8$4.51🛒
ARDUINO UNO9$23.381🛒
Schematic

Software

Arduino Code

// Include Libraries
#include "Arduino.h"
#include "MQ7.h"
#include "RGBLed.h"


// Pin Definitions
#define MQ7_PIN_B1	A3
#define RGBLedAnode_PIN_R	9
#define RGBLedAnode_PIN_G	6
#define RGBLedAnode_PIN_B	5



// Global variables and defines

// object initialization
MQ7 mq7(MQ7_PIN_B1);
RGBLed rgbLed(RGBLedAnode_PIN_R, RGBLedAnode_PIN_G, RGBLedAnode_PIN_B);



// define vars for testing menu
const int timeout = 10000;       //define timeout of 10 sec
char menuOption = 0;
long time0;

// Setup the essentials for your circuit to work. It runs first every time your circuit is powered with electricity.
void setup()
{
  // Setup Serial which is useful for debugging
  // Use the Serial Monitor to view printed messages
  Serial.begin(9600);
  while (!Serial) ; // wait for serial port to connect. Needed for native USB
  Serial.println("start");

  rgbLed.turnOff();              // Start with RGB LED turned off
}

// Main logic of your circuit. It defines the interaction between the components you selected. After setup, it runs over and over again, in an eternal loop.
void loop()
{
  //read CO levels from MQ-7 (please note that the MQ-7 requires few minutes of pre-heating)
  int mq7Val = mq7.read();
  mq7Val = map(mq7Val, 40, 120, 0, 255);
  Serial.print(F("raw: ")); Serial.println(mq7.read());
  Serial.print(F("val: ")); Serial.println(mq7Val);

  // Change the rgb colors with an interval of 100ms
  rgbLed.setRGB(255 - mq7Val, mq7Val, 0);
  delay(100);

}


/*******************************************************

     Circuito.io is an automatic generator of schematics and code for off
     the shelf hardware combinations.

     Copyright (C) 2016 Roboplan Technologies Ltd.

     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation, either version 3 of the License, or
     (at your option) any later version.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License
     along with this program.  If not, see .

     In addition, and without limitation, to the disclaimers of warranties
     stated above and in the GNU General Public License version 3 (or any
     later version), Roboplan Technologies Ltd. ("Roboplan") offers this
     program subject to the following warranty disclaimers and by using
     this program you acknowledge and agree to the following:
     THIS PROGRAM IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS, AND
     WITHOUT WARRANTIES OF ANY KIND EITHER EXPRESS OR IMPLIED.  ROBOPLAN
     HEREBY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
     NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, TITLE, FITNESS
     FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND THOSE ARISING BY
     STATUTE OR FROM A COURSE OF DEALING OR USAGE OF TRADE.
     YOUR RELIANCE ON, OR USE OF THIS PROGRAM IS AT YOUR SOLE RISK.
     ROBOPLAN DOES NOT GUARANTEE THAT THE PROGRAM WILL BE FREE OF, OR NOT
     SUSCEPTIBLE TO, BUGS, SECURITY BREACHES, OR VIRUSES. ROBOPLAN DOES
     NOT WARRANT THAT YOUR USE OF THE PROGRAM, INCLUDING PURSUANT TO
     SCHEMATICS, INSTRUCTIONS OR RECOMMENDATIONS OF ROBOPLAN, WILL BE SAFE
     FOR PERSONAL USE OR FOR PRODUCTION OR COMMERCIAL USE, WILL NOT
     VIOLATE ANY THIRD PARTY RIGHTS, WILL PROVIDE THE INTENDED OR DESIRED
     RESULTS, OR OPERATE AS YOU INTENDED OR AS MAY BE INDICATED BY ROBOPLAN.
     YOU HEREBY WAIVE, AGREE NOT TO ASSERT AGAINST, AND RELEASE ROBOPLAN,
     ITS LICENSORS AND AFFILIATES FROM, ANY CLAIMS IN CONNECTION WITH ANY OF
     THE ABOVE.
********************************************************/

External Services