Remote Control Autonomous Lawn Mower using RaspberryPi
Have you heard of #twitchPlaysPokemon? Well that was some of the inspiration behind this project #googleMowsMyLawn. This project was an idea that my brothers and I had and wanted to do for a little while. When StartFest had a hackathon, we were provided with the perfect opportunity to build it.
The rules were simple: make a gigabit app. That means that it either had to be low latency or that large amounts of data were to be transferred. We were given 24 hrs to complete the project. Other stipulations that we had imposed on ourselves were that all the products that we used had to be off the shelf. So the implementation we used was not the only way to accomplish these things, but it was the fastest. We now hope to improve and expand on this project’s abilities.
Fox News story
Step 1: Parts List
1. Eletric Lawn Mower
Ryobi 20 in. 40-Volt Lithium-Ion Brushless Cordless Walk-Behind Electric Lawn Mower 499.00
2. Two Drills
Ryobi 18-Volt ONE+ 1/2 in. Cordless Hammer Drill 69.00/ea
3. Ryobi 18-Volt ONE+ Compact Radio with Bluetooth Wireless Technology 39.97
4. Three Batteries high performing
Ryobi 18-Volt One+ High Capacity LITHIUM+ Battery 99.00/ea
5. Two metal casters 5.48
3 in. Steel Swivel Caster
6. Two 4in Hole Dozer Hole Saw with Arbor 12.97/ea
7. Raspberry Pi 2 micro Computer 35.95
8. Eight channel relay board 18.10
9. Tripod with iPhone Mounts
10. Two iPods 199.00/ea
11. 18-Volt One+ 6-Port SuperCharger 79.00
12. Zip Ties
13. Four 3″-1/4 bolts with locking washer and nut
14. Eight 1/2″ 1″ bolts and nuts
Step 2: The lawn mower
We chose this lawnmower because it was in the family of Ryobi products and it had enough space to work on the inside. We wanted to keep everything inside the same family of products so that we could swap batteries for any part of our project.
First you need to take off all the unnecessar
y parts. You are going to need a set of star screw drivers to do this. There are several screws all around the lawn mower holding the green plastic body on to the lower chassis. You will need a star screw driver to get these screws off. Once removed you can take the outer shell off but there is one cord that is attached form the top and bottom pieces. Luckily, there is a quick release clip that you can squeeze to release it. Once that is off, you will see the inside of that race-car-looking lawnmower is composed of nothing more than a motor power distributor and a clip to the battery connection on the top half.
There is a wire that runs up the handle so that you can instruct it you are going to mow and have both hands on the handle. You will unscrew all the plastic tabs holding that on and take apart the button mechanism on the handle. There are 6 star screws on the back. You only need to take out the bottom 4. Once open you can take the two switches out and feed the wire all the way back into the main chassis. This will later be bypassed and hooked up too our relay board so that the raspberryPi can control it.
Now you can remove the two bolts that hold the handle on. It should be looking like a sweet race car. Remove the back flap by popping off the clip on the end of the metal rod that acts as a hinge for the door. Slide that rod out and the door will fall off.
Step 3: Front wheels and steering
Normally when you mow your lawn, to make a turn you push the handle down so the front end lifts up and you rotate the lawn mower. That will not work here as there wont be a handle on the finished product. So we need to remove the front wheels and the axle that connects them too the chassis.
Once they are removed, take the metal casters and attach them to the plastic that protrudes out the front of the lawn mower. These wheels swivel a full 360 degrees making them perfect for enabling better movement of the lawnmower. Drill 4 holes that line up with the hole pattern on the casters. Then take 4 1″ bolts, a locking washer and a nut for each to secure the wheels to the mower. This is one thing that we will be changing on the next iteration because this lifts the lawn mower a considerable distance off the ground.
Step 4: Onto the Drills
The drills are the most important part of the project. First you need to take the drills apart. We need to make it so we can trigger the drills. The easiest way is to create a trigger between the batteries and the motor. Once you have the outer casing off you can see there are three main parts: the Motor, the trigger mechanism and the battery terminal hook up. We want to disconnect the battery so we can toggle it with our relays giving us the ability to drive. Disconnect the black wire from the trigger mechanism to the contacts.Then take two wires and solder one end to the black wire. Take the other wire and solder an end to where the black wire attaches to the trigger mechanism. Then you can put it all back together inside the drill and just drill a little hole for your wire extensions to make it out. I made my wires about 15″ long so I could house the electronics inside the lawn mower.
For more detail: Remote Control Autonomous Lawn Mower using RaspberryPi