The science sensor is a multi-in-one sensor developed independently by Makeblock. Integrating the MQ2 gas, magnetic field, flame, atmospheric pressure, temperature & humidity, PIR, touch, and soil moisture sensing components, the science sensor can be used in various data collectiong, science exploring, and Internet of Things (IoT) projects.
Functions and parameters
- Dimensions: 78.2 × 24 × 1.6 (mm)
- Operating voltage: 5.0 V
- Operating current: 250 mA
Functions and parameters of each component
MQ2 gas sensor
- Function: Sensitively detects smoke, liquefied natural gas (LNG), butane, propane, methane, alcohol, and hydrogen in the air.
- Gas concentration detection range: 300–10000 ppm (flammable gas)
- Impedance when heated: 33Ω
- Preheating energy consumption：< 950 mW
Magnetic field sensor
- Function: Measures the angle between the sensor and North Pole (90 degrees north latitude) after being calibrated.
- Degree detection range: –180° to +180°（The angle 0° refers to the magnetic north pole.）
- Magnetic flux value range: ±30G (unit: gauss)
- Function: Detects a flame and its size through IR light detection.
- Detection wavelength range: 600–1000nm
- Flame size value range: 1–100
Atmospheric pressure sensor
- Function: Estimates the altitude based on the detected atmospheric pressure.
- Atmospheric pressure detection range: 300–1100 hPa (unit: hundred pascals)
- Altitude value range: –500 m to +6000 m
- Function: Detects the humidity and temperature of the air.
- Temperature value range: –40°C to +125°C
- Temperature precision: ±0.5°C (in the environment of 0°C to 50°C); ±1°C (in the environment of –20°C to +85°C)
- Humidity value range: 0–100%
- Humidity precision: ±3% (in the environment of 50% RH); ±5% (in the environment of 20% to 80% RH)
- Function: Detects whether a human being or homeothermic animal passes by.
- Detection range: < 2 m
Detection angle at the x-axis: 80°
Detection angle at the y-axis: 55°
Detection duration after being triggered: 2 seconds
- Function: Detects whether a hand touches the sensor.
Touch area: area of the fingerprint pattern
Resistance value range: 0–102300000kΩ
Soil moisture sensor
- Function: Detects soil moisture.
Detection range: area of the ear patterns
Moisture value range: 0–100% (RH)
- Resistance value range: 0–102200kΩ
Example 1: PIR-sensitive lamp (using the PIR sensor)
You can control the LEDs on CyberPi based on the PIR sensor and view the detection result of the PIR sensor on the screen. For the working principle of the PIR sensor, see PIR Sensor.
Example 2: Environment detector (using the humiture sensor and air pressure sensor)
The humiture sensor on the science sensor can be used to detect the ambient temperature and humidity, and the air pressure sensor can be used to detect the air pressure and estimate the altitude. You can program the screen of CyberPi to display all the output data of the sensors.
Example 3: Fire alarm (using the MQ2 gas sensor and flame sensor)
The science sensor integrates an MQ2 gas sensor and flame sensor, which can be used to detect gas leaks and fires in families.
With these two sensors, you can make a simple alarm that is to be triggered by a flammable gas or flame. When the alarm is triggered, CyberPi makes a warning sound.
For the working principle of the flame sensor, see the Working principle of the flame sensor. The flame sensor is triggered by infrared radiation, and the infrared radiated by a human body may also trigger it. Therefore, in pratice, you can set a threshold (strength of the flame detected) for triggering the flame sensor.
Example 4: Compass (using the magnetic field sensor) The magnetic field sensor on the science sensor can be used to function as a compass. The magnetic declination varies according to region, and therefore you need to calibrate the magnetic field sensor before using it.
Use the following block to enable or disable the calibration.
Output value range: –180° to +180°（where 0° indicates that the science sensor points at 90°N, the North Pole）
Program the science sensor to function as a compass.
Example 5: Soil moisture detector (using the soil moisture sensor)
The soil moisture sensor on the science sensor is of the resistive type. When the soil moisture increases, the water can dissolve the ions contained in part of the soil, so that the resistance of the soil decreases, and therefore the output value of the soil moisture sensor becomes greater. When the water content in the soil further increases (in the case of extremes, imagine that you throw some soil into water), the ion concentration in the soil is diluted by excess water, resulting in a decrease in electrical conductivity and an increase in resistance. That's why you may find that the soil moisture sensor outputs a smaller value in pure water than in moist soil (although the former has a significantly higher water content) because the ion concentration in the moist soil is higher and the resistance is smaller.
With the following program, you can view the change in soil moisture and resistance detected by the soil moisture sensor.
Example 6: Touch control lamp (using the touch sensor）
The touch sensor on the science sensor can detect whether the touch point is touched and thus can implement touch-based control.
With the following program, you can control the LEDs on CyberPi by touching the touch sensor.