Industrial Light Sensor SKU 314990739 SKU314990740

I have a SKU314990740 Light sensor which I have connected to a XIAOESP32S3 using the RS485 Breakout SKU113991354 and the requests are timing out (error 226 ModbusMaster).

I use the same hardware setup for SKU 101991029 Temperature, Humidity & CO2 sensor and that works fine.
I have tried the default address and Addr 13(both decimal and hex) which is on a tag on the cable.

Has anyone got a working Arduino sketch for this sensor?

Thanks

1 Like
1 Like

I have a feeling you have to address the correct pins on the XIAO as they connet to the board

Are you using Arduino IDE? Are you using the XIAO ESP32S3 BSP Board Support Package

1 Like

Hi all,

My next step was a factory reset, then using a modbus tool on my PC to do an address scan etc.

I’m using the Arduino IDE + Seeed Xiao_ESP32S3 board support. I am not using SenseCAP S2110 Sensor Builder (SKU114992986)

If anyone is interested, I have a git repo with Arduino and, .NET nanoFramework Xiao ESP32S3 + RS485 breakout code.

KiwiBryn/SeeedstudioRS485Sensors

There is working PoC code for

RS485 CO2, Temperature and Humidity Sensor (SKU101991029)

RS485 Ultrasonic level sensors 500cm (SKU101991042) & 750cm (SKU101991041)

RS485 Breakout sender & receiver sample

They all use an, Xiao ESP32S3 + RS485 breakout

I was planning to do Air Temperature and Humidity (SKU 101990882), H2S (SKU101990863), and Industrial Liquid Level sensor (SKU101990860) PoCs when I get some time.

So, I’m pretty confident my hardware, serial port and my TX, RX + DE pin setups and default slave ID (I also tried the 0X13 & 13 based on the yellow tag with “addr: 13” on the sensor cable) are good.

If anyone had some suggestions for things to try (taking into account above) it would be greatly appreciated.

I do wonder if it a modbus timing or power supply voltage issue. The docs say 3.9-30V/DC and I have the RS485 Breakout supplies 5V.

@KiwiBryn

2 Likes

maybe try switching the data lines A<->B from the sensor?

If the CO2 sensor works, your wiring is fine, this light sensor likely has a different Modbus address or serial setting. Try scanning for the address and check baud rate/parity (often 9600, sometimes 8E1), since the cable label is not always correct.

1 Like

For those who “follow in my footsteps”

For the sensor with a 5pin connector (not the one with bare wires) the device address 0x0D on the yellow label is correct.

The documentation says 3.9-30V but for connector version it is connected to the 12V supply. (rather than the 5V one)

@Kiwibryn

1 Like