KevinG's Autonomous zero-point turn Lawn Mower

Part list:

Evatech mower http://www.evatech.net
RDF 900+ telemetry radios with pixhawk 2.1 telemetry cable http://a.co/d/j24MR1R
Pixhawk 2.1 Standard Set (The Cube with Standard Carrier Board) http://a.co/d/hAVOoxb
FrSky Taranis X9D plus 16-channel 2.4ghz ACCST Radio Transmitter (mode 2)with X8R 8 channel receiver http://a.co/d/b8aOYMO
Cantex Industries #5133710U 6x6x4 PVC Junction Box http://a.co/d/8f2nBrQ
Here+ RTK GNSS Kit http://a.co/d/gf928sn
Servo Extension Cable http://a.co/d/6RXttvi
Servo Connectors http://a.co/d/1Ao0xDt
100cm Antenna Extension Cable RP-SMA Male to RP-SMA Female http://a.co/d/fELCLQU

Kevin,

Really interested to see how you set up your servos on the mower. I used linear actuators last summer, the response time was way to slow on the hardware. I have the mower (grasshopper 42") in the shop and am working on doing an engine swap and adding servos.

1 Like

I got the mower out after some serious upgrading.

  • Pixhawk 4 (2 pixhawk cubes blown because of starter motor voltage spikes)
  • Servo power isolator (no more blown pixhawks)
  • RM3100 compass - (Solid EKF and no Compass Variance errors!)
  • Ardusimple F9P GPS Rover and base (Instant RTK 3D Fix)
  • Measured IMU and GPS distance from rover center and set parameters correctly

Awesome results!

2 Likes

Vincent! Great to hear, manā€¦ Iā€™m still using a cheap compass and, of course, not getting very good results, but still getting the job done. I may try a RM3100 (eventually going to try moving Base, but will probably be a while). So, where do you have the compass mounted on your mower?
Kenny

1 Like

The compass is at the top of the box, towards front. electronics pic - mower pic

2 Likes

I had a scary flyaway moment yesterday but a steep slope kept the rover in check. I think the speed controller glitched but I am not certain. EKF was good, vibrations didnā€™t have any clipping, and GPS had RTK Fix. Yet the rover drove past its waypoint and didnā€™t respond to a DISARM although it did register with the FC. I would like to put a failsafe on it that would recognize when the rover was moving away from a waypoint for a number of cycles and kill the drive system. This situation could happen whenever the steering control mechanisms fail. I do have a drive system kill on an RC channel/switch that did bring the rover to a stop.

1 Like

I have had similar. Most recently, I had my Pixhawk reboot during a mission. Until it finished rebooting, the mower maintained the throttle positions it had just prior to the reboot. I have the same kind of external kill switch, but want to automate this to some degree.
I have signed up two computer science college students from a local university to ā€œworkā€ for me this summer on an unpaid internship to develop a program on a co-processor (likely a Raspberry Pi for now) that will monitor location from the GPS independently of the autopilot and kill the mower if it goes outside a geofence. I am still developing the specification of what I want and it will evolve.
Anyway, I will gladly share anything we get done.

3 Likes

Iā€™ve been thinking about this for a while. I donā€™t have much lawn to mow but it is on steep incline. In addition to flyaways, I am concerned about a roll over. So Iā€™d want to kill the engine if pitch exceeds x or if if roll exceeds y. Is there anyway to do this without a companion computer?

2 Likes

I donā€™t know but you have given me another idea for my students!

1 Like

I have done a lot of work on Raspberry Pi. I have at least 6 of them running things around the house. I have seen my fair share of SD filesystem corruption from bad shutdowns. I think an Arduino might be a more stabile platform for a companion/watchdog computer. I have found a few projects here that have mavlink working over UART on Arduino. The Arduino could be programed to watch the mavlink for flight mode, gps status, waypoint progress, and orientation of the mower and throw the kill switch when things go sideways. @ktrussell Nothing is more powerful than CS majors put to task. I am excited to see what they come up with.


2 Likes

I think I will start a new thread so as not to keep taking this one off too much. I am interested in ideas of others, for sure.

1 Like

You can do it with lua scripting. Read roll and pitch and disarm if your set angle is reached.

Look in the lua scripting wiki, there are some examples.

1 Like

I would use scripting in ardupilot or perhaps even on my RC, but the assumption is that there is a failure of hardware or software control. The autopilot canā€™t be trusted. We have seen them reboot. The RC canā€™t be trusted. We seen them lose contact. So I need a second control system onboard to monitor everything and kill the power when unexpected things happen. I am working on this project https://github.com/bitdog-io/restraining-bolt. It is designed to be installed on a Teensy 4.1 https://imgur.com/gallery/AzPJn4e This is how the mower is working so far https://youtu.be/frFU9pNqIiI

Sorry we are not on another thread yetā€¦

1 Like

I should have put a link here, but I did start a new thread: Ideas for Co-processor for Ardurover Autonomous Mower.

I like your idea of using a Teensy for the reasons you stated. I have many of the same issues and goals as you I think. I will certainly share anything worthwhile that I or the students who are helping me develop.

1 Like

I have been motivated by you and Kenny Trussell and I am starting to plan out my zero turn mower conversion and buy some hardware. So far I have been just reading and learning a massive amount from you guys who have been blazing the trail. The mower reliably being guided by GPS seems like the real key and hopefully the Ardusimple F9P GPS with the RM3100 compass is the way to go. Is yours still working well for you? I would also like to know where to get the compass and if it plugs directly into the Pixihawk.
I am new to blogging and I am not sure if I should my questions related to getting started on rounding up the equipment belong in this topic area or I should be on a different thread. My mower will be a Hustler 54 inch zero turn that I routinely plan to mow about 4-5 acres with out here in East Texas where the grass grows so fast you can almost see it growing. I have a background in electronics and I retired about 10 years ago. Now I am really looking forward to jumping back into a fun project.

2 Likes

Welcome! I havenā€™t yet used the F9 GPS myself but everything I hear about it is good so I think thatā€™s a good choice.

1 Like

Welcome Steve! I have not used the RM3100 but I know this is one source: https://www.pnicorp.com/product/rm3100-breakout-board/

As far as connecting to the Pixhawk, you may have to provide the RM3100 board with 3.3V power rather than the 5V that is available from the Pixhawk. Other than that, I think it does connect fine. Perhaps someone else more familiar will shed some light on that.

I look forward to hearing more from you and seeing pictures!!!
(I had a total knee replacement about 7 weeks ago and have not been very active on here and have done nothing with my mower. Iā€™m looking forward to getting it back rolling soon!)
Kenny

1 Like

Thanks for the information. I am confused because the RM3100 is often called a magnetometer. Is that the same as a compass for this application?
I think this project will take a while because of other time demands but I expect to be busy on it during the winter. It seems strange but one of the first things I am doing is modifying the mower deck to discharge out the back (much like the finish mowers I pull behind the tractor). It will require a bit of welding and general fabrication but it will make planning my mowing routes easier and it will not get clogged up as easy under the deck when mowing way overgrown grass. I did find out that the air/grass discharge ducting channels underneath also require changing.
The other thing I am going to be working on while I am ordering the general electronics is to install a fuel sensor in the fuel tank so I can have it display fuel level on the on the RC controller.

Before I start spending money, I plan on posting my list of electronics for feedback from you guys (people with way more experience than me).

Take care and a speedy recovery from your surgery.

1 Like

I welcome your feedback. You guys are the experts and maybe you can help a newbie in the autonomous mower world stay out of trouble.
I have been reading and learning from the Ardupilot website/blogs for a while. Now it is time make something real happen and start engaging.

1 Like

Yes, a magnetometer, defined as ā€œan instrument used for measuring magnetic forces, especially the earthā€™s magnetismā€ is what sends readings of the magnetic field in 3 dimensions. Inside Ardupilot, these are stored in variables named mX, mY and mZ (for compass #1) and the Ardupilot calculates its heading from them.

And as you probably have seen, getting a stable accurate reading is difficult on a large metal body with electromechanical devices and moving metal parts, aka a mower!
My experience:


and
2 Likes