Earthquake detector
Description
My mini project is to produce a device which can detect the earthquake, and produce some noise to alarm people that the earthquake is coming. Also, it provide people to send a message to the device to tell people what should they do durning and after the earthquake. I use the LSM9DS1 to detect the vibration. If the acceleration larger than some value, the mbed will play the .wav file in the sd card and use the TPA2005D1 Class D Audio Amp and the speaker to make the sound. In the meanwhile, the user can hear the noise and know the earthquake is coming and send a message by website to mbed to tell people how to deal with this situation.
Components Used
- LSM9DS1
- TPA2005D1 Class D Audio Amp
- Speaker
- SparkFun microSD Transflash Breakout
- ESP8266 Wi-Fi SOC
- External 5v power
Wiring
| LSM9DS1 | mbed |
|---|---|
| SCL | p27 |
| SDA | p28 |
| VDD | Vout |
| GND | GND |
| TPA2005D1 | mbed |
|---|---|
| PWR+ | external 5V |
| PWR- | GND |
| IN+ | p18 |
| IN- | GND |
| SD card | mbed |
|---|---|
| DO | p12 |
| GND | GND |
| SCK | p13 |
| VCC | Vout |
| DI | p11 |
| CS | p16 |
| ESP8266 | mbed |
|---|---|
| V+ | external 5V |
| GND | GND |
| RST | p8 |
| TX | p10 |
| RX | p9 |
Program
Import programEathquake_Detector
4180 mini project
Pictures
The device
The website
Vedio
Please log in to post comments.
