Input data by MCP2515/MCP251xfd

There are some HATs for Raspberry Pi available with the MCP2515 chip (and its successor MCP251xfd) on board that you can easily configure in OpenPlotter. After mounting the HAT click on Chip Add MCP251xxx device in Chip MCP2515 or MCP251xfd tabs:

canMCP1

canMCP2

  • Interface: Select SPI0 CE0 if your HAT connects to GPIO 8 (pin 24) and select SPI0 CE1 if your HAT connects to GPIO 7 (pin 26).
  • Oscillator: The oscillator can be found by looking at the crystal chip on the HAT as per the pic below.
  • Interrupt: Select the GPIO your HAT connects for interruption. See the documentation for your device.

can4

After entering the required data the system needs to reboot to apply the changes:

canMCP3

After a reboot you should receive data on your device. Select the item from the list and click check Check device traffic to confirm data entry:

canMCP4

canSlcand4

Now we need to get this data to the Signal K server. Select the item from the list and click sk Add Connection. The Signal K server will restart and you are done:

canMCP5

canMCP6

Go to the Signal K server administration interface using your web browser, to confirm that the connection has been made:

canMCP7

Check OpenCPN to make sure there is a connection to the Signal K server and you are getting data from your NMEA 2000 network.