This Guy Vibe-Coded His Own Autonomous Lawnmower
Did you know that industrial-scale farming is becoming increasingly autonomous? There isn’t much reason to pay a human person to drive a tractor around, when the tractor can drive itself — there don’t tend to be many unexpected obstacles in wheat fields, after all. And if it works for a farm, then why not for the front yard? Jakkuh decided to find out by vibe-coding his own autonomous lawnmower.
Luckily, Jakkuh didn’t have to actually build a lawnmower, because radio-controlled lawnmower robots are commonplace. They’re mass-produced in China and you’ll find a lot of them at industrial auctions. There are a couple of different models that are sold under several brand names and Jakkuh bought both to experiment with.
You really don’t need to know much about those to understand Jakkuh’s approach. They’re basically hybrid vehicles, with a small gas engine and a battery pack. But they operate almost like standard RC vehicles. They quite literally have off-the-shelf RC receivers, which take standard RC commands and tell big motor drivers what to do.
That means that Jakkuh could pilot a lawnmower in the same way as any other RC vehicle, including adding a Pixhawk 6C Mini drone flight controller for autonomous operation. Don’t let that “flight” part throw you off, because Pixhawk controllers work with ground vehicles, too. The Pixhawk receives position data from an RTK GPS module, commands and RTK corrections from a GL.iNet Mudi 7 hotspot, and manual commands from an RC transmitter through a HotRC SBUS-A.
In turn, the Pixhawk interfaces with the lawnmower’s original hardware through PWM signals and an 8-channel relay board. Anything carrying actual current goes through the relays, while the PWM signals handle forward/reverse and differential speed control.
Because the Pixhawk knows exactly where it is with good accuracy, thanks to the RTK GPS, it can follow pre-planned routes and correct itself to get back on course if it drifts at all. That is, essentially, exactly wha




Comments
No comments yet. Be the first to share your thoughts.