Seed Spreading Robot

by randofo in Circuits > Robots

125300 Views, 567 Favorites, 0 Comments

Seed Spreading Robot

main1.jpg
main2.jpg
main3.jpg
Last summer it was brought to my attention that you could buy nearly everything you needed for automated lawn care but a seed spreading robot. This intrigued me. For starters, why on Earth would anyone make lawn care robots in the first place? There are countless reasons this seems like a bad idea. Secondly, a seed spreading robot sounded like a bizarre robotic cross between Wall-E, and Johnny Appleseed. The idea clearly had potential.

So, when asked if I wanted to actually take on the challenge of building one, I obviously responded with a definitive yes. Even though I personally don't own a lawn (my backyard is concrete and weeds), it seemed like an opportunity too good to pass up. In terms of actually using it, I found a willing victim in Glenn Derene of Popular Mechanics. He was more than happy to let this thing loose on his lawn (along with a slew of other robotic lawn care contraptions). So one fateful day last summer, I tightened the last bolt, wrote the last line of code, packed it up safely, and shipped it cross country to meet whatever fate lie in store.

Albeit I only later saw a video of it in action, it is my understanding that it performed about as well as you would expect an experimental DIY seed spreading robot to perform on its initial run; in short, not very. Rather than a cross between Wall-E and Johnny Appleseed, it is more of a cross between Johnny 5, and the groundskeeper in Caddyshack.

Nonetheless, I think the structural design of the robot is solid. If the code is tweaked a bit, and the rangefinder repositioned, I think this robot could spread seed like a champ.

Go Get Stuff

bag1.jpg

You will need:

(x1) Lynxmotion Tri-Track Chassis Kit
(x1) Earthway EV-M-Spred Seed Hopper (or similar)
(x1) Arduino Uno
(x1) Arduino Motor Shield
(x1) Parallax Ping Rangefinder Sensor
(x1) 1/4 Scale Servo
(x1) Lynxmotion 12v battery
(x1) Vex battery charger
(x1) DC power plug
(x3) Multipurpose PCB
(x1) 7805 voltage regulator
(x1) Heat sink
(x1) Thermal transfer paste
(x1) 10 uF capacitor
(x4) 0.1uF capacitor
(x1) 1K resistor
(x20) Header pins
(x1) ATS177 hall effect sensor
(x2) 1/8" rare earth magnet
(x4) 1-1/4" aluminum spacers
(x4) 1-1/2" x 6-32 nuts and bolts
(x1) 12" x 24" x 1/8" acrylic
(x1) 6" x 6" x 1/4" plywood
(x12) 1/4" nylon spacers
(x12) 1" x 6-32 nuts and bolts
(x4) 1-1/2" x 4-40 nuts and bolts
(x8) 1/4" nylon spacers
(x6) pens
(x6) 1/4 x 6" nuts and bolts
(x4) 1-1/4" aluminum spacers
(x4) 2" x 6-32 nuts and bolts
(x1) Assorted zip ties
(x1) Assorted shrink tube
(x1) Krazy Glue (gel)
(x1) Thread lock
(x1) 24" x 24" cardboard sheet

You will also need to download and cut out the following files:

SensorHolder.eps -- cut out of 1/8" acrylic and etch away the black square 1/16" down
HopperDrillBracket.eps -- cut out of cardboard
TopBracket.eps -- cut out of 1/8" acrylic
ServoBracket.eps -- cut out of 1/8" acrylic
ServoConnector.eps -- cut out of 1/4" plywood
BottomDrillBracket.eps -- cut out of cardboard
PingBracket.eps -- cut out of 1/8" acrylic


(Note that some of the links on this page are affiliate links. This does not change the cost of the item for you. I reinvest whatever proceeds I receive into making new projects. If you would like any suggestions for alternative suppliers, please let me know.)

Assemble the Treads

2A.jpg
2B.jpg
2C.jpg
2D.jpg
2E.jpg
2F.jpg
2G.jpg

Assemble the treads by lining them up side-by-side, inserting a clear tube between the aligned rings, and pressing in the plastic pins until they snap in place.

You should be left with two long strips. Set aside the hardware necessary for closing the loops for later.

Attach Spacers

3A.jpg
3B.jpg
3C.jpg
Find the two triangular lexan panels with interior mounting slots and holes. Attach the aluminum spacers using 4-40 x 3/8" bolts, such that they mirror each other, and are not identical copies.

Attach the Motor

10A.jpg
10B.jpg
On one of the triangular lexan panels, insert a motor shaft through the largest mounting hole such that it is pointing in the same direction as the aluminum standoffs.

If you have not done so already, cut out a 1/8" acrylic sensor holder using the attached pattern. Where the pattern has a black square, etch halfway into the acrylic to make a channel to mount the sensor.

Align the acrylic sensor holder with the motor mounting holes. Fasten the motor and the acrylic sensor holder in place with 3mm x 8mm steel screws.

Downloads

Attach the Other Motor

4A.jpg
4B.jpg
4C.jpg
4D.jpg
Attach the other motor in a similar manner to the previous one. However, do not worry about mounting an acrylic sensor holder on this side.

Drill Holes

11A.jpg
11B.jpg
Drill a 1/16" hole directly above the acrylic sensor holder that is centered along the width of the etched square. Drill two more holes that are aligned with the corners of the etched square.

Rotational Counter

12A.jpg
12B.jpg
12C.jpg
Bend the hall effect sensor leads to a right angle (away from the text). Insert the hall effect sensor leads through the three holes that you just drilled and position it snugly in place. When you have managed to get it flush with the surface of the acrylic sensor holder, glue the sensor in place.

Hub Counter

13A.jpg
13B.jpg
13C.jpg
13D.jpg
13E.jpg
13F.jpg
13G.jpg
Find one of the hubs that slides on the motor shaft.

Cover the threads of two 4-40 x 3/8" bolts and thread them all the way down into the hub such that they are opposite from each other.

Now is time to place magnets upon the head of each bolt and glue them in place. However, before gluing, it is important that the magnets are facing in the correct polar direction.

Here is some basic code for checking the hall effect sensor and making sure that you put the side of the magnet that triggers the sensor facing up atop the bolt.

Attach the Hubs

14A.jpg
14B.jpg
14C.jpg
14D.jpg
Attach the hub with the magnets to the motor shaft of the assembly with the hall effect sensor such that the top of the hub is flush with the top of the motor shaft.

Repeat this process for the other hub and motor shaft.

Attach a Sprocket

15A.jpg
15B.jpg
15C.jpg
Place together two sprocket halves and bolt them to the hub without the hall effect sensor using 4x40 x 5/8" bolts.

Trim a Sprocket

16A.jpg
16B.jpg
16C.jpg
16D.jpg
Take one of the sprockets and cut away the outer rim with a saw such that the teeth are flush with the edge.

This sprocket will be used on the inside edge of the motor hub with the magnets attached. This will allow it to rotate without rubbing against the hall effect sensor bracket.

Attach Trimmed Sprocket

17A.jpg
Attach the trimmed sprocket facing in towards the hall effect sensor, and an unaltered socket facing outwards.

Fasten them both in place with 4-40 x 5/8" bolts.

Roller Sprockets

18A.jpg
18B.jpg
18C.jpg
18D.jpg
18E.jpg
18F.jpg
Put together a roller sprocket by inserting an idler hub through the center holes of two sprocket halves. Fasten the assembly with 3mm x 8mm steel bolts.

Repeat another 3 times.

Mounting Blocks

19A.jpg
19B.jpg
19C.jpg
Attach the mounting blocks to the triangular lexan panel on the same side as the motor body using 4-40 x 3/8" bolts.

Assemble

20A.jpg
20B.jpg
20C.jpg
20D.jpg
20E.jpg
Put the roller sprockets in place.

Cover each of the aluminum spacers with a nylon roller.

Finally, finish the assembly by aligning the unsused triangular lexan panels over the spacers and locking them in place with 4-40 x 3/8" bolts.

Wrap the Treads

21A.jpg
21B.jpg
21C.jpg
21D.jpg
Wrap the treads around the motorized sprocket assembly.

Make sure they are aligned properly over the sprockets, and then close the final linkage to complete the loop.

Remove the Lever

6D.jpg
6B.jpg
6C.jpg
Remove the crank lever from the seed spreader.

Remove Screws

6A.jpg
6E.jpg
Remove the screws holding the gear box cover in place.

Drill Holes

22A.jpg
22B.jpg
22C.jpg
22D.jpg
22E.jpg
22F.jpg
22G.jpg
Open up the seed spreader's gear box and remove the large gear.

Print out the attached template and use it as a guide to make marks for drilling.

Drill through those four marks with 1/8" drill bits.

Bolt Together

23A.jpg
23B.jpg
Insert 1" x 6-32 bolts through the four holes that were just drilled from the inside on out.

Cut out the top 1/8" acrylic bracket if you have not done so already using the attached template.

Slide the top acrylic bracket onto these bolts and fasten it into place.

Downloads

Seed Spreader Brackets

7A.jpg
Cut two acrylic servo brackets to affix the servo motor to the seed spreader using the attached files.

Downloads

Close It Up

24A.jpg
24B.jpg
24C.jpg
Insert the large gear back into place, put the gear box cover back on, and place the acrylic servo bracket with the large center hole over the cover so that the outer mounting holes lines up with the spreader's bolt holes.

Use the gear box mounting screws to firmly close the case and hold the bracket in place.

Insert Servo

9A.jpg
9B.jpg
9C.jpg
9D.jpg
Insert the servo into the other acrylic servo bracket with the large rectangular hole. Bolt the servo into place with 6-32 x 1" nuts and bolts.

Servo Connector

5A.jpg
Cut two servo connectors out of 1/4" plywood using the attached template.

Downloads

Drill

25A.jpg
25B.jpg
Drill holes in the servo's horn using a 3/16" drill bit.

Affix

29A.jpg
26B.jpg
26C.jpg
26D.jpg
29B.jpg
Zip tie the servo horn to the wooden servo connector. Trim away any excess zip tie tails.

Push this assembly onto the servo shaft.

Servo Assembly

30A.jpg
30B.jpg
30C.jpg
Connect the two acrylic servo brackets together with 2" nuts and bolts, using 1-1/4" spacers in between. Also, while doing so, insert the seed spreader's crank shaft into the center of the wooden servo connector. In this way, when the servo rotates, the crank shaft should turn.

Drill the Base

31A.jpg
31B.jpg
Download the attached drilling guide and use it to drill six 1/4" holes along the outside edges of the bottom lexan panel.

Attach Base Spacers

32A.jpg
32B.jpg
Attach aluminum spacers along the two center rows of holes of the bottom lexan panel (the one without the large rectangular hole) using 4-40 x 3/8" bolts.

Mark and Drill

33A.jpg
33B.jpg
33C.jpg
Place the Arduino and one half of the dual mini circuit boards onto the back center of the bottom lexan panel (the side that narrows).

Make marks for drilling.

Drill all of these holes with a 1/8" drill bit.

Heat Sink

34A.jpg
34B.jpg
34C.jpg
Apply thermal compound to the back of the 7805 voltage regulator, and then bolt it to the heat sink.

Start the Power Board

36A.jpg
36B.jpg
36C.jpg
36D.jpg
Solder the 7805 regulator to the square circuit board.

Solder a 10uF / 50v capacitor between Vin and ground, making sure the negative lead goes to ground.

Solder a 0.1uF capacitor between the regulated Vout and ground.

Finish the Power Board

37A.jpg
37B.jpg
37C.jpg
37D.jpg
Solder the heavy gauge red wire with the switch attached (part of track chassis kit) to Vin and the heavy gauge black wire to ground.

Solder two additional stranded wires to ground.

Solder another stranded wire to Vin, and a different wire to Vout (but you may not need this wire).

Mod the Motor Controller

38A.jpg
38B.jpg
Cut off the Vin pin from the motor controller to separate the motor controller shield from the Arduino power source and help prevent potential short circuits.

Insert

39A.jpg
39B.jpg
39C.jpg
39D.jpg
Insert the modded motor controller shield into the Arduino.

Attach the Arduino

40A.jpg
40B.jpg
40C.jpg
40D.jpg
40E.jpg
Attach the Arduino to the lexan base plate by putting it on 1/4" nylon spacers and bolting it in place with 4-40 x 2" nuts and bolts.

Attach the Power Board

41A.jpg
41B.jpg
41C.jpg
41D.jpg
Place the power board atop 1/4" nylon spacers and fasten it in place with 6-32 x 1" nuts and bolts.

Pen Tubes

42A.jpg
42B.jpg
42C.jpg
Take apart six pens so that you can use the hollow tubes.

Assemble the Base

43A.jpg
43B.jpg
43C.jpg
Pass 6" x 1/4 bolts up through the six 1/4" holes that were drilled earlier in the upper lexan base panel.

Place the upper lexan base panel atop the aluminum spacers attached to the bottom panel. Fasten the top panel in place using 4-40 x 3/8" bolts.

Cover the Bolts

44A.jpg
44B.jpg
44C.jpg
Slide the pen tubes over the 6" bolts, such that they are working as spacers.

Bottom to Top

45A.jpg
45B.jpg
Insert the tips of the 6" bolts through the mounting holes in the acrylic bracket connected to the seed spreader and fasten it firmly in place using 1/4 nuts.

Capacitors

46A.jpg
46B.jpg
46C.jpg
Solder 0.1uF capacitors between the motor terminals in such a manner that you can still slide the motor wire connector cables onto the terminal.

Put It All Together

47A.jpg
47B.jpg
47C.jpg
47D.jpg
Slide the base lexan base into the the slots on the track assemblies.

Fasten the lexan base to the aluminum mounting blocks on the track assemblies using 4-40 x 3/8" bolts.

Insert the Switch

48A.jpg
48B.jpg
48C.jpg
Pass the toggle switch that is connected to the thick battery cable through the remaining 1/4" hole in the upper lexan base assembly. Fasten it in place with its mounting nut.

Wire the Plug

49A.jpg
49B.jpg
49C.jpg
Take one of the red wires soldered to 12v on the power board and another that is soldered to ground.

Screw apart the plug assembly and slide the cover onto the wires.

Solder the red wire to the center terminal and the black wire to the outer terminal, and trim any excess so that they don't bridge.

Screw the cover back on when you are done.

Insert

50A.jpg
Insert the M-Type plug into the Vin socket on the Arduino.

Trim

51A.jpg
51B.jpg
51C.jpg
51D.jpg
Take a prototype circuit board and cut it down to be 1" by  3/4". I find a standard pair of scissors or a paper cutter work well for cutting up circuit boards.

Range Finding Assembly

52A.jpg
52B.jpg
52C.jpg
52D.jpg
52E.jpg
If you have not done so already, download the attached template and use it to cut a rangefinder bracket out of 1/8" acrylic.

Pass the rangefinder leads through the three small holes in the front of the bracket such that the rangefinder is roughly lined up with the edge of the bracket.

Slide the circuit board onto the rangefinder leads and solder it into place.

Respectively insert 6" red, black, and green wires through the three other small holes in the acrylic, and onward through holes in the PCB. Solder them in place as well.

Connect and solder the red wire to the 5v pin on the rangefinder.

Connect and solder the black wire to the ground pin on the rangefinder.

Connect and solder the green wire to the data pin on the rangefinder.

Downloads

Attach the Range Finder

53A.jpg
53B.jpg
53C.jpg
53D.jpg
Mount the range finder to the front servo mounting holes in the upper lexan bracket atop 1/4" nylon spacers using 1" x 6-32 nuts and bolts.

Header Pins

54A.jpg
54B.jpg
54C.jpg
54D.jpg
54E.jpg
54F.jpg
Insert three header pins into the 5V power and two ground sockets on the Arduino. Insert another five header pins into the digital pin sockets 2 through 7.

Also, insert two headers into digital pins 9 and 10 (not pictured).

Keep the headers in place, and press down a prototype circuit board onto them.

Solder the headers to the circuit board.

Start the Circuit

55A.jpg
schematic.jpg
55B.jpg
55C.jpg
Solder a 3 pin header to the top side of the circuit board. Connect one of the outer pins to ground, the center pin to 5V, and the other outer pin to digital pin 10 (pictured incorrectly).

Solder a 1K resistor and 0.1uF capacitor in series on the circuit board. Connect their center point to digital pin 5.

Wire Up the Hall Effect Sensor

56A.jpg
56B.jpg
56C.jpg
Attach a 6" red wire to the outer power pin on the hall effect sensor.

Attach a 6" black wire to the center ground pin on the hall effect sensor.

Attach a 6" green wire to the outer signal pin on the hall effect sensor.

Put heat shrink tubing over each of these connections individually, and zip tie them together for strain relief.

Wire in the Hall Effect Sensor

57A.jpg
Attach the green wire to the central junction between the 1K resistor and 0.1uF capacitors (that is already also connected to digital pin 5).

Solder the black wire to the other leg of the 0.1uF capacitor.

Solder the red wire to the other leg of the 1K resistor.

Solder the Rangefinder

58A.jpg
Solder the green wire from the rangefinder to digital pin 7 on the Arduino.

Solder the red wire to the Arduino's 5V pin, and the black wire to the Arduino's ground pins.

Plug in the Servo

59A.jpg
59B.jpg
59C.jpg
Plug the servo into the header pins that were attached earlier. Make certain that the servo's yellow wire is going to digital pin 10 on the Arduino.

Connect the Motors

60A.jpg
60B.jpg
60C.jpg
60D.jpg
Attach the motor connector wires to the motors by sliding them onto the motor terminals such that both yellow wires go to the plus terminal and both green wires go to ground.

Wire the Motor Shield

61A.jpg
61B.jpg
61C.jpg
61D.jpg
61E.jpg
Insert the red wire from the motor on the right to the negative terminal of channel "A" on the motor shield. Insert the yellow wire from the right motor into the positive terminal of channel "A".

Insert the red wire from the motor on the left to the negative terminal of channel "B" on the motor shield. Insert the yellow wire from the right motor into the positive terminal of channel "B".

Insert the remaining 12v wire from the power board into the Vin terminal, and the ground wire into the ground terminal.

Attach the Battery

62A.jpg
62B.jpg
Place the battery between the two motors and zip tie it into place.

Connect

64A.jpg
Plug the battery connector into the socket coming from the switch / power board.

Program

63A.jpg
Program the Arduino with the following code:

Engage the Seed Spreader

65A.jpg
65B.jpg
65C.jpg
Engage the seed spreader by zip tying the trigger down. It is not very high tech, but it gets the job done.

Power

66A.jpg
Engage the robot by flicking the little lever switch.

Pour Seed

seed.jpg
Fill the seed spreader about 3/4 of the way with grass seed.

Positioning

diagram.jpg

Assuming your lawn is square and has an L-shaped fence (or U-shaped fence... or you are a total weirdo and it is completely fenced in...), place the robot such that it is pointing in a straight line towards the end segment of the L, and will be turning right to move to the side wall. If this description makes little sense, check out the diagram.

Go Use It

l1.jpg
l3.jpg
l2.jpg
l4.jpg

Basically, the way that this is working is that it engages the seed spreader, travels towards the far fence, and counts the number of motor rotations it takes to get there. Once it is within a few inches of the wall, it turns right and travels about a foot and a half (disengaging the seed spreader). It then turns right again and travels back across the lawn (engaging the seed spreader). However, since there is no longer a wall to sense, the robot counts the number of motor rotations and travels back the same distance it traveled towards the wall. When it gets back to this side, it turns left, travels about a foot and a half (disengaging the seed spreader), turns left again (engaging the seed spreader), and then repeats the routine. The routine is repeated until it turns to the side and encounters the side wall within a foot's distance (or so).

In theory, the robot should perfectly cover the lawn with grass seed. In reality, it will draw probably draw a weird modernist zig zag pattern.

One major thing which still needs tweaking is that inserting grass seed makes the bot top heavy and forces the rangefinder sensor to point slightly downwards. As the robot bounces along the lawn, it sometimes senses the ground and stops short of the wall. I think this can be solved by angling the sensor upwards and adding some debouncing to the code.

This is still a work in progress and I welcome anyone who thinks that they can develop better solutions to this problem to take a stab at it.

Did you find this useful, fun, or entertaining?
Follow @madeineuphoria to see my latest projects.