Cov txheej txheem:
- Kauj Ruam 1: Yuav Tsum Muaj Kev Koom Tes
- Kauj ruam 2: Tsim Circuit Court
- Kauj Ruam 3: Arduino Code
- Kauj ruam 4: Flask
- Kauj Ruam 5: Xeem
Video: Arduino Suab Sensor Tswb: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Cov ntawv qhia no lub hom phiaj txhawm rau tsim lub tswb raws lub suab sensor los ntawm kev siv Arduino.
Kauj Ruam 1: Yuav Tsum Muaj Kev Koom Tes
1. Lub suab sensor
2. Ib qho LED
3. A 330-ohm resistor
4. Ib pawg Arduino
5. Ib pawg ntawm cov xov hlau
6. Lub computer
Ib qho ntxiv, nws xav tau kev nkag siab yooj yim ntawm Arduino code thiab nab hab sej
Kauj ruam 2: Tsim Circuit Court
Ib yam li thawj kab ntawv, lub suab sensor muaj plaub tus pin. VCC thiab GND yuav txuas rau 5V thiab GND ntawm Arduino. D0 xav tau xaim nrog txhua tus lej digital uas yog 7 hauv kuv lub Circuit Court ntawm Arduino board. Ntawd yog li cas lub suab sensor yuav tsum xaim.
Tom qab ntawd, Led yuav tsum tau txuas nrog ib yam nkaus. Sab luv yuav tsum txuas rau hauv av ntawm Mini breadboard. Qhov tseem ceeb tshaj yog 330-ohm resistor yuav tsum tau txuas ntawm lawv. Sab ntev yuav txuas mus rau lwm tus lej digital uas yog 13 hauv kuv qhov Circuit.
Kauj Ruam 3: Arduino Code
Tom qab teeb tsa kev teeb tsa, peb tuaj yeem siv Arduino code kom nws ua haujlwm.
Kauj ruam 4: Flask
Txhawm rau tswj lub ntsuas los ntawm lub raj mis, peb yuav xub sau lub hwj los ntawm nab nab. Peb thawj zaug yuav tsum paub dab tsi peb xav paub txhawm rau txhawm rau khaws hauv cov ntawv forms.py. Hauv qhov no, tsuas yog ib yam uas peb yuav tsum paub seb lub ntsuas hluav taws xob qhib lossis tawm.
Routes.py yuav tsum hloov cov ntaub ntawv yog tias peb hloov pauv lub xeev hloov pauv ntawm lub suab sensor. Ib qho ntxiv, peb yuav tsum siv pob pyserial txhawm rau sib txuas lus nrog Arduino txij li Arduino code tau suav ua ke hauv C code. Nws yuav sau tus nqi rau hauv Arduino txhawm rau qhib thiab kaw lub sensor.
Peb kuj xav tau ob daim ntawv HTML txhawm rau khiav lub vev xaib. Cov ntaub ntawv nkag mus yog cov ntawv koj yuav pom lub xeev ntawm lub sensor. Yog tias koj xav hloov lub xeev, nws yuav rov qab mus rau nplooj ntawv txheeb xyuas thiab qhov no yog nplooj ntawv koj tuaj yeem qhib thiab kaw lub sensor.
Txhua cov ntaub ntawv yuav tsum tau khaws tseg raws li cov duab los khiav lawv. Tsis tas li, koj yuav tsum siv pip nruab rau nruab lub raj mis, pyserial, hwj-wtf yog tias koj tsis muaj lawv. Nov yog cov qauv tsim nyog los khiav cov ntaub ntawv hauv qab no.
Kauj Ruam 5: Xeem
Tom qab txhua qib saum toj no tiav, koj yuav tsum muaj peev xwm khiav koj lub tswb tshiab tshiab. Txhawm rau ua qhov ntawd, koj yuav tsum tau khiav "nab nab iotapp.py".
Pom zoo:
Tswb Tswb Tswb Tswb Tswb: 3 Kauj Ruam
Lub Tswb Tswb Tswb Tswb: Kuv yog menyuam kawm ntawv 13 xyoos hauv Taiwan.Kuv ua yam nrog Arduino thawj zaug yog tias koj tuaj yeem qhia kuv yuav ua li cas txhim kho txoj haujlwm no, thov tawm lus rau kuv kom kuv tuaj yeem ua qhov zoo dua. (Ua tsaug ) Lub moos no tuaj yeem tsa koj thaum koj tsaug zog, tab sis kuv
Tswb Tswb Tswb Tswb Tswb Ntse Teeb: 8 Kauj Ruam (nrog Duab)
Tswb Tswb Tswb Tswb Tswb Lub Teeb: Hauv qhov haujlwm no kuv tau siv lub tshuab cua-tsoo lub tswb tawg tag. Lub ntsej muag ntawm lub moos tau hloov pauv los ntawm 12 LEDs, teeb pom kev los ntawm LED kab ib ncig ntawm ntug ntawm lub moos. 12 LEDs qhia lub sijhawm thiab cov hlua LED tau teeb tsa los ua lub tswb, tig
Arduino Push Alerts rau Lub Tswb, Tswb Tswb, Tswb Tswb Tswb Thiab Lwm Yam: 8 Kauj Ruam
Arduino Push Alerts rau Tswb, Tswb Tswb, Tswb Tswb Tswb thiab lwm yam: IoT Cov Ntawv Ceeb Toom los ntawm koj lub Tswb, Tswb Tswb, Tswb Tswb thiab lwm yam siv Arduino Uno thiab Ethernet Shield. Cov ncauj lus kom ntxaws ntawm kuv lub vev xaib ntawm no Hais txog Arduino Push Alert Box Siv Arduino Uno thiab Ethernet Shield raws li Wiznet W5100 nti rau
Lub Tswb Tswb Tswb Tswb Siv Super Tiny Arduino Compatible Board !: 10 Cov Kauj Ruam
Lub Tswb Tswb Tswb Tswb Siv Super Tiny Arduino Compatible Board!: Nyob zoo, hnub no peb yuav ua qhov haujlwm me me txias. Peb tab tom tsim lub tswb me me uas ntsuas qhov nrug nruab nrab ntawm nws tus kheej thiab cov khoom nyob rau ntawm nws xub ntiag. Thiab thaum cov khoom txav mus los yav dhau los teeb tsa, lub cuab yeej yuav ceeb toom rau koj nrog
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa: 7 Kauj Ruam (nrog Duab)
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa Tswm Tswm: Tsa Kuv Lub Caij Ntuj No Lub caij ntuj no kuv tus hluas nkauj muaj teeb meem sawv thaum sawv ntxov thiab zoo li raug kev txom nyem los ntawm SAD (Lub Caij Caij Nyoog Muaj Teeb Meem). Kuv txawm pom tias nyuaj npaum li cas kom sawv thaum lub caij ntuj no vim lub hnub tsis tuaj