Code Monkey home page Code Monkey logo

orange-pi5-opencpn's Introduction

OpenCPN on an Orange Pi 5

This is a small, personal project where I run OpenCPN on an Orange Pi 5 (OrPi5) SBC. This SBC is similar to Raspberry Pie 5, but is more powerful, needs less current and is somewhat more expensive.

The overall goal is configure the system to run continously without the power consumption of a PC and/or a big screen. The system uses as of now about 200mA at 12V.

Use cases:

Planning

One or more route(s) are created using the PC, transferred to the SBC over wifi and activated.

planning

Sailing

The SBC keeps track of data such as bearing and distance to waypoint which is displayed on a NMEA repeater. Not requiring a PC means that this runs in a small power envelope.

sailing

Plotting

At any point the PC lid can be opened and the current position on chart and active route is displayed. A tablet is also practical for plotting.

plotting

Maintenance

The SBC is connected to the internet using the PC as router to make it possible to update charts, software, etc.

maintenance

Hardware.

The original Orange Pi 5 version is used. This has an NVME connector which makes is possible to use an NVME disk which faster and more reliable than the otherwise used SD cards. The downside is that there is no wifi connection, this must be done using a separate USB wifi module

There is also two separate cards for GNSS positioning and canbus/RS485 IO. The latter is not used for the moment.

Besides the SBC a PC is used for planning and plotting. I run Fedora Linux on this PC. It should be possible to use a windows PC instead, but the network setup might perhaps be challenging.

Software

The operating system is Debian Linux.

The support for the RK3588 SOC is yet not upstreamed to the kernel. As a consequence one need to use the orangepi 5 repositories. This is mainly to get access to the modified kernel required, but there are also some user space tools provided. Orangepi has an extensive manual covering OS installation.

As for OpenCPN, version 5.10 is required. This has some important fixes for headless usage. Since we use the orangepi repositories, the easiest is to use the Flatpak version.

Details

Hardware

Starting OpenCPN

OpenCPN is started when system is booted. This is done by dropping an opencpn.desktop file in ~/.config/autostart/ An example desktop file can be found here.

Stopping OpenCPN

The SBC is stopped by pushing a hardware button. Pushing this button starts the opencpn-stop script. When this is completed the system is brought down using shutdown.

Bits and pieces:

  • power-btn.service: A systemd service tracking the power off button.

  • power-btn: Script used by the systemd service

  • opencpn-stop: python script basically performing opencpn --remote --quit, but "better" — see comments in script.

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.