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 🙏

© 2026 – Pkg Stats / Ryan Hefner

signalk-raspberry-pi-read-gpio

v0.0.3

Published

SignalK node server plugin that reads of the gpio pins on Raspberry-Pi

Readme

signalk-raspberry-pi-read-gpio

This plugin read the gpio status [high (3.3V) or low (0V)] of a reaspberry pi to send it as information for SignalK (SK).

This plugin can be downloaded via the SignalK application.

Getting Started

You will need a raspberry pi with SignalK installed along with a simple circuit to change the status of the gpio pin of the raspberry pi.

Pins that can be used for this purpose

It should be noted that the plugin is designed to read the status of the General Purpose IO pins of the Raspberry Pi only, i.e., green pins of the below picture and in the interactive pinout of the Raspberry Pi available here.

raspberrypinout

The plugin is recommended to read the status [high (3.3V) or low (0V)] of the following pins:

  • GPIO 4 - Pin 7
  • GPIO 17 - Pin 11
  • GPIO 27 - Pin 13
  • GPIO 22 - Pin 15
  • GPIO 5 - Pin 29
  • GPIO 6 - Pin 31
  • GPIO 13 - Pin 33
  • GPIO 19 - Pin 35
  • GPIO 26 - Pin 37
  • GPIO 23 - Pin 16
  • GPIO 24 - Pin 18
  • GPIO 25 - Pin 22
  • GPIO 12 - Pin 32
  • GPIO 16 - Pin 36
  • GPIO 20 - Pin 38
  • GPIO 21 - Pin 40

Using a protection to avoid damaging your Raspberry

The maximum voltage recommended for the GPIO pins is 3.3V. If your circuit may present instabilities or unexpected overvoltage, please use a protection to avoid damages.

If you want to measure 12V signal, we suggest the use of a 12V to 3.3V Optocoupler Isolation Board Voltage Converter with an Isolated Module PLC Signal Level Board and NPN or PNP Output see example here. Similar modules are available for 24V too.

Configuration

The configuration is straightforward, you just have to select the pin and the corresponding signalk path to store the information (high = 1, low = 0). The frequency to read the data is also an important parameter that can be defined in the plugin configuration.

Authors

  • Jean-David Caprace - Author of this plugin