Shooting Range with Pinoo

Project Purpose: To make a shooting range project using Pinoo Control Card, Servo Motor and LDR module.

Duration: 2 lessons

 Age Group: 9 years and older

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


  • Learns to code Pinoo control card.
  • Learns to use servo motor.
  • Learns to use the Ldr module.
  • Algorithm building skill develops.
  • Coding skill improves.


Required Materials: Mblock 3 program, Pinoo sensor card, 2 ldr modules, 2 servo motor modules.


Materials Required for Design: Color cardboard, tongue stick, box, small flashlight, cardboard, utility knife, silicone gun and silicone.


Project Preparation:


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

Let's cover the box with colored cardboard using a silicone gun.


We cut the cardboard pieces to be round.


We glue colored cardboard on it.


We draw circles on it to show the target.


Using the utility knife, we pierce the middle points of the ldr module. We place the Ldr modules at the target point and silicon.


We cut the tongue sticks and stick them to the targets we have created.


We write the text "Shooting Range" on our box.


We glue the servo motors on the top of the box, facing in the same direction. (In this section, if you want, you can quickly insert the Pinoo card and make the servo motors at a 90 degree angle. You can stick it more easily)


We stick the tongue sticks to the end of the servo motors.


 We silicon the cables of the Ldr sensors on the back of the box so that they do not hit each other.


We also install the cables of the servo motors.


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 opened page.

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:


Let's show the two ldr values ​​on the screen. Let's take note of the value read when we hold the small flashlight and the values ​​it reads when we shoot.


Note: When we shine a light for 2 ldr, it can read different values. For example, I read a value like Pinoo7: 820 in the light, such as Pinoo8: 760. We will base on these values.


Let's create our condition for the first ldr value. If it reads a value greater than 800, the servo motor will go to the left, ie 180 degrees. Then it will wait 1 second and return to the vertical position, that is, it will be 90 degrees. If not, it will stay at 90 degrees.


We write our condition in the second ldr, if the condition is true, this time the servo motor will go to the right, so it will be 0 degrees. Then it will wait 1 second and return to the vertical position, that is, it will be 90 degrees. If not, it will stay at 90 degrees.


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 display the ldr 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.


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:



We try it by installing a 9V battery.


Servos stay upright until light is shined on any LDR. When Ldr detects light, the corresponding servo will switch to horizontal position.


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