Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
Sense HAT (B) for Raspberry Pi, Onboard Multi Powerful Sensors, Supports External Sensors. Can be plugged to Raspberry Pi directly.
Feature
Working voltage | 3.3V |
Interface | I2C |
Dimension | 65mm x 30.5mm |
Accelerometer | Resolution: 16-bit |
Ranging:±2/±4/±8/±16g | |
Gyoscope | Resolution: 16-bits |
Ranging:±250/±500/±1000/±2000°/sec | |
Magnetometer | Resolution: 16-bits |
Ranging:±4900µT | |
Barometer | Resolution:24-bits (Pressure), 16-bits(Temperature) |
Accuracy (ordinary temperature): ±0.025hPa | |
Speed: 1 Hz - 75 Hz | |
Temperature & Humidity | Accuracy (humidity):±2% rH |
Ranging(humidity): 0% ~ 100% rH | |
Accuracy(temperature): ±0.2°C | |
Ranging(temperature): -30 ~ 100°C | |
Color sensor | Resolution: 4-channels RGBC, 16-bits per channel |
ADC | Resolution: 12-bits |
Download demo code from #Demo codes. Unzip it and get the codes as below:
You should copy raspberrypi example to Raspberry Pi firstly. There are more than one examples, you can rename the folder and put them to one raspberrypi folder for easy using.
You need to copy the examples to /boot of Raspberry Pi and then copy them to /home/pi
Before you run examples, you should install related libraries.
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz sudo tar zxvf bcm2835-1.60.tar.gz cd bcm2835-1.xx sudo ./configure make sudo make check sudo make install
sudo apt-get install git sudo git clone git://git.drogon.net/wiringPi cd wiringPi sudo ./build
sudo apt-get install python-pip sudo pip install RPi.GPIO sudo pip install spidev sudo apt-get install python-imaging sudo apt-get install python-smbus
To connect the Sense HAT (B) to Raspberry Pi, you can directly add it on the 40PIN GPIO or wire it pin by pin.
Sense HAT (B) | Raspberry Pi | |
Board | BCM2835 | |
VCC | 3.3V | 3.3V |
GND | GND | GND |
SDA | 3 | P2 |
SCL | 5 | P3 |
Open terminal of Raspbian, Compile codes and run example by command:
cd ~/Sense HAT (B)/ICM-20948/wiringPi/bcm2835 sudo make sudo ./ICM20948_D
Open terminal of Raspbian, run example by command:
cd ~/Sense HAT (B)/ICM-20948/Raspberry Pi/wiringPi sudo make sudo ./ICM20948_D
Open terminal of Raspbian, Compile codes and run example by command:
cd ~/Sense HAT (B)/LPS22HB/Raspberry Pi/python sudo python ICM20948.py
To stop example, you can press Ctrl + C
Note: the temperature detection of air pressure sensor is only used as compensation. For accurate temperature detection, please observe the value of shtc3 temperature and humidity sensor.
Open terminal of Raspbian, Compile codes and run example by command:
cd ~/Sense HAT (B)/LPS22HB/wiringPi/bcm2835 sudo make sudo ./LPS22HB
Open terminal of Raspbian, run example by command:
cd ~/Sense HAT (B)/LPS22HB/Raspberry Pi/wiringPi sudo make sudo ./LPS22HB
Open terminal of Raspbian, Compile codes and run example by command:
cd ~/Sense HAT (B)/LPS22HB/Raspberry Pi/python sudo python LPS22HB.py
To stop example, you can press Ctrl + C
Note: the raspberry PI's own heat will affect the actual measured temperature. The board has an I2C interface. If accurate ambient temperature is needed, the raspberry PI can be connected to the module at a distance and then tested by wire.
Open terminal of Raspbian, Compile codes and run example by command:
cd ~/Sense HAT (B)/SHTC3/wiringPi/bcm2835 sudo make sudo ./SHTC3
Open terminal of Raspbian, run example by command:
cd ~/Sense HAT (B)/SHTC3/Raspberry Pi/wiringPi sudo make sudo ./SHTC3
To stop example, you can press Ctrl + C
Open terminal of Raspbian, Compile codes and run example by command:
cd ~/Sense HAT (B)/TC34725/wiringPi/bcm2835 sudo make sudo ./TC34725
Open terminal of Raspbian, run example by command:
cd ~/Sense HAT (B)/TC34725/Raspberry Pi/wiringPi sudo make sudo ./TC34725
Open terminal of Raspbian, Compile codes and run example by command:
cd ~/Sense HAT (B)/TC34725/Raspberry Pi/python sudo python TC34725.py
To stop example, you can press Ctrl + C
Open terminal of Raspbian, Compile codes and run example by command:
cd ~/Sense HAT (B)/ADS1015/wiringPi/bcm2835 sudo make sudo ./ADS1015
Open terminal of Raspbian, run example by command:
cd ~/Sense HAT (B)/ADS1015/Raspberry Pi/wiringPi sudo make sudo ./ADS1015
Open terminal of Raspbian, Compile codes and run example by command:
cd ~/Sense HAT (B)/ADS1015/Raspberry Pi/python sudo python ADS1015.py
To stop example, you can press Ctrl + C
The STM32 examples are written based on STM32F103RBT6, it will print measuring result to UART 1.
Sense HAT (B) | STM32 |
VCC | 5V/3.3V |
GND | GND |
SDA | PB11 |
SCL | PB10 |
1. Open the project
2. Compiling and download the project
3. Open serial SSCOM software, result are printed as below
1. Open the project
2. Compiling and download the project
3. Open serial SSCOM software, result are printed as below
1. Open the project
2. Compiling and download the project
3. LED 2 lights on if sensor work normally and LED lights on when humidity is larger than 80%
1. Open the project
2. Compiling and download the project
3. Open serial SSCOM software, result are printed as below
1. Open the project
2. Compiling and download the project
3. Open serial SSCOM software, result are printed as below