Testing components

Students will explore the components included in the Otto Starter box. They will start to identify and familiarize themselves with each component, gaining a fundamental understanding of how they work.

Knowledge required

This activity assumes that the teacher knows how to use webcode or websimulateYou can refer to the coding guide if you have any doubts about using the software needed to teach the lessons. 

Materials required

  • Otto Starter Kit (it can be only the electronic components) 
  • Computer with internet connection 

Optional materials

  • Testing components worksheets 
  • Testing components slides

Learning Objectives

  • Identify the key components of a robot and explain their functions. 
  • Describe the difference between sensors and actuators and how they interact in a robot. 
  • Write and upload programs that control the robot. 
  • Modify an existing program to add new functionality to the robot. 
  • Analyse and debug existing code to identify and fix errors, and explain how the code works. 
  • Analyse the mechanical/electronic components of the robot and explain how they work together. 

Word blocks app or Simulator

These lesson’s activities can be approached using the physical components and word blocks app to test everything or using simulator to digitally test the different components of Otto. If using the simulator, the Otto Starter Kit is not required.

Unboxing the components

As your first activity, you can do an unboxing/review the Otto Starter Kit box. This will help you make sure every student has all the required components to complete this lesson but also to build Otto in a future lesson. After checking we have all the components, ask your students to only keep out of the box the electronic components to test them.

Test #1: Circuit board & Buzzer

The circuit board is a crucial component that serves as a central hub, connecting all the other electronic parts of the robot. The circuit board plays a key role in managing communication between the input device (the computer or tablet used to code) and the robot itself.  

💡To help the students understand, an analogy can be used to compare the microcontroller to the human brain for robots. Just as our brain controls the actions of our bodies and sends commands to execute tasks, the circuit board sends electrical signals to the other components, guiding their actions. As a teacher, feel free to choose the most effective approach to explain the workings of a circuit board to your students. 

Vocabulary 

  • Circuit Board (Microcontroller Board): The main hub that connects and controls all other components of the robot, similar to a brain.
  • Microcontroller: A small computer on a single chip that executes the program and sends signals to the components.
  • LED (Light Emitting Diode): A small light on the board that can be turned on or off to show output signals
  • Buzzer: An electronic component that produces sound when powered.
  • Sequence: An ordered set of instructions that the robot follows step by step. 
🛠 Turning on/off internal LED of the circuit board

Get your students into word blocks app.

Once you press the play button, an LED (Light Emitting Diode) integrated in the board will start to blink every second.

After confirming that the LED isworking correctly, feel free to add sound to check the integrated buzzer on the circuit board by adding a sound block like the one below, before the forever loop.

Challenge

Ask your students to compose a program giving them the following instructions:

  • Turns on the internal LED and play a “connection” sound
  • Wait for 2 seconds
  • Play any other sound and turn off the internal LED

 ❗️Be clear with the instructions, the order of the actions is important (LED > Sound > Wait > Sound > LED). This small challenge will allow you to identify your student’s skills to connect a series of blocks creating a specific sequence of actions based on instructions.

The result code should look like the one below.

Test #2: Color Lights

The color lights component is a neopixel ring. A circular array of individually addressable RGB (Red, Green, Blue) LEDs. Each LED on the ring can independently emit a wide range of colors and brightness levels.

Connect this component to the connector 5 (refer to the wiring diagram at the end of this document if needed):

To test this component, we will use these 3 blocks. First, compose an algorithm only with the first one and play it. Ask your students to describe what is happening. Then repeat it with the other two blocks.

Vocabulary 

  • Neopixel Ring: A circular arrangement of individually addressable LEDs that can show different colors and patterns.
  • RGB LED: A light-emitting diode that can display many colors by mixing red, green, and blue.
  • Brightness: The intensity of light an LED emits.
  • Addressable LED: An LED that can be controlled independently from others in the same strip or ring.
  • Effect (Animation): A programmed sequence of color changes or movements of lights. 

Challenge

Give your students 5 minutes to create whatever they want with the light blocks (including the other blocks from the Colored Lights section that we didn’t use) and the other blocks we covered in the lesson. At the end of the 5 minutes, allow them to show their results.

Test #3: Ultrasonic Sensor

An ultrasonic sensor is a device that uses sound waves to measure distances. It sends out high-frequency sound waves, and when these waves bounce back after hitting an object, the sensor calculates the distance based on the time taken for the waves to return.

Vocabulary 

  • Ultrasonic Sensor: A device that measures distance using high-frequency sound waves.
  • Echo: The reflected sound wave that returns to the sensor after hitting an object.
  • Distance Measurement: The process of calculting how far away an object is based on the time it takes for the sound wave to return.
  • Threshold: A set value (e.g., 20 cm) that determines when the sensor will trigger an action.
  • Integration: Combining two or more functions of a component (in this case, distance sensing and light display). 

Connect this component to connector 1. Refer to the wiring diagram if needed.

The ultrasonic sensor can be considered as 2 components in 1: as a sensor to measure distances from itself to the closest object in front, and as color light device additional to the Color Lights ring. To try both functions at the same time, we can use this piece of code.

This algorithm will turn the lights of the ultrasonic sensor on green when it detects something in front of it in less than 20 cm (about 7.87 in).

💡 Using a ruler, show students that the action effectively happens once an object is in the range of less than 20 cm.

Challenge

Modify the code to detect when an object is 10 cm (about 3.94 inches) or closer. When this happens, turn the lights red and make a sound. If there is nothing within 10 cm, keep the lights green.

Test #4: Line sensors & Motors

The line sensors are in fact infrared sensors. With them we can measure how light or dark a surface is; thanks to this, for instance, we can determine when a surface is black or white.

In this test we will combine them with the motors to see how they work together.

Vocabulary 

  • Line Sensor (Infrared Sensor): A sensor that detects differences in light and dark surfaces.
  • Infrared Light: Invisible light used by sensors to detect surface reflection.
  • Digital Input: A sensor signal that has only two states: ON (1) or OFF (0).
  • Motor: An actuator that converts electrical energy into mechanical motion.
  • Actuator: A component that performs an action, such as moving or turning.
  • Interaction: The way sensors and actuators work together to control the robot’s behavior.

Line sensors can be used as analog inputs (in the connectors 6 & 7) or as digital inputs (in the connectors 8 & 9). For this test, we will connect the line sensors as digital inputs. Motors will be connected as shown in the wiring diagram.

The next algorithm will make motors to move once a line sensor detects something close enough.

⚠️ Notice that the line sensors and motors blocks are not the same. The first ones correspond to the left sensor and left motor while the seconds to the right sensor and right motor.

✅ All test done!
After confirming that all the electronic components are working correctly, if there is still time, consider giving an extra challenge to the students asking them to make an algorithgm that combines all the electronic components together.

Wiring Diagram

Lesson Evaluation

  • Students identified the electronic components from the Otto Starter Kit and explained their basic functions.
  • Students successfully connected the circuit board and verified the LED and buzzer functions through coding.
  • Students tested the color lights and described the behavior of different light programs.
  • Students experimented with the ultrasonic sensor and explained how it measures distance using sound waves.
  • Students tested the line sensors and motors, demonstrating understanding of how sensors and actuators interact.
  • Students demonstrated debugging skills by correcting errors when components did not respond as expected.
Scroll to Top
Thank you for your interest in our robot Otto.
Let us inform you that the Otto Starter Kit will be ready for purchase at the end of January 2024.

If you would like to pre-order Otto Starter kit, feel free to contact us at email address moravia@moravia-consulting.com.
This will be available with the release of this product.