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.
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?