Тёмный

Raspberry Pi Node-RED Tutorial with Modbus & MQTT 

Kurt Braun
Подписаться 16 тыс.
Просмотров 220 тыс.
50% 1

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 repo.mosquitto....
sudo apt-key add mosquitto-repo.gpg.key
cd /etc/apt/sources.list.d/
sudo wget repo.mosquitto....
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 npm@2.x
hash -r
cd ~/.node-red
npm install node-red-contrib-modbus
npm install node-red-dashboard
Then:
node-red-start
node-red-stop
(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:
www.wago.com/in...
Raspberry Pi DIN Rail Mount (Available on Amazon) www.dinrplate.com/

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 77   
@RobertBaindourov
@RobertBaindourov 7 лет назад
Took me a bit to understand whats going on here, since I am new to IoT, but now that I get it, WOW. Such and awesome video. Thanks for everything.
@jeffthom3155
@jeffthom3155 7 лет назад
Hi, Kurt. By the content of the title, you receive my like before I watch ... Thanks!
@Skookumshroom
@Skookumshroom 4 года назад
Thank you. I hadn't looked at the range node
@gioraver
@gioraver 7 лет назад
great video , now i see the ligth
@rbr951
@rbr951 7 лет назад
great video. you are a heck of a communicator.
@Absyrtose
@Absyrtose 5 лет назад
Thank you, that was great!
@petargeorgiev4370
@petargeorgiev4370 8 лет назад
Wonderful tutorial! Thank you! :)
@AugustoBertoni
@AugustoBertoni 6 лет назад
Congrats! your videos are amazing and the speed you explain is excellent! Greetings from Argentina
@ddvelzen
@ddvelzen 5 лет назад
Nice... This was really worth watching.
@eriklaken1025
@eriklaken1025 6 лет назад
Super, i am starting with this, What a possibilities , Thank you.
@hafidzhuda1044
@hafidzhuda1044 7 лет назад
Nice tutorial... thanks a lot
@eduAutomacao
@eduAutomacao 5 лет назад
You are amazing !!! I'm going to try to replicate this application...but with S7-1500. I'm going to try to connect to Bluemix..and use its nodered...im a pretty new on nodered...but let's try !!!! Thanks for your video
@Skookumshroom
@Skookumshroom 4 года назад
Prof. Cesar Roberto de Souza I'm interested in this too, I have seen MQTT FB for each of S7-1200 and S7-1500 in TIA V15. How are you progressing with this?
@HWi58
@HWi58 7 лет назад
very good video - thank you !
@SteveWrightNZ
@SteveWrightNZ 5 лет назад
Real good! Thank you.
@DariuszKnapek
@DariuszKnapek 4 года назад
thank you for good tutorial.
@miljume
@miljume 6 лет назад
Hello Kurt and thanks for a really good tutorial! However I am having trouble using the function you describe to split the payload. No matter what the inputs are they always show as "0". Any hints?
@youmella
@youmella 7 лет назад
Great video. thank
@builditwithadam
@builditwithadam 6 лет назад
Hey Kurt thank you for the helpful videos it is making it really easy to get a Scada system up and running with a 750-8100. I must be missing something though here, I have ModbusTCP enabled in the Wago web based management and all the IP address details are correct with the Modbus Read in Node Red but it doesn't appear that ModbusTCP is active in eCockpit? In this video your RTD value on the ModbusTCP read is immediately available in Node Red but I'm not seeing where you setup the PLC to share those inputs out via ModbusTCP. Please advise! Thanks
@orlin369
@orlin369 7 лет назад
Great job!
@dawidsobaczynski303
@dawidsobaczynski303 7 лет назад
Is there any chance to get your help with CANopen protocol?I need to do a web based dashboard for CANopen data.
@user-kv5tb6gd3w
@user-kv5tb6gd3w 2 года назад
Thank You
@hanisarinaridzuan2581
@hanisarinaridzuan2581 2 года назад
Hi, i habe question. The digital button, the connection is connect to raspberry pi and the modbus read the output value as shown on the dashboard. Is it?
@niklussy2450
@niklussy2450 3 года назад
Hi Kurt I try to get id with a pcf100 and Raspberry but i don't know what i have to setup in ecocpit to get the communication
@darmawiss9445
@darmawiss9445 4 года назад
hi Kurt Braun, I am trying send data from register PLC ( fx-5u Mitsubishi ) using modbus, I use modbus master in PLC and I use node-red program like you but I can't se the data in node-red. In my modbus scan I see the data, How you make the node-red receive the data from your PLC ( wago )
@tonverra
@tonverra 8 лет назад
That looks great! You think this would work with an Arduino (using Modbus) as well?
@dpdAL
@dpdAL 4 года назад
Thank you Kurt..... did you connect the android phone and raspberry pi directly using a Hotspot or via a router ?
@darinschollmeyer4234
@darinschollmeyer4234 7 лет назад
Great information, quick question, would a RPI3 running node red work with a Beckhoff EK1100 using existing nodes? Thanks!
@peterevans7480
@peterevans7480 5 лет назад
Hi Kurt, Which one of your videos is it that you reference to watch to set up Modbus TCP on a RPi. Thanks
@hugog7868
@hugog7868 4 года назад
Which app are you using to see the chart and buttons in the phone (13:27)? Is just the internet browser /node -red?
@richymdr
@richymdr 6 лет назад
Dear Kurt, I have set my plc and remote/io. In node red i can read the pt100 values just like in your example. The only thing is that I get timeout all the time and I cant get the active reading just like you. I just get : active, then: reading done and then:polling (poll time) and last: timeout... and doenst reconnect itself. I need to deploy it once again if I want to see the reading again. How can i make my reading constant without timing out? Thank you in advance for your time. Regards,
@Vladd7
@Vladd7 3 года назад
does anyone know if the hardware solution in this video is now outdated and better / cheaper options exist today?
@galigadu777
@galigadu777 7 лет назад
Hi Kurt, Is there a way to log the values stored in non consecutive registers in the same file? I am using 2 modbus TCP nodes to pull registers 2 and 6 respectively. I want to log values of registers 2 and 6 in the file in the same line. Like Register2_value, Register6_value.
@Borsche1
@Borsche1 4 года назад
How do your charts on the dashboard not cause a memory leak? I haven't been able to get around this issue and all my dashboards will crash when using a chart!
@ThuanNguyen-du1wq
@ThuanNguyen-du1wq 4 года назад
Hi, is there any way to keep data displayed in the chart after rebooting? I always lost data when i restart the computer.
@lyndonjosephrealubit3892
@lyndonjosephrealubit3892 2 года назад
I fine it reallg interesting. Aside from Wago what othere PLC I/Os will it work with Raspberry Pi..?
@felixcamferti9601
@felixcamferti9601 3 года назад
Hello Kurt Could you share the nodes? Thanks for sharing your knowledge
@zainrehman5513
@zainrehman5513 Год назад
Hope so you are Doing well, can you help me with access controller estee tf-70 biometric machine data from website to integrate in node red dashboard. Through node red dashboard we can access the biometric software, Normally see the users in and out and add the users data can be done by logging to this software. Now we want to do this through nodered dashboard, How can i do this task can you help me, Thanks in Advance.
@niclaskald9469
@niclaskald9469 7 лет назад
Hi Kurt! Nice tutorial!! Where can I find the libmqtt_1.0_arm.ipk package for PFC100?
@suyashthatte1259
@suyashthatte1259 6 лет назад
can I do the same thing on Beckhoff's EK1100 ?
@adaptine
@adaptine 8 лет назад
Nice tutorial, but I dont get why you have to add the MQTT blocks. You use one on the DI_01 and one on the DO_01.
@WagoKurt
@WagoKurt 8 лет назад
Yes, you are correct it's not necessary, I could have just wired DI_01 & DO_01 directly. I just wanted to show how easy it is to publish and subscribe to an MQTT topic with Node-RED.
@gsanchez9457
@gsanchez9457 6 лет назад
Hi, What was the point of the pfc100?
@uweri_3851
@uweri_3851 7 лет назад
hi, thanks for excelent description. Unfortunately I get an error by using "cd ~/.node-red". Error is "-bash: cd: /home/pi/.node-red: Datei oder Verzeichnis nicht gefunden" which means file or foulder not found. Any hint to fix problem would be nice?
@stephanp2041
@stephanp2041 6 лет назад
had the same issue - there is a link showing what to do. afterwards everything works out of the box: nodered.org/docs/hardware/raspberrypi
@raheels.1068
@raheels.1068 6 лет назад
Hi. Very fast doing things. For new users hard to follow you. But good video . Thanks . Can make any project just with serial port . Not ethernet.
@Uncle-Adam
@Uncle-Adam 7 лет назад
Do you know of any extension to the MQTT broker itself that allows you to collect and log data or are you required to use an MQTT subscriber to collect and store that data?
@WagoKurt
@WagoKurt 7 лет назад
The AWS broker has some features you might be looking for. The AWS thing can trigger a Lambda function, and also has a shadow topic which can be used like a retained value even if the subscriber missed the original published message.
@janvarga7547
@janvarga7547 7 лет назад
what is name of module that gives you ui?
@gaboliquid
@gaboliquid 4 года назад
Can python be used instead of Java?
@siddharthachatterjee4941
@siddharthachatterjee4941 7 лет назад
Hi, Nice video, thanks ! I have two questions : 1. How to run node-red in the background ? I tried "node-red &". It runs in the background but repeatedly surfaces in the foreground. 2. How do we start node-red automatically in the background as the pi boots up ? So, we do not have to ssh every time and type in "node-red". I tried adding "node-red &" in /etc/rc.local. This does not work i.e. it does not even start node-red. Please let know.
@WagoKurt
@WagoKurt 7 лет назад
sudo systemctl enable nodered.service
@rafaelportugal4017
@rafaelportugal4017 7 лет назад
Hi Kurt, excelent video, I´m using modbus and nodered to monitoring some variables in a machine, but when it´s conected with ethernet port i lost conection with my ipad. How can you conect with the plc e conect with to mobile device at the same time?
@WagoKurt
@WagoKurt 7 лет назад
Hi Rafael, all devices should be on the same subnet & network. For example 192.168.1.xxx - avoid having two network connections on one device (wifi & wired) as this can cause routing issues. Hope this helps!
@rafaelportugal4017
@rafaelportugal4017 7 лет назад
Kurt Braun thanks. But How did you connect your mobile device If you were readind data by Modbus? It should be a cross ethernet cable?
@WagoKurt
@WagoKurt 7 лет назад
My router also has an access point for my mobile device. If you want to connect over the internet, with say iPhone over cellular check out my newer video on Cloud Connectivity. :)
@angelmartingraciaisla6093
@angelmartingraciaisla6093 7 лет назад
thank very much for everything but could put subtitles please
@mbuurmei
@mbuurmei 7 лет назад
Could you list the WAGO components used in this video? Thanks in advance.
@WagoKurt
@WagoKurt 7 лет назад
Added to description.
@ahmedadeli9405
@ahmedadeli9405 7 лет назад
hello kurt braun how make your dashboard node-red public for access by anyone on the web pleas help me
@WagoKurt
@WagoKurt 7 лет назад
You need to open a port on your router. Every router is different though. Search "port forwarding " and the model of your router, and you will probably find a tutorial on it. Make sure you change all the passwords on your server, since it will be exposed to the internet, and turn off any unnecessary services like ftp, telnet, ssh, etc.
@ahmedadeli9405
@ahmedadeli9405 7 лет назад
thank you brother
@rafaelportugal4017
@rafaelportugal4017 7 лет назад
Kurt Braun Thanks from Brazil. Nice job. Congratulations.
@chuxxsss
@chuxxsss 7 лет назад
Need to slow it down and do blocks one at a time please. Thank you for trying to show us anyway.
@archgloom
@archgloom 6 лет назад
Can we do this for Modbus RTU ? 🤔
@WagoKurt
@WagoKurt 6 лет назад
Yes Donald, here is an example: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QGQ1yD2CUms.html
@GottZ
@GottZ 3 года назад
9:29 is a little (well.. extremely) cringy tho. apart from that, fun
@InshotsKannada
@InshotsKannada 2 года назад
#noderedtutorials for more videos nodered
@jamescullins2709
@jamescullins2709 8 лет назад
You go way too fast for me to get much of what you are doing
@WagoKurt
@WagoKurt 8 лет назад
Hi James, you can slow the playback by selecting settings>speed>0.5 for parts that are too fast. (Click the gear at the bottom of the video) Hope this helps!
@jamescullins2709
@jamescullins2709 8 лет назад
Thanks, I will try that.
@maxd7228
@maxd7228 7 лет назад
Perfection, No need to slow down, followed everything, fantastic, fast demo. Wanting more, When is the next release.
@sriram155
@sriram155 8 лет назад
Great video. Thank you!
@pondbearflyer1193
@pondbearflyer1193 6 лет назад
wow, Great Job, thanks
Далее
Basics 04: OpenPLC on Raspberry Pi with Modbus
20:48
Просмотров 38 тыс.
Node Red MQTT on the Raspberry Pi
38:20
Просмотров 411 тыс.
Пришёл к другу на ночёвку 😂
01:00
Я ЖЕ БЕРЕМЕННА#cat
00:13
Просмотров 543 тыс.
Installing Node-RED on WAGO PFC200 G2
4:54
Просмотров 25 тыс.
How to Node-RED!
12:58
Просмотров 374 тыс.
Raspberry Pi Node-RED Tutorial (For Beginners)
7:24
Просмотров 40 тыс.
The ULTIMATE Raspberry Pi 5 NAS
32:14
Просмотров 2 млн
Пришёл к другу на ночёвку 😂
01:00