This project is made of the “IoT2020″ that is the open source platform and 4 programming languages on this project to demonstrate the flexibility of the system.(python, arduino, c++, java script)
author made a system that can control water pump as a fuel pump and use gravity to turn a flow sensor for a steam turbine.
# The author won the second prize in the last “SIMATIC IOT2020″ contest.
1. TCP Socket server and Serial Bridge
The first part is the Pump controller which uses an arduino with a Modbus like TLV protocol. An FTDI is used at the USB interface and I have written a TCP to Serial bridge that translates commands on a TCP Socket to serial or Modbus commands.
2. Arduino Sketch
I use a RGB Color LCD driven by an Arduino sketch using libraries provided by the manufacturer. This is simple and runs in parallel with the rest of the code.
3. MQTT and NodeJS
For remote sensors, I used an Arduino UNO with an ethernet shield to send data to an MQTT broker. Mosquitto runs on the Iot2020 and relays messages to a NodeJS service.
4. Node Red Gateway
5. Initial State
The data is transmitted online for a dashboard. The data is pushed via curl commands as POST requests and is updated once every seconds. This can be changed in Node Red if required.
# Most of the images contained in this article are captured in the authors ‘ video that explain the source code.
# Further more details you can find link below.