Skip to content

AK-Homberger/NMEA2000-SeatalkNG-AlarmBuzzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NMEA2000 SeatalkNG AlarmBuzzer

This is external buzzer for NMEA2000 / SeaTalk-NG Alarms.

See Canboat project for PGN details and alarm types (LOOKUP_SEATALK_ALARM_ID and PGN 65288): https://github.com/canboat/canboat/blob/master/analyzer/pgn.h

Currently PGN 65288 alarms are supported. Other NMEA2000 alarms can be integrated if required (e.g engine related).

An external Buzzer have to be connected.

Schematics

The wanted alarms have to be defined in the table within the code:

struct Seatalk_Alarm Seatalk_Alarm_table[] = {

{ 1, 0 }, // Shallow depth

{ 5, 0 }, // Off Course

{ 14, 0 }, // WP Arrival

{ 20, 0 }, // Pilot Off Course

{ 21, 0 }, // Pilot Wind Shift

{ 22, 0 }, // Pilot Low Battery

{ 29, 0 }, // Pilot Way Point Advance

{ 37, 0 }, // GPS Failure

{ 38, 0 }, // MOB

{ 104, 0 }, // AIS Dangerous Target

};

Just change/add/delete alarms as wanted with the Alarm ID from LOOKUP_SEATALK_ALARM_ID

The code is using the NMEA 2000 libraries from Timo Lappalainen (https://github.com/ttlappalainen).

Download and install the following libraries from GitHub link above:

  • NMEA2000
  • NMEA2000_esp32

Remove the 120 ohm resistor from the transceiver

For unknown reasons, many CAN bus transceivers for the ESP32 have a 120 Ohm resistor built into them. The resistor does not belong to the devices at the ends of the stub lines, but to the ends of the backbone cable.

Whether the transceiver contains a 120 ohm resistor can be determined either by looking at the circuit diagram or by measuring with the multimeter.

A knife tip is suitable for removing the SMD resistor. Use it to scratch or pry off the resistance. With the transceiver shown here, place the tip of the knife in front of the resistor (between the chip and the resistor) and support the knife against the chip. Then lever the tip against the resistance and use it to scratch / loosen / break the resistance. Whichever happens first.

Transceiver

It then looks like the picture. Then measure to be on the safe side. Without a 120 ohm resistor, the multimeter shows approx. 75 kOhm.

Partlist:

  • ESP32 Link
  • Buzzer Link or Link2
  • SN65HVD230 Link
  • D24V10F5 Link
  • Resistor 3,3KOhm Link Other resistors are the same type!
  • Transistor BC547 Link
  • PCB universal set Link

Update

Verion 0.3 - 04.08.20: Changed TX pin from 2 to 5 and buzzer pin from 5 to 15 to avoid CAN bus problems during ESP32 reboot/programming.

Verion 0.1 - 28.07.20: Initial version.

About

An external Buzzer for NMEA2000 / SeaTalk-NG Alarms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages