![](https://www.norvi.lk/wp-content/uploads/2024/05/Node-Red-Intro-post-Article-cover-2-scaled.jpg)
Example of RPI HMI NODE-RED integration is described in this article. NORVI has a set of node-red nodes that makes programming easy.
Here is an example of using the Raspberry PI HMI Analog Input node for Node-RED. This node facilitates the control of NORVI-RPI-HMI analog inputs.
HMI – ADC
![RPI HMI Node-RED](https://www.norvi.lk/wp-content/uploads/2024/05/13-1.jpg)
The Analog Input Separation Node is designed to manage and process analog input signals efficiently. It’s particularly useful for working with sensors or devices that generate continuous analog signals, such as temperature sensors, light sensors, or pressure sensors.
Inputs: Input HMI Analog Node
Outputs: Integer or Double Analog Value of Selected Channel
![](https://www.norvi.lk/wp-content/uploads/2024/05/1-3.jpg)
Configuration
Channel: Channel Number
Users can configure the node to handle specific analog inputs by selecting the appropriate settings within the node’s properties
![](https://www.norvi.lk/wp-content/uploads/2024/05/11-1.jpg)
Analog Value: Raw ADC Value
Output Value: Value Mapped for Raw ADC value specified in Raw ADC Value
Decimal Point: Number of decimal points to round off (Max. 3)
Users can enter the analog value and the output values to this node.
![](https://www.norvi.lk/wp-content/uploads/2024/05/12-1.jpg)
HMI-ANALOG
![](https://www.norvi.lk/wp-content/uploads/2024/05/14-1.jpg)
The Analog Read Node is used to initialize the analog module and read analog channels. When integrated with Analog Input Separation Nodes, it facilitates the independent monitoring and analysis of distinct analog input signals. This synergy enables users to precisely observe and evaluate individual values, contributing to a comprehensive understanding of the analog input data within the Node-RED environment.
Inputs: Input TRUE once to initialize, the Boolean
![](https://www.norvi.lk/wp-content/uploads/2024/05/15-1.jpg)
Outputs: All 8 channels are available as msg.AN0 – msg.AN7.
To extract the output for individual channels use HMI ADC Node
![](https://www.norvi.lk/wp-content/uploads/2024/05/1-3.jpg)
Example Program - RPI HMI NODE-RED integration
Let’s create a simple example program using the RPI-HMI-ADC node and RPI-HMI-ANALOG node. When an input is provided, the dashboard will show the corresponding analog input value.
![](https://www.norvi.lk/wp-content/uploads/2024/05/10-1.jpg)
Here, to display the program in the Node-RED dashboard, added a test node (CH5 & CH6) as a dashboard node.
![](https://www.norvi.lk/wp-content/uploads/2024/05/16-1.jpg)
After configuring the program, the user interface of the RPI HMI should look like this,
![](https://www.norvi.lk/wp-content/uploads/2024/05/19-2.jpg)
Analog Input 5 is active, but Analog Input 6 is inactive.
![](https://www.norvi.lk/wp-content/uploads/2024/05/18-2.jpg)
Analog Input 6 is active, but Analog Input 5 is inactive.
![](https://www.norvi.lk/wp-content/uploads/2024/05/17-1.jpg)
Hope readers got a clear understanding about how to use RPI HMI Node-RED integration for Controlling Analog Inputs.