Code Monkey home page Code Monkey logo

kicad_nmea2000_sensor's Introduction

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

kicad_nmea2000_sensor's People

Contributors

olliiiver avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

deancrowe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.