Smart Hat With Pinoo

Project Purpose: To make a smart hat project by using distance sensor and led module with Pinoo control card. 

Duration: 2 lessons 

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

Age Group: 9 years and older 

Benefits: 

• Learns to code Pinoo control card. 

• Learns to use a LED module. 

• Learns to use distance sensor. 

• Improves the skill of setting up algorithms. 

• Improves coding skill. 

 

Required Materials: Mblock 3 program, Pinoo control card, distance sensor, 2 led modules 

 

 

Materials Required for Design: Cardboard, scissors and a utility knife, orange felt, silicone gun and silicone. 

 

 

 

 

Project Preparation: 

 For our project, let's start with designing a hat. 

 

We cut 2 strips of 30 cm length and 5 cm thickness, and 1 strip of 50 cm length and 5 cm thickness. We cut 1 piece for the front part of the hat. 

 

We silicon cardboard of 2 equal lengths in the form of "+". 

 

We join the 2 ends of the longer strip cardboard and silicone it to be round. 

 

We bend the cross-  shaped cardboard and silicon the inner part of the round cardboard. 

 

We cover the shape we created with cardboard and the front part of the hat with felt and silicone. 

 

We silicone the distance sensor on the front of the hat. 

  

We silicone the other part on the front of the hat. 

 

We silicone 2 LED modules on the hat. 

 

We install the connecting cables of the sensors. We attach the LED modules to the 1st and 2nd door and the distance sensor to the 5th door. 

 

We connect the USB connection cable to the Pinoo control card and to the computer. Now we can start coding. 

 

Adding Pinoo extension: 

 

 
From the Extensions tab, we click on the "Manage Extensions" option. 
 
 
 

In the window that opens, we type "Pinoo" into the search engine and simply say download to the result. 

It was installed on our computer. 

 
 
 
Connecting the Pinoo control board to the computer: 
 
 
 
In Mblock 3, we click on the "Connect" tab on the upper left. 
 
 
 

We click on the "Serial Port" section from the window that opens and select the "COM6" option from the page that opens.

NOTE: Since the port entries of each computer are different, the numbers next to the COM text may change. 

 
 
 
We click on the Cards tab. 
 
 
 
We select the "Arduino Nano" card option used by the Pinoo control card from the window that opens. 
 
 
 
We click on the Extensions tab. 
 
 
 
In the window that opens, we select the extension "Pinoo" of the control card we are using. 
 
 
 
We click on the Connect tab. 
 
 
 
We click on "Firmware Update" from the window that opens. 

 

Coding part:

First, we put the value of the distance sensor attached to the door into the code block at ‘’hello’’ in the View menu.

 Thus, we will see the distance value on the screen continuously. 

 

Then, if not, we take the condition structure and specify our condition. Our condition is that the distance value is less than 10. 

 

 If our condition is correct, we make the status of 2 LED modules high and make them burn. 

 

If our condition is not correct, we make the status of 2 LED modules low and turn them off. 

In order to upload our codes to the Pinoo sensor card, we make the

 "Pinoo Program" command at the beginning of the event

 and delete the code block we use to display the distance value on the screen. 

 

 We right click on the "Pinoo Program" command and select the "Upload to Arduino" option in the window that opens. 

 

 

On the page that opens, we click the "Upload to Arduino" button selected in red. 

Our codes are uploaded to our Pinoo control card. 

We click on the "Close" button after the "Download Finished" text appears. 

Working Status of the Project:

  

 

 

We are installing the 9V battery. 

 

We silicone the connection cables of the LED modules on the top of the hat. 

     

When we put our hands on the front of the hat, the LEDs will turn on. 

 

WITH PINOO SETS, CHILDREN CAN DO HUNDREDS OF PROJECTS WITH MATERIALS THAT CAN COMFORTABLY AT HOME.