Author: Russ Morgan

Robots & Drones Workbook

(WRITE YOUR FULL NAME HERE)

STUDENT DECLARATION - By submitting this document you are declaring that all of the work is your own and you have not used code or photos that another student created.
Delete any instruction you see in Red Text!

Getting Started

Take a photo of yourself with your laptop camera and insert it here.
Double-click on the image and use the Crop tool (located at the top-right of the tool bar) to remove the top and edges so your image is a portrait style.

Insert Picture Here

Before moving on make sure you have shared this workbook with your teacher.

Rover Task 1- Forwards and Backwards

Write a small program that will make your Rover go forwards for 3 seconds, stop and then go backwards for 3 seconds.

Insert Code Here

Rover Task 2 - Lights and Noise

Re-save Task 1 (as Task 2) and add extra commands that get the lights to come on before going forwards and to make a noise before going backwards.

Insert Code Here

Rover Task 3 - Create Functions

The Jimu robots have many inbuilt functions but you can also create your own. Creating functions will make your code more efficient. Functions remove the need to repeat large chunks of code. Insert your code for a right_turn and left_turn function below (see portal for help).

Insert Code Here

Rover Task 4 - Obstacle Course

Write code to get your Rover to complete the Obstacle Course shown below. Try to avoid hitting any obstacles

Insert Code Here

Rover Task 5 - Repeat Command

Use a Repeat command to make your Rover drive in a square and then stop at the same point that it started from.

Insert Code Here

Rover Task 6 - Infrared Sensor

Create the following code and work out what it does.
In the text box to the right explain what the servo code does and what the wait code does.

The Servo Code ..
Type here
The Wait Until command …
Type here

Rover Task 7 - Stop and Turn with Repeat

Re-save Task 5 as Task 6 and add your own commands to the code.
Your new code should:
Change the speed to fast
Flash lights and go backward for 1 sec after the Stop command
Turn 90 degrees
Play a sound and change the colour of the eyes
Repeat the whole sequence 4 times

Insert Code Here

Astrobot Task 1 - Taking out the Trash!

Astrobot is being used to help clean up around Loreto by picking up trash and dropping it into the bin. You have to write the code that will help Astrobot accomplish this task. The flowchart below shows the steps that you will need to code. There is an example video on the Portal.
You will need to use the wait until IR sensor code shown below to work out when Astrobot has trash to pick up. You will need to work out how far away from the sensor the trash needs to be placed!

Insert Code Here

Astrobot Task 2 - Sensor Distance

Use the Flowchart to the right to work out what you have to do. What sensor will you need to use?

Insert Code Here

Robot Reflection

Answer the following questions.
Why do we use Flowcharts?
What do sensors do?
What is a Repeat Loop?

All Drone activities are to be completed individually. You must not share your solutions with any other students.

Drones - Tello EDU Training Station

Paste an image of the badges for 01 - 03 below

Insert image of Badges for levels 01-03 here

Paste an image of the badges for 04 - 06 below

Insert image of Badges for levels 04-06 here

Paste an image of the badges for 07 - 09 below

Insert image of Badges for levels 07-09 here

Drones - Earth Mission

Paste an image of your completed Earth Missions to the right.

Insert Image of Badges 04-06 Here

Drone Task 1 - Take off and land

The starting position of the drone is represented by the green arrow.
Make your Drone:
Take off
Go forward for 300cm
Land on H2

Insert Code Here

Drone Task 2—Change Direction

Make your Drone
Take off
Travel to and land on H2
Take off again
Turn 90 degrees
Travel to and land on H3

Insert Code Here

Drone Task 3 - Reverse

Re-save and then edit your Task 2 code so that the Drone also does the journey in reverse (going backwards). Ending up back on H1 Facing the same direction it started in.

Insert Code Here

Drone Task 4 - Hoop (continued on next page)

Drone Task 4 - Hoop (continued)

Fly the Drone through a hoop.
Note:
H1 is 5 meters from H2
The hoop is positioned at 2 meters from H1

Insert Code Here

Drone Task 5 - Repeat

Use the Repeat block to make your drone
> Fly in a square
> Turn around and fly back again in the opposite direction.
You are aiming to use the least amount of code possible!

Insert Code Here

Drone Task 6 - Field Survey

You have been asked by Farmer Jones to take aerial photos of his sugar cane field so he can check for cane toad damage.
You MUST use a Repeat block to fly your Drone as indicated above.
Note:
500mm is the default height after take off
The image is from the top down view.

Insert Code Here

WRI 2021 Page #