1. science sensor [index] detected human motion?

mblock_block_1626078093542.png

Determines whether the science sensor detects the motion of a person or animal

How to use

image.png

For more information about the layout and specifications of the sensing elements on the science sensor, see Science Sensor.
The PIR sensor on the science sensor can be used to detect whether a person or animal passes by.

Detection range: < 2m
Detection angle at the x-axis: 80°
Science Sensor - 图3
Detection angle at the y-axis: 55°
Science Sensor - 图4

Detection duration after being triggered: 2 seconds

Example

image.png

After starting CyberPi, move close to the science sensor. The screen displays “motion detected” and the LEDs are lit up.


2. science sensor [index] soil moisture measured

mblock_block_1626078131682.png

Reports the soil moisture detected by the science sensor

How to use

Science Sensor - 图7

Note: When you use the science sensor to detect soil moisture, ensure that the nameplate of the science sensor is kept above the soil. Otherwise, the other sensing components may be damaged.

For more information about the layout and specifications of the sensing elements on the science sensor, see Science Sensor.
The soil moisture sensor on the science sensor can be used to detect the volumetric water content in soil.
Detection range: probing areas
Science Sensor - 图8
Output range: 0–100 (%RH). A greater value indicates a higher moisture content.
You can select the check box on the left of this block to see the detected moisture content on the stage.
Note: This is a reporter block that must be used in combination with another block requiring data.

Example

image.png

When you press button A on CyberPi, the detected soil moisture content is displayed on the screen.


3. science sensor [index] resistance value between the lugs of the soil moisture sensor(kΩ)

mblock_block_1626078191360.png

Reports the resistance (kΩ) between the two probes

How to use

Detection range: probes
Science Sensor - 图11
Output range: 0–102200 (kΩ)
A greater value indicates a higher resistance, and thus a lower moisture content.
You can select the check box on the left of this block to see the detected resistance on the stage.
Note: This is a reporter block that must be used in combination with another block requiring data.

Example

Science Sensor - 图12

After you press button A on CyberPi, the detected soil moisture content and resistance are displayed on the screen.


4. science sensor [index] lugs of soil moisture sensor already connected?

mblock_block_1626078279529.png

Determines whether electricity is conducted between the two probes

How to use

The following figure shows the two probes.
image.png

After you insert the two probes into soil, the soil becomes a conductor, enabling electricity to be conducted between the two probes.
The conductivity of the soil varies according to its moisture content. A higher moisture content indicates a higher conductivity. When the conductivity of the soil is extremely low, no electricity is conducted between the two probes.

Example

image.png
After you press button A on CyberPi, true is displayed on the screen if electricity is conducted between the two probes; and false is displayed if no electricity is conducted.


5. science sensor [index]contact point being touched?

mblock_block_1626078295790.png

Determines whether the touch point on the science sensor is touched

How to use

image.png

For more information about the layout and specifications of the sensing elements on the science sensor, see Science Sensor.
The touch sensor on the science sensor can be used to detect physical touch.
Detection range: area with the fingerprint pattern
Science Sensor - 图18

Example

image.png

You can control the LEDs on CyberPi by touching the touch point of the science sensor.
1. After starting CyberPi, touch the touch point on the science sensor with your hand.
The LEDs on CyberPi are lit up in green.
2. Take your hand off the touch point.
The LEDs go off in 2 seconds.


6. science sensor [index] resistance value reported from contact point (kΩ)

mblock_block_1626078367911.png

Reports the resistance (kΩ) detected at the touch point of the science sensor

How to use

Detection range: area with the fingerprint pattern
Science Sensor - 图21

Output range: 0–102300000 (kΩ)
When you touch the touch point with your hand, the resistance detected at the touch point varies according to the skin dryness of your hand. A greater dryness indicates a greater resistance.
You can select the check box on the left of this block to see the detected resistance on the stage.
Note: This is a reporter block that must be used in combination with another block requiring data.

Example

Science Sensor - 图22

  1. After starting CyberPi, touch the touhc point on the science sensor with your hand.
    The LEDs on CyberPi are lit up in green, and the value of the resistance detected is displayed on the screen.
    2. Take your hand off the touch point.
    The LEDs go off and the value on the screen disappears in one second.

7. science sensor [index]air temperature(℃)

mblock_block_1626078472950.png

Reports the ambient temperature detected by the science sensor

How to use

image.png
For more information about the layout and specifications of the sensing elements on the science sensor, see Science Sensor.
The humiture sensor on the science sensor can be used to detect the ambient temperature or humidity.
Temperature output range: –40°C to +125°C
Temperature error:

  • ±0.5°C (in the environment of 0°C to 50°C)
  • ±1°C (in the environment of –20°C to +85°C)

You can select the check box on the left of this block to see the detected ambient temperature on the stage.
Note: This is a reporter block that must be used in combination with another block requiring data.

Example

Science Sensor - 图25

After you start CyberPi, the detected ambient temperature is displayed in the middle of the screen.


8. science sensor [index] air humidity (%)

mblock_block_1626078578161.png

Reports the ambient temperature detected by the science sensor

How to use

Humidity output range: 0–100%
Humidity error:

  • ±3% (in the environment of 50% RH)
  • ±5% (in the environment of 20% to 80% RH)

You can select the check box on the left of this block to see the detected ambient humidity on the stage.
Note: This is a reporter block that must be used in combination with another block requiring data.

Example

Science Sensor - 图27

After you start CyberPi, the detected ambient temperature and humidity are on the screen.


9. science sensor [index] air pressure (Pa)

mblock_block_1626078658454.png

Reports the air pressure detected by the science sensor

How to use

image.png
For more information about the layout and specifications of the sensing elements on the science sensor, see Science Sensor.
The air pressure sensor on the science sensor can be used to detect the air pressure, and thus the altitude can be estimated.
Air pressure output range: 300–1100 hPa
You can select the check box on the left of this block to see the detected air pressure on the stage.
Note: This is a reporter block that must be used in combination with another block requiring data.

Example

Science Sensor - 图30

After you start CyberPi, the detected ambient temperature, humidity, and air pressure are displayed on the screen.


10. science sensor [index]estimated altitude (m)

mblock_block_1626078673248.png

Reports the altitude estimated by the science sensor

How to use

The air pressure sensor on the science sensor can be used to detect the air pressure, and thus the altitude can be estimated.
Altitude output range: –500 m to +6000 m
You can select the check box on the left of this block to see the estimated altitude on the stage.
Note: This is a reporter block that must be used in combination with another block requiring data.

Example

Science Sensor - 图32

After you start CyberPi, the detected ambient temperature, humidity, and air pressure and the estimated altitude are displayed on the screen.


11. science sensor [index] [conduction] MQ2 sensor at [sensitivity]sensitivity

mblock_block_1626078702712.png

Turns the MQ2 gas sensor on and sets its sensitivity, or turns the MQ2 gas sensor off

How to use

image.png

For more information about the layout and specifications of the sensing elements on the science sensor, see Science Sensor.
The MQ2 gas sensor on the science sensor can be used to detect smoke, liquefied natural gas (LNG), butane, propane, methane, alcohol, and hydrogen in the air.
Click to select a sensitivity from the drop-down list box.

Example

Science Sensor - 图35

After you start CyberPi, if the MQ2 gas sensor detects a flammable gas, the LEDs on CyberPi are lit up in red and the gas concentration is displayed on the screen; if no flammable gas is detected, the LEDs are lit up in green.


12. science sensor [index] flammable gas value

mblock_block_1626078762104.png

Reports the concentration of the flammable gas detected by the science sensor

How to use

A flammable gas can be smoke, liquefied natural gas (LNG), butane, propane, methane, alcohol, or hydrogen in the air.
To use this block, ensure that the MQ2 gas sensor is turned on.
Gas concentration detection range: 300–10000 ppm (flammable gas)
Impedance when heated: 33Ω
Preheating energy consumption:< 950 mW
Note: The deviation may be large at the moment when the sensor is powered on. Heat it for five minutes before you use it.

Example

Science Sensor - 图37

After you start CyberPi, if the MQ2 gas sensor detects a flammable gas, the LEDs on CyberPi are lit up in red and the gas concentration is displayed on the screen; if no flammable gas is detected, the LEDs are lit up in green.


13. science sensor [index] detected flammable gas?

mblock_block_1626078788314.png

Determines whether the science sensor detects a flammable gas

How to use

A flammable gas can be smoke, liquefied natural gas (LNG), butane, propane, methane, alcohol, or hydrogen in the air.
To use this block, ensure that the MQ2 gas sensor is turned on.
Note: The deviation may be large at the moment when the sensor is powered on. Heat it for five minutes before you use it.

Example

Science Sensor - 图39

After you start CyberPi, if the MQ2 gas sensor detects a flammable gas, the LEDs on CyberPi are lit up in red and the gas concentration is displayed on the screen; if no flammable gas is detected, the LEDs are lit up in green.


14. science sensor [index] flame value

mblock_block_1626078824713.png

Reports the strength of the flame detected by the science sensor

How to use

image.png

For more information about the layout and specifications of the sensing elements on the science sensor, see Science Sensor.
The flame sensor on the science sensor can be used to detect flames and their strength based on IR light.
Detection wavelength range: 600–1000nm
Flame strength range: 1–100
Note: Don’t use the sensor under the direct sunlight. The sunlight may cause severe interference.

Example

Science Sensor - 图42

After you start CyberPi, if the flame sensor detects a flame, the LEDs on CyberPi are lit up in red and the flame strength is displayed on the screen; if no flame is detected, the LEDs are lit up in green.


15. science sensor [index] detected flame?

mblock_block_1626078841817.png

Determines whether the science sensor detects a flame

How to use

The flame sensor on the science sensor can be used to detect flames and their strength based on IR light.
Note: Don’t use the sensor under the direct sunlight. The sunlight may cause severe interference.

Example

Science Sensor - 图44

After you start CyberPi, if the flame sensor detects a flame, the LEDs on CyberPi are lit up in red and the flame strength is displayed on the screen; if no flame is detected, the LEDs are lit up in green.


16. science sensor [index] detected maget or not?

mblock_block_1626078887680.png

Determines whether the science sensor detects a magnet

How to use

image.png
For more information about the layout and specifications of the sensing elements on the science sensor, see Science Sensor.
The magnetic field sensor on the science sensor can be used to detect magnets.

Example

Science Sensor - 图47

You can use the science sensor as a magnet detector.
After you start CyberPi, Yes is displayed if the science sensor detects a magnet; and No is displayed if no magnet is detected.


17. science sensor [index]current compass direction(°)

mblock_block_1626078905997.png

Reports the compass direction (angle) detected by the science sensor

How to use

The compass direction described in this block refers to the angle between the x-aix of the magnetic field sensor and North Pole (90°N).
Angle range: –180° to +180° (the angle 0° indicates that the sensor points at North Pole)
image.png

Before using the science sensor to detect the compass direction, you need to calibrate it in a non-magnetic environment as follows:
1. Use the following block to enable the calibration function.
image.png
2. Place the science sensor on a horizontal surface and rotate it one revolution.
Science Sensor - 图51

Example

Science Sensor - 图52

Start CyberPi in a non-magnetic environment.
After the LEDs on CyberPi are lit up in green, press button A and perform the calibration as prompted.
After the calibration is complete, the detected compass direction is displayed on the screen, and you can rotate the science sensor to find a direction you want.
Note: Place the science sensor on a horizontal surface when using it to detect the compass direction. Tilting it vertically may cause large detection errors.


18. science sensor[index]magnetic flux at axisaxis

mblock_block_1626079046249.png

Reports the amount (Φ/G) of the magnetic flux detected at the x-axis

How to use

The axes of the science sensor are defined as follows:
Science Sensor - 图54

Magnetic flux range: ±30G (in gausses)
Click to select an axis.

Examle

Science Sensor - 图55

After you start CyberPi, the amount of magnetic flux detected by the science sensor is displayed on the screen.


19. science sensor[index] [conduction] calibration

mblock_block_1626079117064.png

Enables or disables the function for calibrating the magnetic field sensor

How to use

Before using the science sensor to detect the compass direction, you need to calibrate it in a non-magnetic environment.
You can use this block to enable or disable the function for calibrating the magnetic field sensor.

Example

Science Sensor - 图57

Start CyberPi in a non-magnetic environment.
After the LEDs on CyberPi are lit up in green, press button A and perform the calibration as prompted.
After the calibration is complete, the detected compass direction is displayed on the screen, and you can rotate the science sensor to find a direction you want.
Note: Place the science sensor on a horizontal surface when using it to detect the compass direction. Tilting it vertically may cause large detection errors.