npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-automation-hat

v0.4.1

Published

Node-RED nodes for the Pimoroni Automation HAT, pHAT and HAT Mini

Downloads

35

Readme

Node-RED nodes for Pimoroni Automation HAT/pHAT

Pimoroni Automation HAT

Provides nodes

  • Automation HAT:
    • Output Node:
      • Sinking Outputs
      • Relays (1-3 on HAT and 1 only on pHAT)
      • Lights (not on pHAT)
    • Input Node (triggered based on change in input):
      • Buffered Inputs (binary)
      • Analog ADC 1-3 - 12-bit ADC @ 0-25.85V (±2% accuracy)
      • Analog ADC 4 - 12-bit ADC @ 0-3.3V (not on pHAT)
    • Reader Node:
      • On demand reading of input nodes

Unsupported features

  • Other Pins exposed only break out section: SPI, TX (#14), RX (#15), #25 pins
  • Controlling individual indicator lights on each input/output beyond the auto_lights capability.
  • SPI LCD Display on Automation HAT Mini

More Information

More information and examples of using this node can be found in my blog post www.martinrowan.co.uk. Hopefully this will provide some inspiration.

Where to buy

Installation

Dependency - Interfaces

In order to use the capabilities of the HATs you'll need to enable some interfaces: I2C and SPI (for display on Mini HAT), which can be done using sudo raspi-config and enabling the relevant interface types.

Dependency - Node and Node-Red

Details of how to install Node and Node-Red needed for this project on Raspberry Pi can be found here. The script at the top of the page ensures you have the latest supported versions ready for this project.

Dependency - Automation HAT Python Library

First you'll need the Python dependencies for Automation HAT, you can install these with our one-line installer, as per these instructions

curl https://get.pimoroni.com/automationhat | bash

Automation HAT Node-RED

Installation via Node-Red

Run Node-Red and open setting menu, and select Manage palette. Select the install tab, and enter node-red-automation-hat

Install via Node-Red

Installation via NPM

npm install node-red-contrib-automation-hat

After installing via npm you will need to restart Node-Red

Installation from latest source on GitHub

To install this node you should:

  • Change to your users node-red nodes directory:

    cd ~/.node-red/node_modules

    Note: older node installation may use the location: ~/.node-red/nodes):

  • Clone this repository:

    git clone https://github.com/shortbloke/node-red-contrib-automation-hat
  • Start Node-Red and you should see the new Automation HAT nodes within the Raspberry Pi section.

References

This project is based on the ExplorerHAT node implementation published by Pimoroni.