Cov txheej txheem:

DIY Rooj Tswb Nrog Ntawv Ceeb Toom: 5 Kauj Ruam
DIY Rooj Tswb Nrog Ntawv Ceeb Toom: 5 Kauj Ruam

Video: DIY Rooj Tswb Nrog Ntawv Ceeb Toom: 5 Kauj Ruam

Video: DIY Rooj Tswb Nrog Ntawv Ceeb Toom: 5 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
DIY Rooj Tswb Nrog Ntawv Ceeb Toom
DIY Rooj Tswb Nrog Ntawv Ceeb Toom

Ua rau koj tus kheej lub qhov rooj/lub qhov rai nrog qee yam khoom siv hluav taws xob yooj yim, cov hlau nplaum thiab Raspberry Pi. Raspberry Pi tau siv los sau lossis email rau koj thaum lub qhov rooj qhib!

Cov Ntaub Ntawv Xav Tau (txuas nrog):

Raspberry Pi (ntawm no yog cov khoom siv peb siv)

Reed Hloov

Neodymium Magnet - Peb siv 3/8 "x 3/8" x 1/2"

Buzzer

Random ntev ntawm xaim

Ob lub khob cij

Kauj ruam 1: Ua Sensor

Ua tus Sensor
Ua tus Sensor

Thawj kauj ruam yog ib qho yooj yim. Cias muab tus pas nrig hloov mus rau hauv lub khob cij me me, teeb rau sab hauv ntawm lub qhov rooj lossis lub qhov rais.

Lub qhov rooj ntoo qhib yog lub tshuab hluav taws xob qhib hluav taws xob. Qhov kev ncua deb uas nws tau qhib yog nyob ntawm qhov hloov pauv tshwj xeeb thiab qhov loj ntawm cov hlau nplaum. Nws yuav siv qee qhov kev sim kom ua kom raug. Koj xav kom qhov hloov pauv raug kaw thaum lub qhov rooj raug kaw.

Tom ntej no, lo los yog kaw cov hlau nplaum neodymium ze ntawm qhov hloov. Kev taw qhia cov hlau nplaum ntawm cov hlau nplaum yuav tsum ua tib zoo sib hloov.

Kauj ruam 2: Ua Tswb

Ua Tswb
Ua Tswb
Ua Tswb
Ua Tswb

Tam sim no peb tau ua haujlwm, tsis muaj kev sib tiv toj teeb tsa lub teeb, peb tuaj yeem siv Raspberry Pi los tsim lub tswb. Tus Pi saib xyuas qhov xwm txheej ntawm tus reed hloov thiab ceeb toom rau peb thaum twg lub qhov rooj qhib.

Koj tuaj yeem pom cov lus qhia zoo Raspberry Pi online, tab sis ntawm no yog cov ntsiab lus ntawm qhov peb tau ua:

Peb tau txuas tus Pi zoo li lub PC los tshuaj xyuas yog tias nws ua haujlwm. Peb ntsaws rau hauv:

  • Ib lub hwj chim cable, rau hauv qhov txuas me me cim "Power In"
  • Ib qho khoom siv hluav taws xob los ntawm HDMI chaw nres nkoj rau hauv tus saib
  • Cov keyboard thiab nas rau hauv ob lub USB chaw nres nkoj
  • Ib daim npav 8GB microSD nrog Raspberry Pi NOOBs Full Desktop faib.

Peb siv VNC tus saib los txuas Pi nyob deb ntawm peb lub khoos phis tawj PC. Txoj kev ntawd, peb tsis xav tau keyboard, nas, thiab saib xyuas txuas rau nws. Peb tuaj yeem yooj yim zog Pi thiab teeb nws.

Kauj Ruam 3: Hookup Daim Duab

Hookup Daim duab
Hookup Daim duab
Hookup Daim duab
Hookup Daim duab

Tus Pi tau txuas rau lub qhov hluav taws xob phab ntsa nyob ze. Nws kuj tseem txuas nrog 40-pin GPIO cable (suav nrog hauv cov khoom siv peb txuas ua ntej).

Txoj hlua khi tau txuas nrog lub khob cij thiab rau Pi raws li qhia hauv kab duab kab. Peb kuj txuas lub buzzer los ua suab nrog lub qhov rooj qhib.

Kauj Ruam 4: Ua Tus Pi Email lossis Text You

Ua tus Pi Email lossis Text You
Ua tus Pi Email lossis Text You
Ua tus Pi Email lossis Text You
Ua tus Pi Email lossis Text You

Peb tom qab ntawd tau tsim Python Script uas ua haujlwm tsis tu ncua ntawm Raspberry Pi, saib xyuas lub qhov rooj. Peb teeb tsa nws kom pib sau ntawv thaum twg los xij Pi khau raj. Txoj kev ntawd nws tsis cuam tshuam los ntawm lub zog hluav taws xob!

Koj tuaj yeem rub daim ntawv theej ntawm tsab ntawv no.

Thaum ua haujlwm, tsab ntawv tshuaj xyuas qhov xwm txheej ntawm tus reed hloov ntxhib li 5 zaug hauv ib pliag. Thaum lub qhov rooj qhib, nws email ceeb toom thiab suab nrov nrov. Nws tseem nrov nrov txog thaum lub qhov rooj kaw.

Kev ceeb toom xa xov lossis email mus rau qhov chaw nyob uas peb qhia. (saib video)

Pom zoo: