---
title: "Activity: Forklift Attachment"
date: "2023-09-14"
categories: ["Activities", "All", "Simulator Activities"]
tags: ["Colour Sensors", "Branching", "Iteration", "Algorithm Design", "Advanced"]
excerpt: "Use the forklift to move and stack meloncubes into increasingly taller towers. Calculate the correct times to power the servo to reach the maximum height. SetupAgainst a wall, set up a series of towers using solid materials. We generall"
featuredImage: "/images/resources/activity-forklift-attachment.jpg"
---

Use the forklift to move and stack meloncubes into increasingly taller towers. Calculate the correct times to power the servo to reach the maximum height.

### Setup

Against a wall, set up a series of towers using solid materials. We generally use blocks of wood differing in height. Use multiple Meloncubes and practice picking them up using the forklift. Once this has been mastered, raise the fork to the heights of the various towers and stack the Meloncubes on each. Note that the forklift's maximum lift height is about 8cm off the ground.

To extend the students, task them with designing and printing a modular cube that can easily be picked up by the fork. These can be used to create stacked building blocks using the forklift.

To download the print file for the Meloncube, head on over to either Printables or Thingiverse:

    [
      Printables: MelonCube
    ](https://www.printables.com/model/639390-micromelon-meloncube)

    [
      Thingiverse: MelonCube
    ](https://www.thingiverse.com/thing:6284246)

### Here’s Our Approach

![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/31ef27d2-a9d6-40ca-a1ea-00eec27ddf7b/1.png)

#### 1) Move towards the Meloncube

Start by moving the rover towards the Meloncube.

#### **2) Capture the Cube:**

![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/e6b11911-31c3-42e8-b6ba-cffb8e9eee6a/2.png)

Next, we will set the continuous servo to turn on in one direction by powering it to 90. The delay will choose how long the servo will spin for. We will set the servo to 0 to turn it off.

#### **3) Approach the Tower:**

![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/e1a874e9-b316-48d7-8c30-1edd12d9d2e0/3.png)

Once the fork has been lifted, the rover will move towards the tower and stop in front of it. This may vary depending on the distance from the tower.

Maybe add tape on the ground for the colour sensor to detect.

#### 4) Deposit the Cube:

![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/fb7fd882-d224-453e-8fad-f182a7c9ad46/4.png)

Once the tower has been reached, the fork should be lowered to the correct height for the tower. A delay of half a second was added to allow for the servo to settle. Finally, the rover will back away from the tower.

#### Complete Code:

![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/b739b4bb-b494-4f74-989e-456d7a860b25/Complete.png)

**Tip: **

Try and design your own type of modular cubes that are easy to lift and stack. We’ve provided the measurements for the fork to make designing easier. Maybe you can start a construction project like building a city or a staircase!

![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/b0a9e106-d599-49d0-81a4-bd7809cf76f8/Dimensions.png)

### Related Posts

          Resources

      [

![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1639455538805-9NI7CPKR7IYG6D4RBKAN/high+quality+sumo.png)

  ](/resources/creating-a-sumo-unit)

	[All](/resources?category=All)

                [Creating A Sumo Unit For Your Digital Technologies Class](/resources/creating-a-sumo-unit)

	[All](/resources?category=All)

How to run a sumo unit in your digital technologies classroom.

                [Read More &#8594;](/resources/creating-a-sumo-unit)

	[All](/resources?category=All)

      [

![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1637464845856-BBPD7GTIIHHOSJCFORWF/the+ultrasonic+sensor.png)

  ](/resources/ultrasonic-sensor)

	[All](/resources?category=All), [Guides](/resources?category=Guides)

                [The Ultrasonic Sensor](/resources/ultrasonic-sensor)

	[All](/resources?category=All), [Guides](/resources?category=Guides)

Learn all about the ultrasonic sensor!

                [Read More &#8594;](/resources/ultrasonic-sensor)

	[All](/resources?category=All), [Guides](/resources?category=Guides)

      [

![](https://images.squarespace-cdn.com/content/v1/60a43bf842d7b601064a8828/1625616494179-LZHZP5MUA0E0MQKEB7HC/cropped+image+4.png)

  ](/resources/year-7-digital-tech-at-st-peters)

	[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)

                [Case Study: Year 7 Digital Tech at St Peters Lutheran College](/resources/year-7-digital-tech-at-st-peters)

	[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)

See how Meg Foley at St Peters conducted a challenge for their Year 7s using Micromelon.

                [Read More &#8594;](/resources/year-7-digital-tech-at-st-peters)

	[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
