Kit Ciencia Y Arte: Detector De Humo

Introduction: Kit Ciencia Y Arte: Detector De Humo

About: Músico, matemático, computación, ciencia... insolente y subversivo, pero siempre propositivo

En este proyecto construimos una alarma de humo. Usamos un sensor de gases, que sirve para varios gases, que de hecho se usa para detectar fugas de propano, butano o metano. Ese sensor además detecta humo y alcohol como mostramos en este ejercicio.

Step 1: Materiales

Ocupamos:

  1. Circuit Playground
  2. Cable USB
  3. Cables lagarto-pin hembra
  4. Sensor de gases

Step 2: Conexiones

Las conexiones son sencillas. Simplemente conectamos del sensor los pines "V", "G" y "S, con "3.3v", "GND" y "#9" en el playground. En las fotos se ven los detalles de la conexión.

Step 3: Código

Se adjunta el código. En el código hay 3 valores que se utilizan para calibrara las lecturas del sensor:

#define MIN 500
#define MAX 1005 #define ALARM 700

Si las lecturas no funcionan se pueden cambiar para ajustar. El que dice ALARM, es el que indica a partir de que valor, comenzar a sonar el buzzer.

Step 4: Funcionando

Una vez conectado y el código cargado, hay que dejarlo unos 5 minutos para que el sensor se caliente y comience a detectar.

Como ven en este video, también el sensor puede detectar alcohol.

Reto

  • Medir la cantidad de humo en una intersección comparado con un parque
  • Usar el sensor de alcohol, para determinar cual frasco tiene más alcohol
  • Hacer un alcoholímetro
  • Hacer un detector de fugas de gas

Share

    Recommendations

    • Water Contest

      Water Contest
    • Fix It! Contest

      Fix It! Contest
    • Creative Misuse Contest

      Creative Misuse Contest

    4 Discussions

    buenas noches necesito ayuda no puedo configurar mi circuit playground mi sensor es el mq-2

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '197' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '252' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '165' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '165' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '214' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '221' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '220' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '252' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '255' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '248' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '238' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '237' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '239' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '247' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '246' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    C:\Users\Familia CA\Desktop\arduino-nightly-windows\arduino-nightly\libraries\Adafruit_Circuit_Playground\utility\talkie.cpp:39:62: warning: narrowing conversion of '250' from 'int' to 'const int8_t {aka const signed char}' inside { } [-Wnarrowing]

    El Sketch usa 12624 bytes (44%) del espacio de almacenamiento de programa. El máximo es 28672 bytes.

    Variables globales usan 928 bytes de memoria dinamica.

    processing.app.debug.RunnerException

    at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:160)

    at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)

    at processing.app.SketchController.upload(SketchController.java:713)

    at processing.app.SketchController.exportApplet(SketchController.java:686)

    at processing.app.Editor$DefaultExportHandler.run(Editor.java:2170)

    at java.lang.Thread.run(Thread.java:748)

    Caused by: processing.app.SerialException: Error usando el puerto "COM3"

    at processing.app.Serial.touchForCDCReset(Serial.java:107)

    at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:144)

    ... 5 more

    Caused by: jssc.SerialPortException: Port name - COM3; Method name - openPort(); Exception type - Port busy.

    at jssc.SerialPort.openPort(SerialPort.java:164)

    at processing.app.Serial.touchForCDCReset(Serial.java:101)

    ... 6 more

    1 reply

    Pareciera que es un problema con el CIrcuit Playgound, verifica ese error en la página de Adafruit... puede ser qe la librería de CircuitPlaygournd no este instalada, asegurate que tengas instalada la ultima versión de Arduino IDE

    Muy interesante, podría ser un medidor de humo portatil. Además de humo, ¿qué mide el sensor MQ-X?. Yo tengo un MQ--2 para humo y gases combustibles, acá hay una lista, pero no encuentro el sensor que utilizaste: http://playground.arduino.cc/Main/MQGasSensors

    1 reply

    Es el mismo MQ-2 de itead https://www.itead.cc/wiki/MQ_-_2_Gas_Sensor_Brick