Sensor |
Supported |
Available Functionality |
Temperature & Humidity Sensor |
N
|
– N/A –
|
Rotary Angle Sensor |
Y
|
Get RotaryAngle & Rotary Voltage |
Light Sensor |
Y
|
Get Light Luminosity |
Sound Sensor |
Y
|
Get Sound Intensity in Vbiased |
LCD RGB Backlight |
Y
|
Write Text, starting at a particular row, column |
Blue LED |
Y
|
Turn On/Off Blue LED |
Red LED |
Y
|
Turn On/Off Red LED |
Green LED |
Y
|
Turn On/Off Green LED |
Buzzer |
Y
|
Turn On/Off Buzzer |
Relay |
Y
|
Turn On/Off Relay |
Button |
Y
|
Get Button State (Press/Release) |
Ultrasonic Ranger |
N
|
– N/A –
|
Setup Instructions
Prerequisite
To install Ubuntu Linux 18.10 (64 bit) on Raspberry Pi 3B+, download an installer from here:
usb_installer.zip.
This installer includes Node-RED, mosquitto service, docker-compose and boot configuration changes required to run the device grove service on Raspberry Pi.
To install, follow the steps as described below:
- Unzip the contents of the installer on to a new USB stick.
- Insert a blank SD card into the Pi, and the USB install stick into a USB port, then power on the Pi.
After a short delay the Ubuntu installer boots from the USB. Follow the installer instructions to install on the SD card and create a user account. After completing the install process, the Pi can be rebooted from the SD card into Xubuntu 18.10 64 bit arm version.
Note: When the Pi boots with the new image, there are some warnings & an error from kernel , which should be ignored.
Software Setup
- Install docker-ce and set the sudo permission:
- Install docker-ce:
sudo apt install docker-ce
- Add user to the docker group
sudo usermod -aG docker $USER
Log out and log back in for the change to take effect.
- Clone the demo-grove-pi repository from EdgeXFoundry to start the services
- Clone the repo
git clone https://github.com/edgexfoundry-holding/demo-grove-pi
- Start Node-Red by typing
node-red
Wait for the Node-Red to start.
To get Node-Red on the web browser, type http://localhost:1880. On another tab, type http://localhost:1880/ui to start the Node-RED Dashboard.
- Pull the images from dockerhub to run the device grove service along with the EdgeX core services on Raspberry Pi
cd demo-grove-pi
docker-compose -f docker-compose-demo-grove.yml up --detach
Note: edgex-device-grove image is built with the configuration described in the profile Grove_Device.yml. This file can be found at /device-grove/res/Grove_Device.yml within the edgex-device-grove container.