Arduino sensors

The goal of the scenario is an introduction to the basic characteristics of sensors, how they work and how they are used.
The task is to read out various sensors and bring them onto a display at predefined intervals.

CreatorJan Pawlowski, Martin Idzik
SubjectComputer Science
Length45 minutes
Pedagogical ApproachExplorative learning
CompetencesNew technologies, data
GradesPrimary school, grade 5-6
TechnologiesArduino Uno board, plug-in board, resistors, LEDs, connection cable, USB cable
The Arduino should already be prepared, the PCs must each have the Arduino IDE (https://www.arduino.cc/en/Main/Software) and the Open Roberta Connector extension (installation for Windows 10: https://github.com/OpenRoberta/openroberta-connector/releases/download/v1.2.1/OpenRobertaConnectorSetupDE-v1.2.1.msi).
The software environment can be found at https://lab.open-roberta.de
A summary of the preparation here: https://jira.iais.fraunhofer.de/wiki/display/ORInfo/Vorbereitung+Nepo4Arduino

1. Contextualization
In the first step, a short introduction to sensors is given by the teachers. It is discussed which types of sensors could be in everyday objects (car, refrigerator, …).

2. Exploration
The students are given the task of first connecting an Arduino to the PC in groups and taking the first steps to make it ready for work.
The worksheets are used that explain step by step how to start up and get acquainted with the Arduino and how to use the NEPO programming environment.

3. Elaboration
In this phase, the students are given the task of first reading out two sensors and displaying them on the screen.
The Read in Sensors worksheet guides you through the first steps. The following aspects are considered:

  • Read analog data
  • Write data on a display in appropriate formatting
  • Convert data

The tasks can be extended: Several sensors can be combined. Thresholds for warnings can be defined (e.g. temperature too high)

4. Reflection
What did you find easy and what difficult?

Leave a Reply

Discover more from Computational Thinking and Acting

Subscribe now to keep reading and get access to the full archive.

Continue reading