Ventilator System with Pinoo

Purpose of the Project: To create a ventilator system with distance sensor and dc motor using the Pinoo Control Card.

Duration: 2 lessons

Age Group: 9 years old and above

Pinoo Sets: PinooBot Kit and full set.


  • Learns to code Pinoo control card
  • Learns to code the distance sensor.
  • Dc engine learns to code.
  • Improves the skill of setting up algorithms.
  • Improves coding skill.


Materials to be Used: Mblock 3 program, Pinoo Control Card, Distance sensor, Dc engine, connection cable


Materials Required for Design: 2 toilet paper rolls, cardboard, colored cardboard, scissors, silicone gun, paint 


Project Preparation:



Draw three propeller shapes on the cardboard and cut.


We paint the propeller parts and stick them to the motor spool at certain intervals.


We paint the rolls of toilet paper and fix the motor on one of the rolls.

We drill a hole from anywhere in the roll through which we can get the motor cable out.




We attach the roll that we fixed the motor to the second roll that we will use as handle, horizontally.



We attach the reel to the engine.



We fix the shape we have obtained in the middle of the cardboard that we will use as the floor, and the distance sensor on the left side of the floor.


Let's make our connections. We fix our Pinoo board to the handle of our fan. We connect the motor cable from the appropriate inputs for the motor to the B1 / B2 input (left), and our distance sensor to the purple / green input number 5 with connection cable.




We will use mblock-3 application for the coding part.



Let's connect our Pinoo control card to the computer with the help of a 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 according to the computer and the port.)


After making the serial port connection, let's select the card we will use from the cards tab. We are working with Arduino Nano model.


In order to add the Pinoo extension to our computer, we click on the manage extensions option from the extensions tab. In the window that opens, we type "Pinoo" in the search engine and simply click download to the result. It has been installed on our computer.


We click on the Pinoo option from the Extensions tab again. We will write our codes with the Pinoo extension.




In the coding part; To start the application, we get the code when clicking the Green Flag from the Events menu.


We will get help from the dummy to learn the value read by the distance sensor. For this, we get the Hello command from the View tab. Instead of the word Hello, we take the code block for the distance sensor in the Robots tab.

Since we want it to do the reading process continuously, not once, we take all our codes into the continuous repeat block from the Control tab.


Let's click on the green flag and observe the change of values ​​by bringing our hand closer to the sensor and away. Let's move our hand closer to the ventilator and take note of the value read by the sensor.


If the value read by the distance sensor is less than 20, that is, if we are closer to the ventilator, the motor will start working, if it is greater than 20, the motor will stop working. Now let's put this into a code.

Here we will make use of the small and large comparison operators from the if block and operations tab in the control tab.


Let's complete the start-stop codes of the ventilator motor according to the condition to be provided. From the Robots tab, we get the PinooBot Wheel: Right Side: Forward Speed: 0 code block. we change.

Since we want this process to be constantly controlled, we place all blocks in the repeat block.


After approaching the fan, we want it to run for a while and then stop. For this, we take the wait 1 second command from the control tab and the PinooBot Wheel: Right Side: Forward Speed: 0 code block from the robots tab.

After completing our codes, we check the operation of our project by clicking the green flag. When we approach the fan, its propeller will rotate for 3 seconds. When we are away from the fan, the fan blade will stop.


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 take the code for the Pinoo Program from the Robots menu by throwing the code we used at the beginning, click on the green flag and the code that we have told the sensor value to the puppet.


Right click on the code and click the Upload to Arduino option. (We are working with Arduino as a board.)


We are waiting for the codes to be uploaded to the card. After the installation is complete, we close the window.


If there is no problem, we remove 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.