Raspberry Pi Node-RED Tutorial with Modbus & MQTT
Kurt Braun Kurt Braun
16.4K subscribers
220,518 views
1.9K

 Published On Sep 29, 2016

Tutorial showing how to use Node RED to develop an IoT web based application. Communication with WAGO Remote I/O using ModbusTCP and with WAGO PLC using MQTT (Mosquitto).


Mosquitto Install:
sudo apt-get update
wget http://repo.mosquitto.org/debian/mosq...
sudo apt-key add mosquitto-repo.gpg.key
cd /etc/apt/sources.list.d/
sudo wget http://repo.mosquitto.org/debian/mosq...
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mosquitto
sudo apt-get install mosquitto-clients

Node-RED Install:
sudo apt-get install npm
sudo npm install -g [email protected]
hash -r
cd ~/.node-red
npm install node-red-contrib-modbus
npm install node-red-dashboard

Then:
node-red-start
node-red-stop
http://(Pi IP Address:1880)/#

For Autostart:
sudo update-rc.d nodered defaults

WAGO PN's
Remote IO Node:
750-352 Ethernet Coupler
750-602 24VDC supply module
750-1506 8ch DI / 8ch DO 24VDC
750-461 2ch RTD Module
750-600 End Module

PLC Node:
750-8100 PFC100 controller
750-469 TC Module 2ch
750-600 End Module

Other:
787-1602 24VDC Power Supply
8002-025/000-007 USB Charging Station
IO Catalog for more PN's:
http://www.wago.com/infomaterial/pdf/...

Raspberry Pi DIN Rail Mount (Available on Amazon) http://www.dinrplate.com/

show more

Share/Embed