Copyright © 2025 Norvi.io
Example of Raspberry Pi HMI Node-RED. NORVI has a set of node-red nodes that makes programming easy.
Here is an example of using the Raspberry PI HMI Digital Input node for Node-RED. This node facilitates the control of NORVI-RPI-HMI inputs.
The HMI-I1 node serves as a digital input node, representing the inputs of the HMI. It generates a “msg. payload” with either a 0 or 1 depending on the state of the input pin. Configuration of this node involves selecting the desired input.
Inputs: msg. payload (Boolean) – The payload will be a TRUE or a FALSE.
Outputs: msg. payload (Boolean) – The payload will be a TRUE or a FALSE.
TRIGGER TYPE: RISING, FALLING, BOTH
INPUT = SELECT INPUT NUMBER
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Let’s create a simple example program using the RPI-HMI-IN node. When a button is pressed it contains true and false and this represents a trigger. Here, to display the program in the Node-RED dashboard added a switch node (digi 01 & digi 02) to it as a dashboard node.
After setting the configuration of the program, the user interface of the RPI HMI should be as below.
This schematic shows the connection between the RPI-HMI inputs. When the inputs are in the OFF state, the GPIO goes LOW, and when the input is in the ON state, the GPIO goes HIGH.
Copyright © 2025 Norvi.io
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
WooCommerce is a customizable eCommerce platform for building online stores using WordPress.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com
SourceBuster is used by WooCommerce for order attribution based on user source.
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.
You can find more information in our Cookie Policy.