RS485 Wind Sensor SOS

Hi, I want to make an Arduino project to measure wind speed and direction but have limited skills. I was able to understand a project for wind speed: bought the anemometer, copied the code, ran it successfully and modified it to send the output to TM1637 digital display.

Wind Direction has been frustrating. There are several threads that seem to dead end with no working solution. I bought an RS485 sensor https://www.amazon.com/dp/B09CGV115Q?psc=1&ref=ppx_yo2ov_dt_b_product_details and RS485 module for Arduino: https://www.amazon.com/dp/B07R52KJYZ?psc=1&ref=ppx_yo2ov_dt_b_product_details.

Can someone point me to a project similar enough to the above that I can follow cookbook style?

May be this

That's a start -thank you. I should be able to modify this code which is for an anemometer (measures wind speed where I want to measure wind direction) but both use RS485.

I'm struggling to understand the pinout however and wonder if this code is meant for the Uxcell MAX485 TTL to RS-485 Instrument Interface Module I'm using? See my questions below

#define RX 10 //Serial Receive pin should connect to RO on RS485 module right?
#define TX 11 //Serial Transmit pin should connect to DI on RS485 module right?

**Is this referring to Arduino's Digital Input pins 10 and 11? Why not use Arduino's RX and TX ports (Digital Input pins 0 and 1)? **

#define RTS_pin 8 //RS485 Direction control
** Digital Input pin 8 on Arduino?**
** There is no "RTS" pin on the Uxcell RS485 module. It has separate DE and RE pins: Data enable/receiver enable, controls transmit/receive mode. The code doesn't define the Arduino pins that should be wired to the RS485 DE and RE pins .**

#define RS485Transmit HIGH
**

#define RS485Receive LOW
SoftwareSerial RS485Serial(RX, TX); // What does this command do? Does the uxcell MAX485 supports this?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.