Code Monkey home page Code Monkey logo

nmea2000_avr's Introduction

NMEA2000_avr

This library provides support to AVR CPUs which contain an internal CAN controller when used with the NMEA2000 library.

See https://github.com/thomasonw/NMEA2000_avr & https://github.com/thomasonw/avr_can

Currently supported CPUs include:

  • ATmega16M1
  • ATmega32M1
  • ATmega64M1
  • ATmega32C1
  • ATmega64C1
  • AT90CAN64
  • AT90CAN128

Usage

This library is is support of ttlappalainen's NMEA2000 library. See the NMEA2000 for more examples.
Also required is AVR_CAN driver https://github.com/thomasonw/avr_can Make sure you have it installed.

#include <NMEA2000_CAN.h>  // This will automatically choose right CAN library and create suitable NMEA2000 object
#include <N2kMessages.h>


void setup() {
  NMEA2000.open();
}

void loop() {
}

All examples using one CAN port in the NMEA2000 library will. The ATmega M1/C1 & AT90CAN CPUs only have one CAN controller.

Hardware

You will need a CAN transceiver like the MCP2551

avr CPU MCP2551 NMEA2000 Cable
TX TxD
RX RxD
CANH Blue
CANL White
Gnd Gnd Black
5v VDD
Gnd Rs
Vref (disconnected)

See also https://github.com/thomasonw/ATmegaxxM1-C1 for Arduino IDE support of the ATmegaxxM1 and ATmegaxxC1 CPUs

nmea2000_avr's People

Contributors

thomasonw avatar

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.