RUI3-RS485-Wind-Sensor

RAKWireless RAKstar

Example for a RS485 wind sensor using RAKwireless RUI3 on a RAK3172.

Works with the Rika RK900-09 sensor.

Components


Rika RK900-09 Wind Sensor

Rika RK900-09 datasheet

Sensor works by default with 9600 Baud

Rika RK900-09 Wind Sensor register setup

Address Multiplier Register content
0x0000 /100 Wind Speed
0x0001 /1 Wind Direction
0x0002 /10 Temperature
0x0003 /10 Humidity
0x0004 /10 Barometric Pressure
0x0020 *1 Device address

WisBlock modules & enclosure


Assembly

Assembly is done with the "standard" mounting plate of the Unify Enclosure.
Sensor connection is done with the 5-pin IP65 connector of the Unify Enclosure. Antenna used is Blade Antenna with 2.3 dBi gain.

Sensor

IMPORTANT

RAK19002 12V booster must be installed in the Sensor Slot B

INFO

A permanent power supply will be required due to the power consumption of the Wind Sensor. This is not yet implemented in the setup.


Modbus Wiring diagram

Wiring Diagram

Firmware

Firmware is based on RUI3-RAK5802-Modbus-Master with adjustements for the used RS485 sensor.


Custom AT commands

Send interval of the sensor values can be set with a custom AT command. Interval time is set in seconds

ATC+SENDINT? Command definition

ATC+SENDINT,: Set/Get the interval sending time values in seconds 0 = off, max 2,147,483 seconds
OK

ATC+SENDINT=? Get current send interval in seconds

ATC+SENDINT=3600
OK

ATC+SENDINT=3600 Get current send interval to 3600 seconds == 1 hour

ATC+SENDINT=3600
OK


LoRa® is a registered trademark or service mark of Semtech Corporation or its affiliates.


LoRaWAN® is a licensed mark.