ArduinoTroubleshooting

RS485 Wind direction transmitter Arduino library

userHead MazinNasser 2022-04-25 02:51:58 1138 Views3 Replies

Hello

I'm trying to do the RS485 wind vane transmitter project, link https://wiki.dfrobot.com/RS485_Wind_Direction_Transmitter_SKU_SEN0482 

But the Arduino library doesn't open up when clicked, but refreshes the page. Is there any way to get the zip folder for the library?

Thank you

2022-09-09 05:55:50

Just a note: I am running the wind direction transmitter and at least my transmitter returns valid data in two bytes, which I use for high res. output of the direction. The response is not totally linear.  A have checked the response at different angles and use a correction with a 2nd order polynomial function. Then one can use the data, correct it and gets a nice ~11-12 bit resolution for the wind direction.

I am using Python with a Raspberry Pi.

Example: for the command: [0x02, 0x03, 0x00, 0x00, 0x00, 0x01, 0x84, 0x39]

I read the 7 Data bytes return 

and use the bytes: x = (Data[3]  * 0x100 + Data[4]) 

correct them by: WindDirection = -3E-6 * x^2 + 0.1098 * x + 0.1412 (this calibration has to be done probably for each device)

which gives a high resolution wind direction.

To get an index 0-15 I use: idx = round(WindDirection / 360 * 16)

 

 

userHeadPic KlausHee
2022-06-17 20:24:50

Awesome and interesting article. Great things you’ve always shared with us. Thanks. Just continue composing this kind of post. 

 

 

 

https://www.mybalancenow.bid/

userHeadPic AnneWelch