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

node-red-contrib-remware-ina3221-sensor

v0.1.1

Published

node-red wrapper for the ina3221

Readme

INA3221 Node-RED Component

This Node-RED custom node reads data from the INA3221 triple-channel voltage and current monitor. It provides six outputs, delivering millivolts and milliamps for each of the three channels.


Features

  • Six Outputs:
    • Output 1: Voltage (millivolts) for Channel 1
    • Output 2: Current (milliamps) for Channel 1
    • Output 3: Voltage (millivolts) for Channel 2
    • Output 4: Current (milliamps) for Channel 2
    • Output 5: Voltage (millivolts) for Channel 3
    • Output 6: Current (milliamps) for Channel 3
  • Configurable I2C address and bus number.
  • Adjustable update interval for reading sensor data.

Installation

  1. Clone the Repository or Download Files: Place the files in your local Node-RED custom nodes directory: ~/.node-red/nodes/ina3221

  2. Folder Structure: Ensure the following files are in the directory: ina3221/ ├── ina3221.js // Node logic ├── ina3221.html // Node editor and help ├── hardware.png // Optional: Node icon

  3. Add to a Flow: Drag and drop the INA3221 node into your flow and configure its properties.


Node Properties

| Property | Description | Default Value | |-------------------|-----------------------------------------------------|---------------| | Name | Optional name for the node. | (empty) | | I2C Address | I2C address of the INA3221 sensor. | 0x40 | | I2C Bus | I2C bus number (e.g., 1 for Raspberry Pi). | 1 | | Update Interval | Time (in milliseconds) between sensor readings. | 1000 |


Outputs

| Output # | Description | |----------|------------------------------| | 1 | Voltage (millivolts) - Ch1 | | 2 | Current (milliamps) - Ch1 | | 3 | Voltage (millivolts) - Ch2 | | 4 | Current (milliamps) - Ch2 | | 5 | Voltage (millivolts) - Ch3 | | 6 | Current (milliamps) - Ch3 |


Example Usage

  1. Add the Node: Drag the INA3221 node into your flow.

  2. Configure the Properties: Set the I2C address, bus number, and update interval in the node editor.

  3. Connect Outputs: Connect the outputs to other nodes (e.g., debug nodes or data storage).


Dependencies

  • Hardware: INA3221 sensor connected to the I2C bus.
  • Node.js Modules:
  • i2c-bus: Install using:
npm install i2c-bus

Troubleshooting

  • Ensure the INA3221 sensor is properly connected to the I2C bus.
  • Check that the I2C address matches the hardware configuration.
  • Use i2cdetect to verify the sensor is detected:
sudo i2cdetect -y 1




License
This Node-RED component is released under the MIT License.

Contributing
Contributions are welcome! Feel free to submit issues or pull requests.

Acknowledgments
This component uses the i2c-bus library for I2C communication and is based on the INA3221 triple-channel voltage/current monitor.