Giter Club home page Giter Club logo

netpi-nodered-npix-ai's Introduction

NPIX-4AI16U node

Docker Registry  Image last updated 

Made for netPI, the Raspberry Pi 3B Architecture based industrial suited Open Edge Connectivity Ecosystem

Node-RED and analog input node for netPI's NIOT-E-NPIX-4AI16U extension module

The image provided hereunder deploys a container with installed Debian, Node-RED and analog input node to communicate with the extension module NIOT-E-NPIX-4AI16U. The package relies on the npm package node-ads1x15.

Base of this image builds the latest version of debian:stretch with installed Internet of Things flow-based programming web-tool Node-RED and one extra node ai in providing access to the four isolated analog input signals of the NPIX module.

The module features two ADS1115 A/D converters connecting to the I2C-1 bus at address 48hex and 49hex and providing the four diffential inputs measured between the modules' pins IN0...3 and V_GND. The maximum input voltage Umax may not exceed +/-32VDC.

ATTENTION! Never plug or unplug any extension module if netPI is powered. Make sure a module is already inserted before applying 24VDC to netPI.

Container prerequisites

Port mapping

To allow the access to the Node-RED programming tool over a web browser the container TCP port 1880 needs to be exposed to the host.

Host device

To grant access to the ADS1115 converters from inside the container the /dev/i2c-1 host device needs to be added to the container.

Getting started

STEP 1. Open netPI's website in your browser (https).

STEP 2. Click the Docker tile to open the Portainer.io Docker management user interface.

STEP 3. Enter the following parameters under Containers > + Add Container

Parameter Value Remark
Image hilschernetpi/netpi-nodered-npix-ai
Port mapping host 1880 -> container 1880 host=any unused
Restart policy always
Runtime > Devices > +add device Host path /dev/i2c-1 -> Container path /dev/i2c-1

STEP 4. Press the button Actions > Start/Deploy container

Pulling the image may take a while (5-10mins). Sometimes it may take too long and a time out is indicated. In this case repeat STEP 4.

Accessing

The container starts Node-RED automatically when started.

Open Node-RED in your browser with http://<netPi ip address>:<mapped host port> (NOT https://) e.g. http://192.168.0.1:1880.

One extra node named ai in in the nodes npix library provides you access to the four analog inputs of the NPIX module. The node's info tab in Node-RED explains how to use it.

Automated build

The project complies with the scripting based Dockerfile method to build the image output file. Using this method is a precondition for an automated web based build process on DockerHub platform.

DockerHub web platform is x86 CPU based, but an ARM CPU coded output file is needed for Raspberry systems. This is why the Dockerfile includes the balena.io steps.

License

View the license information for the software in the project. As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained). As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

N|Solid Hilscher Gesellschaft fuer Systemautomation mbH www.hilscher.com

netpi-nodered-npix-ai's People

Contributors

hilschernetpi avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.