Materials required
- Lesson slides
- Otto Starter robots
- OLED Display of Expansion Kit
- Ultrasonic sensor (already included in the starter kit)
- Computers with internet and Bluetooth connection
Optional materials
- Lesson worksheets
Learning Objectives
- Identify the key components of a robot and explain their functions.
- Identify the problem to be solved and develop a plan to address it using the Otto robot components.
- Use an iterative design process to improve the robot’s performance.
- Communicate ideas and results clearly and professionally to peers and teachers.
Adding back the ultrasonic sensor
An activity in this lesson will require combining the OLED display + the ultrasonic sensor. Since there is not a 3D printed module that joins both, students will need to open the top of the robot and use it uncovered while experimenting with both.
What are Animations and Why Are They Useful?
Introduce students to the concept of predefined animations. Explain how robots can use a set of pre-programmed animations to communicate messages visually (slide #3). For example, animations can be used to indicate that the robot is starting up, idle, or ready for a new task.
Predefined animations are sets of pre-programmed movements or visual displays that robots use to communicate messages or statuses. These animations can be shown not only through movements and lights but also on an OLED display, allowing for more detailed and dynamic communication. For instance, a robot might display a loading animation on its OLED screen when starting up, show an idle icon when it’s waiting for a task, or flash a “ready” signal when it’s prepared for a new command. This use of visual animations enhances the robot’s ability to interact with users in an intuitive, engaging, and clear manner.
Using the "Create Animation" Block
Guide students through the process of selecting predefined animations using the create animation block (slide #4). Show how the block allows them to choose from a list of animations and display them on the OLED screen.
- Step 1: Demonstrate how to use the create animation block by selecting a simple animation from the list.
- Step 2: Play the animation on the OLED screen, showing how it repeats or loops.
How to use the create animation block:
- Find the create animation block and place it in the work area.

- A new page to select animations will automatically open. If it doesn’t open, right-click the block and select the Help option to manually open it.

- On the new page, you can explore a wide range of animations, organized by categories.

- Once you decide on the animation you want to display, scroll down and click the [GET THE CODE >] button. You can also choose the size of the animation.

- After clicking the button, you will be directed to another page where the Python code for the animation is shown. Simply click the icon to copy the code and return to Word Block.
- In Word Block, you’ll notice a new icon (an Otto head with the OLED attachment). Once you click it, the animation will be pasted into the code that will be uploaded to the robot. Now, you can upload the code and the selected animation will be displayed.

If you’re curious about confirming that the code has been pasted, click the Python icon (next to the Example Projects icon) before and after pasting the animation code to observe the changes.
⚠️ Limitations of the block:
The Create Animation block is a useful tool for adding visual elements to your projects, but it comes with certain limitations. It doesn’t allow for any other actions to be executed simultaneously or immediately after the animation. Once an animation is triggered, the system focuses solely on displaying the animation, meaning no additional code can run in parallel or immediately follow during its execution.
Allow students to experiment with different animations from the list and observe how they behave on the display.
Use of variables
The following activities will require the use of variables. If students are not familiar with the concept of variables, it’s a good moment to take around 5 minutes to explain what variables are and how to use them in Word Block. Here is a simple explanation:
A variable is like a special box where we can store information in a computer program. Just like how you might use a box to keep your toys or school supplies, a variable holds things like numbers, words, or other important data that we can use later. The cool part is that we can change what’s inside the box whenever we need to, just like how you can swap out your toys or supplies!
Create variables in Word Block:
- Go to the Variables section and click the button [Create variable…]
- Write a name for the variable (commonly, the name is one that describe the purpose of the variable) and there will appear three blocks to use that variable
Blocks for variable:
Let’s assume we want to create a variable to control the x-position of texts to be displayed in the OLED. Then we can create a variable called posx:
Block | Description |
| This block initializes or updates the value of the variable posx to 1. It’s commonly used to set a starting point or reset a variable. The user can set the number to any number (positive or negative). |
| This block increments the current value of the variable posx by 1. Each time this block is executed, the value of posx increases by 1, which is useful for moving objects or tracking a position step by step. The user can set the number to any number (positive or negative). |
| This block returns the current value of the variable posx. It can be used to check or use the value of posx in other blocks, such as in conditionals or to display the value. |
Use example of variable blocks:
|
This code animates the text “Otto” moving from left to right across the screen. It starts by setting the horizontal position (posx) to 1 and repeats 10 times, each time displaying “Otto” at the current posx position while keeping the vertical position fixed at 0. After each display, posx is increased by 1, causing the text to shift one step to the right in each iteration. The loop creates a smooth horizontal movement for the text over 10 steps. |
Animating Shapes with Control Blocks
Introduce students to the concept of animating shapes on the OLED by changing their size and position (slide #5). Explain that by combining shapes with control blocks (such as variables and the repeat n times loop), they can create more dynamic and interactive visuals. 
- Step 1: Use the variable block and the repeat n times loop block (as shown in the image) to animate any property of a shape (in the example we are changing the size of a circle).
- Step 2: Explain how the variable will represent the position of the shape, and how the repeat n times loop will control how many times the shape moves.
Challenge your students to continue this code by creating a “circle contraction effect” after the expansion. In a first glimpse, it could seem like a simple challenge to copy the current loop and change the variable increment by -1. But it will also require to add a display off block in every change of the circle to refresh the screen.
Incomplete change | Correct code |
| |
Encourage your students to try this by themselves using different shapes and animating different properties. For example, a square could move horizontally across the OLED by creating a variable for the x-position and increasing it inside the loop. The loop would repeat a set number of times, gradually increasing the x-position from 0 to 128 (the screen width).
Mindfulness Breathing Example
Now, introduce a real-life application of these concepts using an animation for Mindfulness Breathing.
Explain how animation can be used for practical purposes beyond entertainment. The following demonstration will simulate a breathing exercise where a circle gradually expands and contracts, guiding someone to inhale and exhale in sync with the animation.
Mindfulness breathing is a simple technique that helps students focus their attention on their breath to calm the mind and reduce stress. It involves taking slow, deep breaths while paying close attention to each inhale and exhale, which helps anchor students in the present moment. This practice can improve concentration, reduce anxiety, and enhance emotional regulation, making it useful in academic settings to boost focus and overall well-being.
In this [program] there is a simple way to practice mindfulness breathing by visualizing a circle expanding and contracting to represent the time of inhale and exhale air. Encourage students to visualize how this breathing guide can help with relaxation exercises. Even though it’s a simple animation, it shows the practical use of OLED display animations.
Activity: Open Exploration with Sensors and Movement
For the final activity, allow students to explore integrating sensor input to control the movement of shapes:
- Step 1: Use the ultrasonic or infrared sensors to trigger shape movement on the OLED screen.
- Step 2: Experiment with different shapes and sensor combinations to see how the display reacts.
This will give students the opportunity to apply what they’ve learned about shape animations and sensors in a creative way.
Lesson Evaluation
- Students can create and display predefined animations using the create animation block.
- Students can animate shapes on the OLED screen using control blocks like loops and variables.
- Students show an understanding of how to combine sensor input with animations (optional exploration).
Lorem ipsum
The duration of this lesson is approximately one hour. You can find the definition of learning objectives at the bottom of this guide to align with your curriculum requirements.
Materials required
- Lesson slides
- Lesson worksheets
- TV, projector, or big screen to display the class videos
- Big paper or cardboard (white)
- Tape (black)
- Scissors
Computers, tablets or smartphones are optional, they can be used as digital tools for students to do further research and take additional notes.
Connect
The class begins by displaying the first slide and asking the students “What do you see here?’“
[Pause and wait for students to provide answers, which may include mentions of a robot arm and two wheeled robots moving boxes].
The teacher will then guide the class in a conversation about the nature of robots, exploring questions such as: ‘What is a robot?’ ‘When does something turn into a robot and when is it just a machine?’
Moving on to the second slide, the teacher will introduce the topic of the usefulness of robots to humans. Students should share their ideas about how robots can be useful.
[This conversation is expected to last approximately 4-5 minutes]
Afterwards, on the third slide, the students will watch a video that explains the concept of what a robot is. Following the video, they will have the opportunity to share their personal experiences with robots. The teacher can guide the conversation by asking specific questions, such as: ‘Have you ever played with a robot or built one?’ ‘Do you have any robotic devices at home, like a vacuum cleaner, that you consider to be a robot?’
[The video has a duration of 4 minutes, and the discussion about personal experiences is expected to take an additional 3-5 minutes]
On the next slide, the teacher will organize small groups consisting of 2-3 students. Each group will be assigned a specific robot to investigate. The students can conduct their investigation by using the internet or through provided materials, either digital or physical. Some popular real-life robots for the students to explore are:
As a teacher, feel free to research other robots to add to the list. By the time you teach this lesson, there could be some new and popular robots.
During this activity, students will gather information about their assigned robot and gain knowledge about how robots are being utilized in daily life. At the end of the investigation, each group will give a brief presentation about the robot they investigated.
Here the students will use the first worksheet
[This activity is expected to take approximately 10-15 minutes in total, allowing sufficient time for research and presentations]
Make
On the fifth slide, the teacher will introduce the HP Otto robot by showing a video about its features and capabilities. After watching the video, the teacher will demonstrate a built robot to the students, showcasing its physical components and explaining how they contribute to its functionality.
[To further engage the students, the teacher can connect the robot to the Otto web control app, demonstrating how to operate and control the robot using the app’s interface.]
On the next slide, a diagram displaying the internal connections of the robot will be shown. Using the web control app, the teacher will demonstrate how each component of the robot works.
To engage the students, the teacher can actively involve them in the activity. For example:
- Buzzer: The teacher can play various sounds available on the app and ask students to suggest or choose which sound they would like to hear.
- LED ring: The teacher can ask students (up to a maximum of 12) about their favorite colors and display them on the LED ring.
- Ultrasonic sensor: The teacher can activate the avoidance function and make the robot move around the classroom. Students can participate by intercepting the robot’s path with their hands, observing how the robot changes its direction in response.
- Line sensors: Although the line tracking activity will be conducted later, the teacher can explain how the infrared sensors work at this stage.
In the next activity, the entire group will work together to define a racing track circuit for the robot to navigate. The teacher will guide the students in this process, but it is important to allow the students to make the decisions in order to foster their creativity and engagement. The goal is to define a circuit that includes specific landmarks or areas within the classroom for the robot to move around.
For example, the students may decide to start the circuit in front of the teacher’s desk, then describe a square around James’ seat, move in a zigzag pattern between Eva and Raidy’s seats, and finally return to the teacher’s desk. [To maintain efficiency, the teacher should encourage the students to make quick decisions, aiming to complete the circuit definition within 1-2 minutes]
[Optional]: As an additional challenge, the teacher can allow students to take turns controlling the robot and measure their individual completion times. This can add an element of friendly competition among the students.
The next activity is similar to the previous one, but this time the students will create a line track using ‘tape’ on a large white piece of paper or cardboard.
Lorem ipsum
Lorem ipsum





