Moneybox with Pinoo

Project Purpose: To make a piggy bank project using Pinoo Control Card, LED module and distance sensor.

Duration: 2 lessons

Age Group: 9 years old and above

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

Learning Outcomes:

  • Learns to code Pinoo control card.
  • Learns to use a LED module.
  • Learns to use distance sensor.
  • Improves the skill of setting up algorithms.
  • Improves coding skill.
  • Design skill develops.


Materials to be used: Mblock 3 program, Pinoo sensor card, 2 LED modules, distance sensor, Connection cable and USB cable.


Materials Required for Design: Box, drawn frog, scissors, silicone gun and silicone.


Project Preparation:

For our project, let's start by designing the road first. We hold the box upright and glue the frog with a silicone gun on its front part.


We drill a hole in the frog's mouth so that we can throw money.


When we throw money, we will use its eyes to make the LEDs light. Let's make holes in the eyes so that the LEDs can enter and put the LEDs on.


We will use the distance sensor so that it can see the money. For this, we drill a hole on the box so that it can see the money being thrown and place the distance sensor.


We connect our connection cables. We stick our Pinoo and cables with the help of silicone so as not to cover the distance sensor.


Finally, let's decorate our box.


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 Pinoo control board to 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 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 us flash our LED modules under the "button" command.


 Let's flash both LED modules in 0.3 second intervals.



 Let's check if the distance sensor is measuring the distance. Let's note how much money is measuring while throwing and idle.


 When the value seen by the distance sensor is less than 20, that is, while the money is being thrown, the LEDs will blink in 0.3 seconds intervals. If no money is thrown, the LEDs will remain off.


 In order to upload our codes to the Pinoo sensor card, we make the "Pinoo Program" command at the beginning of the event.


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


Working Status of the Project:


 LEDs are off because no money is thrown into the moneybox.


 Money is thrown into the piggy bank and the leds flash.