Cov txheej txheem:

Basic Arduino Earthquake Detector: 7 Kauj Ruam (nrog Duab)
Basic Arduino Earthquake Detector: 7 Kauj Ruam (nrog Duab)

Video: Basic Arduino Earthquake Detector: 7 Kauj Ruam (nrog Duab)

Video: Basic Arduino Earthquake Detector: 7 Kauj Ruam (nrog Duab)
Video: Earthquake Detector using Safety pin !!! Arduino Project 2024, Kaum ib hlis
Anonim
Basic Arduino Av qeeg Ntes
Basic Arduino Av qeeg Ntes

Tiny9 tau rov qab los thiab niaj hnub no peb tab tom yuav ua kom yooj yim Arduino ntes av qeeg.

Thov mus ntsib kuv cov lus qhia cuam tshuam nrog Tiny9's LIS2HH12 hauv qhov txuas hauv qab no txhawm rau teeb tsa lub cuab yeej yog li txhua yam koj yuav tsum ua yog ntxiv 3 tus tiv thaiv thiab 3 Lub Teeb Emitting Diodes (LEDs)

3 Axis Accelerometer

Cov lus qhia no tau txiav txim siab pib qib nrog qee qhov kev paub nrog Arduino software.

Yog tias koj xav tau yuav lub ntsuas hluav taws xob mus rau ib qho ntawm cov chaw no:

Amazon

*Cov lus qhia no tsis cuam tshuam txog txhua qhov ua tau lossis raug hloov pauv nrawm rau av qeeg hauv qhov nplua nuj

Kauj ruam 1: Av qeeg

Av qeeg
Av qeeg

Daim duab no yog google tshawb nrhiav ntes av qeeg. Thaum kuv tseem yog menyuam yaus Kuv nyob dhau ntawm 1994 Northridge av qeeg. Kuv tsis nco qab ntau txog qhov av qeeg hauv ntiaj teb no dua li cov hauv qab no:

-Lub tsev tau tawg nyob ib nrab thiab ib nrab tam sim no tau nqis mus rau nws.

-Ib qho ntawm phab ntsa hauv kuv chav pw muaj lub qhov rau nws mus rau tom qab.

-Kuv plam qhov kuv nyiam cov khoom ua si rattle thaum lub sijhawm. Nws muaj cov hlaws dai nyob rau hauv qhov uas koj tuaj yeem pom nce thiab nqis.

-Sidewalk cement hla txoj kev cia li tig rov qab.

-Txoj kev muaj lub "roob" me me ua los ntawm nws.

Needless hais av qeeg loj tsis lom zem.

Peb tsis tau muaj av qeeg loj (Loj dua 5.0) nyob rau yav qab teb California ib ntus tab sis ib hnub no peb yuav ua. Yog li cia tsim lub Av Qeeg ntes !!!

Kauj ruam 2: Cov ntaub ntawv

Khoom siv
Khoom siv

Peb xav tau:

-Cov teeb tsa los ntawm LIS2HH12 qhia tau

3 x 690 ohm resistors

-1x Ntsuab LED

-1x LED daj

-1x Liab LED

-Optional: Hlau Stripper

Kauj Ruam 3: Cov Lus Qhia Ceev ntawm V = I*R

Hauv Hluav Taws Xob Hluav Taws Xob koj muaj qhov sib npaug V = I * R uas ua rau koj lub neej txhua hnub.

V = Voltage (Volts, V)

Kuv = Tam sim no (Amps, A)

R = Kuj (Ohms)

Hauv Circuit Court qhov sib npaug no yeej tsis tau ua txhaum. Yog li yog tias kuv txuas 5V qhov chaw rau 690 Ohm resistor thiab tom qab ntawd mus rau LED rau hauv av, qhov tam sim no hauv Circuit Court yuav yog qhov no:

Piv txwv LED voltage poob = 2.5V

(Source - LED) = Tam sim no * Kuj

5V-2.5V = Kuv * 690 Ohms

Kuv = 2.5V/690 Ohms = 3.62 milliAmps lossis 3.62 mA

Raug LEDs tsis nyiam tshaj 10mA-20mA lossis lawv yuav hlawv tawm.

Kauj ruam 4: LED Polarity

LED Polarity
LED Polarity
LED Polarity
LED Polarity

LEDs muaj qhov sib txawv uas cia tus neeg paub txoj hauv kev nws yuav tsum tau muab tso rau qhov tso cai tam sim no ntws los ntawm nws.

Tam sim no dhau los ntawm Anode ntawm LED mus rau Cathode ntawm LED. Nws tsis tuaj yeem mus rau lwm txoj kev. Yog tias muab tso rov qab nws yuav tsis ua haujlwm lossis tawg yog qhov hluav taws xob tshaj nws qhov tshwj xeeb.

Yog tias tsis txaus tam sim no yuav tsis muaj lub teeb ci los ntawm LED.

Sab ntev ntawm Red LED yog + Anode thiab Sab luv nws yog - Cathode sab.

Kauj Ruam 5: Teeb Tus Kws Tshaj Lij Qaum Ntuj

Teeb Tus Kws Tshaj Lij Qaum Ntuj
Teeb Tus Kws Tshaj Lij Qaum Ntuj
Teeb Tus Kws Tshaj Lij Qaum Ntuj
Teeb Tus Kws Tshaj Lij Qaum Ntuj
Teeb Tus Kws Tshaj Lij Qaum Ntuj
Teeb Tus Kws Tshaj Lij Qaum Ntuj

Cov kauj ruam ntawm kev teeb tsa 3x 690 resistors thiab 3 LEDs.

1. Muab 690 ohm resistor los ntawm D4 (Kab 55) ntawm arduino nano mus rau kab 37 ntawm lub khob cij

2. Muab lub Liab LED Anode tso rau sab saum toj ib nrab ntawm lub khob cij ntawm kab 37 thiab Cathode qhov chaw hauv txoj kev tsheb ciav hlau xiav (GND)

3. Muab 690 ohm resistor los ntawm D3 (kab 54) ntawm arduino nano mus rau kab 38 ntawm lub khob cij

4. Muab lub Teeb LED Anode daj tso rau saum ib nrab ntawm lub khob cij ntawm kab 38 thiab Cathode qhov chaw hauv txoj kev tsheb ciav hlau xiav (GND)

5. Muab 690 ohm resistor los ntawm D2 (kab 53) ntawm arduino nano mus rau kab 39 ntawm lub khob cij 6. Muab lub Ntsuab LED Anode tso rau ib sab saum toj ntawm lub khob cij ntawm kab 39 thiab Cathode qhov chaw hauv txoj kev tsheb ciav hlau xiav (GND)

7. Nco ntsoov tias tsis muaj cov xov hlau, cov neeg tawm tsam, lossis cov coj LED raug luv ua ke los ntawm kev sib tsoo lossis koj tuaj yeem ua rau koj lub hauv paus puas tsuaj.

Kauj Ruam 6: Rub tawm. Ino

Rub tawm Tiny9_LIS2HH12_Earthquake_mon.ino cov ntaub ntawv los ntawm no: github

Kauj ruam 7: Txaus siab rau

Tam sim no koj yuav tsum tuaj yeem xa koj li.ino rau hauv koj li arduino nano.

Dab tsi yuav tshwm sim yog tias muaj av qeeg me me Cov LED daj yuav ci tuaj.

Yog tias muaj av qeeg loj loj Red Led yuav taws teeb.

Thaum kuaj pom me me lossis av qeeg loj koj yuav tsum rov pib dua lub arduino yog tias koj xav tua lub LEDs.

*Cov duab kos no tsis cuam tshuam txog txhua qhov ua tau lossis hloov pauv qhov nrawm rau av qeeg hauv qhov nplua nuj.

Pom zoo: