Skip to content

NMEA wind display ,based on stm8, esp32, and LCD screen

License

Notifications You must be signed in to change notification settings

elmot/esp-windsensor-deck

Repository files navigation

ESP-32 Wind indicator

Counterpart of ESP32 Wind sensor. The firmware is assembled for classic ESP32, but also works on ESP32-S3.

image

Communication

Connects as a WiFi station and receives NMEA-183 data via UDP port 9000 WiFi parametes are set via idf.py menuconfig

Input pins

Both could be adjusted using idf.py menuconfig

  • Backlight up button GPIO18
  • Backlight down button GPIO19

Input pins

Both could be adjusted using idf.py menuconfig

  • GPIO5 - Alarm LED
  • GPIO4 - Alarm LED inverted

Display

Display unit is connected via unidirectional UART(GPIO17).

There are two variants of the display unit:

  • STM8 MCU + Winstar WG240128B display. There are multiple clones of it. STM8 firmware is here: stm8-display-bridge. Unfortunately STM8 is totally deprecated now. If there is some interest, I'll port it to some cheap ARM-based 5V MCU.
  • Emulator on Raspberry Pi Pico + Pimoroni Pico Display Pack 2.0. See rpi-display

How to flash the main unit

There are multiple ways to flash ESP32. The easiest way is esptool-js.

Take binaries from the latest release.

Flash addresses are

File Address
bootloader.bin 0x1000
partition-table.bin 0x8000
esp-windsensor-mast.bin 0x10000