Skip to main content

Grove Base HAT

Grove Base HAT is an add-on board that brings Grove Sensors to the Raspberry Pi. It supports Raspberry Pi 2 Model B, Raspberry Pi 3 Model B and Raspberry Pi B+. There are four mounting holes, matching well with normal size Raspberry Pi. It also keeps the space for Camera cables.

Version

Product VersionChangesReleased Date
Grove Base HATInitialDec 15, 2017

Features

  • 2 digital Ports

  • 2 analoge Ports

  • 3 I2C ports

  • 1 UART port

  • 1 power switch

Hardware Overview

The images below show an overview of Grove Base HAT hardware features. The pin-out and alternate functions of various pins of Grove Base HAT are shown in the pin-out diagram. This could be used as a quick reference.

  • Digital Port: 2 digital Grove ports are used to connect Grove digital sensors.

  • Analog Port: 2 analog Grove ports are used to connect Grove analog sensors. Raspberry Pi does not support annalog signal. So we use the ADS1015 chip to transfer the ADC signal to I2C signal.

  • I2C Port: 3 I2C Grove ports are used to connect Grove I2C sensors.

  • UART: 1 UART Grove port is used to connect Grove UART sensors. The UART of Raspberry Pi 3 is used by bluetooth. Please follow THE RASPBERRY PI UARTS to enable the UART.

  • System Power Switch: Slide switch is used to change the logic level and operating voltage of the board to either 5V or 3.3V.

  • ADS1015: ADS1015 is precision analog-to-digital converters (ADCs) with 12 bits of resolution, Data are transferred via an I2C-compatible serial interface.

  • TXS0108: This 8-bit non-inverting translator uses two separate configurable power-supply rails. The A port tracks the VCCA pin supply voltage. The VCCA pin accepts any supply voltage between 1.2 V and 3.6 V. The A ports are conencted to Raspberry. The B port tracks the VCCB pin supply voltage. The VCCB pin accepts any supply voltage between 1.65 V and 5.5 V. The B ports are conencted to Grove sensors.

  • FREE: The FREE pins are not used by Grove Base HAT.

Getting Started

Hardware

  • Step 1. Prepare the below stuffs:
Raspberry piGrove base HAT
enter image description hereenter image description here
Get ONE NowGet ONE Now
  • Step 2. Plug the Grove Base HAT into Raspberry.

  • Step 3. Connect the Raspberry to PC through USB cable.

Software

  • Step 1. Configure I2C, I2C is not turned on by default. We can use raspi-config to enable it. Run "sudo raspi-config".

  • Step 2. Arrow down to 5 interfacing Options and press "enter" to select.

  • Step 3. Arrow down to P5 I2C and press "enter" to select.

  • Step 4. Select "Yes" to enable it.

  • Step 5. Select "Ok".

  • Step 6. Select "Finish" to save the changes.

  • Step 7. Download ADS1X15_Driver to Raspberry /home/pi folder and unzip.

wget https://files.seeedstudio.com/wiki/Grove_Base_HAT/res/ADS1X15_Driver.zip
unzip ADS1X15_Driver.zip
  • Step 8. Go to singleended folder and make. We will see the Singleended file highlighted in Green.
pi@raspberrypi:~ $ cd ~/Adafruit_ADS1X15_Linux/examples/singleended
pi@raspberrypi:~/Adafruit_ADS1X15_Linux/examples/singleended $ make
g++ -o singleended.o -c singleended.cpp -I../../ -W -Wall
g++ -o Singleended singleended.o -lads1015 -L../../
pi@raspberrypi:~/Adafruit_ADS1X15_Linux/examples/singleended $ ls
Makefile Singleended singleended.cpp singleended.o

  • Step 9. Run the singleended to read the data.
pi@raspberrypi:~/Adafruit_ADS1X15_Linux/examples/singleended $ ./Singleended
Hello!
Getting single-ended readings from AIN0..3
ADC Range: +/- 6.144V (1 bit = 3mV/ADS1015, 0.1875mV/ADS1115)
AIN0: 4095
AIN1: 4095
AIN2: 4095
AIN3: 4095

FAQs

Please click here to see all Grove_Base_HAT FAQs.

Schematic Online Viewer

Resources

Tech Support & Product Discussion

Thank you for choosing our products! We are here to provide you with different support to ensure that your experience with our products is as smooth as possible. We offer several communication channels to cater to different preferences and needs.

Loading Comments...