Code Monkey home page Code Monkey logo

gas-sensor-interfacing's Introduction


e-Yantra

Gas Sensor Interfacing with Firebird Robot

This repository is for interfacing the MQ-2 Gas sensor with the Firebird Robot. You will need both the MQ-2 sensor and the Firebird robot in order to work on this repository. This repository is open to all members of the e-Yantra community. Any member may contribute to this project without being a collaborator.

How to contribute to this project

Fork this repository and get started. You are supposed to interface the sensor with the Firebird robot. You can use any of the Firebirds GPIO pins. A basic code template is given to help you get started. You are free to edit the code however you like. You must add comments wherever necessary.

Author notes:

Author: Shivam Mahesh Potdar (github/shivampotdar) ([email protected]) This code forms an interface for MQ2 gas sensor with Firebird, values of LPG, CO and Smoke detected in PPM are shown on the 16x2 LCD onboard.

The MQ-2 gas sensor has three outputs pins, connections can be made as follows :

  • The ATMEGA2560 Microcontroller Board expansion socket on Firebird can be used for the purpose:
  • Note that all four jumpers from J2 should be removed to make use of the ADC pins on the socket
  • This would disable IR Proximity sensor 1-4
  • DO pin on the MQ2 module can be left unused as it is used with a comparator on-board just to detect threshold

MQ-2 <---------> Firebird Vcc Pin21/22 (5V) GND Pin23/24 (Ground) AO Pin7-10 (7=ADC6,8=ADC7,9=ADC5,10=ADC4)

References :

  1. MQ2 Datasheet - https://www.pololu.com/file/0J309/MQ2.pdf
  2. https://www.instructables.com/id/How-to-Detect-Concentration-of-Gas-by-Using-MQ2-Se/

gas-sensor-interfacing's People

Contributors

badrobot15 avatar eyantra avatar shivampotdar avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

shivampotdar

gas-sensor-interfacing's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.