top of page

Tunnel Book

Project Purpose: Light sensor (LDR) using Pinoo Control Board  and led module  Creating a tunnel book with

Duration: 2 lessons

Age Group: 7 years and above

Pinoo Set: Basic Set,Invention Set,Maker Set,Full Set

Achievements:

  • Learn to code Pinoo control board

  • Learns to code the light sensor (LDR).

  • LED module learns to code.

  • Develops algorithmic skills.

  • Coding skills develop.

 

Materials to be used: Mblock 3 program, Pinoo Control Card, Light sensor, Led module (2 pieces), Connection Cable

 

Materials Needed for Design: Colored cardboard, forex, A4 Paper, felt-tip pens, scissors, glue gun, white tape

     

 

 

Project Construction:

We draw six rectangles measuring 21 x 13.5 cm on the cardboard and cut them.

  

We draw a 1 cm wide frame on the rectangles we cut.  

We draw the picture/shapes we want in the area within the frame.

 

We paint the picture/shapes we draw.  

We cut out the areas outside the shape.  

We cut two rectangular pieces of 21 x 13.5 cm from the cardboard.  

We give an accordion shape by folding the rectangles on top of each other at regular intervals.

 

 

We paste all our pictures one by one between the two accordion shapes.

 

 

We create a stripe with white tape on the outer edges of the accordion.

 

 

We cut the A4 paper at a width of 13.5 without touching the length and paste it on the back of our last picture.

 

    

    

 

We cut one 21 x 13.5 and two 13.5 x 2 rectangles from Forex.  

We fix the small rectangles with a glue gun to form a wall. We open two windows at two random points of the large rectangle.  

We fix the leds on the windowsills and insert the cables and pass them through the window.  

We fix the light (ldr) sensor to the lower part of the leds. We attach its cable and pass it through one of the windows. This design will be our led wall.  

In the design with our pictures, we stick our led wall on the excess part of the A4 paper we pasted on the back part. Thus, we will obtain a system that can be opened and closed.  

Let's make our connections. We fix the Pinoo control card behind the led wall. We connect our red led to the purple input number 1, our green led to the purple input number 2, and our light sensor to the red input number 7 with our connection cable.  

We have completed our connections, now let's move on to the coding part. We will use the mblock-3 application for this. Let's connect our Pinoo Control Card to the computer with the help of the connection cable and log in to the Mblock3 application. Then let's introduce our Pinoo Control Card to the computer. For this, we first click on the serial port option on the Connect tab. Then we select COM3. (The number may differ depending on the computer and the port.)

 

 

 

After making the serial port connection, let's choose the card we will use from the cards tab. We are working with the Nano model of Arduino.

 

In order to add the Pinoo extension to our computer, we click on the Manage extensions option from the extensions tab. In the window that opens, we write “Pinoo” in the search engine and it is enough to say download to the result. Installed on our computer.  

We come to the extensions tab again and click on Pinoo. We will write our codes with the Pinoo extension.

 

In the coding part; We get the code when we click on the Green Flag from the Events menu to start the application.  

 

We will get help from the variables in order to learn the value read by the light sensor. In the Data&Block tab, we create a variable called light.  

Since we want all the code blocks we will write to run continuously until we stop it, we get the code block from the control tab.  We need to specify that the light variable we created is equal to the value read by the Light sensor. From the Data &Block tab, let the light be 0, we get the code block and from the Robots tab, we place the code block related to the light sensor in the 0 (value) part.

 

***Don't forget to change the pin number. We made the sensor connection to the Pinoo7 input.

 

 

We click on the green flag and in the upper left corner we can observe the values of the light. By leaving the light sensor in the light and dark with your hand  Observe the values it receives, take notes.  

Let's set the threshold value that the sensor can take to be 200 for the case of closing the book (You can change this threshold value as you wish according to your project) and create the necessary conditions. For this, we first get the if-if-otherwise block from the Robots tab. To create the expression if light is less than 200, we take the less than block from the operations tab and the light expression from the data&block tab and create our condition statement.  

If the condition is met, that is, if the book is closed, we want our red and green leds to light up. We get the code block related to the LED from the Robots tab and change the pin: Pinoo1. In order to make the green LED that we connected to the Pinoo2 input illuminate, we take our code block again from the Robots tab and update it as pin: Pinoo2. If the cover of the book is open, that is, if the light sensor is bright, we will use the part of our condition/condition block if it is not. In this section, both of our LEDs should not light. First of all, we get the code block related to the Led from the Robots tab for the red led and pin: (Pinoo1)  and we change the LED part to LOW. In order to ensure that the green led we connected to the Pinoo2 input does not light, we take our code block again from the Robots tab and update the pin as Pinoo2 and the LED part as LOW.  

After completing our codes, we check the operation of our project by clicking the green flag. We create a dark environment for the sensor by closing the book. Our red and green leds should be on at this stage. Then we open the cover of the book. Our LEDs should be off.

 

If there is no problem in the operation of our project, we need to load the codes we have written into our card in order to run it with a power supply independent of the computer. For this, we get the Pinoo Program code from the Robots menu by throwing the green flag click code we used at the beginning.

 

Right click on the code and click upload to arduino. (We are working with arduino as the board). After the installation is complete, we close the window.

 

 

​​

If there is no problem, we unplug our power cable from the computer. We power our Pinoo Control board with the help of 9v battery and battery cap. We also bring the on-off button, which is right next to the battery input, to the on position.

39.JPG
1.jpg
2.JPG
3.jpg
4.jpg
5.jpg
6.jpg
7.jpg
8.jpg
9.jpg
10.jpg
11.jpg
12.jpg
13.jpg
14.jpg
15.jpg
16.jpg
17.jpg
18.jpg
19.jpg
20.jpg
21.jpg
23.jpg
seri_port_480x480.jpg
KART_480x480.jpg
pinoo_uzanti_480x480.jpg
1_a8314da2-edff-4525-979d-b2d3ff93364b_large.png
pinooo_480x480 (2).jpg
28.JPG
29.JPG
31.JPG
32.JPG
34.JPG
38.JPG
42.png
43.jpg
bottom of page