Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
This environment sensors module gives Raspberry Pi the ability to collect environment data like temperature & humidity, air pressure, ambient light intensity, VOC, IR ray, UV ray, etc. It can also be used to build a robot that can detect motion and orientation.
TSL25911 digital ambient light sensor | |
I2C Address | 0x29 |
Effective range | 0~88000Lux |
BME280 Temperature, Humidity, and Air pressure sensor | |
I2C Address | 0x76 |
Temperature detection | -40~85°C (0x01°C resolution, ±1°C accuracy) |
Humidity detection | 0~100%RG(0.008%RH resolution, ±3%RH accuracy, 1s response time, ≤2%RH delay) |
Air pressure detection | 300~1100hPa (0x18Pa resolution, ±1hPa accuracy) |
ICM20948 Motion Sensor (9-DOF: 3-Axis accelerometer, 3-axis gyroscrope, 3-axis magne tometer) | |
I2C address | 0x68 |
Accelerometer resolution | 16-bit |
Accelerometer range (configurable) | ±2, ±4, ±8. ±16g |
Gyroscope resolution | 16-bit |
Gyroscope range (configurable) | ±250, ±500, ±1000, ±2000°/sec |
Magnetometer resolution | 16-bit |
Magnetometer range | ±4900µT |
LTR390-UV-1 uv sensor | |
I2C Address | 0x53 |
Response wavelength | 280nm - 430nm |
SGP40 VOC sensor | |
I2C Address | 0x60 |
Mwasuring range | 0 ~ 1,000 ppm ethanol equivalent |
Limit condition | <0.05 ppm ethanol equivalent OR < 10% preset concentration point (the larger one should prevail) |
Response time | <10 s (tau 63%) |
Start time | < 60s |
On-chip humidity compensation support |
Enter the following commands to install the library:
sudo apt-get install python-smbus sudo -H apt-get install python-pil sudo apt-get install i2c-tools
Enter the following commands to install the demo:
sudo apt-get install p7zip-full wget https://www.waveshare.com/w/upload/b/bc/Environment_Sensor_HAT_Code.7z 7z x Environment_Sensor_HAT_Code.7z -r -o./Environment_Sensor_HAT_Code
Enter the following commands:
cd Environment_Sensor_HAT_Code sudo python test.py
And then the values related to the current environment will be printed
Here we introduce the use of each sensor:
TSL2591 is a light intensity digital converter based on IIC bus communication. The sensor combines a broadband photodiode (visible light and infrared light) and an infrared-responsive photodiode on a single CMOS integrated circuit that can provide a low-beam adaptive response within an effective 16-bit dynamic range (16-bit resolution). Two integrating ADCs convert the photodiode current into a digital output. This digital output can be fed to the microprocessor, where an empirical formula is used to derive the illuminance (ambient light level) in lux to approximate the human eye response.
The sensor address is: 0X29
【Note】:
If you need to run this sensor separately, please enter the following command:
sudo python TSL2591.py
This is a demonstration effect, the actual directory should according to your directory.
The BME280 can perceive environmental temperature, humidity, and atmospheric pressure, which is low power consumption, high precision, and has high stability, and is suitable for environmental monitoring, weather forecasting, altitude monitoring and IoT application.
The sensor address is: 0X76.
Measurement range:
【Note】:
If you need to run this sensor separately, please enter the following command:
sudo python BME280.py
This is a demonstration effect, the actual directory should according to your directory.
ICM20948 is a multi-chip module with 9-axis motion tracking function, 3-axis accelerometer, 3-axis gyroscope and 3-axis magnetometer, and a built-in digital motion processing engine, which can reduce complex fusion calculation data and reduce the load on the processor.
The sensor address is: 0X68.
Accelerometer:
Gyro features: Resolution: 16 bits
Magnetometer:
【Note】:
If you need to run this sensor separately, please enter the following command:
sudo python ICM20948.py
This is a demonstration effect, the actual directory should according to your directory.
The LTR390-UV-01 is a multifunctional optical measurement module for measuring ultraviolet light. The sensor supports measuring ambient light intensity.
I2C Address:0X53
There are several considerations when using this sensor:
1.The principle is actually a calculation between one sensitive to diodes, one sensitive to normal light, and one sensitive to ultraviolet light;
2.The value given is the original ADC data. If you want to calibrate, you can refer to the formula in the manual and calibrate it in combination with the actual light intensity value and UV;
3.The value varies according to the gain setting and needs to be set according to the actual application environment;
4.The manual does not explain the detection range. The actual measurement has a better effect in sunlight or the best effect is to use an ULTRAVIOLET pen within 50cm;
If you need to run this sensor separately, just execute:
sudo python LTR390.py
SGP40 is a digital VOC (volatile organic compound) sensor newly launched by Sensirion, which can be easily integrated into air treatment equipment and air quality monitors. It has a temperature-controlled mini-heating plate and a humidity-compensated indoor air quality signal. Provide a complete sensor system on a single chip.
The sensor address is 0X59.
【Note】:
If you need to run this sensor separately, please enter the following command:
sudo python SGP40.py