Using GPS to lay out a field

   / Using GPS to lay out a field #1  

quicksandfarmer

Elite Member
Joined
Dec 2, 2006
Messages
2,508
Location
Coastal Rhode Island
Tractor
Jinma 354, purchased 2007
Recently npalen started a thread (https://www.tractorbynet.com/forums/build-yourself/423698-any-electronics-gurus-out-there.html ) on using a laser level to automate a box blade. I talked a bit in that thread about using differential GPS (or DGPS) and I thought it would be worthwhile to do a dedicated thread showing some of the experimentation I've been doing with it.

DGPS is a technique for improving the accuracy of GPS. A regular GPS receiver can calculate its position on the surface of the earth with pretty good precision, typically under 50 feet. That's a technological marvel, but at the same time it's not good enough for any kind of fine control. The limiting factor on the precision is that atmospheric conditions affect the accuracy. What makes DGPS possible is that this error is consistent: two GPS receivers in the same place at the same time will have the same error. In a DGPS system two GPS receivers are used. One is placed at a fixed, known location, called the base. The other, called the rover, moves around. The position of the rover is calculated by reading the GPS on the base and rover, calculating the distance between them, and adding that to the known position of the base. When conditions are right this gives a position that is accurate to within a centimeter --less than half an inch -- in three dimensions (latitude, longitude and altitude.)

In the next few posts I'll describe how I've been using DGPS in a project that's somewhat useful but mostly just as a proof of concept.
 
Last edited:
   / Using GPS to lay out a field
  • Thread Starter
#2  
This project started out in a way that had almost nothing to do with tractors. I was volunteering with a youth soccer club. It's a large club, it had 7,000 members and over 200 games a week. For a typical season we'd use 35 to 40 fields, and they all had to be painted with lines for the games. Each age group had a different size field, ranging from 25 yards for 5-year-olds to 120 yards for high school kids. Mostly we relied on volunteers to do the lining, and it was a constant headache. We'd try to give people directions, but they would put the field in the wrong place or the wrong size or the wrong shape or crooked. You never know how many ways something can be done wrong until you ask volunteers to do it. So this project started out simply as a way to make maps that we could give to volunteers to show them where a field should go and what it should look like.

I create a web page that uses the aerial view in Google Maps and allows you to put in the latitude and longitude of a place, and then put in the length, width and orientation of a field, along with the dimensions of the interior lines, and it draws a picture of the field on the map. Here's a screen shot of the web page with a field for 12-year-olds drawn up on the grass of New York's Central Park:
centralpark.png


Just this map was a tremendous improvement. Since it's a web page someone can have it on their phone when they're on the ground. The Google aerial photography is pretty high-resolution, it can guide you around on the ground. You'll see on the input screen there are arrows next to the latitude and longitude. The single arrow moves the field one foot and the double arrow moves it ten feet. The resolution of the photos is generally good enough that a one foot move is noticeable.
 
Last edited:
   / Using GPS to lay out a field
  • Thread Starter
#3  
Even with the maps it was still a lot of work to lay out a field, you have to go out with a tape measure and string and mark and measure. If you’ve ever done any kind of layout you know it’s hard to get straight lines and square corners in the real world. So I started thinking about ways of improving the process. I stumbled upon a company called U-Blox that is producing (relatively) low-priced DGPS components. U-Blox is a chip-maker, they don’t make consumer products but they supply chips to people who do. They also make a kit for experimenting and prototyping with (C94-M8P | u-blox ). The kit has one of their DGPS chips mounted on a board with a radio link, a GPS antenna and a USB connection. You set up one kit as the base and one as the rover, and they communicate over the radio link and the rover spits out the calculated location. The kits are $400 each, or $800 for the pair, so I took a breath and bought a pair.

Once I got them configured I did some experimenting. You definitely need to have a clear view of the sky, I couldn’t get much under trees or near buildings. One of the things that messes up GPS is reflected signals, so they recommend having a metal sheet under the antenna. I found I got good accuracy setting the antenna on the roof of my car, so I ordered a pair of 18” aluminum pizza pans from Amazon and mounted the antennas to them, which seemed to help.

In a clear field, with the pans behind the antennas I seemed to be getting the claimed 1 cm accuracy. I tested this two ways. The first was just to leave the rover in the same spot for several hours while I recorded its position. Over several hours the reported position never moved by more than 1cm. The other way was to mark a position, read the location, then go away and come back. I put a penny down in the field, walked 100 yards or so away, then walked back and put the rover on the penny again, it reported the same location within 1cm.

I don’t always get 1cm precision, it depends upon the quality of the signal where I am. When the signal quality is lower the rover switches modes and gives 5cm precision. (I’m not sure of the exact mechanics of this). The rover does notify you when this happens. If the rover loses contact with the base the precision drops to 50 feet or so and the rover notifies you of that as well.
 
   / Using GPS to lay out a field
  • Thread Starter
#4  
So now I had to figure out how to turn it into something useful. I have some programming experience which I was able to put to use.

What I came up with is an app that runs on my smartphone. To start, the app downloads the field coordinates from the web. The rover unit plugs into the USB port and gives the precise current location of the antenna. The camera on the phone is on and displays on the screen. Overlaid over the camera image are the lines of the field, based upon the current location from the rover, and the tilt and orientation of the phone. It's augmented reality the camera shows you reality, the location of the lines is augmented. Here are a few screen shots I took today.

Here's a shot of the field with the camera tilted up.
DGPSFull.jpg


Here are a couple pointing straight down at the ground. The cross represents the location of the rover (which I'm holding next to the phone). I programmed the app so that when the reported accuracy is 1 cm the cross is blue and 1cm across, and when the accuracy is 5cm it's yellow and 5cm across. The white lines in the picture are the field layout lines. That black thing is my shoe.

dgpsyellow.jpg
dgpsBlue.jpg


To use the app you walk around the field looking at your phone, when the cross touches a line the rover antenna is exactly where you want to be. I made up a jig that attaches the rover, the smartphone and the antenna to a paint marking wand. Here's a picture of that rig; the base station is on the left.
dgps.jpg

So far this is all just a proof of concept. I did use it to mark a couple of fields last year, the referee at one game complimented me on how precise the field was. No soccer this year because of the virus. I see a lot of ways this technology could be used, a lot of directions this could go in. The actual DGPS chips are about $80 each, probably less in bulk, so I wouldn't be surprised if we start seeing them in consumer products soon.
Let me know what you think and I'd be happy to field questions.
 
Last edited:
   / Using GPS to lay out a field #5  
Pretty cool work. I am one of the early developers of AR for measurement/navigation, and love seeing stuff like this, especially the integration with DGPS. Are you using the phone's compass sensor to orient the AR rendering? That will aways be a weak point since the magnetometer sensors are notoriously unreliable. Gyro can be use to overcome some of this but not all.

I'd love to create a low-budget DGPS system. It would come in handy for so many things.
 
   / Using GPS to lay out a field
  • Thread Starter
#6  
Pretty cool work. I am one of the early developers of AR for measurement/navigation, and love seeing stuff like this, especially the integration with DGPS. Are you using the phone's compass sensor to orient the AR rendering? That will aways be a weak point since the magnetometer sensors are notoriously unreliable. Gyro can be use to overcome some of this but not all.

I'd love to create a low-budget DGPS system. It would come in handy for so many things.


Thanks. You're right that the compass is the weak link. The GPS gives a bearing. If you're moving at more than a slow walk it is very accurate (same accuracy as the underlying GPS), if you're not moving it's just a random number. So i look at the bearing and speed reported by the GPS. If the speed is over 1 knot I use the GPS bearing, otherwise I use the compass bearing.
 
   / Using GPS to lay out a field #7  
Seems like the concept would be useful in painting parking lot lines among many other applications limited only by imagination.
 
   / Using GPS to lay out a field #8  
When I layout a field, I like to use LIDAR and CAD...

LIDAR is pretty cutting edge, but for me CAD means, Cardboard Aided Design!

What I do is, take a LIDAR map of the field or area of my farm I want to work with, using 2 foot contours instead of 20 foot contours like most maps.

Then I make a shadow box of the area I am doing my farm planning on, so that I can work my map.

Because of the thickness of cardboard, this scales quite nicely into two foot contours, so as I cut and layer the cardboard, I get very accurate contours of the field because each layer represents 2 feet of elevation. This unfortunately gives me "steps". To fill those in, I then use drywall compound to make the final layer very smooth, so that I get all the details of the contours, hummocks, dips, ledge outcrops, ditches, swales, etc.

Then I paint the surface for whatever I am doing. Blue for ponds, swales, streams, etc. Dark green for forest, light green for fields. I will even add in railroad modeling stuff such as ballast to show where the roads are, haybales to show where erosion control goes, and even trees. When I am done, I have a very accurate 3D model of a field or portion of my farm.

This really helps when working with Federal or State Soil Engineers who are funding various farm projects. They can instantly see what your plan is for the field, or area of the farm. Then they can approve it or not. Taking a few hours to make a scale #D model, and then having it readily approved because they can see it, and you show your devotion from the start, goes a long way to getting funded for Federal and State Grants.
 
   / Using GPS to lay out a field #9  
Here is an example of a LIDAR derived 3D model within a shadowbox frame:

The area comprises of 47 acres, and shows where I want to place (2) roads. One is down the center, and the other starts in the background, drops down to the left, and then towards a cabin we want to build (the green Monopoly hotel in the model). The contours are very accurate, and within 2 feet of elevation thanks to LIDAR mapping. The model also shows where the swales and erosion control measures go for the roads, along with ditches, berms, and the pond that needs to be dug.

In an instant, you clearly see what I want a current field, and clear-cut to look like.

 
   / Using GPS to lay out a field #10  
At $800 the price is right. What are you using to interface with the GPS, phone, IPad? I can’t remember the exact cost of the last Trimble system we got at work but somewhere in the $50k range and we already had a $6k data collector.

What are you using for a coordinate system, I normally work in state plane. There are a lot of known points out there. They usually list lat. and long, UTM, and state plane coordinates. Google NGS, National Geodetic Survey and look for data sheets. I almost always tried to start a job using these known points to start from. There might be one near your job site. I’m not sure what kind of radio range you get.
 

Tractor & Equipment Auctions

2018 Peterbilt 348 T/A Pac-Mac Forestry Grapple Truck (A48081)
2018 Peterbilt 348...
UNUSED RAYTREE QUICK ATTACH AUGER SET (A50460)
UNUSED RAYTREE...
2001 Dodge Ram Ext. Cab Pickup Truck (A48081)
2001 Dodge Ram...
2005 Big Tex 10PI 16ft. T/A Pipe Top Utility Trailer (A49461)
2005 Big Tex 10PI...
9ft Aluminum Extension Ladder (A48836)
9ft Aluminum...
2024 Dodge Durango SXT AWD SUV (A48082)
2024 Dodge Durango...
 
Top