Тёмный

RS-WS-N01-8 Modbus Temperature and Humidity sensor 

Csongor Varga
Подписаться 37 тыс.
Просмотров 29 тыс.
50% 1

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

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@Trans-Felix
@Trans-Felix Год назад
1 day of learning, searching and digging... you got the software! Great!
@rudolfbv2513
@rudolfbv2513 3 года назад
Végre megértettem a modbust a videonak koszönhetően. Köszönöm!
@warmac57
@warmac57 2 года назад
Nice finding this video after hours of frustration trying to find info on these, I can now read my temp..
@nickchu
@nickchu 4 года назад
Thank you so much for great tutorial, and let me understand how Modbus RTU work.
@Biasedturkey
@Biasedturkey 5 лет назад
Very informative tutorial.I just purchased a similar temperature and humidity sensor.
@askjeeves4981
@askjeeves4981 2 года назад
Thanks for the info. like others I bought a similar model then find out the documentation and software are a secret :-)
@tamasgoczi8563
@tamasgoczi8563 3 года назад
Szia Gratuáláok tök jó! Azt meg tudod mondani, hogy mi azDevice és Baudrate címe? mert a 66-67 biztosan nem. KÖSZÖNÖM!!!
@sumitbirla5895
@sumitbirla5895 4 года назад
Thanks for this informative video. Have you checked the accuracy of the temperature readings from this sensor? I plan to use these for my home automation project, but there are a few comments online stating that temperature reading is too high (probably because the sensor chip heats up from the circuitry).
@csongorvarga
@csongorvarga 4 года назад
Very good question, I did not test that. I did not notice that, but I was not doing a lot of comparison with other sensors.
@bobcharles3029
@bobcharles3029 3 года назад
Thanks Mate! very useful, especially as dip switches have gone the way of the dinosaur
@gastongreco8012
@gastongreco8012 4 года назад
Hi Csongor Varga, i have a problem with the 485 configuration software when i choose the port and send click i dont have a correct answer but the connection is fine because i can see the sensor with modbus scan, i need the 485 software to change ID.
@renkesensor1546
@renkesensor1546 3 года назад
Hi, can I put the sharing link of this video on our website? Please reply me "yes" or "no".
@csongorvarga
@csongorvarga 3 года назад
Yes, of course. I am glad you like the video
@csongorvarga
@csongorvarga 3 года назад
Your other comment was rejected by Google because of the link. But I put your link into the video description.
@renkesensor1546
@renkesensor1546 3 года назад
@@csongorvarga Ok ,thank you. Pretty good.
@rumpi81
@rumpi81 3 года назад
Szia, van olyan progid amivel lehet konfigurálni a szenzort? értem ez alatt a device id cserét, mert ugye alapbol mindé 1... és ha több dolgot is akarsz egy rtu-ra akasztani... milyen progival lehet ezeket meg akár más modbus eszközt állítani? plc-re aggatnék tanulás céljából egy másik ehhez hasonló, csak dobozolása más, meg egy pzem-016 meg majd egy relé board-ot... de device id-t ugye állítani kell... a másik kérdésem parám hogy alin mindenhol 9600-as baud-ot irtak azzal is próbáltam sikertelen... akkor ezek szerint a 4800 a nyerő ezeknél? viccesek a kínaiak ...
@csongorvarga
@csongorvarga 3 года назад
Igen, ott a link a videó leírásában.
@rumpi81
@rumpi81 3 года назад
@@csongorvarga oh, bocsi, ugrálva néztem a videot ujra... mert sokmindent néztem mostanság, ennyire nem voltam figyelmes :D köszi
@Thom1998
@Thom1998 2 года назад
I'm working on a project using the same sensor using the modbus communication method, but I'm having a problem if the temperature condition is negative then the displayed number doesn't match (eg temperature -20.XX°C the number shown is 6541.7. Any solution for this problem?
@csongorvarga
@csongorvarga 2 года назад
Yes, this is how normally the negative numbers are represented. If the top bit is on, the number is a negative number. So if the raw value is >32768 than the number is -1 * x - 32768.
@jass290
@jass290 4 года назад
Hello sir, thanks for your tutorial, I've purchased that sensor and downloaded the CAS MODBUS SCANNER, it does detect the device but it send and error instead of the readings, do you think my device is faulty?
@jass290
@jass290 4 года назад
Or is there a debug tool that I can use, the one you have in the description does not recognize my device, thank you in advance.
@tomektymek
@tomektymek 7 лет назад
Can you give a bit more explanations about the code that you mention in 19:00? I'm trying to understand what happened there but no result yet :) Any resource link would be nice.
@csongorvarga
@csongorvarga 7 лет назад
It is only about converting the data from the sensor. You need to read 2 registers form the device over modbus, which is 4 bytes. The lower two bytes gives the humidity and the last two bytes the temperature. In each byte pair the first byte is the last 8 bits of the 16bit integer number, and the second byte is the lower 8 bits. And the code just puts the two back together. Nothing more. And yes the value being returned is 10 times the actual value, so I am diving it by 10. So it is just simple calculation, nothing special.
@briantroup195
@briantroup195 5 лет назад
I have 3 temperature/humidity sensors that I would like to connect to the modbus. I need to change the RTU numbers to make the numbers unique. Where can I obtain the 485 parameter configuration tool control.exe you show at time 6:25 (6:25 / 20:25) in the video?
@csongorvarga
@csongorvarga 5 лет назад
Check the first link in the video description.
@briantroup195
@briantroup195 5 лет назад
Thank you
@JeremyBoshuizen
@JeremyBoshuizen Год назад
Link for the modbus setup utility is not working for me too. Can you upload it again or refresh the link?
@csongorvarga
@csongorvarga Год назад
Oh sorry, Google considered this file suspicious and this is why it was not available for you. I requested a review from Google. I can email it to you if you drop me a mail (csongor dot varga at gmail dot com)
@varshamounika3112
@varshamounika3112 4 года назад
Hi, I have the XY-MD02 device, I gave voltage:15 V, using simply modbus master I am try to read function code 3 but it didnt give any response so what was the mistake ? please help me how to start with this .
@varshamounika3112
@varshamounika3112 4 года назад
it was solved, I am able to talk to it.
@pfusilino
@pfusilino 4 года назад
@@varshamounika3112 Hi, I have the same problem. What was the solution?
@chanonchanon4731
@chanonchanon4731 5 лет назад
thank you Bro
@famaro89
@famaro89 4 года назад
Hi Congor, congratulations. Nice video. I´m trying to learn modbus with Node Red. I have a problem in Node Red, the problem is "Error: {"name":"PortNotOpenError","message":"Port Not Open","errno":"ECONNREFUSED"}" Could you help me? I putted the same node. Thanks
@csongorvarga
@csongorvarga 4 года назад
Are you sure you have provided the correct port? In your setup you may have a different name for the USB port. I think you can check your USB device using udev in the console.
@famaro89
@famaro89 4 года назад
@@csongorvarga Csongor, I could work it. I need to put the server as COM12:9600 for the USB to RS485 converter. Thanks for your help.
@lccora
@lccora 6 лет назад
Please send me link to buy in aliexpress. And is possible connect in plc or hmi, by rs485 rtu modbus?
@csongorvarga
@csongorvarga 6 лет назад
We got this from here, and yes they work with a PLC or HMI: www.aliexpress.com/item/Temperature-and-humidity-transmitter-rs485-modbus-temperature-sensor/32400484544.html?spm=a2g0s.9042311.0.0.1eNJ8W
@ДобриДобрев-ф2ъ
@ДобриДобрев-ф2ъ 3 года назад
Hello when I try it with similar sensor i get this error Error: {"name":"PortNotOpenError","message":"Port Not Open","errno":"ECONNREFUSED"}
@csongorvarga
@csongorvarga 3 года назад
The issue is with the serial port, not with the device. Maybe you have another serial-in somewhere in your flow which is already connected.
@kleberzeitounian
@kleberzeitounian 6 лет назад
Olá, por favor vê se consegue me ajudar, comprei 7 sensores deste, preciso colocar todos numa mesma rede modbus RTU, mas não consigo usar o software que você mostra acima para download, meu supervisório scada lê eles normalmente, porém todos estão com o endereço 1 e não consigo alterar o endereço, já teve sucesso com isto.
@Broder1ck
@Broder1ck 5 лет назад
Hi, I have this same problem? Have you solved it? I want to connect 8 of these sensors to a modbus/scada gateway for temperature control. Thank you for your help.
@boheswaranwilliam816
@boheswaranwilliam816 6 лет назад
can that usb rs485 converter used in raspberry pi 3 ? thank you in advanced
@csongorvarga
@csongorvarga 6 лет назад
Yes, I am using that on my pi 3.
@boheswaranwilliam816
@boheswaranwilliam816 6 лет назад
thank you very much
@csongorvarga
@csongorvarga 6 лет назад
Yes, I am using that on my pi3 as well.
@xrtnn
@xrtnn 7 лет назад
You calculatinc actual temperature by dividing by 10 word value. How about temperature below zero?
@csongorvarga
@csongorvarga 7 лет назад
Some. Temperature is sent in 0.1 degrees C. So 234 is 23.4 C, -67 is -6.7 C
@xrtnn
@xrtnn 7 лет назад
WORD data read from midbus is signed int?
@xrtnn
@xrtnn 7 лет назад
WORD data read from midbus is signed integer?
@xrtnn
@xrtnn 7 лет назад
For example which 2 bytes youre receive if temperature -10 C
@csongorvarga
@csongorvarga 7 лет назад
Actually, this is good question. My sensor is inside so it has not measures negative values yet. I might have overlook this, but for now I have no way of testing. I don't have a connection to the manufacturer to test.
@darktricks5970
@darktricks5970 4 года назад
How can i connect with plc
@csongorvarga
@csongorvarga 4 года назад
with the 2 modbus wires and power from 24V
@darktricks5970
@darktricks5970 4 года назад
Sir can u guid me how can i make program for reading temperature and humidity in plc
@csongorvarga
@csongorvarga 4 года назад
@@darktricks5970 There are hunderds of different plc-s on the market, each have dozens of different variants. How do you expect me to give a guide to your particular model.
@darktricks5970
@darktricks5970 4 года назад
You r right sir i have mistubishi fx2n plc can u guid me know ? Plzzzzzzzz
@csongorvarga
@csongorvarga 4 года назад
I know nothing about mistubishi plc.
@hoomandk2432
@hoomandk2432 Год назад
hi drive link not working
@csongorvarga
@csongorvarga Год назад
I just checked it and all the links are working for me... WHich is not working?
@csongorvarga
@csongorvarga Год назад
Oh sorry, Google considered this file suspicious and this is why it was not available for you. I requested a review from Google. I can email it to you if you drop me a mail (csongor dot varga at gmail dot com)
@devangzalavadiya4099
@devangzalavadiya4099 7 лет назад
Nice video and explanation, How can i connect this sensor with Arduino Mega2560 ?
@csongorvarga
@csongorvarga 7 лет назад
That is a good question. Arduino has a serial port, so you should be able to get a RS232 to RS485 converter. If you google "arduino modbus" you can see some examples. This is not something I ever tried.
@devangzalavadiya4099
@devangzalavadiya4099 7 лет назад
Actually i wants to set this temperature and humidity sensor with Arduino and via RS485 shield i want to send data to my machine. In this case Arduino will be modbus slave and Laptop will be my master. could you suggest me some links ?
@oumaymayousfi9811
@oumaymayousfi9811 6 лет назад
@@devangzalavadiya4099 please did u succeed to connect the arduino MEGA 2560 TO SENSOR ...if yes can u send me the code that u used
Далее
Борщ в стиле высокой кухни!
00:57
aespa 에스파 'Whiplash' MV
03:11
Просмотров 22 млн
XY-MD02 Sensor Setting - Modbus RTU Network
9:24
Просмотров 3,1 тыс.
SparkFun According to Pete #54 - How RS-485 Works
14:31
The RS-232 protocol
26:10
Просмотров 849 тыс.
ESP32 HDC1080 Humidity and Temperature Sensor
15:16
Просмотров 4,7 тыс.
SPI: The serial peripheral interface
33:00
Просмотров 690 тыс.