Skip to content

gerryvel/Motordaten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MotorData N2k

This repository shows how to measure the Battery Voltage, Engine RPM, Fuel Level and the Exhaust Temeperature and send it as NNMEA2000 meassage. In addition, all data and part of the configuration are displayed as a website. According to the idea of NMEA2000-Data-Sender @AK-Homberger.

Website

grafik grafik grafik

Wiring diagram

grafik

PCB Layout

grafik grafik image

The project requires the NMEA2000 and the NMEA2000_esp32 libraries from Timo Lappalainen: https://github.com/ttlappalainen. Both libraries have to be downloaded and installed.

The ESP32 in this project is an Adafruit Huzzah! ESP32. Pin layout for other ESP32 devices might differ.

For the ESP32 CAN bus, I used the "SN65HVD230 Chip from TI" as transceiver. It works well with the ESP32. 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.

The Website use LittleFS Filesystem. You must use Partition Schemes "Minimal SPIFFS with APPS and OTA". The HTML Data upload separately with

  • "ESP 32 Skcetch Data upload" (Arduino IDE) or
  • PlatformIO > Build Filesystem and Upload Filesystem Image (PlatformIO) from /data directory.

Partlist:

  • PCB by Aisler Link

Assembly: MD N2k__Assembly.pdf

  • 1 C1 10µ CP_EIA-7343-15_Kemet-W_Pad2.25x2.55mm_HandSolder 1
  • 2 C2 22µ CP_EIA-7343-15_Kemet-W_Pad2.25x2.55mm_HandSolder 1
  • 3 R1 100k R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal 1
  • 4 R2 27k R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal 1
  • 5 R3 300R R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal 1
  • 6 R4 10k R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal 1
  • 7 R5 1k R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal 1
  • 8 R6 4k7 R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal 1
  • 9 R7 2k R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal 1
  • 10 D1 B360 D_SMC 1
  • 11 D2 LED_RBKG PinHeader_1x04_P2.00mm_LED RGB 1
  • 12 D3 PESD1CAN SOT-23 1
  • 13 D4 ZPD3.3 D_DO-35_SOD27_P10.16mm_Horizontal 1 Link
  • 14 D5 1N4148 D_DO-35_SOD27_P7.62mm_Horizontal 1 Link
  • 15 D6 P4SMAJ26CA D_SMA_TVS 1
  • 16 U1 TSR_1-2450 Converter_DCDC_TRACO_TSR-1_THT 1 Link
  • 17 U2 ESP32-Huzzah Adafruit_ESP32 1
  • 18 U3 SN65HVD230 SOIC-8_3.9x4.9mm_P1.27mm 1 Link
  • 19 U4 H11L1 DIP-6_W7.62mm 1 Link
  • 20 FL1 EPCO B82789C0513 B82789C0113N002 1
  • 21 J2, J3 Conn_01x04_Pin PinHeader_1x04_P2.54mm_Vertical 2
  • 22 J1 Conn_01x03_Pin PinHeader_1x03_P2.54mm_Vertical 1
  • Wago-Case: Link

Changes

Version 2.0

  • update Website (code and html files)
  • change Hardware layout, add protection's and C's on Voltage input, add protection's for CanBus
  • change Webinterface, add calibration-offset for temperature