Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 7 months ago.
how to give digital output using mq7 sensor
i'm currently working on mq7 sensor (carbon monoxide sensor). i'd try the coding as shown below. the coding successfully detect the carbon monoxide gas by turning the led ON. however, i want to read the value of carbon monoxide that have been detected. can i know which part of coding i should change?
1 Answer
7 years, 7 months ago.
Hello Nur,
If you have similar MQ-7 gas sensor module as described here then, considering the available outputs, it's impossible to read the level of carbon monoxide concentration by modifying only the software. Most likely there is an analog comparator IC (for instance LM393) installed on the board producing only a binary ALR (Alarm) signal at the output.
does that mean i cannot only modifying the software part to give a digital output to this sensor? as i know, in order to monitor the value of CO, there is a calculation that needed to be considered. how can i calculate the value to measure the CO if there is no output which is the value because the current output is only the led will turn on if CO existed.
posted by 11 Apr 2017Unfotunately without modifying the HW it's impossible to read the level of CO. There are no calculations performed by the MQ-7 module. Sensor's output voltage is compared with the trip-level voltage (adjustable with potentiometer R4) by an analog comparator (like LM393). At the comparator's output (ALR) is then either 0V or 5V.
posted by 11 Apr 2017
EDITING TIP: You can copy and paste your code here as text and enclose it within
posted by Zoltan Hudak 10 Apr 2017
markers as below (each marker on its own separate line). Then it's going to be shown as code in a frame.<<code>> and <</code>>
thank you Zoltan Hudak
posted by Khalid Isa 11 Apr 2017