node-red-contrib-grove-base-hat 0.0.10

The node for Grove Base HAT for Raspberry Pi.

npm install node-red-contrib-grove-base-hat

node-red-contrib-grove-base-hat

The node for Grove Base HAT for Raspberry Pi.

Note

2019-07-30_17h51_25.jpg (218.9 kB)

Developing Grove Base HAT for Raspberry Pi at the time of 2019/08/02.

https://www.seeedstudio.com/Grove-Base-Hat-for-Raspberry-Pi.html

The node don't support Grove Base HAT for Raspberry Pi Zero yet.

Install and Setup

0. Setup Grove Base HAT

Install Online one-click installation flow at basic Grove Base HAT setup page.

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

  • Tips
    • Require pip,pip3 added install if your using Raspbian Lite.

Try to work various Grove parts before starting Node-RED of Grove Base HAT node :)

1. Install Grove Base HAT node

Execute following command. npm install node-red-contrib-grove-base-hat

then the node may be installed in "/home/pi/.node-red".

OR

Adding nodes to the palette https://nodered.org/docs/user-guide/runtime/adding-nodes

How to use

Prepare and connect Grove LED

Connect Grove LED to Grove Base HAT's D18 port.

Import the sample flow

image.png (12.0 kB)

Import this flow.

[{"id":"3ab363a8.b5975c","type":"grove-led","z":"67547794.3ec478","name":"","port_number":"18","x":460,"y":700,"wires":[]},{"id":"ca04ad9.009385","type":"inject","z":"67547794.3ec478","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":740,"wires":[["3ab363a8.b5975c"]]},{"id":"4d045af6.e1cca4","type":"inject","z":"67547794.3ec478","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":660,"wires":[["3ab363a8.b5975c"]]},{"id":"c0a7f102.46dbe","type":"comment","z":"67547794.3ec478","name":"Grove LED","info":"","x":300,"y":620,"wires":[]}]

Check port setting

image.png (12.2 kB)

Look Grove LED node setting. Check port number in node setting and connecting port number.

Generally the sample flow default port setting is D18. If your setting port is defferent from sample flow D18. Fit port your connecting port and node setting port number.

Click Node-RED inject nodes written 1 and 0. When inject nodes as 1, Grove LED will turn on. When inject nodes as 0, it will turn off.

Grove working to each node

See available grove page.

Node Info

Version: 0.0.10
Updated 4 years, 5 months ago
License: MIT
Rating: 2.0 4

Categories

Actions

Rate:

Downloads

10 in the last week

Nodes

  • grove-led
  • grove-button
  • grove-ultrasonic-ranger
  • grove-light-sensor-v1_2
  • grove-temperature-sensor
  • grove-3-axis-digital-accelerometer
  • grove-4-digit-display
  • grove-relay
  • grove-gesture-sensor
  • grove-oled-display-128x64
  • grove-i2c-color-sensor-v2
  • grove-temperature-humidity-sensor-sht3x
  • grove-magnetic-switch
  • grove-servo
  • grove-time-of-flight-distance

Keywords

  • node-red
  • Grove
  • Grove Base HAT
  • Seeed

Maintainers