Sense HAT (B)

From Waveshare Wiki
Revision as of 01:47, 16 August 2019 by Ws-eng24 (talk | contribs)
Jump to: navigation, search
Sense HAT (B)
Sebse HAT B

Sense HAT (B) for Raspberry Pi, Onboard Multi Powerful Sensors, Supports External Sensors
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Introduction

Sense HAT (B) for Raspberry Pi, Onboard Multi Powerful Sensors, Supports External Sensors. Can be plugged to Raspberry Pi directly.

More

Feature

  • Standard Raspberry Pi 40PIN GPIO extension header, supports Raspberry Pi series boards
  • Onboard ICM20948 (3-axis accelerometer, 3-axis gyroscope, and 3-axis magnetometer), detects movement, orientation, and magnetic
  • Onboard SHTC3 digital temperature and humidity sensor, allows monitoring the environment
  • Onboard LPS22HB barometric pressure sensor, allows monitoring the environment
  • Onboard TCS34725 color sensor, identifies the color of nearby object
  • Onboard ADS1015 ADC, 4-ch 12-bit precision, AD expansion to support more external sensors
  • Brings I2C control pins, for connecting other host boards like STM32
  • Comes with development resources and manual (examples for Raspberry Pi/STM32)

Specification

Specification of Sense HAT (B)
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

User Guides

Download examples

Download demo code from #Demo codes. Unzip it and get the codes as below:

Sense-hat-b-user-manual-1.png
  • ADS1015: ADC examples (STM32, BCM2835(Pi), WiringPi(Pi) and Python(Pi) four examples)
  • ICM-20948: 9 axis sensor examples (STM32, BCM2835(Pi), WiringPi(Pi) and Python(Pi) four examples)
  • LPS22HB: Barometric pressure sensor examples (STM32, BCM2835(Pi), WiringPi(Pi) and Python(Pi) four examples)
  • SHTC3: Temprature & Humidity sensor examples (STM32, BCM2835(Pi) and WiringPi(Pi) Three examples)
  • TC34725: Color sensor example (STM32, BCM2835(Pi), WiringPi(Pi) and Python(Pi) four examples)

Raspberry Pi examples

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

Libraries installation

Before you run examples, you should install related libraries.

  • BCM2835 library:
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
Note: You can also go to http://www.airspayce.com/mikem/bcm2835/index.html for newest libraries.
  • wiringPi libraries
sudo apt-get install git
sudo git clone git://git.drogon.net/wiringPi
cd wiringPi
sudo ./build
  • Python libraries
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
Enable I2C interface
Before running examples, you also need to enable I2C.
Open terminal, run command sudo raspi-config to enter configuration menu
Choose Interfacing Options -> I2C -> Yes
Hardware connection

Resources

Demo code

Datasheet

Support

Support

If you require technical support, please go to the Support page and open a ticket.