Skip to content

The one of installation example as of 2020 03 10

1ft-seabass edited this page Mar 10, 2020 · 5 revisions

The article about a installation example as of 2020/3/10.

Configuration

  • Raspberry Pi 3B+
  • Raspbian image (Release date: 2020-02-13)
  • Raspberry Pi Imager

And this environment around

  • Windows 10
  • A general SD Card reader/writer
  • A general SD Card 16GB

Installing Raspbian to formatted SD card using Raspberry Pi Imager

image

Raspberry Pi Downloads - Software for the Raspberry Pi

The Raspberry Pi image installation choosed "Raspberry Pi Imager" this time. This software is released recently. Read the detail usage refered to here official article.

image

Launch Raspberry Pi Imager.

image

Operating system chooses Raspbian Full. It is Released 2020-02-13 as of 2020/3/10.

image

Click WRITE Button and wait for a while.

image

Finished.

Setting on the first launch

Setting Raspberry Pi Configration

image

Launch Raspberry Pi Configration from menu.

image

  • SSH
    • Select to Enable
  • VNC
    • Select to Enable

Setting Welcome to Raspberry Pi flow

Setting some options such as "Set Country" , "Wi-Fi Setting" and "Password".

image

Complete until "Update Software".

image

Click Restart button at this window.

Setting on the second launch

Installing Grove Base Hat software

http://wiki.seeedstudio.com/Grove_Base_Hat_for_Raspberry_Pi/#installation

Installing Node-RED

Execute the bash command described in "Installing Node-RED".

https://nodered.org/docs/getting-started/raspberrypi

image

Shutdown for setting

sudo shutdown -h now

Shutdown for setting Grove Base Hat as physical.

Equipping Grove Base Hat

image

Prepare Grove Base Hat.

image

Equiped Grove Base Hat in Raspberry Pi 3B+.

image

And Connect Grove LED in D5 port.

image

Launch Raspberry Pi 3B+.

Check Grove Base Hat libraries.

In first, check to enable working Grove Base Hat libraries.

grove_led 5

Execute the bash command to python Grove Base Hat library.

image

Grove LED will work like this. the terminal will respond "Hat Name = 'Grove Base Hat RPi'".

Terminate the execution with Ctrl + C.

This check comfirmed that Grove Base Hat libraries are working.

Installing node-red-contrib-grove-base-hat

image

Launch Node-RED. The current version is v1.0.4.

image

Install node-red-contrib-grove-base-hat from the Manage Palette ( via. https://nodered.org/docs/user-guide/runtime/adding-nodes )

image

Installed this node.

Import the sample flow

image

Import the sample flow but it already set as D18.

image

Adjust D5 in the detail node setting.

image

Don't forget deploy.

Check the flow and Grove LED

Image from Gyazo

Click 1 and 0 inject nodes alternately.

image

Grove LED will work like this. It sync with that click operations.

Done! This check comfirmed that Grove Base Hat libraries and node-red-contrib-grove-base-hat node are working.

And Also

Another pattern succeeded already.

  • Raspberry Pi 4B
  • Raspbian image (Release date: 2020-02-13)
  • Raspberry Pi Imager
Clone this wiki locally