Cov txheej txheem:

SmartWake: 4 Kauj Ruam
SmartWake: 4 Kauj Ruam

Video: SmartWake: 4 Kauj Ruam

Video: SmartWake: 4 Kauj Ruam
Video: Maroon 5 - Girls Like You ft. Cardi B (Official Music Video) 2024, Kaum ib hlis
Anonim
SmartWake
SmartWake

Kuv tau ua qhov haujlwm uas kuv hu ua smartwake. Nws yog qhov tseem ceeb ntawm lub tswb moos uas tseem ntsuas lub teeb pom kev, huab cua nyob hauv huab cua thiab ntsuas siab.

Ntawm no kuv yuav piav qhia nws ua haujlwm li cas.

Khoom siv

Rau qhov haujlwm no kuv siv:

  • raspberry pib 3
  • lub teeb nyob resistor
  • dh11 ua
  • wb 180
  • txiv hmab txiv ntoo
  • mcp3008 ua
  • piezo buzzer: cov
  • 2 10k resistors
  • daim ntawv qhia zaub mov

Raws li rau vaj tsev kuv siv lub thawv uas kuv tau pw ib puag ncig, nws tsis muaj teeb meem dab tsi koj siv tsuas yog xyuas kom koj tsis tawg ib yam dab tsi ua kom haum nws

Kauj ruam 1: Teeb Raspberry Pi

Ua ntej koj yuav tsum tau txais koj cov raspberry ua haujlwm kom raug. Txhawm rau ua qhov no koj yuav tsum teeb tsa mysql server rau cov ntaub ntawv khaws tseg hauv qab.

Qhov thib ob koj tseem yuav tsum muaj lub vev xaib ua haujlwm thiab koj yuav tsum muaj peev xwm txuas koj lub backend mus rau tom ntej nrog socketio.

Kuv cov lus qhia txawm li cas los xav tias koj tus pi twb tau teeb tsa los ua qhov no, tab sis yog tias koj xav paub yuav ua li cas thiaj li muaj ntau yam kev qhia tawm muaj piav qhia qhov ntawd.

Kauj Ruam 2: Tso Tag Nrho Koj Cov Cheeb Tsam Tawm

Ib kauj ruam tseem ceeb yog tias koj xav kom muaj kev pom meej ntawm txhua yam ntawm koj qhov kev pov tseg tsis yog tsuas yog nce txhua yam, tab sis ua kom yooj yim rau teeb tsa thiab txuas.

Kauj Ruam 3: Kev thaiv kab hlau

Thaiv
Thaiv

Tom ntej no koj yuav tsum nqes tag nrho koj lub ntsuas cua, lub vijtsam thiab lub suab nrov. Kuv tau suav nrog daim duab qhia tias txhua yam yuav tsum txuas nrog, tab sis nco ntsoov tias koj cov resistors yog 10k ohm thiab saib kom tsis txhob siv qhov hluav taws xob tsis raug!

Kuv cov khoom piav qhia:

  • DHT11 uas kuv siv los ntsuas cua huab cua.
  • BMP180 rau ntsuas qhov ntsuas siab.
  • LDR rau ntsuas lub teeb ci.
  • MCP3008 rau kev nyeem cov ldr zoo ib yam.
  • Buzzer rau lub tswb
  • OLED rau tso saib tus ip-chaw nyob thiab lub moos

Kauj Ruam 4: Vaj Tsev

Vaj tse
Vaj tse

Hauv theem no koj ua lub tsev zoo npog txhua yam. Txawm li cas los xij nws yog qhov loj heev thiab hom phiaj koj yuav siv qee yam me dua, tab sis kuv muaj lub thawv ntoo tso ncig thiab txiav txim siab ua qee yam nrog nws.

Tom qab cov kauj ruam no nws yuav tsum npaj kom ntsaws nws thiab tsuas yog siv nws. Lub sijhawm yuav tshwm rau ntawm lub vijtsam thiab yog li tus IP-chaw nyob.

Pom zoo: