OLED Display 101

This lesson introduces students to OLED displays, their functionalities, and the basics of programming them using Word Blocks. Students will explore the capabilities of OLED displays and understand how they can be used to show text and figures on a robot’s screen.

Materials required

  • Lesson slides
  • Otto Starter robots
  • OLED Display of Expansion 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. 

Recap Otto Starter (optional)

If you are introducing this content after a long break (for example, starting a new semester), it might be a good idea to take 5-10 minutes to recap how to code Otto Starter (with the ultrasound sensor) using the word blocks app. Begin the lesson by allowing students to code using the Otto basic configuration (wheels + ultrasonic) to complete a simple activity (slide #3) to refresh their knowledge about coding Otto. 

Why is programming so important for robot interaction?

Discuss with students how programming drives the robot’s physical movements and interactions (slide #4). Emphasize the importance of programming in controlling robots, which is critical to human-machine interaction. 

Encourage students to consider how an OLED display can enhance the way robots communicate with humans by showing information or messages. They will be using the OLED display as a tool to communicate ideas in this lesson. 

Programming is important for robot interaction because it tells the robot what to do. Just like how we use words to give each other instructions, we use programming to give instructions to robots. Without programming, robots wouldn’t know how to move, talk, or do any of the fun things we want them to do. It’s like giving the robot a brain so it can understand and follow our commands!  

Understanding the OLED display

⚠️Important: the blocks to use the Emotive Expansion are not added by default to Word Blocks app, you must add them by:  

  1. Click the configuration icon  
  2. Click the option: 🤖 select Otto kit 
  3. Click the option: Expansion emote 

The app will reload and there will be new block sections added to the software. 

Introduce the OLED display as a key component for visual communication in robots (slide #5). Show students how the OLED display works by connecting it to the robot and displaying a simple “Hello Otto” message using the show x y “text” block in the OLED section of Word Blocks. 

Code 

Result (simulation) 

Explanation of x and y Coordinates 

Explain that the OLED screen has a coordinate system with x (horizontal) and y (vertical) values determining where the text will appear. The x value specifies how far from the left edge the text starts, while the y value controls how far down from the top the text is displayed. For example, using x = 0, y = 0 places the text at the top-left corner, while increasing x moves the text to the right, and increasing y moves it downward. 

Use the next slide to briefly explain how OLED technology works (slide #6). Explain that OLED displays allow the robot to display text, images, and even animations, which will be covered in later lessons. 

Activity: Adding the OLED Display and Displaying Text

Guide students through adding the OLED display module to their robots (slide #7). After this, ask them to work with a classmate to try the basic text display block (show x y “text”) and explore how text can be displayed at different positions on the OLED screen. 

You can find the instructions in the online PDF guide from page 4 to 7. 

📝 Students can use worksheets to take notes during this activity, documenting what they observe when changing the x and y coordinates texts. Check the worksheets answers section for more information. 

Handling Too Long Text
In case that students don’t notice it by themselves, explain that OLED displays have limited space, so when text is too long, it may not fit on the screen and could be cut off. Invite them to try too long texts in their display and think about possible solutions.  

Some common solutions: 

  1. Use shorter words or abbreviations. 
  2. Split long messages into multiple lines.
  3. Scroll the text using programming techniques. This last one is an advanced technique very typical in advertising screens. 

Activity: Creating Faces on the OLED Display

Students will now explore using the eyes and mouth blocks in the OLED section to create simple faces. This activity introduces them to the idea of using the OLED display for more than just text, preparing them for future lessons on animating these features. 

Let them freely play with these blocks (text, eyes and mouth) or propose small challenges such as:  

  • Make Otto to express 3 different emotions by using eyes, mouth, colors and sounds.
  • Make Otto to explain how the OLED works using text in the available screen space (the most challenging part will be to create a good explanation with the limited space). 

Lesson Evaluation

  • Students participate in class discussions about the importance of programming and the role of the OLED display in robot communication. 
  • Students can identify the OLED module and explain the key differences between it and other modules, such as ultrasonic sensors. 
  • Students have a basic understanding of how to code the OLED module in Word Blocks and can use the show x y block to display text at different screen positions.

Worksheets answers

In the last worksheet, there is an activity that propose students to test the following code: 

 

 After testing, the result will be that the second text will be written over the first, making both unreadable.  

The why is because part of the second text is passing through the coordinates of the first text, and because the first text is not being erased before writing the second one, it is being written over.  

The easy solution to this issue is simply write the second text in a different coordinate, but… what happens if we want to write the second text in the same place as the first one? 

Invite your students to think of solutions for this scenario. The solution is simply place a display off block before the second text: 

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

Scroll to Top
This will be available with the release of this product.