For my case study, I chose to work with the following languages.

  • Arduino - For the basic maker
  • Node-Red - For the experience maker
  • NodeJS and Python - For the scripting maker
  • C++ - for the advanced maker

I chose the design of an Industrial Boiler since the “Process Control Scenario” is usually a common template for many real world cases. Additionally it allowed me to experiment with a number of communication protocols and add to the complexity of the design. Finally, I added an IoT Dashboard for remote monitoring over the internet using Initial State

Here is a demo video of the final project with a bit of explanation of the design.

Read on for more details on the project.

The Boiler Design - Agile Style

The block diagram below shows the main components of this project. At the heart of the design in the Siemens IoT2020 which is responsible for communicating and controlling all the peripheral devices. The system is designed like any process control scenario with an actuator which in my case is a Pump controlled via Relay and a process sensor portrayed by the Flow Sensor. An additional temperature sensor allows to extend functionality for safety and cut-off demonstrations.

The communication between the gateway and the various components is enabled by protocols such as ModBUS/TLV, MQTT, REST and plain TCP/IP(Sockets).

The system is divided into three sub projects, each with it’s own set of stories. All the stories are summarized at the end in an Agile view of the Project.

Sub-Project 1 - TCP Socket Server, Serial Bridge and ModBUS Edge Device

The requirement is to design and deploy a ModBUS variant where the edge device is an Arduino Clone that communicates over a ModBUS like protocol and controls the Pump. On the gateway side, a software TCP/IP to ModBUS bridge is to be implemented which can accept socket requests and can relay commands received over this socket connection to the ModBUS/Serial line. The architecture diagram for this sub-project is given below.


# Story Name (Tag) Story Description Priority Points(est)
1 ModBUS Implementation Implement TLV/ModBUS like protocol in Arduino 1 3
2 Setup IOT2020 IDE Setting up the IDE to work the IOT2020 C++ 2 1
3 IOT2020 Socket Server C++ app for accepting Socket connections 3 2
4 IOT2020 ModBUS App C++ app for Serial communication 4 1
5 Python Test Script Test and Fallback Script for Module 5 1
The TCP/IP Client and NodeJS application along with the dashboard are a separate iteration hence excluded from this storyboard.

The hardware part works with an Arduino Clone with an FTDI Chip that connects to the USB port of the IoT2020. This serves as proof of concept that serial enumeration comes pre-built and any serial protocol device can be accommodated into a design. Industrial grade USB to ModBUS converters can be deployed into this design without additional effort.

Sub-Project 2 - MQTT Sensor Edge Device with NodeJS

The requirement is to design and deploy a sensor device that can connect via Ethernet and the local network. The communication happens over MQTT which is an existing lightweight protocol that sits atop TCP/IP. This allows for better throughput and scalability and is demonstrated via a flow-rate sensor that transmits rate of fluid flow along with temperature data from a remote location. The architecture diagram for this sub-project is given below.


# Story Name (Tag) Story Description Priority Points(est)
1 Arduino Implementation Implement MQTT sensor data transmission 1 1
2 Node-RED Setup Setting up the NodeRED to work the IOT2020 2 1
3 Node-RED Flows and Dash Implementation of the Node-RED Flows and Dash 3 2
4 Initial State Integ. Integrate Intial State with Curl Commands 4 2
Arduino comes with an MQTT library implementation that was used. Simple code that translates sensor data into human readable test was added and the values were transmitted via MQTT to a predefined broker.

The hardware consists of an Arduino UNO, Ethernet Shield, LM35 and a Flow Sensor. The data is then...

Read more »