Users Manual

SCRATCH CODING KIT
Introduction
Tori Secret Safe
Coding Tori Secret Safe (Principle)
The Tori secret safe is a model that opens and closes the door of the safe only when you enter a number that
matches the password specified in the scratch program. I will code the program using all four kinds of sensors
(infrared sensor, button sensor, LED, sound sensor). At first, you can enter numbers from 1 to 4 using the
button sensor connected to the ports 0 to 3 of the analyzer with the door open. When you press the infrared
sensor after inputting the number, if the number matches the designated password, the sound sensor makes a
sound and the door is closed. If the number does not match, the door does not work. The LED is blinking when
the door is closed. When the door is closed, pressing the button sensor according to the specified password and
inputting it to the infrared sensor, it is the key to this activity to make the door open with the sound of the door
open and the LED continuously on.
Use one infrared sensor, four button sensors, one LED sensor and one sound sensor in the Tori secret safe. 1 The
new infrared sensor opens and closes the safe door. The four button sensors are used to enter the passwords
from 1 to 4, one LED sensor indicates whether the door is open or closed, and one sound sensor is used when
the door is moved Everyone makes a sound. Remember this and try coding.
Because there are four different kinds of sensors, there are many things to consider when coding. In
this model, you will learn a variety of coding skills.
I'll take a look at the actions you need to take into account before coding Tori secret safe in detail. Before we
do this coding, it is very important to have a coding process with general guidelines on what actions we should
express and how we can express them. Especially, if the code is complicated, the more complex it is, the more
useful it will be when coding the actions that are expressed.
Let's put together the basic actions we need to implement on the next page.