Skip to content

About

BoatSensor for temperatur, pressure and winddata. Windata input NMEA0183 over WLAN. All data output to NMEA2000.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Latest commit

 

History

162 Commits

Folders and files

Repository files navigation

Temperature, pressure and wind data to NMEA2000

ESP32 KiCad Relaise lastcommit OBP

Description

This repository shows how to measure the

  • temperature
  • barometric pressure
  • Windspeed
  • Winddirection

and send it as NNMEA2000 meassage.

  • PGN 130306 // Wind
  • PGN 130314 // Pressure
  • PGN 130316 // Temperature

In addition, all data and a part of the configuration are displayed as a website. The environmental sensor is automatically detected (i2c Adress and register) and selected. No sensor is detected (but i2c Adress ist detected) this can be set in the setting. The connection parameters to the wind sensor can also be set in the setting site.

Based on the work of

Idea and basics for this Pojekt is "NMEA2000-TempPressure" from @AK-Homberger.

This repository shows how to measure and with a BMP280 or BMP388 sensor and send it to NMEA2000 network. Additional work a Gateway with inputs NMEA0183 TCP-Stream from my Windsensor "NoWa" or "Yachta" @norbert-walter and send to NMEA2000.

The project requires the NMEA2000 and the NMEA2000_esp32 libraries from Timo Lappalainen: https://github.com/ttlappalainen.

This project is part of OpenBoatProject

TPW Sensor Modul

For the BMP 280, BME280 or BMP388 the Adafruit BMP280, BME280 and BMP3xx library has to be installed via the library manager. For HTML-Files use LittleFS Filesystem, you find her in /data directory.

The website includes a 12-hour temperature and pressure history. It records a valid sensor reading every five minutes in LittleFS and starts a new history after each restart; no clock or internet connection is required. The graph uses fixed scales of 0–50 °C and 800–1100 mbar. Upload the data directory to the device's filesystem after updating the firmware.

The LED RGB shows the following status:

  • flash red, green, blue > setup start
  • flash red > no connection to Yachta
  • flash blue, green > read data from BMx and Yachta

The ESP32 in this project is an Adafruit Huzzah! ESP32. This is a small module without USB connector. You need CP2102 Connection Modul for programming. For the ESP32 CAN bus, i used the SN65HVD230 chip as transceiver. The correct GPIO ports are defined in the main sketch. For this project, I use the pins GPIO4 for CAN RX and GPIO5 for CAN TX. The 12 Volt is reduced to 5 Volt with a DC Step-Down_Converter. 12V DC comes from the N2k Bus Connector with the M12 Connector. Its the same wiring and PCB with BD Sensor, you can leave out unnecessary components.

Wiring diagram

grafik

PCB

grafik grafik

Aisler PCB Layout link

Hardware

image

Partlist:

  • C1 C10µ Capacitor_Tantalum_SMD
  • C2 C22µ Capacitor_Tantalum_SMD
  • D1 P4SMAJ26CA
  • D2 B360 Link
  • D3 PRTR5V0U2X
  • D4 PESD1CAN Link
  • D5 LED_RBKG Link
  • FL1 EPCO B82789C0513 Link
  • J1 Conn_01x04_Socket
  • J2,J3 Conn_01x04_Pin
  • N1 Housing Wago 789-120 Link
  • R1 300R
  • R2 10k
  • U1 TSR_1-2450 Link
  • U2 ESP32-Huzzah Link
  • U3 SN65HVD230 Link
  • U4 BMP388 Link (or BMP280 or BME280)

Website

image image image image image

Plotter

image

image

Versions

  • 3.0 add History for temperatur and pressure
  • 2.6 Add BME280 and autoload the correct sensor setup, update website
  • 2.5 Minor update and add website details
  • 2.4 Update windvalues and add windsensortemp for N2k, website cosmetic
  • 2.3 Update windvalues for N2k
  • 2.2 Update read values from windsensor, Update PCB
  • 2.1 Update website Gauge's
  • 2.0 Complete Website update, Windsensor Stream read update (code and html files)
  • 1.3 Update windsensor Wlan connect code
  • 1.2 Update website
  • 1.1 Update PCB
  • 1.0 working Version

About

BoatSensor for temperatur, pressure and winddata. Windata input NMEA0183 over WLAN. All data output to NMEA2000.

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages