Apm Rover in tractor setup.

I want to use pixhawk with the apm rover firmware to operate an agricultural tractor. I need to set up my tractor as an rc vehicle.  My plan is as follows: any feedback I can get is appreciated.  I plan to order the parts in the next couple days but if there is something I've overlooked or my plan has no chance of success let me know.

Throttle control: Linear servo (https://www.servocity.com/html/25_lbs__thrust_linear_actuator.html#.VVOUCJNyP5U) I don't see too many problems here.

GPS: I plan to use the gps already installed in the tractor.  I am planning on buying a pololu 23201a to convert the serial nmea to something I can input to the pixhawk.

Steering: This is what I'm most worried about.  The tractor has an electric over hydraulic steering valve, so basically provide 12v to right side tractor turns right, provide 12v to left side tractor turns left. I am planning to put in a dual 12v relay controlled by pwm signals for the steering https://www.servocity.com/html/electronic_pwm_controlled_dual.html#.VVTFmZNyP5U  Anybody have a gut feel on whether this will work or not?  The problem is the steering output from pixhawk needs to reach a certain threshold before steering valve will operate this is quite a bit differnt than how it is set up on my rc car where each pwm value corresponds to a specific steering angle.

Clutch: Much testing has to be done with a person in the cab to operate the clutch and some sort of ignition failsafe installed before I get the tractor to be totally autonomous but I would like to start thinking about the clutch, and start testing some setups with a person in the cab.  I could get a linear actuator that releases the clutch when throttle pwm reaches some predefined threshold? But I would really like a system that if the power is cut or signal is lost clutch is automatically depressed which will stop the vehicle. I could set the clutch up to be always depressed and use a linear actuator to engage it. Connect the actuator to the clutch with an electric solenoid so if power is lost actuator releases and clutch disengages. Anyone else have some good ideas?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –


  • Success!!

    I just got the first full day of harvest under my belt.  Cart worked great all day.  I have a video with the crop going into the combine and unloading into the grain cart but I'm too tired to post it tonight.  It's not much different than any of the latest videos except Im actually harvesting and unloading something.  I dumped a total of 20+ hoppers today.

    • Developer

      Congratulations.  Amazing work on your part Matthew.  Very well done.

      Thanks, Grant.

  • Matthew: only some ideas to discuss:

    Did you try Tower: follow me?

    Isn't better for secure have a radio control too to control the tractor if something go bad with pc connection?

    I think that in near future, almost here, this technology is going to be necesary to work in the farms because young people prefer to work in the city, no people to drive tractors. 

  • So I had a chance to show off my tractor to a group of 30 people yesterday as part of a crop tour.  20 farmers and 10 more from other areas of agriculture (banking, equipment sales, agronomists, ect.) It worked flawlessly again so that was good. I was really surprised by the amount of fear people had.  It took a fair amount of explanation on my part to get people to step out of their vehicles.  Most people planned to keep their vehicle in gear with their foot on the brake so they could make a quick getaway if necessary.  Part of it may be that I'm just some guy that doesn't have any formal qualifications or letters behind my name but most of it is deeper than that I think.  This wasn't a random group of people this was a marketing club of which I'm a member so these guys have been hearing about my tractor for a while now, and the group has a reputation for being on the leading edge of technology in ag so I really thought as a whole they would be very receptive to the idea.  The other reason I thought people wouldn't find this too big a leap is that we have had auto steer for 10-12 year now.  We have become so reliant on auto steer that most guys stop their equipment if the auto steer quits for any reason. I really thought the discussion afterwards would be along the lines of I can't wait till someone commercializes this so I can get it on my farm, but it was mostly a comparison of how this felt like the early days of auto steer when everyone was leary of the technology and found it completely crazy that someone would let a computer steer their tractor.  I'd say about 25% of the group was curious but not enthusiastic. 25% stated that they would never have an unmanned tractor on their farm, and the remaining 50% thought it was cool and could see the potential but were not going to be early adopters, they would wait until something commercial had been in use for many years before they thought about it.  I also got the feeling that people thought it lacked some credibility when I explained that it is all open source.  I thought people would be excited about the prospect of having some control over the tech in their tractor and being able to participate in its development.  Surprisingly I think people would have trusted it more and been more excited if it had been top secret tech developed by some large corporation. 

    I'm sure none of the above comes as a surprise to people doing this kind of thing but I was surprised because there has been so much talk of autonomous cars in the news and I thought people would be more receptive to the idea of an autonomous tractor but apparently when it comes to autonomous vehicles society has a very long way to go before people are ready for widespread adoption of the technology.  A lot further than I thought at least.

    • I'm not too surprised that people were afraid of it, but I am surprised they were afraid enough to want to stay in their vehicles. Especially guys who know tractors. Maybe they too recently watched the movie kill dozer? Or maximum overdrive? I've showed your videos to a bunch of my friends who cash crop in western Ontario and we agreed it was a great achievement, and we wish we had the motivation to do it first. We are all mid 20s though, so that could make a big difference. Perhaps these guys just aren't comfortable with things they don't understand, and aren't willing to do the learning it takes to understand something like pixhawk

      As someone who was on the receiving end of a bad accident at work a couple years ago, I tend to trust the machines more than most people would, because I recognize that the human operator is much more likely to behave unexpectedly, whereas the machine will do exactly what it is programmed to do. The risk of course being there is still a possibility of a hidden human error in the coding which is obviously not good.

      In short, I think this type of thing will be way more accepted in a younger crowd
      See related links to what you are looking for.
    • 3D Robotics

      Very interesting report. It doesn't surprise me that people are confused/wary of open source, but that's simply a function of regular users vs developers. (developers understand that the whole Internet runs on open source, but for regular users that's just plumbing and all they see are commercial interfaces such as iOS or Windows).

      Our experience is that the way to get adoption of open source code is to put in a pretty box that just works. In our case, that's a drone or an autopilot, but in your case it might just be solid bit of industrial-looking packaging with a nice logo on it.  The nice thing about that is that it's easy to charge money for hardware, unlike software.

      Entrepreneurial opportunity?

    • Entrepreneurial opportunity? Maybe.... I am going to make some significant changes over the winter to my existing system for myself, and then I don't know.  Working on this has been some of the most fun I've had in a long time but If I start selling something that might take the fun right out of it.  Someone is going to do this eventually whether it is with open source or some proprietary system but the first company to be successful at this on a large scale is going to be the company that can provide support on a large scale.  When work needs to happen on the farm and something doesn't work and a farmer cant get someone on the phone in 20minutes or less at any hour of the day, the $#!^ will hit the fan.  The upside is that farmers are willing to pay for that level of service.  At least they do with other gps related items, the cost of gps/autosteer systems is insane now that I understand the cost of the hardware so I assume most of the cost is an upfront service fee as most service calls are "free".

      It's tough to think about doing something other than farming, the lifestyle and ability to make my own schedule is very appealing but we will see where things go.

    • There is basically a prohibitive amount of liability in releasing a commercial product like this. Kinze and John Deere both have the technology for stuff like this. There's a Kinze autonomous grain cart on the youtubes somewhere, and John Deere has iTec pro. ITec pro is capable of taking full control of the tractor, and doing any repetitive task you can think of ( planting, tillage, spraying, etc) but they insist that you sit in the seat. In fact, they insist so strongly there is a safety switch in the seat that will stop the tractor if you stand up. Of course there were some guys on the internets who disabled or otherwise override this switch, and made a video of their tractor driving around with nobody in it. John Deere corporate was not at all pleased with this. And I think Kinze legal killed the grain cart, because it was years ago that they released videos of it, and I don't see it as a product yet. Both of these companies realized that if their product misbehaved in any way there could be serious repercussions and they'd be sued into the next century.

      TL;DR: I think you're wise to hold off a bit before you start selling this. At least you should come up with a very, very good EULA.
    • As far as I know Kinze is still planning on a commercial launch of their system http://www.kinze.com/article.aspx?id=341  There is no doubt that autonomous vehicles are going to cause injury and death as they become more prevalent, the hope is that it is at a lower rate than human operated machines.  What we need are laws that take this into account and enough data for an insurance company to be able to provide a reasonable price on liability insurance, but before any of that is going to happen someone needs to go first.  I think all the major equipment manufacturers are standing on the precipice and looking to the others saying "You go first!" when your company is worth big $$ than some caution is understandable.  It's much more common in the mining industry so it's not like it isn't happening.

      It will be very interesting to see how some of the liability safety issues get resolved over the coming years.  I am pretty sure we will have commercially available self driving tractors before we have self driving cars.  I'd even be willing to make a friendly wager on that if anyone wants to take the other side of the bet. What happens in ag with autonomous vehicles is likely where some of the legal stuff might get sorted out before it happens on the road.  What I'm not sure about is if I want to be involved in that.  I'm not concerned about the liability for monetary reasons,  but I'm not sure how I would live with myself if some programming error or hardware failure of something I sold killed or maimed someone.

      At some point we (as a society) will have to decide on some basic safety standards for autonomous tractors, cars, ect that must be included on every vehicle, to provide manufacturers with some level of protection as in we know it isn't going to be 100% perfectly safe all the time but if A,B,C are included then we feel that you have done an adequate job of making it safe so that if some freak event occurs that causes death or injury you won't be held responsible.

  • I'd love to offer whatever I can to the project. We don't have any combines here but I can see this being awesome for something like raking hay, where you're normally mindlessly driving for up to 4+ hours back and forth without stopping. This would need a vision system too, to follow the hay. I looked at OpenCV this spring (I wanted to identify cows by their spots) but I decided I didn't have quite enough time to get it working on my own at that time. About the beaglebone, I have no experience with it. Have you considered the raspberry pi 2? the camera module is cheap and super good(can vouch for this personally) and it can run openCV for computer vision. Theres a guy on youtube that does a decent intro to it.

    Also the Navio+ shield is basically like the fire cape but for raspberry pi.

    OpenCV rasperry pi - https://www.youtube.com/playlist?list=PLS1lqxOwNjOaE0gy_Q6tzU_QhZOB...

    I think the pi has more processing power than the beaglebone, but less IOpins?

    Navio+ shield http://www.emlid.com/ -- NOTE: I have not tried this, but I want to. I do have a regular pixhawk though

This reply was deleted.