Skip to content

NMEA 2000 KiCAD PCB and sketch for analog inputs (e.g. water level, fuel gauge, switch, etc ...)

License

Notifications You must be signed in to change notification settings

olliiiver/kicad_nmea2000_sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NMEA 2000 KiCAD PCB and sketch for analog inputs (e.g. water level, fuel gauge, switch, etc ...)

Based on https://github.com/ttlappalainen/NMEA2000

Can be used to create a NMEA 2000 device like a sensor for fuel gauges. The board is easy to work with since it contains ISP and serial ports.

Use at your own risk. Don't forget the right external fuses, etc.

RENDERED

PHOTO

Prerequisites

  • A NMEA2000 or Seatalk NG network
  • PlatformIO CLI from https://platformio.org
  • A PCB manufacturer of your choice and some SMD soldering experience

How to

PCB

Equip SMD parts for power (LDO, etc) first and measure input to output voltage carefully. Adjust R4 (and R3) resistors, if necessary. If voltage is around 4.8V - 5V, place other parts.

Burn bootloader

  1. Disconnect PCB from other power sources or adapters.
  2. Connect an AVR ISP programmer (usbasp) to ISP port
  3. Change into arduino-blink directory and type pio run --target fuses. If the chip doesn't answer run avrdude manually with -B flag to set the bit clock rate, see https://electronics.stackexchange.com/questions/388324/avrdude-error-program-enable-target-doesnt-answer-1
  4. Change into arduino-blink directory and type pio run --target bootloader
  5. Optional: The sketch can be uploaded via ISP directly from arduino-sensor directory (pio run --target program)

Upload sketch

  1. Disconnect PCB from other power sources or adapters.
  2. Connect an USB serial adapter to serial port
  3. Change into arduino-sensor directory
  4. Run pio run --target upload

If errors appear during upload (e.g. programmer is out of sync or protocol error use another USB cable, USB hub or USB adapter. Check USB voltage (>4.89V) and ripple noise.

BOM

About

NMEA 2000 KiCAD PCB and sketch for analog inputs (e.g. water level, fuel gauge, switch, etc ...)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages