top of page

Smart Dam

Purpose of the Project: Making a project that gives a warning with a buzzer module when the dam is full by using a water sensor and a buzzer module with a Pinoo Control Card.

Duration:  2 lessons

Age group:  7 years and older

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

Achievements:

  • Learns to code Pinoo control board.

  • Learns to use water sensor.

  • Learns to use the buzzer module.

  • Develops algorithmic skills.

  • Coding skills develop.

  

Materials to be used:  Mblock 3 program, pinoo control card, water sensor, buzzer module, connection cables.

 

 

 

Materials Required for Design:  Blue cardboard, utility knife, scissors, mirrored cardboard, brown felt, 2 plastic boxes, one large and one small, glue gun and silicone.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Project Construction:

For our project, we start by first surrounding our big box.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

We cut our green cardboard to give the appearance of greenery to the edges, as in the picture, and fix it with a silicone gun.

 

 

Then we fix the blue cardboard to the bottom of our box to give it a water look.

 

 

We stick the brown felt on the other corner to give it a mountain look.

 

We drill 3 holes in our small plastic box.

 

We fix our small box on the side of the mountain.

  

 

We stick our water sensor on the inside of our box.

 

 

We stick our buzzer module on the inside of our box.

  

 

 

 

 

 

 

 

 

 

 

 

 

 

This is how our project is finalized and we finish our design part.

 

  Adding Pinoo extension:

 

 

 

 

 

 

From the Extensions tab, click "Manage Extensions".

 

 

 

 

 

 

 

  In the window that opens, we write “Pinoo” in the search engine and it is enough to say download to the result. Installed on our computer.  

 

  

  Connecting the Pinoo control board to the computer:

 

 

In Mblock 3, we click on the "Connect" tab in the upper left.

In the window that opens, we click on the "Serial Port" section and select the "COM6" option from the page that opens.

NOTE: As each computer has different port entries, the numbers next to COM may change.

Click on the Cards tab.

From the window that opens, we select the "Arduino Nano" card option used by the Pinoo control card.

 

 

Click on the Extensions tab.

In the window that opens, we select "Pinoo", the extension of the control card we use.

 

 

Click on the Connect tab.

Click "Firmware Update" from the window that opens.

  Coding part:  

  

First, to check whether our water sensor is working or not, we check the working status of the water sensor with our 'Say Hello' code under the 'When Clicked' code on our panda puppet. At the same time, let's not forget to moisten our water sensor.

  

 

To run our Buzzer module, we use the change state to high code.

 

If the value of our water sensor is greater than 230, our buzzer module will sound at half-second intervals. If it does not meet these values, the sound of our buzzer module is turned off.

  

 

 

 

 

 

In order to upload our codes to the pinoo control card, we start our event with the "Pinoo Program" command.

  

 

Right-click on the “Pinoo Program” command and select the “Install to Arduino” option in the window that opens.

 

 

On the page that opens, we click on the "Upload to Arduino" button, which is selected in red. Our codes are uploaded to our pinoo control card. 

  After the “Installation Finished” message comes, click the “Close” button. After the installation is finished, the battery holder is inserted and the project is run.

 

Working Status of the Project:

  

 

If the value of our water sensor is more than 230, our buzzer module will sound and give a warning.

 

  ARDUINO IDE CODES:

int su_sensor = A0; // we assign the sensor to the A0 pin

int su_sensor_value; // we assign a variable

int buzzer = 2; // assign the buzzer to pin 2.

void setup()

pinMode(buzzer, OUTPUT); // is the buzzer output pin

}

void loop()

su_sensor_value = analogRead(su_sensor); // we made the sensor value analog reading 

if (su_sensor_value > 230)

{ // if the water sensor value is greater than 230   // buzzer goes off  

digitalWrite(buzzer, HIGH);  

delay(500);  

digitalWrite(buzzer, LOW);  

delay(500); 

}

else

{ // otherwise 

  digitalWrite(buzzer, LOW); // buzzer stops 

}

}

IMG_3972.JPEG
IMG_3964.JPEG
IMG_3965.JPEG
IMG_3966.JPEG
IMG_3968.JPEG
IMG_3969.JPEG
IMG_3971.JPEG
IMG_3973.JPEG
IMG_3974.JPEG
IMG_3975.JPEG
1_a8314da2-edff-4525-979d-b2d3ff93364b_large.png
pinoo_uzanti_480x480.jpg
seri_port_480x480.jpg
KART_480x480.jpg
aygit_yazilim_480x480.jpg
pinooo_480x480 (2).jpg
4.JPG
5.JPG
6.JPG
1.JPG
2.jpg
3.jpg
IMG_3975.JPEG
bottom of page