Skip to content

3. Instructions how to connect the sensors.

Ricardo Guzman (Richonguzman) edited this page Oct 23, 2024 · 5 revisions

First: Changing Wind Direction Sensor Address:

Why? Because both Wind Sensors (almost) always have the same 0x01 Address and we should change one to allow the ESP32 board to talk to them always knowing which one it is.

a) Connect RS485/TLL board to TTGO_T_LoRa32:

RS485/TTL - VCC - - - - - > ESP32 3.3V pin

RS485/TTL - RXD - - - - - > ESP32 pin34

RS485/TTL - TXD - - - - - > ESP32 pin4

RS485/TTL - GND- - - - - > ESP32 GND pin

b) Connect only the RS485 Wind Direction Sensor to RS485/TTL board.

RS485/TTL - (A+) - - - - - > Wind Direction Sensor Yellow

RS485/TTL - (B-) - - - - - > Wind Direction Sensor Blue

RS485/TTL - GND - - - - - > Wind Direction Sensor Black

c) Connect Pin13 to 3.3V pin (with a cable or a switch).

d) Power TTGO_T_LoRa32 with USB

e) Power RS485 Wind Direction Sensor with 10-30 Volts(DC) as per /src/boards_pinout.h description. Serial output and oled display will show that the board is looking for Wind Direction Sensor Addresses: 0x00, 0x01, 0x02. (It should be 0x01).

Wind Direction Sensor Brown - - - - - > (+)

Wind Direction Sensor Black - - - - - > (-)

YES, all GND are connected.

f) If Address is 0x01 disconnect the esp32-board power (turn it off) and continue.


Second:

With the validation of Wind Direction Sensor Address (it should be 0x01 and we will change it to 0x02):

a) Disconnect Pin13 from 3.3V pin.

b) Connect Pin14 to 3.3V pin (with a cable or a switch). Push RST pin on the board and Serial output and oled screen will show the procedure and will show when sensor address is changed.

c) Disconnect the esp32-board power (turn it off) and continue.


Third:

a) Disconnect Pin13 and Pin14 from 3.3V pin.

b) Connect all the other sensors as its shown on /src/boards_pinout.h.

BH1750 / GY-302 - VCC - - - - > ESP32 3.3V pin

BH1750 / GY-302 - GND - - - - > ESP32 GND

BH1750 / GY-302 - SDA - - - - > ESP32 pin21

BH1750 / GY-302 - SCL - - - - > ESP32 pin22

BH1750 / GY-302 - ADDR - - - - > ESP32 — (not connected)

BME280 uses the same I2C pinouts as BH1750

Rain Sensor - GND - - - - > ESP32 GND

Rain Sensor - (+) - - - - - > ESP32 pin15

c) Edit relevant data in /data/WxStation_config.h (omit if this task has been done).

d) Power the TTGO_T_LoRa32 and enjoy!