Sensors

General

Various environmental sensors are located in the senseBox. In this chapter, we will first restrict ourselves to the sensors already installed on the senseBox MCU or those that can be connected via JST cable.

To read out and display measured values, it is best to use the display. In this chapter we use a kind of minimal example to show measured values on the display.

Accelerometer (BMX055)

The acceleration sensor is already installed on the senseBox MCU. It can give you the acceleration in X-, Y-, and Z-axis and the total acceleration. You can choose the measuring range between 2g, 4g, 8g and 16g.

/images/2020-04-08-blockly-sensoren/blockly-sensoren-0-en.svg - Logo

The mean acceleration due to gravity is given in g and is rounded off to 9.81 m/s2

Button

A button is already installed on the senseBox MCU. Additional buttons can be connected via the three digital ports. In the dropdown menu different modes for the button can be selected:

  • is pressed: With this mode you can ask if the block is pressed at the moment. You will get either the value TRUE or FALSE.
  • was pressed: With this mode you can ask if the block was pressed. Only if the button was pressed and released you will get TRUE back
  • as switch: If you use this mode you can use the button like a light switch. The status is saved until the button is pressed again
/images/2020-04-08-blockly-sensoren/blockly-sensoren-10-en.svg - Logo

Temperature and humidity sensor (HDC1080)

The temperature and humidity sensor is plugged into one of the five I2C/Wire ports. It can give you the temperature in °C and the relative humidity in %.

/images/2020-04-08-blockly-sensoren/blockly-sensoren-1-en.svg - Logo

Temperature and Air Pressure Sensor (BMP280)

The temperature and air pressure sensor is plugged into one of the five I2C/Wire ports. It can give you the temperature in °C, the air pressure in Pa and the altitude above sea level in m.

/images/2020-04-08-blockly-sensoren/blockly-sensoren-2-en.svg - Logo

Brightness and UV sensor (TSL45315 & VEML6070)

The brightness and UV sensor is connected to one of the five I2C/Wire ports. It can tell you the brightness in lux and the UV intensity in μW/cm2.

/images/2020-04-08-blockly-sensoren/blockly-sensoren-3-en.svg - Logo

Environmental sensor (BME680)

The environmental sensor is connected to one of the five I2C-Wire ports. It can give you the temperature in °C, relative humidity in %, air pressure in Pa and indoor air quality (IAQ) on a scale of 0-500.

Value
0-50 51-100 101-150 151-200 201-250 251-350 > 350
Air Quality Excellent       Gut       Lightly
polluted
Moderately
polluted
Heavily
polluted
Severely
polluted
Extremly
polluted



/images/2020-04-08-blockly-sensoren/blockly-sensoren-7-en.svg - Logo

In addition to the parameters mentioned above, the sensor can also give you the calibration value (a status message) and partial quantities CO2-equivalent and breathing air VOC of the indoor air quality.

Fine particular sensor (SDS011)

The fine particular sensor is connected to one of the two UART/Serial ports and the respective port is selected in the block. It can give you the fine dust concentration PM2.5 and PM10 in μg/cm3.

/images/2020-04-08-blockly-sensoren/blockly-sensoren-4-en.svg - Logo

Soil temperature and soil moisture sensor (SMT50)

The soil temperature and soil moisture sensor is connected to one of the three digital ports and the respective port is selected in the block. It can display the soil temperature in °C and the volumetric water content of the soil in %.

/images/2020-04-08-blockly-sensoren/blockly-sensoren-5-en.svg - Logo

GPS module (CAM-M8Q)

The GPS module is connected to one of the five I2C/Wire ports. It can give you latitude, longitude, altitude in meters, current speed, timestamp, time and date.

/images/2020-04-08-blockly-sensoren/blockly-sensoren-6-en.svg - Logo

Ultrasonic distance sensor

The ultrasonic distance sensor is connected to one of the three digital ports and the respective port is selected in the block. It can give you the distance in cm.

/images/2020-04-08-blockly-sensoren/blockly-sensoren-8-en.svg - Logo

Microphone

The microphone is connected to one of the three digital ports and the respective port is selected in the block. It can give you the volume as a level between 0 and 5V.

/images/2020-04-08-blockly-sensoren/blockly-sensoren-9-en.svg - Logo
×

Subscribe

The latest tutorials sent straight to your inbox.