Smart Mirror with Pinoo

 

 Purpose of the Project: To make a smart mirror project by using the distance sensor and 2 LED modules with the Pinoo Control Card.

Duration: 2 lessons

Age Group: 9 years old and above

Pinoo Set: Basic set, invention set, maker set and full set.

Benefits:

  • Learns to code Pinoo control card.
  • Learns to use the distance sensor.
  • Learns to use the LED module.
  • Improves the skill of setting up algorithms.
  • Improves coding skill.

 

Materials to be used: Mblock 3 program, Pinoo sensor card, 2 led modules, 1 distance sensor.

 

 

 

Materials Required for Design: Colored cardboard, mirror, scissors, adhesive ladybirds, silicone gun and silicone.

 

            

 

Project Preparation:

 

 For our project, let's first start with the exterior design of the mirror.

 

We glue the mirror to the colored cardboard with a silicone gun.

 

We stick the leds on the edge of the mirror and the distance sensor on the top.

 

 

 

 

We cover it with colored cardboard.

 

 

We glue the lady bugs.

 

 

 

We install connection cables.

 

 

The electronic parts are in place.

 

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 sensor 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 opened window and select the "COM6" option from the page that opens.

NOTE: Since the port entries of each computer are different, the numbers can vary.

 

We click on the Cards tab.

 

 

We select the "Arduino Nano" card option used by the Pinoo sensor card from the window that opens.

 

 

We click on the Extensions tab.

 

 

 In the window that opens, we select the extension "Pinoo" of the sensor card we use.

 

 

We click on the Connect tab.

 

 

We click on "Firmware Update" from the window that opens.

 

Coding part:

  

 

First of all, we write the above codes to see the value of the distance sensor. Let's examine the changing distance value here.

 

If this distance value is less than 20, we write the codes so that the LEDs turn on and in the other case the LEDs turn 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 we use to print 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 sensor card.

 

 

We click on the "Close" button after the "Download Finished" text appears. After the installation is finished, the battery compartment is inserted and the project is run.

 

Working Status of the Project:

  

After the installation is finished, we install a 9V battery.

   

The leds will not light until the distance sensor detects an obstacle.

 

 

The LEDs turn on when the distance sensor detects someone in front of the mirror.

 

 

With Pinoo sets, children can make hundreds of projects with materials they can easily find in their homes.