Smart Jewelry Box with Pinoo

 

Purpose of the Project: To create an alarm system in the box with a light sensor and buzzer module to protect people's valuables using the Pinoo Control Card.

Duration: 2 lessons

Age Group: 9 years and older

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

Benefits:

  • Learns to code the Pinoo control card.
  • Learns to code the light sensor module.
  • Learns to code the buzzer module.
  • Algorithm building skill develops.
  • Coding skill improves.

 

Materials to be Used:

Mblock 3 program, Pinoo Control Card, Light Sensor (LDR), Buzzer Module, Connection Cables

 
 
 
 
Materials Required for Design: An empty box, craft paper
 
 
 
 
 
 
 
 
Project Preparation:
 
  1. Let's connect the light sensor and buzzer module to our Pinoo board.
 
We plugged the light sensor into input number 7 and the buzzer module into input number 1. We can also connect it to different inputs on our Pinoo Control Card in accordance with the colors on the sensors.
 
 
 
  1. We have completed our connections, now let's move on to the coding part. For this we will use the mblock-3 application.
 
 
 
 
  1. Let's connect our Pinoo Control Card to the computer with the help of the connection cable and enter the Mblock3 application. Then, let's introduce our Pinoo Control Card to the computer. To do this, we first click on the serial port option from the Connect tab. Then we select COM3. (The number may differ depending on the computer and the port.)
 
 
  1. After connecting the serial port, let's select the card we will use from the cards tab. We are working with Arduino Nano model.
 
 
 
 
  1. After connecting the serial port, let's select the card we will use from the cards tab. We are working with Arduino Nano model.
 
 
  1. In the coding part, we get the code when the Green Flag is clicked from the Events menu to start the application.
 
 
  1. To see the value of the Light Sensor on the screen, we get the code Hello in the View menu.
 
  1. We get the code that will read the value of the Light Sensor from the Robots menu. We choose the port number to which we connected our sensor.
 
 
  1. We get the code that will read the value of the Light Sensor from the Robots menu. We choose the port number to which we connected our sensor.
 
  1. After completing our codes related to the Light Sensor, let's move on to the codes of our Buzzer module, which we use to warn when the lid of the box is opened. First, let's get the code required for the buzzer to make a sound from the Robots menu and select the port number it is connected to.
 
 
  1. When the lid of the box is open, the buzzer will sound a warning, if the lid of the box is closed, it will not give a warning. We need conditional statements to make this system. If not, from the control menu, we get the code into the repeat code continuously.
 
  1. If the value read by our light sensor is greater than 500, ie the amount of light received by the sensor is increasing, the buzzer gives an audible warning if the lid of the box is open. If it is less than 500, the buzzer should not give any warning. For this, we place the size operation from the operations menu, if not, into the code.
 
 
  1. Then we enter the code that reads the value of the light sensor on the left side of the process and add the number 500 to the right.
  1. If the value of the light sensor is greater than 500, we add the buzzer silence code to the relevant places so that the buzzer does not give a warning.

 
 
  1. After completing our codes, we check the operation of our project by clicking the green flag. When we cover the light sensor with our hands, our puppet showed a value less than 500 and the buzzer did not give any warning.
 
 
 
 
 
  1. 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 our project with a power source independent of the computer.
 
For this, we throw away the "Click on the green flag" code we used at the beginning and the code that we made the puppet tell the sensor value, and get the Pinoo Program code from the Robots menu.
 
 
  1. Right click on the code and click the Upload to Arduino option. (We work with Arduino as a board.)
 
 
  1. We are waiting for the codes to be uploaded to the card. After the installation is complete, we close the window and disconnect the Pinoo Control Board connection cable from the computer.
 
 
 
 
  1. We power our Pinoo Control board with the help of a 9v battery and a battery cap. We also turn the on / off button right next to the battery input to the on position.
 
  1. We place our circuit inside the box.
 
 
  1. Finally, we hide our circuit with handcrafted paper to make our box look more elegant. We place the light sensor on our handcrafted paper.
 
 
 
 

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