r/RASPBERRY_PI_PROJECTS • • 20d ago

PRESENTATION [Project Update] A Raspberry Pi 5 ground-control station for my robot boat

I previously shared BN-USV V1, a small robot boat where a Raspberry Pi handled navigation and sensor processing while an ESP32 handled low-level propulsion control.

For V2, I am using the Raspberry Pi 5 as the higher-level computer for a local browser-based ground control station, mission control, sensor processing, logging, and communication with distributed propulsion controllers.

The current architecture is:

Browser-based GCS
        ↕
Raspberry Pi 5
        ↕ USB serial / JSON
Main ESP32-S3
        ↕ CAN
Left and right ESP32-C3 propulsion controllers

The GCS runs locally on the Pi. Its purpose is to make field debugging less dependent on terminal sessions by bringing telemetry, control state, and navigation information into one interface.

I also added a simulated telemetry mode. It lets me exercise the GCS and mission-control flow without connecting the boat, which has been useful while separating interface issues from sensor and propulsion issues.

The first V2 water tests have been useful, but they also exposed a gap between working software and reliable navigation. RC control and Main/Sub controller communication were exercised on the water, while waypoint navigation is still not validated because heading acquisition has not yet been stable enough for reliable operation.

That is the current focus: improving the sensor and heading-debug workflow before treating autonomous navigation as ready for use.

The current development repository includes the Pi-side GCS and mission-control software, ESP32 Main/Sub firmware, a simulated GCS demo, and project documentation:

https://github.com/Brillnova/BN-USV-V2

This is still an experimental development platform. Some configuration values are examples rather than field-calibrated settings, and the latest hardware and navigation changes need more validation.

One issue I am currently working through is compass reliability. The boat uses a YRTEK LIS3MDL magnetometer, and I have found that its heading can change noticeably when the battery pack or nearby power wiring is relocated.

I suspect local magnetic interference from high-current wiring, ESCs, motors, connectors, or nearby ferromagnetic parts, rather than a software issue alone.

For people using magnetometer-based heading in mobile robots or boats: is this level of sensitivity typical in your experience? How do you decide on sensor placement, calibration, and separation from batteries, power wiring, motors, and ESCs?

I would especially appreciate practical examples of mounting arrangements or validation methods that worked reliably in real field conditions.

24 Upvotes

9 comments sorted by

3

u/skippyuk 19d ago

Looks interesting. Keep us up to date

2

u/minji_zzang 16d ago

Thanks. I'll definitely keep sharing updates as the project progresses. Still plenty of work to do.

2

u/FreXxXenstein 17d ago

I've never built a boat before, so could you let me know why it needs that much compute power?  Knowing that drones can fly with an ESP32 only and a RPI Zero 2 running full Linux it'd be interesting to know. 

1

u/minji_zzang 16d ago

Thanks. Honestly, a Raspberry Pi 5 is definitely overkill for basic RC control or simple GPS waypoint navigation.

The main reason I'm using it is that I'm treating this as a modular robotics development platform rather than just an RC boat.

The ESP32 controllers handle the low-level tasks like RC input, motor control, CAN communication, and safety logic. The Pi handles higher-level navigation, data logging, and a browser-based ground control station.

A Pi Zero 2 W could probably handle much of that too, but I already had a Pi 5 available, and the extra processing power gives me some room to experiment with cameras and more advanced navigation in the future.

So it's more about development flexibility and future expansion than actually needing all that computing power right now, haha.

2

u/FreXxXenstein 16d ago

Ah I see! Good enough reason as any I'd say!  I was just thinking the power usage, the heat, combined with the battery might be much of a downside.  If the first ESP is close to full load, people do combine two or more talking over wire with each other.  Perhaps something like this would enable you to position the magnetometer far away from the rest of the electronics?  Or perhaps even differential GPS diagonally might give you enough resolution? Or how do drone control boards find their heading?  Anyway, these are just ideas from me sitting in my chair, so I'll follow and see what you'll do!  (Btw, recently I watched this:  https://youtu.be/QzcKWfzmNCs?si=ur9WB_v3Ox5WDMVE )

2

u/minji_zzang 16d ago

Those are some really good points! Thanks for taking the time to think about my design.

Power consumption is definitely something I'm aware of. To be honest, most of my background is in simulations based on naval architecture and ocean engineering, rather than actually building physical systems like this. So I sometimes run into problems I hadn't even thought of, haha.

As for power and energy efficiency, I'm currently exploring a few ideas, including solar power modules and using passive wings for additional propulsion and potentially even energy generation. Of course, these technologies have already been developed or commercialized in various forms, so I'm certainly not the first to explore them. But I'm trying to experiment with them in my own way.

Interestingly, I've already switched to a distributed control architecture for V2. I'm using one ESP32-S3 as the main controller and two ESP32-C3s as sub-controllers, communicating over CAN. V1 only had a single ESP32, but I figured distributing the controllers might make future upgrades and expansions easier.

And you're absolutely right about the magnetometer. I ran into some heading issues during my first field test, and interference from nearby electronics is one of the possible causes I've been considering. Moving the sensor farther away is definitely an option. The challenge is that I'm designing the boat to be small enough to manufacture with my own 3D printer, so space is pretty limited. Still, I think there's plenty of room for improvement.

Dual-antenna GNSS heading is another interesting option, but it would add some cost and complexity to the system. For now, I'd rather focus on getting the basic system working reliably before introducing more advanced sensors.

I've actually watched the video you linked, too! That creator started working on this kind of project before I did, so I guess you could say they're a bit of a senior to me in this field, haha. I always look forward to their new videos.

Thanks again for the thoughtful suggestions and for following along with my project. I really appreciate it!

2

u/FreXxXenstein 16d ago

I'm just some armchair dude really, but your post seemed so interesting!  Glad I could at least give you some ideas. 

2

u/paclogic 17d ago

and a catamaran at that !

2

u/minji_zzang 16d ago

Thanks. I went with a catamaran design for the new version. I'm hoping the extra stability and modular hull layout will make it a better platform for experimenting with different electronics and sensors!