VDO Sumlog Sensor to Signal K: Read a Paddlewheel with an SH-ESP32
12 min read
On this page
You are refitting the electronics. The chartplotter and the Signal K server are new. Under the floorboards there is still an old paddlewheel log, probably a VDO Sumlog, often with no label left on it. The display that went with it is dead or about to be thrown out. Do you cut a bigger hole for a new smart transducer, or keep the sensor and read it yourself?
This is a common refit situation, and it comes up on sailing forums every season. A meter on the signal wire shows it switching between 0 V and several volts as the wheel turns, and the owner wants to read it with an ESP32 board they already own. Owners who wire these sensors straight to a Raspberry Pi GPIO, with no isolation, also hit a second problem: there is little documentation on how many pulses the sensor gives per nautical mile.
This guide covers both problems. It shows how to get the pulses into an isolated input safely, and how to work out the pulses-per-mile figure yourself instead of hunting for one.
How a VDO Sumlog sensor works
VDO's manual for the classic Sumlog describes the measuring principle as "pulse count by Hall sensor". The flow turns the paddle wheel, and the sensor counts its rotation without any contacts. The system runs on 10.8 to 32 V DC (VDO Sumlog installation and operating instructions, technical data).
Owners who have opened these sensors describe the signal as follows:
- A Hall sensor with magnets in the wheel switches the signal wire to ground each time a magnet passes. The instrument pulls that wire up through a resistor, so you see a square wave whose frequency rises with speed. That is why a meter on the signal wire shows it jumping between 0 V and several volts. One owner documented a VDO Sumlog II with three magnets and a 5 kΩ pull-up (Hackaday log).
- Other owners who have repaired them describe the older VDO sensors as open collector, pulled up to about 9 V inside the display, and report wheels with two, three or four magnets.
That last point matters. Pulses per knot depend on the wheel, so a number copied from someone else's boat can be wrong for yours. You will measure your own.
Not every VDO speed sensor is a pulse sensor. VDO's ViewLine Sumlog display has two sensor inputs: a frequency input and an NMEA 0183 input. You type the pulse count into the display yourself (ViewLine 85 mm Sumlog installation instructions). The newer Veratron-era sensor uses a 4-pin connector and runs on 10–30 V DC (VDO Sumlog installation instructions, 2016). Identify yours before you connect anything.
Step 1: identify your sensor with a meter
- Count the wires. Three wires (supply, ground, signal) suggests a Hall sensor. The Hackaday owner found white = +12 V, brown = ground and green = signal on his sensor. Treat those colors as a hint, not a rule.
- Check the supply. With the old display connected and powered, measure between the supply wire and ground. You should see battery voltage.
- Check the signal. Measure between the signal wire and ground while you turn the paddle wheel slowly by hand. A Hall sensor jumps between near 0 V and the pull-up voltage as each magnet passes.
- Look for anything else. If the signal sits at a steady voltage, or you see NMEA sentences on a serial adapter, you have a different kind of sensor. This guide does not cover it.
If the old display is gone, you can do step 3 with a 4.7 kΩ resistor from the signal wire to +12 V. A Hall open-collector output reads nothing without a pull-up.
Step 2: wire it to the SH-ESP32 opto input
The SH-ESP32 has an optocoupled digital input with a four-pin header labeled GND, Vext, IN and OUT. Hat Labs calls it "the recommended way to add simple digital signal input", for example to count alternator pulses for an RPM reading. A voltage of about 2.5 to 18 V on the input pulls OPTO_IN (GPIO 35) high (Hat Labs SH-ESP32 hardware docs).
View full size (opens in a new tab)
SH-ESP32 rev 2.0.0 render by Hat Labs, from the SH-ESP32 hardware repository, licensed CC BY 4.0. Yellow outline around the opto I/O label and header.
In the Hat Labs schematic, the input runs from IN through a 2.2 kΩ resistor and a diode to the optocoupler LED, and back out on the header's GND pin. That GND is the isolated side, not the board ground. This lets you put the LED between +12 V and the sensor's signal wire. When the Hall sensor switches its output to ground, current flows through the LED and GPIO 35 sees a pulse. No extra parts are needed, and the ESP32 never touches the sensor's wiring.
| From | To | Notes |
|---|---|---|
| Sensor supply (white*) | Fused +12 V | Same supply the old display used |
| Sensor ground (brown*) | Boat negative | |
| Sensor signal (green*) | SH-ESP32 opto GND | The sensor output completes the LED circuit |
| Fused +12 V | SH-ESP32 opto IN | Below the 18 V input limit on a 12 V system |
| SH-ESP32 opto Vext and OUT | Not connected | The output stage is not used here |
| SH-ESP32 power input | Fused +12 V and boat negative | Board supply is 8–32 V |
*Colors as found by one owner on a VDO Sumlog II. Confirm yours with a meter.
Scroll sideways to see the whole diagram.View full size (opens in a new tab)
Things to get right:
- Disconnect the old display from the signal wire. Its internal pull-up would sit in parallel with the opto LED and can leave the LED partly on between pulses.
- On a 24 V boat, add a resistor. Charging voltage on a 24 V system is above the 18 V limit. Hat Labs says the limit can be raised with an extra series current-limiting resistor. By our calculation from the 2.2 kΩ on the schematic, a 2.2 kΩ, ¼ W resistor in the IN lead keeps the current at 28.8 V below what the board sees at 18 V without it.
- Protect the GPIO header. Hat Labs notes that the GPIO header pins have no ESD or RF noise protection. Keep the sensor wiring on the opto header, which is what it is for.
If you would rather not think about any of this, HALMET is the other route. Its four digital inputs tolerate −32 to +32 V and switch at about 1.55 V with about 0.7 V of hysteresis. They also have solder-jumper pull-ups, and Hat Labs documents using them as counters (HALMET usage docs, hardware docs). That is a plain open-collector-to-input connection, and it suits 24 V boats. Input D1 is GPIO 23, so change the pin number in the code below.
Step 3: count the pulses with SensESP
SensESP is the application framework listed in the SH-ESP32 software docs. Start from the SensESP project template and replace src/main.cpp with the code below. It sends three values to your Signal K server:
sensors.paddlewheel.frequency: raw pulses per second, for the bench test.sensors.paddlewheel.pulseCount: a running total since boot, for calibration.navigation.speedThroughWater: the calibrated speed. Signal K defines this path in m/s (Signal K specification).
// VDO Sumlog (or other Hall-effect paddlewheel) on a Hat Labs SH-ESP32.
// SensESP 3.x. Counts pulses on the optocoupler input (GPIO 35).
#include <Arduino.h>
#include "sensesp/sensors/digital_input.h"
#include "sensesp/signalk/signalk_output.h"
#include "sensesp/transforms/frequency.h"
#include "sensesp/transforms/integrator.h"
#include "sensesp/transforms/moving_average.h"
#include "sensesp_app_builder.h"
using namespace sensesp;
// SH-ESP32 optocoupler input. GPIO 35 is input-only.
const uint8_t kOptoInPin = 35;
// How often the pulse count is read, in milliseconds.
const unsigned int kReadDelayMs = 1000;
// Metres through the water per pulse = 1852 / pulses per nautical mile.
// 1.0 is a placeholder until you calibrate. You can change it later in
// the SensESP web UI without reflashing.
const float kMetersPerPulse = 1.0;
void setup() {
SetupLogging();
SensESPAppBuilder builder;
sensesp_app = builder.set_hostname("paddlewheel")->get_app();
auto* pulses = new DigitalInputCounter(kOptoInPin, INPUT, RISING,
kReadDelayMs, "/paddlewheel/counter");
// Raw pulse rate in Hz: spin the wheel and watch this move.
pulses->connect_to(new Frequency(1.0))
->connect_to(new SKOutputFloat(
"sensors.paddlewheel.frequency", "",
new SKMetadata("Hz", "Paddlewheel pulse rate")));
// Running pulse total since boot: note it at both ends of a measured run.
pulses->connect_to(new Accumulator(1, 0))
->connect_to(new SKOutputInt(
"sensors.paddlewheel.pulseCount", "",
new SKMetadata("", "Paddlewheel pulses since boot")));
// Speed through water in m/s (Signal K uses SI units).
auto* speed = new Frequency(kMetersPerPulse, "/paddlewheel/calibration");
ConfigItem(speed)
->set_title("Speed calibration")
->set_description("Metres per pulse = 1852 / pulses per nautical mile")
->set_sort_order(1000);
// Average the last 5 readings to steady the number at low speed.
auto* smoothed = new MovingAverage(5, 1.0, "/paddlewheel/average");
ConfigItem(smoothed)->set_title("Speed smoothing")->set_sort_order(1001);
auto* stw_output = new SKOutputFloat(
"navigation.speedThroughWater", "/paddlewheel/sk_path",
new SKMetadata("m/s", "Speed through water"));
ConfigItem(stw_output)->set_title("Speed SK path")->set_sort_order(1002);
pulses->connect_to(speed)->connect_to(smoothed)->connect_to(stw_output);
}
void loop() { event_loop()->tick(); }
Why "metres per pulse"? The Frequency transform outputs its multiplier × pulses ÷ seconds (SensESP source). If each pulse is a fixed distance through the water, then metres per pulse × pulses per second is metres per second, which is what Signal K wants. A nautical mile is 1852 m, so metres per pulse is 1852 divided by your pulses per nautical mile.
Step 4: bench test before you go out
Do this at the dock, or before haul-out if you can still reach the sensor:
- Power everything up and open the Signal K server's Data Browser.
- With the wheel still,
sensors.paddlewheel.frequencyshould read 0. - Turn the wheel by hand. Blowing on it works too. The frequency should rise as the wheel spins faster and fall back to 0 when it stops.
sensors.paddlewheel.pulseCountshould only go up. - If nothing changes, see Troubleshooting below before you go any further.
Step 5: calibrate pulses per nautical mile
VDO's own calibration method is a measured distance. In flowing water you run it in both directions, then divide the distance actually covered by the distance the log showed (VDO Sumlog manual, calibration). With the pulse counter this becomes:
- Pick a known distance between two charted marks or transits, in nautical miles. Longer is better.
- Run it at a steady speed. Note
pulseCountas you pass the first mark and again at the second. - Run it again in the opposite direction and note both counts.
- Pulses per nautical mile = (pulses on leg 1 + pulses on leg 2) ÷ (distance of leg 1 + distance of leg 2).
- Metres per pulse = 1852 ÷ pulses per nautical mile. Enter that in the SensESP web UI under Speed calibration. It is saved on the device, so you don't need to reflash.
A worked example with made-up numbers: a 1.0 nm leg gives 20,400 pulses, and the return leg gives 19,600. That makes 40,000 ÷ 2.0 = 20,000 pulses per nautical mile, so metres per pulse is 1852 ÷ 20,000 = 0.0926. Your numbers will be different.
Can you use GPS instead? VDO says not to: "The GPS Navigator indicates speed over ground (SOG), but the VDO Sumlog measures speed through water" (VDO Sumlog manual). If you have no measured mile, run reciprocal legs in slack water and average them. Treat the result as an approximation, because any current will bias it.
Getting speed onto NMEA 2000
Once navigation.speedThroughWater is in Signal K, the signalk-to-nmea2000 plugin can send it to the NMEA 2000 network as PGN 128259 (Speed, water referenced). Its speed conversion maps exactly that path (source). The server needs a connection to the NMEA 2000 network for this, for example through a CAN interface. The SH-ESP32 itself has an isolated CAN interface. Check on your own network that your displays show the value before you rely on it.
Troubleshooting
| Symptom | Check |
|---|---|
| Frequency stays at 0 | Sensor supply present? Opto IN at +12 V? Sensor signal on opto GND, not on board ground? Measure the signal wire while you turn the wheel. |
| Frequency is not 0 with the wheel stopped | Old display still connected to the signal wire, or a magnet stopped right at the sensor. Turn the wheel a little. |
| Speed reads 0 but frequency moves | Calibration still at the placeholder, or the wrong value entered. Recheck metres per pulse. |
| Speed jumps around at low speed | Normal with few pulses per second. Increase the moving-average sample size in the web UI. |
| Speed was fine, now reads low or erratic | VDO's own checklist: check the wheel turns freely, clean off fouling, check the shaft for wear and replace the wheel if needed, then recalibrate (VDO manual). |
| Speed reads low after reinstalling | Orientation. VDO: the pointed side of the sensor loop must face the bow (VDO manual). |
Honest limits
- Your sensor may differ. The wire colors, the magnet count and the open-collector behavior come from owner teardowns, not from a VDO datasheet. Your meter decides.
- No pulses-per-knot figure here, on purpose. We could not find a VDO document that states it clearly for these sensors, and wheels differ. Calibration gives you the right number for your boat.
- A paddlewheel is a paddlewheel. Fouling, wheel wear and where the sensor sits on the hull all affect accuracy, whatever reads the pulses.
- Hole sizes. If you are thinking about replacing the sensor, the classic VDO sensor fits a 39 mm hole in a hull up to 30 mm thick (VDO manual). Check any replacement's spec sheet against your through-hull before haul-out.
What you need
- Hat Labs SH-ESP32: ESP32 board with the opto input used here, isolated CAN for NMEA 2000, and an 8–32 V supply.
- A fused 12 V feed and marine-grade wire for the sensor and the board.
- Optional: Hat Labs HALMET, if you are on 24 V or also want engine and tank inputs.
- Optional: a waterproof enclosure sized for the SH-ESP32.
Products in this guide
This document was last updated in October 2026.