# Matrix Challenge – Binary Logic Sequence

 School: Etec Aristóteles Ferreira - SP Number of students: 18 Context: Curricular Age: 16 a 18 anos Format: Em duplas Activity length: 1h50m Preparation time: 5h Keywords: ArduinoBinary countingLED programming
##### Activity description

Logical sequence challenge. Assemble the circuit in Tinkercad, with three LEDs. In order to customize it, the group can choose different digital outputs. It was also asked of them to use different colors in each LED. Each exchange between numbers must happen every 1 second (1000ms). The goal is to build a logical timekeeper device in binary up to the number 7, as in the example:

##### Pre-requisites

Contents: To carry out this activity, the following prior knowledge was used: - To use the Arduino IDE software to trigger digital outputs; - To know how to assemble electronic circuits on a breadboard; - To know the main characteristics and know how to use the light-emitting diode (LED).

### Lesson plan

##### Pedagogical goals

To plan and execute experiments with the realization of a project based on the assembly of circuits with electronic components. This prototype must be developed with the use and programming of the Arduino microcontroller.

##### Necessary materials

The class will be developed remotely, using the Teams application. Students will develop this activity using the software https://www.tinkercad.com

##### Preparation

- Assembling the PowerPoint presentation of the activity.
- Assembling the electronic circuit in Tinkercad
- Preparing the programming in the Arduino IDE.
- Testing the circuit
- Preparing the remote class and the assessment in Teams.

##### Conducting the activity

In previous classes, students learned how to program the Arduino microcontroller to turn on an LED by activating a digital output. Another skill that was part of the prior knowledge is the process of assembling the electronic circuit to turn on an LED on a breadboard.
For contextualization, the movie Matrix was used as a reference, where it was commented on the binary number system. In the first stage of the class, there was a dynamic in which the logic of this numbering system was explained.
As proposed in the practices of active methodologies, knowledge was built in partnership. Together, the students were instructed to build the sequence of a timekeeper from 0 to 7, using binary numbers that are represented with 0 and 1.
0 – 000 / 1 – 001 / 2 – 010 / 3 – 011 / 4 – 100 / 5 – 101 / 6 – 110 / 7 – 111

##### Discussion and reflection with students

The proposal was to ask students in pairs to build an electronic circuit with three LEDs, with different colors. These LEDs should be connected to the Arduino digital outputs and perform the binary sequence from 0 to 7. The logic should respect the following rule: When the number is 0 the LED must be off and with the number 1 the LED must be on. To carry out this sequence, the students used the Arduino IDE. The transition time between one number and another should be one second.

The circuit assembly and programming should be done in Tinkercad, as in the example:

### Practice report

##### What can be improved

I liked the result. No new ideas so far.

##### Authors

Name: Marcelo Florêncio

Email: marcelo.florencio@etec.sp.gov.br

Subject: Electronics

About the author: Teacher at Centro Paula Souza