Node-RED and Raspberry Pi

Node-RED is an interesting environment for modeling processes, by visually defining information flows. It is a module working in the node.js environment. It is a flow-based programming tool, originally developed by the IBM Emerging Technology Services team and now part of the JS Foundation.

History of Node-RED environment

Node-RED provides users with a ready-made set of easy-to-connect nodes and supports code creation by configuring data transmission and sensor communication to their applications. It is up to you whether you create a new flow of equipment to increase and control the economics of the IoT system. Hardware platform for this system can easily be Raspberry Pi based industrial device, like ModBerry computer.

Node-RED started life in early 2013 as a side-project by Nick O’Leary and Dave Conway-Jones of IBM’s Emerging Technology Services group. What began as a proof-of-concept for visualising and manipulating mappings between MQTT topics, quickly became a much more general tool that could be easily extended in any direction.

It was open-sourced in September 2013 and has been developed in the open ever since, culminating in it being one of the founding projects of the JS Foundation in October 2016.

Source: https://nodered.org/about/

Who can benefit from Node-RED?

Flow-based programming is ideal for the creators of IoT solutions for visualizing and controlling data flow, maintaining and managing a series of cause-related events. Apart from the fact that Node-RED can be run basically anywhere you can install NodeJS, this program is a card for IoT solution developers for mapping and maintaining solutions.

With the development and implementation of Internet of Things solutions around the world, Node-RED has become an invaluable tool for solution architects and programmers, due to its ease of use in flow programming and solution mapping. IoT solutions, also known as applications, are the convergence of the physical world with the digital world to extract valuable data for insight that increases process or system performance. This convergence results in countless triggers and events that must be performed to control systems or notify those responsible when the system is above its expectations.

How does Node-RED work?

Node.js is a runtime environment for programs written in JavaScript, currently based on the Chrome V8 engine. While I used to associate JavaScript only with scripts for animated galleries on websites, after a really short period of learning I notice the great advantages of using JS as a language for creating programs launched outside of the browser. Programs run in node.js work in the background, in the console, or even have their own UI with normal windows in Windows, macOS or Linux.

Node-RED example
Node-RED example

The principle of operation is relatively simple. Visually, we combine different blocks that perform specific functions. Through connections, Node-RED sends messages, which are basically a JavaScript object, consisting of various data.

Node-RED consists of a Node.js based runtime that you point a web browser at to access the flow editor. Within the browser you create your application by dragging nodes from your palette into a workspace and start to wire them together. With a single click, the application is deployed back to the runtime where it is run. The palette of nodes can be easily extended by installing new nodes created by the community and the flows you create can be easily shared as JSON files.

Source: https://nodered.org/about/
Node-RED and Raspberry Pi

Node-RED is an interesting environment for modeling processes, by visually defining information flows. It is a module working in the node.js environment. It is a flow-based programming tool, originally developed by the IBM Emerging Technology Services team and now part of the JS Foundation.

History of Node-RED environment

Node-RED provides users with a ready-made set of easy-to-connect nodes and supports code creation by configuring data transmission and sensor communication to their applications. It is up to you whether you create a new flow of equipment to increase and control the economics of the IoT system. Hardware platform for this system can easily be Raspberry Pi based industrial device, like ModBerry computer.

Node-RED started life in early 2013 as a side-project by Nick O’Leary and Dave Conway-Jones of IBM’s Emerging Technology Services group. What began as a proof-of-concept for visualising and manipulating mappings between MQTT topics, quickly became a much more general tool that could be easily extended in any direction.

It was open-sourced in September 2013 and has been developed in the open ever since, culminating in it being one of the founding projects of the JS Foundation in October 2016.

Source: https://nodered.org/about/

How does Node-RED work?

Node.js is a runtime environment for programs written in JavaScript, currently based on the Chrome V8 engine. While I used to associate JavaScript only with scripts for animated galleries on websites, after a really short period of learning I notice the great advantages of using JS as a language for creating programs launched outside of the browser. Programs run in node.js work in the background, in the console, or even have their own UI with normal windows in Windows, macOS or Linux.

Node-RED example
Node-RED example

The principle of operation is relatively simple. Visually, we combine different blocks that perform specific functions. Through connections, Node-RED sends messages, which are basically a JavaScript object, consisting of various data.

Node-RED consists of a Node.js based runtime that you point a web browser at to access the flow editor. Within the browser you create your application by dragging nodes from your palette into a workspace and start to wire them together. With a single click, the application is deployed back to the runtime where it is run. The palette of nodes can be easily extended by installing new nodes created by the community and the flows you create can be easily shared as JSON files.

Source: https://nodered.org/about/

Who can benefit from Node-RED?

Flow-based programming is ideal for the creators of IoT solutions for visualizing and controlling data flow, maintaining and managing a series of cause-related events. Apart from the fact that Node-RED can be run basically anywhere you can install NodeJS, this program is a card for IoT solution developers for mapping and maintaining solutions.

With the development and implementation of Internet of Things solutions around the world, Node-RED has become an invaluable tool for solution architects and programmers, due to its ease of use in flow programming and solution mapping. IoT solutions, also known as applications, are the convergence of the physical world with the digital world to extract valuable data for insight that increases process or system performance. This convergence results in countless triggers and events that must be performed to control systems or notify those responsible when the system is above its expectations.

UP Board Squared ModBerry M2000

First Industrial IoT device based on UP Board

In 2017, the first unit that entered the ModBerry series was a device called ModBerry M1000, utilizing the capabilities of Aaeon’s UP Board platform. The solution uses Quad-core Intel Atom x5-Z8350 processor with 4x 1.44GHz frequency (boost up to 4x 1.92GHz), up to 4GB RAM and 64GB eMMC on board. The platform also features USB 3.0 and Gigabit Ethernet 10/100/1000Mbps for faster communication and supports various operating systems, e.g.: full distribution of Microsoft Windows 10 Pro/Home/IoT, Microsoft Windows 10 IoT Core, Linux and Android.

To read more about Industrial ModBerry solutions, visit: https://iot-industrial-devices.com/

New base platform for Industrial ModBerry device

New addition to TECHBASE’s Industrial IoT Ecosystem is Modberry M2000, powered by Aaeon’s UP Squared development platform, to maximise the performance of Gateway Layer and provide the best data management for end-point layer, built with Industrial Moduino ESP32 devices.

ModBerry M2000 is an industrial computer series designed for the needs of automation, telecommunications, remote supervision and monitoring. ModBerry M2000 comes a choice of processor: Dual-Core Intel N3350 2×2.4GHz or Quad-Core Intel N4200 4×2.5GHz, 2/4/8GB and 16/32/64/128GB eMMC on-board with possibility to expand the storage even further with SATA3 & M.2 slot.

ModBerry M2000 platform can be extended with supported ExCard modules, including physical industrial interfaces: RS-232/485 ports, Digital I/Os, Analog I/Os, Relay, Ethernet, 1-Wire, USB, CAN; and wide range of wireless communication modules: Wi-Fi, Bluetooth GPRS/3G/LTE, for energy-efficient NarrowBand-IoT/LTE cat. M1/NB1, GPS, Wireless M-Bus, LoRa, ZigBee and many more.

ModBerry device and be equipped with dedicated iMod software platform to support standard protocol, such as MQTT, MODBUS, SNMP, M-Bus and many custom protocols. iMod – an innovative software platform allowing for quick start-up and full exploitation of device capabilities without the need for writing programs. A fully configurable system is reflecting typical C-L-V (Convert-Log-Visualize) use. Of course, the PLC software for creation of algorithms in the ladder system with the capability of operation on ModBerry device services the MODBUS protocol is also available.

To order sample devices, visit our new Industrial IoT Shop and ask our Sales Department via chat about new ModBerry M2000: 

Various data connection protocols & MQTT data management solutions

To take full advantage of the TECHBASE’s Industrial IoT Ecosystem’s capabilities, you can build your own installation, depending on project requirements, choosing from variety of Gateways (Gateway Layer) to control data collected from an array of Moduino edge devices (Sensor Layer). Moduino can be programmed in one of open software platforms, e.g. MicroPython to gather the data and send it, using MQTT standard protocol, further to Gateway and/or cloud service.

Both Moduino ESP32 and Pycom-based Moduino supports open & free libraries, shared by Pycom, tested and approved by constantly growing ESP32/Arduino community. TECHBASE company has plans to provide an open-source platform for managing services & remote configuration and control of endpoint Moduino devices using MicroPython.

MQTT Data Management

Wide range of protocol support

All TECHBASE’s solution can be empowered with iMod software incl. protocol support for industrial interfaces, e.g. M-Bus, Modbus, SNMP, MQTT. iMod software works seamlessly with Node-RED using MQTT protocol, allowing use of bacnet and direct control over devices I/Os with Google’s platform-neutral protobuf – extensible mechanism for serializing structured data and zeroMQ controls to connect the code in any modern language, on any platform. The protocol drivers library can be expanded with CODESYS development system to support PROFIBUS, CANopen, EtherCAT, PROFINET and EtherNet/IP.

The latest configuration of ModBerry 500 device presents the important milestone in TECHBASE’s offer. The introduction of two platform symbiosis, RaspberryPi Compute Module 3 assisted with Espressif’s ESP32 module brings new possibilities of application to life. High performance of CM3, if compromised by exposition to harsh environmental conditions or sudden drop of power, is aided with low-powered ESP32’s real-time system to continue operation of the device. ESP32 module can be battery powered, same as standalone Moduino series, based on similar solution.

ESP32 subsystem for ModBerry 500

Main difference between ESP32-aided ModBerry device and ESP32-based Moduino is that the first one benefits from low-power module aid to prevent errors and downtimes. ESP32 compared to Compute Module 3 works much longer on battery power supply and offers extended sleep modes. Real-time system of ESP32 and simplified communication between ESP32-aided ModBerry device and Moduino controllers drastically shortens the time needed for the system implementation and the cost of maintaining the application. It also enables the use of Espressif’s Wi-Fi-based technology in the ESP-NOW and ESP-MESH networks.

The separate ModBerry-Moduino Ecosystem, working as a separate devices is a solution for scattered object and installations monitoring – with the use of wireless communication interfaces (e.g. LoRa, NarrowBand-IoT, ZigBee, Wi-Fi, Bluetooth, etc.), rather than standard wired networks. For more information ask TECHBASE via one of contact form at: https://iot-industrial-devices.com/ & http://moduino.techbase.eu/

Coming soon

TECHBASE plans further development of the product, particularly the issue of remote access to input/output resources and use of ESP32 as a Security Chip – hardware layer protection against hacking (very important issue in current IoT business).

 

TECHBASE Industrial Computers are designed for easy integration of LoRa / MQTT networks. ModBerry devices base on Raspberry Pi / NanoPi / Intel UpBoard platform communicate with both Cloud and Sensor layer (backed with ESP32 Moduino devices) of your installation via MQTT protocol. Gateway utilizes the features of many protocol libraries, such as original TECHBASE’s iMod protocol controller – installable both on the Gateway device itself or externally with wide range of possibilities (industrial computer, hosted server, etc.). Our devices fully support Node-RED, CODESYS, OpenHAB and many more open protocol libraries.

Wide range of protocol support

All TECHBASE’s solution can be empowered with iMod software incl. protocol support for industrial interfaces, e.g. M-Bus, Modbus, SNMP, MQTT. iMod software works seamlessly with Node-RED using MQTT protocol, allowing use of bacnet and direct control over devices I/Os with Google’s platform-neutral protobuf – extensible mechanism for serializing structured data and zeroMQ controls to connect the code in any modern language, on any platform. The protocol drivers library can be expanded with CODESYS development system to support PROFIBUS, CANopen, EtherCAT, PROFINET and EtherNet/IP.

iMod M-Bus, Wireless M-Bus, Modbus TCP/RTU, SNMP, MQTT, SMS, E-MAIL, SQL/CSV
CODESYS PROFIBUS, CANopen, EtherCAT, PROFINET, EtherNet/IP
Node-RED, etc. MQTT, bacnet, eISCP
OpenHAB Commercial product integration
Other open-source protocols IEC 61850, IEC 60870-5-104, DLMS/COSEM, KNX, eHz meters, IEC 62056-21, REST