Smoke Sensor

solenoid

Overview

The smoke sensor we have in the hackSpace is the MQ-2. This is a sensor that is not only sensitive to smoke, but also to flammable gas. The MQ-2 smoke sensor reports smoke by the voltage level that it outputs. The more smoke there is, the greater the voltage that it outputs. Conversely, the less smoke that it is exposed to, the less voltage it outputs.

These sorts of sensors are used in houses, large kitchens even Kingston University use them as they are very sensitive and accurate. This is due to a built-in potentiometer that adjusts the sensitivity to smoke. By adjusting the potentiometer, you can change how sensitive it is to smoke, so it’s a matter of calibrating it to adjust how much voltage it will put out in relation to the smoke it is exposed to.

The sensor only has 3 leads a VCC (5V), GND (GND) and (S) signal output pin that will be connected to an analogue pin. The Output pin gives out the voltage reading, which is proportional to the amount of smoke that the sensor is exposed to. Again, a high voltage output means the sensor is exposed to a lot of smoke. A low or 0 voltage output means the sensor is exposed to either little or no smoke. The example is a very simple smoke detector very similar to the ones we use in our houses. It will turn the alarm though the buzzer if the smoke level is too high. You can also measure the smoke level in the serial monitor.

 

Health & safety

  • Ensure you are familiar with all H&S rules that apply to the environment you are working in.
  • Identify where first aid can be found in your work space
  • Keep all components dry and free from liquid spillages
  • To avoid static, make sure your work surface is sufficiently earthed