Smart Field With Pinoo

 

Purpose of the Project: To make a light system that turns on automatically to prevent animals from entering the field by using LDR (light) sensor, yellow and red led module with Pinoo control card. 

Duration: 2 lessons 

Age Group: 7 years and over  

Gains: 

• Learns to code Pinoo control card. 

• Learns to use a light sensor. 

• Learns to use a LED module. 

• Improves the skill of setting up algorithms. 

• Improves coding skill. 

 

Materials to be used: Mblock 3 program, Pinoo control card, light sensor red and yellow led module, connection cables. 

 

 

 

Materials Required for Design: Green floor, model fence, black cardboard, silicone gun and silicone. 

 

 

 

Project Preparation: 

 

1. For our project, we start by fixing our field first. 

We fix our field to black cardboard with the help of a silicone gun. 

 

 

We close our fences around the field with the help of a silicon gun so that one side of the field remains open and we fix our light sensor at the entrance of the field. 

 

We fix our red and yellow led module to the right and left on our model fences with the help of a silicone gun and make the Pinoo control card connections. We connect our red led module to the number 1, yellow led module to the number 2 and our light sensor to the number 7 doors. In this way, we complete our design part. 

 

 

2.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. 

  

3.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. 

  

4. Coding part: 

 

 

 

In order to find out whether our light sensor is working or not, we see the values ​​by reading our "read light sensor" code under the "Green Flag" code in the "say hello" code. 

 

 

In order to control our LED module, we flash it with the code "Change LED status" under the "press button" code. 

 

 

 

We read the values ​​of the light sensor under the "Green Flag" code. Then we interpret the values ​​we receive. If the value we get is less than 300, that is, when the animal passes over our light sensor, our yellow and red LEDs will start to blink at half-second intervals at the same time. If it does not fulfill our condition, that is, if no object passes over our light sensor, our 2 LEDs will remain passive, ie off. 

 

Note: It is important when coding which door we install our led and light sensor on the Pinoo control card. 

 

 

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 on 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. After the installation is finished, the battery compartment is inserted and the project is run. 

  

 

5. Working Status of the Project: 

 

 

Our LEDs will flash when any object passes over the light sensor. Otherwise, our LEDs will remain off.  

 

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