top of page

Earthquake Simulation

Project Purpose: To make an earthquake simulation system that gives warning by using Pinoo Control Card, tilt-impact sensor and buzzer module.

Duration:  2 lessons

Age group:  7 years and older

Pinoo Set:  Maker set and full set

Achievements:

  • Learns to code Pinoo control board.

  • Learns to use tilt and impact sensors.

  • Learns to use buzzer.

  • Develops algorithmic skills.

  • Coding skills develop.

  

Materials to be used:  Mblock 3 program, pinoo control card, tilt and impact  sensor, buzzer module, connecting cables.  

 

 

Materials Needed for Design: Wooden planks, yellow mirrored cardboard, red felt, glue gun and silicone.

 

 

 

Project Construction:

For our project, we first get our wooden sticks.

 

We combine our wooden boards with a glue gun and shape our mirrored cardboard into triangles and glue it to give it a roof appearance on the top.

 

 

 

 

 

 

 

 

 

 

 

We stick our red felt according to its size so that it gives a colorful look to the back of our house.

 

Tilt and impact  we fix our sensor and buzzer module to the roof of our house. We also place our Pinoo control card inside our house. After connecting with the connecting cables, we have completed 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 tilt and impact sensor is working or not, we place our inclination and impact sensor arrow code in our code under the 'When Green Flag Click' code. In this way, the values we get are 0 and 1. (0 = there is tilt or impact, 1 = tilt. or no blow)

 

 

 

 

We check our Buzzer module by running the code below with the code that makes a sound when the green flag is clicked.

 

Hello, we have read the slope and impact value with our code. Then, if the value we get is equal to 0, that is, if there is a slope or impact, my buzzer module will work for half a second and give us a warning.

  

 

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:

 

 

 

 

 

 

 

 

 

 

 


When we shake our house, our buzzer module will go off and give us a warning.

 

ARDUINO IDE CODES:

int pulse_sensor = 2; // assign the impact sensor to pin 2

int pulse_value; // we assign a variable named pulse value

int buzzer = 3; // assign the buzzer to pin 3

void setup()

{

  pinMode(pulse_sensor, INPUT); // is the impact sensor input pin 

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

}

void loop() 

{

  pulse_value = digitalRead(pulse_sensor); // we got data from impact sensor 

if (pulse_value == HIGH)

{

// if there is a blow   // buzzer works 

  digitalWrite(buzzer, HIGH);  

delay(500);  

digitalWrite(buzzer, LOW);   delay(500);

 

}

else

{

// otherwise  

digitalWrite(buzzer, LOW); // buzzer stops

  }

}

IMG_3998.JPEG
IMG_3993.JPEG
IMG_3996.JPEG
IMG_4021.jpeg
IMG_3997.JPEG
IMG_3999.JPEG
1_a8314da2-edff-4525-979d-b2d3ff93364b_large.png
pinoo_uzanti_480x480.jpg
seri_port_480x480.jpg
pinooo_480x480 (2).jpg
KART_480x480.jpg
aygit_yazilim_480x480.jpg
1.JPG
2_3e700efd-84be-4c27-a686-ad23698c93f5_large.jfif
3.JPG
4.JPG
6.jpg
IMG_4002.JPEG
bottom of page