0% found this document useful (0 votes)
63 views

Opencpn Raspberry Pi4 Plotter V1e

This project details the creation of a touchscreen marine plotter using a Raspberry Pi 4, OpenCPN software, and various other hardware. The goal was to build a system that was functional, reliable, and cost-effective compared to using a Windows PC. Setting up the Linux-based software required significant troubleshooting. The completed plotter integrates a GPS receiver, touchscreen display, and allows viewing marine charts downloaded from various sources. Proper cooling and power supply were important to ensure reliable operation.

Uploaded by

Johnny BoatLine
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Opencpn Raspberry Pi4 Plotter V1e

This project details the creation of a touchscreen marine plotter using a Raspberry Pi 4, OpenCPN software, and various other hardware. The goal was to build a system that was functional, reliable, and cost-effective compared to using a Windows PC. Setting up the Linux-based software required significant troubleshooting. The completed plotter integrates a GPS receiver, touchscreen display, and allows viewing marine charts downloaded from various sources. Proper cooling and power supply were important to ensure reliable operation.

Uploaded by

Johnny BoatLine
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

15” TOUCHSCREEN PLOTTER USING RASPBERRY Pi4 B MICRO COMPUTER

& OPENCPN V5.0.0 MARINE PLOTTING SOFTWARE. V1d

About: I set out to build a touch screen plotter for Amethyst that would be highly functional,
reliable & cost effective. Previously I had built a PC based plotter which although it worked ok was
using Windows 10 which I thought was not entirely suitable for a stand alone dedicated device.
Because the Raspberry Pi4 (Rpi) works on 5 volts DC it makes it ideal to run from a 12 volt boat
supply through a low cost 12 > 5v voltage converter.
The Opencpn software is free to download & use but you can make a donation to the authors.
There are many chart features in Opencpn that are not present in the cheaper leisure software
versions. This makes the Opencpn very useful for small commercial vessels.
The satellite device I employed is a dual receiver which will use GPS & GLONASS satellites
simultaneously to determine the position. The manufacturers claim around 2mrt accuracy. I doubt
that but it is certainly much more accurate than a GPS PC dongle receiver.
Everything I used to built the plotter & GPS receiver was found & purchased on Ebay.
The Raspberry Pi4 uses Linux software, this I found very difficult to understand & really struggled
to find my way through the setup. So I recorded what I did & checked it to make sure it works.
Overall it has been a challenging project but now it is working well worth it. The following is a
guide only which should get the system running after which Opencpn will need setting up using
their manual.
Hardware Items I used:
1 - 15” Eyoyo touchscreen monitor
2 – Raspberry Pi4B 4 gig Micro computer
3 – Metal case with 5 volt fan for Pi4B
4 – 64 gigabyte micro SD card
5 – 30 volt adjustable 10 amp power supply
6 – 4 way fuse panel
7 – Earth terminal strip
8 – 3mm Aluminium back plate
9 – Raspberry Pi header strip solder plug
10 - Micro to standard HDMI cable
11 – USB mouse
12 – USB mini keyboard.
13 – 4 way USB hub with external 5 volt power supply
14 – GPS GLONASS satellite receiver
15 – TTL to USB connector

Note: The power supply is very important with a Raspberry Pi4, if it does not provide enough
current the onboard WIFI will not function properly & a lightning symbol will appear on the screen.
It is best to power the external USB hub from the 10amp 5v supply via the fuse box.
It is also advisable to fit a 5v silent cooling fan to both the power supply & Raspberry Pi case's.
These fans should be powered from the fuse box & not the onboard Raspberry Pi header. I also had
problems with overheating that affected the HDMI output to the monitor, the addition of a cooling
fan solved this. I connected the 5v power to the GP10 header on the RPi using a header plug (see
picture of Rpi). The accuracy of the satellite receiver can also be affected by a bad power supply.

Software Items Required:


1 – Raspbian operating system software https://www.raspberrypi.org/downloads/noobs/
2 – Opencpn V5.0.0 marine plotter software for Raspberry Pi (Linux)
3 – PC for downloading Raspbian & formatting micro SD card

Raspberry Pi4 stetup


Note: be sure to connect the monitor to the HDMI 1 socket on Raspberry Pi (see picture of RPi).
A/ Format the micro SD card as FAT32 system (Only FAT32 will work with Raspberry Pi)
Note: Name the SD card “boot” with volume label “boot”
B/ Download NOOBS for Raspberry Pi4 to PC
C/ Create a directory on the PC called Noobs
D/ Extract downloaded files to the Noobs directory
E/ Copy & paste the extracted files from the Noobs directory to the Formatted SD card
F/ Plug the SD card containing Noobs into the Raspberry Pi & switch it on.
G/ Set up the WIFI at the Noobs opening screen
H/ Then select “Install Raspbian Operating System”
J/ Setup Zones & Country
K/ Check for updates to Operating System by opening the Terminal Application
L/ Type - sudo apt-get update Press Enter
M/ Type - sudo apt-get dist-upgrade Press Enter
N/ These two commands will check for any software update downloads & then installs them.
DOWNLOADING & INSTALLING OPENCPN ON THE RASPBERRY Pi4B
Note: This next bit can be very frustrating & took me several goes to get it right. The Linux
language is also case sensitive so copy the following text exactly as it is written.
1/ Downloading Opencpn:
A1/ Open the Terminal Application
B1/ Type - sudo nano /etc/apt/sources.list Press enter (This opens the software source list)
Scroll to end of existing text then add C1 below
C1/ Type – deb http://ppa.launchpad.net/opencpn/opencpn/ubuntu bionic main
D1/ Press – Control & X keys together
E1/ Press – Y key for yes
F1/ Press – Enter to save
G1/ Type – sudo apt-get install dirmngr Press Enter
H1/ Type – sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys c865eb40 Press Enter
J1/ Type – sudo apt-get update Press Enter
K1/ Type – sudo apt-get install opencpn Press Enter
Hopefully that worked & Opencpn has been installed on the Raspberry Pi4
Making Opencpn autostart from boot
L1/ Open the Terminal Application
M1/ Type - sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
N1/ At the bottom of the list, Type – sudo opencpn
P1/ Press – Control & X keys together
Q1/ Press – Y key for yes
R1/ Press – Enter to save
S1/ Type reboot to test

2/ Loading charts into Opencpn:


Note: There are various sources of charts that Opencpn can use. If you want to use up to date vector
charts that carry a licence you can download these from O-Chart . I bought the oeSENC “British
Isles” set which includes UK & Ireland. There is an annual fee which was 22 euros paid for using
Paypal.
To load the oeSENC charts into Opencpn you need to purchase a chart from O-CHART then
download & install a plugin. This is an additional program that does a specific task & runs inside
Opencpn.
Downloading oeSENC plugin
A2/ Open the Terminal Application
B2/ Type – sudo apt-get update Press Enter
C2/ Type – sudo apt-get install oesenc-pi Press Enter
This should load the plugin into Opencpn
Now run Opencpn then open options & plugins. In the plugin list should be one called oeSENC,
click on it then click enable.
Now come out of plugins & go to charts, there will be a menu for oeSENC Charts.
Click on Refresh Chart List, this will then open a box that you enter the email address & password
you used when you set up the O-Chart account. From here on follow their instructions.

Loading BSB raster charts (Method I used):


D2/ Using the Raspberry File Manager create a new folder called **** Charts on the desktop
(Example this could be Cmap Charts or Raster Charts)
E2/ On the PC copy the charts to a USB memory stick
F2/ Plug the USB stick into the Raspberry Pi4 & using the File Manager copy the charts into
the correct chart folder
G2/ Follow the Opencpn instructions to open & use the chart folder.
3/ Downloading & loading all Opencpn plugins for Raspberry Pi (apart from oeSENC):
A3/ Open the Terminal Application
B3/ Type – sudo apt-get install opencpn-plugin* Press Enter
C3/ Follow the Opencpn instructions to open & use the plugins.

4/ To Open a TTL USB Port (I used this to communicate with the dual satellite receiver):
Note: To use USB input to Opencpn permission is required, this is granted using the following
code.
A4/ Open the Terminal Application
B4/ Type – sudo usermod -a -G dialout root Press Enter then reboot the Raspberry Pi

5/ To force Opencpn to use the same USB port numbers on startup:


Note: After you set up the USB connections in Opencpn then you restart, the connections are often
reversed. Use the following code to make Opencpn use the same USB port numbers when the
program starts up.
I have no idea how this “Kernel” command works but it does seem to.

A5/ Open the Terminal Application


B5/ Type – lsusb Press Enter (this will list all of your connected USB devices)
Typical device address will look like “bus001 device 008: id-10c4 : ea60 cynal intergated products”
What you need is the id address for your connected USB device in this case “10c4 : ea60”
Write each address down to use next.
C5/ Type – sudo nano /etc/udev/rules.d/70-serial-opencpn.rules Press Enter
D5/ Type – kernel== “ttyACM[0-9]”, ATTRS(idVendor)==”10c4”, ATTRS (idProduct)==”ea60”
SYMLINK+=”APMFC” Press Enter
E5/ Type - kernel== “ttyACM[0-9]” as above for other USB devices Press Enter
F5/ Press – Control & X keys together
G5/ Press – Enter to save

6/ Load Screensaver App:


Note: After a period of time the Raspberry Pi shuts down the screen, to prevent this do the
following.
A6/ Open the Terminal Application
B6/ Type – sudo apt-get install xscreensaver Press Enter
C6/ Open the “Preferences” menu & select “Screensaver”
D6/ In Screensaver select “Mode” then “Disable screen saver”.

Summary:
This project is after a great deal of trial & error finally working as stand alone touchscreen plotter. If
you decide to use these notes to build your own system please do not blame me if it does not work.
The operating system used here was “Raspbian Buster” earlier versions might not work with the
code used here.

Warning: this setup is not waterproof & can only be used in a dry atmosphere

If anybody can improve on this setup then please share it with the rest of us.
Malcolm Burge.
GPS receiver & USB TTL connector
Both items are joined together with a 5 wire cable then connected to the Rpi4
The GPS receiver needs to be housed in a weatherproof plastic container.
Covers can be purchased for the TTL USB connector, I made one for the GPS receiver.

Programmable DC power supply


Up to 30 volts DC in & adjustable to 5 volts DC out.
Make sure you set the output to 5 volts before connecting Rpi4
15” Touchscreen Monitor
12 volt HDMI monitor with USB cable to Rpi4 for touchscreen control.

GPS receiver mounted in a waterproof home made housing.


Notes:

You might also like