Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Interfacing Humidity & Temprature sensor using RS485

Status
Not open for further replies.

liono

Newbie level 4
Newbie level 4
Joined
Mar 1, 2011
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Benghazi
Visit site
Activity points
1,317
Hi,

I am having a H&T sensor with RS485 interface.
The website is useless regarding the documentation.

Any idea how to interface this device with Windows and Linux system?

The webpage for the product is here:
**broken link removed**

Thanks.
 

You're right, there is no information thereu're right, there is no information there

Well...there's something.
The page suggest that the temperature sensing element is: DS18B20

Google suggests that this IC has a 1 wire interface - nothing about RS485.

lion, what type of connector do you see on your device?
 

A clear and well understandable product documentation. The sensor is using industry standard MODBUS RTU protocol.
 

Thank you all for the help. Appreciated.

I am a newbie in the field, however, I do not see in the manual how to send the device a command so that it returns the H&T values.

The use of function code is not clear in the manual, also the it is not shown what are the Temperature and Humidity registers.

My Question:
How to poll this device to read the H&T registers.

Thanks
 

The use of function code is not clear in the manual, also the it is not shown what are the Temperature and Humidity registers.

The problem is that you're apparently not familiar with MODBUS. The example given in the manual reads two registers starting with register 0, using function code 3 Read Holding Registers. It's not said if single register read of register 0 or 1 also works, probably yes. But the example should be sufficient to operate the sensor.

For MODBUS protocol details, visit https://www.modbus.org/tech.php.
 
  • Like
Reactions: liono

    liono

    Points: 2
    Helpful Answer Positive Rating
Thank you FvM.

You are right , i have little info when it comes to ModBus.

Thanks for the link.
 

My Question:
How to poll this device to read the H&T registers.

Using SCADA software with modbus RTU (master) protocol enabled, you can read H&T registers. There are many free version of SCADA softwares with limited tags. As you only need two tags (H&T), so you can start with free version of "modbus SCADA" from http://www.wlcsystems.com This software only supports modbus protocol and free version is fully functional upto three tags.

Besides you also need a USB(or RS232) to RS485 converter.
 

Thank you ahsan, the idea is to create my own interfacing code. I got the RS232 <--> RS485 converter.

Thank you for the tip though.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top