We had water get into our house. It turned out to be a window seal, not the yard. But we had also buried a downspout. And in heavy rain I’ve watched water pool between the deck and the shed. So I set out to map how my whole yard slopes.
The normal way is a laser level, one spot at a time. I wanted to do it while mowing.
By the numbers
- 75 points read with a laser level in about an hour and a half, the old way
- 8 ft how far basic GPS wanders with the antenna parked
- ½ in how close RTK keeps nearly every reading
- 1 in 8 readings in float under the trees
- 25 ft how far the motion sensor alone drifts in 30 seconds
- 95% of the lawn measured directly
The old way
A rotary laser level spins a flat beam in a circle. Outdoors you can’t see the beam, so a detector on a measuring rod finds it. The rod reads how far the beam is above the ground. The higher the number, the lower the ground.
It works, but it’s slow. I read 75 points over two outings, and it took an hour and a half. That’s about 1.2 minutes a point. And it still leaves big gaps between the points.
Why basic GPS can’t do it
From the house down to the street, my yard drops only about 3 ft. I parked the mower’s antenna on the lawn for eight minutes with corrections off. Basic GPS wandered by up to 8 ft. The height was wrong by about 6 ft.
GPS works by timing. Each satellite carries an atomic clock and broadcasts the time. How long the message takes to arrive gives the distance, and four satellites pin down where you are. But light covers about a foot every nanosecond. So a few feet of error is a few billionths of a second. The air slows the signal by an amount that changes through the day. Even the satellites’ clocks and orbits can be slightly off.
A reference station takes out most of that. It sits on a precisely surveyed spot a few miles away and hears the same satellites through the same sky. So it sees the same timing errors, and it streams corrections for them. That gets the error under about 3 ft. Better, but still about the whole drop of my yard.
RTK goes further. It measures the radio wave that carries the message. One wave is about 7½ in long. The receiver can place itself along that wave to a tiny fraction of an inch. What it doesn’t know is how many whole waves lie between it and the satellite. It works out that count by comparing its waves with the station’s, on several GPS bands at once. While it’s still narrowing the count down, the solution is float, about a foot off. Once the count locks, it’s fixed, within about an inch.
With RTK, the same parked antenna put nearly every reading within half an inch. That’s precise enough to see where the water goes.
The rig
- Receiver: a SparkFun Quadband GNSS RTK Breakout, which carries a Quectel LG290P.
- Antenna: a u-blox ANN-MB2 on top of the mower, as high and clear of the sky as I could get it.
- Corrections: the Iowa Real-Time Network, a free statewide network of reference stations. My phone gets them over the internet and streams them to the receiver.
- Motion: a Cube Orange drone flight controller. Nothing flies. It just logs the mower’s motion.
- Phone: everything plugs into its USB port. It streams the corrections and logs every reading.
- Mower: an EGO 21-inch self-propelled mower. The antenna and the flight controller are stuck on with VHB tape.
The gear page has links to all of it.
Mow day
Each pass of the mower leaves a line of readings, about a foot from the last. Out in the open the receiver stays fixed. Under the trees, leaves block the sky. The receiver loses count of the waves and drops back to float. On my October 3 mow, about one reading in eight was float.
Under the trees
That’s what the flight controller is for. Its motion sensor, an IMU, feels the mower’s accelerations and rotations. Add those up and you can track where you’re going without seeing anything. That’s dead reckoning. It’s like walking with your eyes closed. For a few steps you’re fine. Then you start to drift.
Getting position out of acceleration means adding it up twice, so tiny errors grow fast. On my mower, the IMU alone is about 3 ft off after 10 seconds. After 30 seconds it’s up to 25 ft off.
So I combine the two, with weights. That’s sensor fusion. When the GPS is fixed, it gets most of the vote. When it drops to float, its vote shrinks and the IMU carries the position forward. When the fix comes back, it pulls everything back in line.
How long the IMU can carry the track alone, and how precise it is, gets its own video later in the series.
From scribble to surface
For the drainage map I put every mow I’ve logged, from August to October, onto one surface. It’s mostly RTK fixed readings. Sensor fusion fills just a few small gaps. Every reading is a height, and the software fills in a grid between them.
With every mow in, the mower measured 95% of the lawn directly. The rest is filled in between passes.
What the map says
The drainage write-up reads the map in detail. In short:
- Overall: the lawn slopes away from the house. The low spot is out by the street, about 3 ft down.
- Foundation: the building code wants 6 in of fall in the first 10 ft. The two walls the mower gets near fall about 5 in, just under the line. That’s too close to call, so it goes to the laser.
- Downspout: the buried pipe drops 2¾ in over about 30 ft, a 0.75% slope. It drains, but gently.
- Backyard: where I’ve watched water pool, the map finds a small bowl less than an inch deep. That’s within the map’s own error of an inch or two. So the laser gets the last word there too.
The whole thing at once
Here’s every pass of the mower, drawn on the grass where the GPS says the ground is.
What’s next
But how accurate is it? I staked out the lawn, got out the laser level, and mowed it again to find out. That’s coming in a later video.
And now that I’ve built all this, I need something else to survey. New videos go up on YouTube, and each one gets a write-up here.

