Laser Thief Alarm With Pinoo Ldr

by pinoorobotics in Circuits > Arduino

268 Views, 2 Favorites, 0 Comments

Laser Thief Alarm With Pinoo Ldr

Pinoo ile Lazerli Hırsız Alarmı - Laser Intrusion Alarm with Pinoo

Purpose of the Project: To create a laser burglar alarm project with led module, buzzer module and ldr light detecting sensor using the Pinoo control card.

Duration: 2 lessons

Age Group: 9 years and older

Set Used: Pinoo Basic Set

Benefits:

• Learns to code Pinoo control card.

• Learns to code the light detecting sensor.

• Learns to code the buzzer module.

• Learns to code the LED module.

• Improves the skill of setting up algorithms.

• Improves coding skill.

• Design skill develops.

Supplies

Materials to be Used: Mblock 3 program, Pinoo control card, light detecting sensor, red led module, buzzer module, connection cables

Materials Required for Design: Decota, mirrored cardboard, eva, tape, silicone gun and silicone, pen, laser light, scissors, curved knife, ruler

Design

7.JPG
8.JPG
10.JPG
12.JPG
13.JPG
15.JPG
17.JPG
19.JPG
21.JPG

  • First of all, we will create a box. To create the side walls of the box, we draw two 15x10cm rectangles on the decorate using a ruler and pencil. We cut rectangles with the help of a knife.
  • For the upper and lower parts of the box, using a ruler and pencil, draw two 15x12cm rectangles on the deco. We cut rectangles with the help of a knife.
  • For the back wall of the box, we draw a 15x15cm square on the decorate using a ruler and pencil and cut it with the help of a curved knife.
  • We create a box by combining the pieces we cut with the help of a silicon gun. Note: We leave a space in the front of the box to be able to place the laser light.
  • Let's cut three circles from mirror cardboard.
  • We stick a tape to the button so that the red light of the laser is constantly on. Then we mount it on the edge of the box with the help of a silicon gun so that the laser light reflects on the wall.
  • On top of the red light reflected on the wall, we glue the circular mirror cardboard we cut with the help of a silicone gun.
  • With the help of a silicone gun, we glue another mirrored cardboard onto the red light reflected on the other wall from the mirrored cardboard.
  • With the help of a silicone gun, we glue another mirrored cardboard onto the light reflected from the mirrored cardboard to the other wall.
  • We will assemble the light sensing sensor to match the light reflected on the opposite wall from the mirror cardboard. For this, we make holes with the help of a knife so that the socket part of the light detection sensor passes.

Circuits

22.JPG
23.JPG
24.JPG
25.JPG

  • We mount the light sensing sensor to the hole drilled with the help of a silicone gun.
  • We mount the buzzer module on the side wall of the box with the help of a silicon gun.
  • We mount the red led module on the front of the box with the help of a silicon gun.
  • We decorate the box as we wish.

Adding Pinoo Extension

a2.jpg
a3.jpg

  • 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

a4.jpg
a6.jpg
a5.jpg
a7.jpg

  • 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 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

35.2_4cd58af6-215d-4215-a3c9-fc404f4e6560.jpg
36_cbe5f62d-a89f-4ce9-b9a3-c8efd9390d78_480x480.jpg
39.2_558d5e1c-25ad-49a4-a031-909007f23533.jpg
40.2_d0a74850-c19d-4c2c-87ca-9279715f54a6.jpg
41.2_340ada2b-6fd0-4425-a30f-4a34ec8ff857.jpg
42.2_253606e6-fd3b-44c8-8dff-cea79551a293.jpg

  • In the coding part; To start the application, we get the code when clicking the ‘Green Flag’ from the ‘Events’ menu.
  • We get help from the dummy to learn the value read by the light detecting sensor. For this, we get the "say hello" command from the view tab. Instead of the word Hello, we get the code block for the light sensing sensor from the Robots tab. We change the pin input to Pinoo7 that we connect.
  • We click on the ‘green flag’ and look at the value measured by the light detector sensor in the light. (We assume that it measured values in about 900 s.) Then we put our hand into the box and look at the value measured by the light sensing sensor. (We assume that it measured value in about 200 s.)
  • In order to check whether the buzzer module works or not, when the spacebar is pressed, we say play the G7 note. We change the pin input to Pinoo3 that we connect.
  • To check whether the LED module works or not, when the space key is pressed, we say LED high and turn on the LED. We change the pin input to Pinoo2 that we connect. When the up arrow key is pressed, we say low and turn off the led.
  • If the box is put in hand, that is, if the value measured by the light sensing sensor is less than 400, the red LED module will light up and the buzzer module will beep. If the value measured by the light detecting sensor is greater than 400, the buzzer and led module will stop passively.
  • We click on the ‘green flag’ and try the project. 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.
  • Right click on the code and click the ‘Upload to Arduino’ option. (We work with arduino as a card.)
  • In the window that opens, we click the ‘Upload to Arduino’ button again.
  • We are waiting while our codes are being loaded to the card. After saying the installation is finished, we click on the close button.
  • If there is no problem, we disconnect our power cable from the computer. 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.

Working Status of the Project

26.JPG
46.PNG
47.PNG

  • When our light sensing sensor measures a value greater than 400, that is, when our valuables are not touched, the led and buzzer modules are passive.
  • When our light sensing sensor measures a value less than 400, that is, when our valuables are touched, led and buzzer modules are active.