node-red-contrib-monarco-hat 1.0.4

Monarco HAT driver library for Node-RED

npm install node-red-contrib-monarco-hat

node-red-contrib-monarco-hat - Node-RED driver library for Monarco HAT

Compatible Monarco HAT firmware version: 2.006 and newer

Tested on: Raspbios 2021-01-11 (Full and Lite)

Getting started

Install prerequisites

Install required build-dependencies on your Raspbian running on Raspberry Pi:

sudo apt update
sudo apt install build-essential 

Install Node-RED, node.js and npm on your Raspberry Pi:

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

For the curious, here are the details: Running Node-RED on Raspberry Pi.

Start Node-RED

Start the Node-RED system service:

node-red-start

Install Monarco HAT nodes

Point your web browser (Firefox or Chrome) to e.g. http://192.168.1.100:1880 to open the Node-RED flow editor.Make sure to use the IP address of your Raspberry Pi.

Select the Manage Palette option from the main menu to open the Palette Manager. The Install tab lets you search the catalogue of available node modules and install them. Find the node-red-contrib-monarco-hat palette and install it.

Done

You can now use the I/Os of the Monarco HAT in Node-RED.

Example flow

Try out this flow to see all the nodes of this library in action.

Starting Node-RED automatically

If you want your flows to start automatically on system startup, run the following command:

sudo systemctl enable nodered.service

License

node-red-contrib-monarco-hat and examples provided in this repository are covered by the BSD 3-Clause License. See LICENSE.txt or https://opensource.org/licenses/BSD-3-Clause

Copyright REX Controls s.r.o. http://www.rexcontrols.com, Author: Jiri Faist, [email protected]

Node Info

Version: 1.0.4
Updated 4 years, 1 month ago
License: BSD 3-Clause License
Rating: not yet rated

Categories

Actions

Rate:

Downloads

1 in the last week

Nodes

  • monarco-hat-drv
  • monarco-hat-ain
  • monarco-hat-din
  • monarco-hat-cnt
  • monarco-hat-cnt-reset
  • monarco-hat-aout
  • monarco-hat-dout
  • monarco-hat-led
  • monarco-hat-pwm

Keywords

  • node-red
  • monarco
  • hat
  • monarco-hat
  • raspberry

Maintainers