Skip to main content
added 452 characters in body
Source Link
ArDweNOme
  • 29
  • 1
  • 2
  • 6

You can connect it exactly like this. I'm using female-female jumper wires and have soldered pins onto the UNO clone to enable me to do this.

MQ2 Connected to Uno R3 Clone close-up showing pins soldered onto board

Pins on sensor from left to right A0 - D0 - GND - VCC

You can also find the wiring diagram on-line for a barebones sensor if you've not got the sensor module.

here MQ2- Sensor Information

You can either use the D0 output pin to turn on an LED in the presence of gas / smoke or you can use the A0 to report a gas / smoke level.

The code in my other reply is for the analogue reporting of the sensor value. The Digital output is either on or off and the potentiometer on the back of the sensor will adjust the point at which the D0 pin report a High output level, if it's not set right then the D0 pin won't actually output a voltage.

You can connect it exactly like this. I'm using female-female jumper wires and have soldered pins onto the UNO clone to enable me to do this.

MQ2 Connected to Uno R3 Clone close-up showing pins soldered onto board

Pins on sensor from left to right A0 - D0 - GND - VCC

You can also find the wiring diagram on-line for a barebones sensor if you've not got the sensor module.

here MQ2- Sensor Information

You can connect it exactly like this. I'm using female-female jumper wires and have soldered pins onto the UNO clone to enable me to do this.

MQ2 Connected to Uno R3 Clone close-up showing pins soldered onto board

Pins on sensor from left to right A0 - D0 - GND - VCC

You can also find the wiring diagram on-line for a barebones sensor if you've not got the sensor module.

here MQ2- Sensor Information

You can either use the D0 output pin to turn on an LED in the presence of gas / smoke or you can use the A0 to report a gas / smoke level.

The code in my other reply is for the analogue reporting of the sensor value. The Digital output is either on or off and the potentiometer on the back of the sensor will adjust the point at which the D0 pin report a High output level, if it's not set right then the D0 pin won't actually output a voltage.

added 181 characters in body
Source Link
ArDweNOme
  • 29
  • 1
  • 2
  • 6

You can connect it exactly like this. I'm using female-female jumper wires and have soldered pins onto the UNO clone to enable me to do this.

MQ2 Connected to Uno R3 Clone

MQ2 Connected to Uno R3 Clone close-up showing pins soldered onto board

Pins on sensor from left to right A0 - D0 - GND - VCC

You can also find the wiring diagram on-line for a barebones sensor if you've not got the sensor module.

here MQ2- Sensor Information

You can connect it exactly like this. I'm using female-female jumper wires and have soldered pins onto the UNO clone to enable me to do this.

MQ2 Connected to Uno R3 Clone

MQ2 Connected to Uno R3 Clone close-up showing pins soldered onto board

You can connect it exactly like this. I'm using female-female jumper wires and have soldered pins onto the UNO clone to enable me to do this.

MQ2 Connected to Uno R3 Clone close-up showing pins soldered onto board

Pins on sensor from left to right A0 - D0 - GND - VCC

You can also find the wiring diagram on-line for a barebones sensor if you've not got the sensor module.

here MQ2- Sensor Information

Source Link
ArDweNOme
  • 29
  • 1
  • 2
  • 6

You can connect it exactly like this. I'm using female-female jumper wires and have soldered pins onto the UNO clone to enable me to do this.

MQ2 Connected to Uno R3 Clone

MQ2 Connected to Uno R3 Clone close-up showing pins soldered onto board