Cov txheej txheem:

Hnub ci Powered Security Sensor: 4 Cov kauj ruam
Hnub ci Powered Security Sensor: 4 Cov kauj ruam

Video: Hnub ci Powered Security Sensor: 4 Cov kauj ruam

Video: Hnub ci Powered Security Sensor: 4 Cov kauj ruam
Video: Xiaomi Gateway 4 - Mihome автоматизации 2.0 2024, Hlis ntuj nqeg
Anonim
Image
Image

Qhov kev ntsuas kev nyab xeeb yooj yim thiab pheej yig no muaj ob peb yam tseem ceeb uas yuav nyiam rau cov nyiam ua haujlwm:

  • Hnub ci siv hluav taws xob nrog lub hnub ci me me
  • rechargeable lithium roj teeb
  • them nqi hluav taws xob tuaj yeem siv tau los ntawm USB cable rau thawj zaug them lossis roj teeb rov qab
  • Mosfet latching Circuit yog li lub zog tsuas yog siv tas mus li rau lub tshuab microwave kom txog thaum cov lus pom
  • microwave/radar sensor siv tsuas yog microamps ntawm lub zog.
  • siv tus nqi pheej yig ESP-01 rau kev ceeb toom

Qhov tseem ceeb ntawm qhov kev siv hluav taws xob no yog siv P channel mosfet txhawm rau kaw lub Circuit Court thaum lub teeb liab tau txais los ntawm lub ntsuas hluav taws xob thiab tom qab ntawd muaj lwm lub teeb liab los ntawm ESP-01 ua kom muaj hluav taws xob thiab lub latch nyob hauv qhov chaw kom txog thaum ESP-01 yog npaj txhij tua. Thaum lub ntsuas hluav taws xob raug teeb tsa los ntawm lub ntsuas hluav taws xob, lub tshuab hluav taws xob nyob twj ywm, txawm tias lub ntsuas hluav taws xob tau kaw, kom txog thaum ESP-01 txoj haujlwm tau ua tiav. Lub voj voog no zam qhov teeb meem ntawm ESP-01 nyob ntawm seb ntev npaum li cas qhov ua rau lub ntsuas hluav taws xob tseem ua haujlwm. Qee lub ntsuas hluav taws xob tuaj yeem muaj lawv lub sijhawm hloov pauv ntawm lub ntsuas, lwm qhov nyuaj dua. Nrog rau qhov teeb tsa no, qhov ua kom luv luv yog txhua yam uas xav tau.

Kauj Ruam 1: Nws Ua Haujlwm Li Cas

Khoom siv
Khoom siv

Thaum lub ntsuas tau ntsuas, nws yuav tso tawm lub teeb liab zoo rau transistor Q1. (Kuv tau siv ob lub radar sensor thiab PIR. Ob qho zoo li ua haujlwm zoo sib xws. Lub radar sensor zoo dua rau siv sab nraum zoov vim tias nws yuav pom cov lus tsa suab los ntawm lub thawv yas thiab txawm tias phab ntsa. tsim nyog dua.)

Thaum Q1 tig rau, nws yuav tig rau Q3 los ntawm diode D1. Thaum Q3 tig rau, lub qhov rooj ntawm mosfet Q2 yuav raug kos rau hauv av, tig rau mosfet thiab tso cai rau tam sim no ntws hauv Circuit Court mus rau 3.3v tus tswj hwm me me (siv los txhawb ESP-01).

Sai li ESP-01 hloov pauv, Rx tus pin tau teeb tsa siab uas tam sim no tseem yuav siv lub teeb liab nquag rau Q3 los ntawm diode D2. Tam sim no, yog tias lub ntsuas tau ntsuas qis, Q3 tseem nyob ntawm lub zog tseem ntws los ntawm mosfet thiab ESP-01 tau khaws cia. Cov qauv no yuav nyob twj ywm kom txog thaum nws txoj haujlwm sab hauv teeb tsa Rx tus pin LOW thiab yog tias lub ntsuas hluav taws xob tseem qis qis qhov no yuav kaw lub zog rau tus qauv.

Kauj ruam 2: Cov khoom siv

1-IRLML6402 P-Channel Mosfet (Kuv tab tom siv SOT-23 version). Cov menyuam yaus no tsis tshua kim dua piv rau T0-92 style P-CH mosfets.

2 - 1N5817 Diode

1 - LED koj xaiv!

2 - 2P txuas rau lub hnub ci cell nkag thiab lub roj teeb lithium nkag. Qee lub roj teeb lithium tuaj nrog JST txuas ntawm ntau qhov sib txawv yog li koj yuav xav txiav txim siab seb hom kev txuas txuas twg siv. Cov ntaub ntawv gerber tau teeb tsa rau cov khoom sib txuas nrog qhov sib nrug 2.54mm.

1 - 1000uf capacitor (tsis nruj me ntsis tsim nyog. Koj tuaj yeem kho qhov loj me. Qhov no yog txhawm rau ua kom lub zog muaj zog rau ESP -01)

2 - 2n3904 transistors

1 - 220 ohm resistor

2 - 1k resistors

2 - 10k resistors

2 - 100k resistors

1 - 220k resistor

1 - 3 tus pin swb hloov

1 - 3 tus pin header rau cov tswv yim sensor

1 - ESP -01

1 - 2x4 (8 tus pin) poj niam lub taub hau rau teeb tsa ESP -01

1 - 3.3 volt tus tswj lub rooj tsav xwm zoo li no

1 - RCWL -0516 Microwave/Radar Sensor zoo li no

1 - Hnub ci them nyiaj txiag zoo li no

Kauj Ruam 3: Arduino Code rau ESP-01

Kuv tau muab ob daim ntawv code uas koj tuaj yeem siv los ntsuas qhov Circuit.

cov ntaub ntawv LatchCircuitTest.ino yog qhov kev sim yooj yim uas yuav nyem lub onboard LED ntawm ESP-01 li ntawm 10 vib nas this ua ntej tso mus ntawm lub latch. Kuv tab tom siv tus pin Rx ntawm ESP-01 rau lub latch Circuit. (Tus Pin 3). Tsuav tus pin no tau teeb tsa siab, lub Circuit Court yuav nyob twj ywm. Thaum tus pin no tau teeb tsa LOW (thiab xav tias tus pin ua rau tseem qis) lub Circuit Court yuav kaw, tawm ntawm lub sensor tseem siv tau kom rov tshwm sim dua.

Cov ntaub ntawv thib ob, ESP-01_Email_Solar_Power_Latch_Simple.ino, yog tus lej xa email los ntawm gmail txhua lub sijhawm muaj kev cuam tshuam.

Cov ntaub ntawv no yuav tsum raug kho nrog cov ntaub ntawv hauv qab no:

  • Koj tus SSID wifi
  • Koj tus password wifi
  • Koj qhov chaw nyob gmail
  • Koj tus password gmail
  • A rau chaw nyob rau email lus
  • Ib qho los ntawm qhov chaw nyob rau email lus

Cov ntaub ntawv tseem suav nrog cov lej txhawm rau xa http lub vev xaib thov mus rau ESP-01 siv lub suab nrov nrov uas yuav teb rau qhov kev thov. Nws yog qhov zoo tshaj plaws kom muaj lub tswb nrov teeb tsa kom thaum hmo ntuj, thaum koj tsis tuaj yeem saib xyuas email, lub suab nrov yuav nrov thaum lub ntsuas hluav taws xob tau pib.

Muaj qhov piv txwv ntawm pawg thawj coj saib lub suab yooj yim (ESP-01) hauv kuv thawj qhov kev qhia!

Kauj Ruam 4: Tsim Koj Tus Kheej PCB

Tsim Koj Tus Kheej PCB
Tsim Koj Tus Kheej PCB

Cov txheej txheem rau txoj haujlwm no tau tsim los siv Kicad software. PCB uas koj pom hauv daim vis dis aus kuj tau tsim los siv cov ntaub ntawv tsim los ntawm Kicad.

Koj tuaj yeem xaj PCB's rau txoj haujlwm no los ntawm jclpcb.com lossis lwm yam khoom siv pcb.

Nov yog qhov txuas rau Gerber Cov Ntaub Ntawv uas tau tsim rau txoj haujlwm no.

Pom zoo: