Easy Modbus Using A Raspberry Pi

  Рет қаралды 50,469

The Intrigued Engineer

The Intrigued Engineer

Күн бұрын

Пікірлер: 39
@TELESWITCHGEARS
@TELESWITCHGEARS Жыл бұрын
-bash: cd: code/mb: No such file or directory What to do,if these error is coming?
@Gray-cx9pp
@Gray-cx9pp 2 ай бұрын
/code/mb is not a default directory, he made it himself hence why you don’t have it and trying to cd (change directory) does not find it. to fix this, make the directory with “mkdir /code/mb”, then you can cd into it.
@SimonAndren
@SimonAndren Жыл бұрын
Hi! Thank you for a very instructional video! I looked over your "Finding and Listing Modbus Sensors Over RS-485" but wonder if there is any easier way to list the modbus address without having to use Siemens 1200 PLC. I am very new to this type of programming so any simplifications are greatly appreciated. Cheers,
@qzorn4440
@qzorn4440 Жыл бұрын
Fantastic Raspberry Pi Modbus information. Will this work on the New Orange Pi-5 SBC to run a PWM servo motor controller? Thank you.
@alekseikolupaev9941
@alekseikolupaev9941 2 жыл бұрын
You don't have to save devices lists and compare them, just run dmesg -w|grep tty, and plug your usb-rs485 device in, you will see tty number which system gave to your device.
@Intrigued_Engineer
@Intrigued_Engineer 2 жыл бұрын
That's awesome!! Just given you a big shout out for this in the video that's just uploaded. Love it!
@markusmulholland
@markusmulholland 3 ай бұрын
For anyone else having this issue. I had to connect the serial converters A(+) to my sensor's B(+), and the converter's B(-) to A(-) on the sensor. A bit odd but just try swapping the wires if you have an issue.
@ronpearson1912
@ronpearson1912 8 ай бұрын
How do you do this with pymodbus TCP, do you just switch out the usb address with an IP address?
@gcarboni1
@gcarboni1 5 ай бұрын
yes you need to make a connection first, than you can read registries choosing the right function code
@juanpabloescobararenas2010
@juanpabloescobararenas2010 Жыл бұрын
Hi men, I found your video very usefull, but I have a question for you, in this case I can see that you use a USB converter and you connect a a pair differencial cable to the instrument tha give you a temperature and the humiduty and the usb you conect to female cable and I supose taht you connect to the microUSB port of your raspberry, so my question is How may I read the modbus registers but I want to use the UART pin and read form the port ttyAMA0?, I hope your answer and excellent tutorial
@nishantpn
@nishantpn Жыл бұрын
I did the same but i don't get any ttyUSB :( using a Raspbian Stretch version on a Raspberry pi 2B. Any idea why it might not be working?
@Slic-Rock
@Slic-Rock Жыл бұрын
Great Video, does the USB port detection works similar as on an Raspberry Pi emulator on PC?
@edinetgrunhed6000
@edinetgrunhed6000 Жыл бұрын
thanks for this video, can u make similar video but using IOTstack or node-red? its gonna be interesting
@bernardumali8246
@bernardumali8246 2 жыл бұрын
what if 3 or more sensor is coneected in modbus?
@vincentfoo5676
@vincentfoo5676 Жыл бұрын
Hi, awesome video by the way, helped us alot, but we are facing a problem with 2 of our sensor when we try to connect our sensors together. We connected 10 sensors by series, but 2 of the sensors when connected in series keep giving us invalid response error, check sum error. But when we connected it directly to the usb without connecting the sensor in series(individually ), it is able to work. We tried to change the wiring, but it keeps ended up getting that same error, so i am hoping that you can give us some thoughts on how we can debug it, or is there any setting that disable the sensor ability to connect in series(?). Hope to get a reply soon
@johnbryan1523
@johnbryan1523 Жыл бұрын
increase your timeout
@Prt_3D_RC
@Prt_3D_RC 2 жыл бұрын
Please create a video for the SPI interface or point us in the correct direction on setting it up. Maybe a full video using the Pico W, and a website build. Or better yet.. use the normal Pico for the code to get the data from the rs485 wind vane and the wind speed, and then use i2c to send the data to a non pi SBC (Le Potato) that can then add cameras of the clouds and send it all as a webpage out to the world on a usb cell modem... I have all the rest done but the Pico side... This (the Pico) is my 4 dollar workaround for the GPIO addressing issue that the Le Potato has currently.
@Intrigued_Engineer
@Intrigued_Engineer 2 жыл бұрын
Wow! that's a whole load of stuff! Would definitely milk that over a few videos!! Haha. Honestly though I am planning a video on SPI, UART etc at some point.
@Prt_3D_RC
@Prt_3D_RC 2 жыл бұрын
@@Intrigued_Engineer thank you I love to give out a lot to get a small bit.
@paulmcnamara3653
@paulmcnamara3653 2 жыл бұрын
Nice video. Can you please tell me the specs for the temperature/humidity sensor that you're using here?
@Intrigued_Engineer
@Intrigued_Engineer 2 жыл бұрын
Thanks very much! We got these sensors in bulk a while a go and use them on various projects. Found them as an Alibaba special! Link below. Out the box about 10% were dead which isn't a great percentage but the 90% that worked have actually performed very well in the field with a low percentage of failures after install. That's actually saying something, we're based out in Saudi and we put these sensors through absolute hell! www.alibaba.com/product-detail/MTH100-NRN-0-3-High-Accuracy_62437507744.html?spm=a2700.shop_plgr.41413.9.609c83a7xgY88f
@arapozor
@arapozor 2 жыл бұрын
Is it possible to connect multiple devices using only one adapter?!
@Intrigued_Engineer
@Intrigued_Engineer 2 жыл бұрын
Yeah you can connect multiple! the address is stored as an 8 bit integer so there are 256 "addresses" technically available from 0 - 255. You cant use address 0 as that's for something special and it's general convention not to use address 1 in a network as that's what most devices are by default so it is easier to add things to an existing network if you leave address 1 vacant. In a nutshell you can use addresses 2 - 255 meaning (using normal Modbus RTU) you can have 253 devices on one network.
@arapozor
@arapozor 2 жыл бұрын
@@Intrigued_Engineer So in each device I configure the address and can connect all of them to the same USB converter. I've seen that all modbus devices connect in series. Am I correct?
@Intrigued_Engineer
@Intrigued_Engineer 2 жыл бұрын
Correct yeah, all back to one USB. General convention is to "daisy chain" in series. With long runs you'll need to put termination resistors at each end to help minimize signal echoes but you'll need quite a large network for that to be an issue. In reality I've done daisy chains, star networks and hybrids of the two and its never been an issue for getting clean data. As a tip with minimal modbus, for reading loads of field devices, it can get a bit flustered and start to bit crash (only really seen this when trying to read ~20 sensors in a row). Its supposed to wait before being recalled but I've found its good to code in your own check function to check that the previous call is definitely finished before allowing the address to increment and moving onto the next call.
@arapozor
@arapozor 2 жыл бұрын
@@Intrigued_Engineer Thank you for the help, I was able to read two devices from different brands on the same converter. I'll take your other tips into account. I'll investigate a little bit more about the resistors.
@yusufmaulana960
@yusufmaulana960 10 ай бұрын
great explanation
@ChrisBaileyMusic
@ChrisBaileyMusic Жыл бұрын
is your name Ashley?
@rishabhgawai9500
@rishabhgawai9500 2 жыл бұрын
Does anyone knows how to implement modus rtu communication btwn raspi and aurdino.
@robertparenton7470
@robertparenton7470 3 ай бұрын
Thank You!
@wisdomrandom9957
@wisdomrandom9957 2 жыл бұрын
thks for this video. it's exactly what i'm looking for. i'm very new to this field and i have one prject: i have a Camera connected with the RPi and with the help of OCR I extract the text from the picture and I have to transfer know this text throught CAN bus. i wanted to use RS485 CAN HAT but I find it as easy using usb to rs485. please can you help me?
@Intrigued_Engineer
@Intrigued_Engineer 2 жыл бұрын
Glad it helped! Being honest I've no experience with CAN bus hats. My go to for this would be a USB/485 converter and handling the CAN bus within the Pi. But that's just me doing what I know. Is there a reason why you're using CAN bus specifically for this?
@wisdomrandom9957
@wisdomrandom9957 2 жыл бұрын
@@Intrigued_Engineer ok i will try with it. yes i want to tranfert the data to some cloud that use CAN bus
@markusmulholland
@markusmulholland 3 ай бұрын
Great vid thanks
@bernardumali8246
@bernardumali8246 2 жыл бұрын
mb_address = 9 # Modbus address of sensor /// How to know the mb_address of sensor
@gcarboni1
@gcarboni1 5 ай бұрын
you can read it on technical provider documentation, otherwise you can run a scan to all registries
@mysonacademytechnology2431
@mysonacademytechnology2431 2 жыл бұрын
Thanks
@basskriangkrai1869
@basskriangkrai1869 Жыл бұрын
Thank you
@yasminhallie1801
@yasminhallie1801 2 жыл бұрын
😇 𝐩𝐫𝐨𝐦𝐨𝐬𝐦
Basics 04: OpenPLC on Raspberry Pi with Modbus
20:48
OpenPLC
Рет қаралды 41 М.
WiFi hacking with a Raspberry Pi and Parrot OS
16:06
David Bombal
Рет қаралды 98 М.
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 2,5 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 3,6 МЛН
Raspberry Pi VFD Speed Control Over Modbus
38:47
The Intrigued Engineer
Рет қаралды 7 М.
The Petabyte Pi Project
22:27
Jeff Geerling
Рет қаралды 2,2 МЛН
Python Modbus
16:31
APMonitor.com
Рет қаралды 24 М.
Log data from modbus meter to Raspbery pi (SDM630)
11:17
DIY Tech & Repairs
Рет қаралды 126 М.
What is RS485 and How it's used in Industrial Control Systems?
6:28
All You Need to Know About Modbus RTU
9:18
RealTimeAutomation
Рет қаралды 379 М.
A Typical Modbus Device Memory Map
5:04
Emile Ackbarali
Рет қаралды 155 М.
Understanding Modbus Serial and TCP IP
12:07
VUI HOC
Рет қаралды 139 М.
Understand Modbus Registers & Hardware Wiring  in 8 Mins
11:20
Shailesh Teelock
Рет қаралды 91 М.
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН