How to make Earthquake Detector ? With #arduinoprojects #earthquake #californiaearthquake #arduino

preview_player
Показать описание
Hello everyone. In this video, I showed you how to make earthquake sensor, shake sensor, vibration sensor circuit with arduino. I used arduino uno, mpu6050, buzzer, led and 1k resistor while making the circuit. I pinned the arduino codes and wiring diagram that I used in the circuit to the comments. Enjoy watching.

Codes: Codes are in the comments

MATERIALS:
-Arduino uno
-MPU6050
-Buzzer
-Led
-1K Resistance
-PCB

how to make earthquake detector at home,
earthquake alarm,
earthquake detector,
earthquake detector,
earthquake detector circuit,
diy earthquake detector,
earthquake detector alarm,
earthquake diy,
Earthquake Sensor,
earthquake detector,
earthquake detector using arduino,
earthquake detector app,
earthquake detector diy,
earthquake detector circuit,
earthquake detector how to make,
earthquake detector arduino,
earthquake detector at home,
earthquake detector alarm using arduino,
earthquake detector alarm,
earthquake detector application,
earthquake detector apple,
earthquake detector alarm project,
earthquake detector alarm model,
arduino earthquake detector,
Рекомендации по теме
Комментарии
Автор


Codes:

#include <MPU6050.h>
#include <Wire.h>
MPU6050 MPU;
int GyroX, GyroY, GyroZ;
int buzzer = 10;
void setup() {
pinMode(11, OUTPUT);
Serial.begin(9600);
Wire.begin();
MPU.initialize();
}
void loop() {
MPU.getRotation(&GyroX, &GyroY, &GyroZ);
if(GyroX< -1000 ||GyroX> 1000 || GyroY>1000 || GyroY< -1000 || GyroZ >1000 || GyroZ < -1000 ) {
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);
tone(buzzer, 2800);
digitalWrite(11, HIGH);
delay(50);
noTone(buzzer);
digitalWrite(11, LOW);
delay(50);

} else {
noTone(buzzer);
digitalWrite(11, LOW);
}
}

Mr.Inventorr
Автор

My buzzer isn't beeping please give me some solution

raysill
Автор

Hello brother the buzzer is beeping on just your tap. In reality when earthquake occur it doesn't tap the ground it comes in waves ups and down movement area how can we overcome this using same sensor MPU 6050 please guide i really need

AzanNasir-jg
Автор

Kak mau tanya kode yang #include MPU6050.h, kok eror yh, gimana solusi nya kak biar tidak eror

LulukIstiqomah-um
Автор

merhaba bu projeyenin ekranlı halinin kodaları varmı

HASANHUSEYINTOHAN-wszs