Temperature & Gas Sensor

Problems?

  1. arduino Uno R3 can carry number of smoke & temperature sensors.
  2. Number of data can receive.

Plz.

That depends what sensors you have in mind....

Is the Temperature with Gas Sensors (MQ6),
Temperature with Gas Sensor as a group(My disquisition),
Want to know a few groups can.

but...Restricted the number of data?

As far as I know, those MQ sensors have an analog output on a single line, so you can have 6 on an Uno (A0-A5).

OK,Ask about program you know ?
More Gas sensors.

Programming is easy: just an analogRead(x) where x is the pin you connected to.

But that will give you a value from 0 to 1023 (0V to 5V). You will need to see the sensor's datasheet to see how to convert the analog output from the sensor, into a gas concentration. They should give you the relationship between (say) mV and ppm.

OK,Thank you.
That it the received limited value ?

bear_orange:
OK,Thank you.
That it the received limited value ?

Not sure what you mean. The sensor forms one side of a voltage divider as far as I know, so if you put 5V across that, the output will be from 0 to 5V depending on the sensor's resistance. Have a look at Pololu.com, they have a PCB to mount it on, along with the resistor for the divider.

Arduino analog pins give a value of 0 when the analog input is 0V, and a reading of 1023 at 5V.

You need to know how to convert that value into ppm.

That could be my mistake.

I need to know ppm. :slight_smile:

In that case you'll need to know from the data sheet or somewhere, what ppm is 0V (analog read value of 0), what ppm is 5V (analog read value of 1023), and what the relationship is in between. If you're lucky it will be linear so if you get a value of say 320 or 870 you can interpolate.

You need to search for the maker's datasheet, and or the data from say Pololu if you use one of their boards.

There are >500k hits on Google for "mq6 arduino code", including this one in the playground.

understand,thank you very much. :slight_smile:

The playground says this:

The sensor needs a load-resistor at the output to ground. It's value could be from 2kOhm to 47kOhm. The lower the value, the less sensitive. The higher the value, the less accurate for higher concentrations of gas.

..... so it's up to you to decide what the resistor value is.

OKAY :slight_smile: