Materials required
- Lesson slides
- Otto Starter robots
- Temp & Humidity sensor from Sense Expansion
- Computers with internet and Bluetooth connection
Optional materials
- Lesson worksheets
Learning Objectives
- Identify environmental sensors (temperature, humidity, light) and/or interactive sensors (microphone, tilt) and their roles in robotics.
- Recognize real-world applications of sensors in robotics (e.g., smart devices, environmental monitoring, assistive technologies).
- Write and upload programs to read data from environmental and/or interactive sensors.
- Analyze sensor data to detect patterns (e.g., temperature fluctuations, sound intensity, tilt angles).
- Display sensor data in real time on the robot’s visual component for user feedback.
- Use conditional logic to trigger robot behaviors based on sensor thresholds.
Why are sensors important for robot-environment interaction?
Discuss with students how sensors allow robots to perceive their surroundings, just as humans use their senses (slides #3). Emphasize how temperature and humidity sensors help robots adapt to different environments. For example, explain that robots can change behavior based on environmental data, such as turning on a fan if it’s too hot or activating a light in low humidity.
Complete the introduction by encouraging students to think about how robots that sense their environment can be useful in real-life applications (e.g., smart homes, environmental monitoring).
Sensors allow robots to perceive their surroundings in much the same way humans use their senses to gather information about the world. For example, temperature and humidity sensors help robots detect environmental conditions and adapt accordingly. A robot with a temperature sensor can recognize when it’s too hot and respond by turning on a fan, while a humidity sensor can alert the robot to low moisture levels, prompting it to activate a light or humidifier. By responding to this data, robots can change their behavior to suit different environments, making them more versatile and efficient in real-world applications.
Understanding Temperature and Humidity Sensor
⚠️Important: the blocks to use the Sense Expansion are not added by default to Word Blocks app, you must add them by:
- Click the configuration icon
- Click the option: 🤖 select Otto kit
- Click the option: Expansion sense
The app will reload and there will be new blocks added to the Sensing section in the software.
Introduce temperature and humidity sensor as critical component for environmental interaction (slide #4). Explain how this sensor works: temperature is measured in degrees Celsius, and humidity is represented as a percentage of moisture in the air.
Short explanations
Temperature: It measures how hot or cold something is. You can think of it as the amount of heat energy in the air. For example, when it’s hot outside, the temperature is high, and when it’s cold, the temperature is low. Sensors in robots measure temperature to help the robot understand the environment, like how humans feel warmth or cold.
Humidity: It tells us how much water vapor is in the air. When the humidity is high, the air feels sticky or moist (like on a rainy day), and when it’s low, the air feels dry. Robots use humidity sensors to detect moisture levels, which can be helpful for predicting weather or creating responses in environments with different air conditions.
Our temperature and humidity sensor module can measure both the heat level (temperature) and the amount of moisture in the air (humidity). By combining these two measurements, the robot can better understand its environment, allowing students to program behaviors based on the sensor’s data, such as adjusting movements or triggering alerts in specific weather conditions.
⚠️ Important: Show students how to connect the sensors to their circuit boards. Guide them through the wiring process (slide #5).
Once connected, show students how to read sensor data using word block coding. Demonstrate how to display the temperature and humidity readings on the serial monitor.
This code continuously reads temperature and humidity data from the sensor and displays it on the serial monitor. It prints the temperature in degrees Celsius and the humidity as a percentage, updating the readings every second. Decorative lines are included to separate the values for clarity. The loop ensures that the data is refreshed constantly, allowing students to monitor environmental conditions in real-time.
Activity: Coding Temperature and Humidity Sensor
Guide students through adding blocks in the coding app to collect and display temperature and humidity data from their sensors (slide #6).
- Step 1: Ask them to test the code by displaying the real-time readings on the serial monitor as in the example.
- Step 2: Then ask them to share, by turns, the measures they are getting from their robots to compare.
- Step 3: Finally, confirm how similar the reading is to reality by searching the information of the weather in your city in Google or another reliable source.
💡 You can simply search the word weather on Google to get an information card with the current temperature in Celsius and Fahrenheit and additional information including the humidity.
ℹ️ Not exact values:
When students compare the sensor readings from their robots, they might notice slight differences between each robot’s measurements, which is perfectly normal. Factors such as sensor calibration, room conditions, and even small variances in placement can cause these differences. Similarly, when they compare their readings with real-time weather data from the internet, there might be small discrepancies. This is because weather stations measure conditions from different locations, often outdoors, while the robots are measuring in a specific indoor environment. These variations are expected and are part of how sensors work in different settings.
Activity: Environmental Response
Guide students to program their robots to respond to temperature and humidity changes (slide #7). For example:
- The robot could change light colors, make sounds and even more when the temperature rises above 30°C or move when humidity is over 70%.
Afterwards, have them pair up with a classmate to test and compare how their robots respond to environmental changes.
Suggestions for changing the temperature: Since significant changes in temperature are difficult to observe in real-time, students can use simple methods to modify the temperature around the sensor:
- To cool down the sensor, they can place a small ice pack, a cold drink can, or a chilled towel near it.
- To warm up the sensor, they can hold their hands close to it, carefully use a hairdryer on a low setting, or place the robot near a lamp or heater.
These are just suggestions, and the teacher can choose the most feasible options based on classroom resources. Remind students to handle items carefully and avoid direct contact between the sensor and extreme heat or cold to prevent damage.
Simulating the values with variables: Alternatively, to avoid using extra devices, students can test their code logic by replacing real sensor data with variables that they can manually adjust to simulate temperature changes, as shown in the example below.
Code with sensor real data
Simulation with a variable
Lesson Evaluation
- Students actively participate in class discussions and group activities.
- Students correctly connect the temperature and humidity sensors to their robots.
- Students demonstrate an understanding of how to program the sensors using word blocks and can explain how environmental data influences robot behaviour.
- Students can convert values from Celsius to Fahrenheit using the formula.
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
