Pican-M UGB 20
Pican-M UGB 20
Product name PiCAN-M with NMEA 0183 and NMEA 2000 Connection
Contents
Table of Contents
1. Introduction ........................................................................................................... 3
1.1. Features ............................................................................................................................................................. 3
2. Hardware Installation ............................................................................................. 4
1.2. NMEA 2000 CAN-BUS Connection ......................................................................................................... 4
1.3. NMEA 0183 (RS422) Connection ........................................................................................................... 5
1.4. 120W Terminator .......................................................................................................................................... 5
1.5. LED....................................................................................................................................................................... 5
1.6. Switch Mode Power Supply (optional) ................................................................................................ 5
1.7. Qwiic (I2C) Connector J4 ............................................................................................................................ 5
3. Software Installation .............................................................................................. 6
1.8. Installing CAN Utils ....................................................................................................................................... 9
1.9. Bring Up the Interface ................................................................................................................................. 9
4. Starting OpenPlotter .............................................................................................11
1.10. Configure GPS NMEA 0183 (RS422) ................................................................................................... 11
1.11. Configure I2C for BME280 Sensor ....................................................................................................... 17
1.12. Configure NEMA 2000 ............................................................................................................................... 23
1. Introduction
This is a PiCAN-M with NMEA 0183 and NMEA 2000 Connection. The NMEA 0183
(RS422) is via a 5 way screw terminal. The NMEA 2000 is via Micro-C connector.
Extra sensors can be connected via the Qwiic (I2C) connector.
Optional 3A SMPS. The 12v from the NMEA 2000 network can be use to power the
PiCAN-M and the Raspberry Pi.
Easy to install SocketCAN driver. Programming can be done in C or Python.
1.1. Features
• CAN connection via Micro-C connector
• 120Ω terminator ready
• SocketCAN driver
o appears as can0 to application
• NMEA 0183 (RS422) via 5-way screw terminal
o appears as ttyS0 to application
• LED indicator (GPIO22)
• Qwiic (I2C) connector for extra sensors
• Optional 3A SMPS.
• Compatible with OpenCPN and Signal K
2. Hardware Installation
Before installing the board make sure the Raspberry is switched off. Carefully align
the 40way connector on top of the Pi. Use spacer and screw (optional items) to secure
the board.
J1 Function
1 Shield
2 +12v
3 GND
4 CAN_H
5 CAN_L
J3 Function
1 GND
2 IN +
3 IN -
4 OUT -
5 OUT +
1.5. LED
There is a red LED fitted to the board. This is connected to GPIO 22.
3. Software Installation
If you want a simple installation of OpenPlotter / Signal K then use a pre-configure SD
image instead.
Download the 2020-12-16-OpenPlotter-v2-Starting-img.zip from
https://cloud.openmarine.net/s/sL9doDML7P4CQDo
Download and install Raspberry Pi Imager.
https://www.raspberrypi.org/software/
Put a SD card in a reader and start Raspberry Pi Imager.
Select the zip file you have just downloaded and click CHOOSE SD CARD. Select your
SD card and click WRITE.
Once the SD card write has finished remove it from your PC and insert into the
Raspberry Pi and power up.
The first boot will take some time. You can set new password and system language.
Next we need to add entries to config.txt
dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25
dtoverlay=spi-bcm2835-overlay
“Would you like the serial port hardware to be enabled ?” Select Yes.
This capture is from a Yacht Devices Digital Thermometer NMEA 2000 YDTC-13N
To automatically bring up can0 at boot up we need to edit the interface by typing in:
sudo nano /etc/network/interfaces
4. Starting OpenPlotter
Once the Raspberry Pi has booted up you should see a screen like this:
1. Select ttyS0
2. Enter gps as alias
3. Select NMEA 0183 as data
4. Click Apply
Wait until the changes has been applied. The configure the connection:
1. Select Connections
2. Click Add to Signal K
3. Select Baud Rate
4. Click AUTO.
Wait until Signal K sever restart and it should look like this:
1. Start OpenCPN
2. Click Options
3. Click Connections
4. Click Add Connections
1. Select Serial
2. Select ttyS0
3. Click Apply
This will take you back to the main Options dialogue box:
1. Select ttyS0
2. Click Remove
The close the Serial dialogue box and open it again. You should see:
1. GPS lock
2. Click Dashboard
1. Click OpenPlotter
2. Click Settings
1. Click Refresh
2. Select I2C Sensors
3. Click Install, then yes
1. Click Add
2. Select BME280
3. Select 0x77
4. Click OK
1. Select temperature
2. Click Edit
3. Click Edit
Now add the temperature key:
1. Select environment
2. Select inside.temperature
3. Click OK
4. Click OK
1. Click Connections
2. Select BME280
3. Click Add Connection
1. Click Spanner
1. Click OpenPlotter
2. Click CAN Bus
1. Click MCP2515
2. Select SPI0 CE0
3. Click Add Connection
Wait for Signal K to restart.
Check CAN-bus traffic:
Open Signal K Instrument Panel and you should see the NMEA 2000 devices.
Configure the units as required.