NMEA 2000 Shield

  • Download NMEA2000 and NMEA2000_esp32 libraries.
  • Connect e.g. MCP2562 tranceiver TX (pin 1) to Esp32 GPIO 16 and RX (pin 4) to GPIO 4.
  • Try example NMEA2000ToWiFiAsSeaSmart.
  • If you use other pins, you have to add to NMEA2000ToWiFiAsSeaSmart.ino above line
    #include <NMEA2000_CAN.h>
    lines
#define ESP32_CAN_TX_PIN GPIO_NUM_xx
#define ESP32_CAN_RX_PIN GPIO_NUM_yy