Cov txheej txheem:
- Kauj ruam 1: Ntxiv Led
- Kauj ruam 2: Coj yuam kev
- Kauj Ruam 3: Ntxiv Green LED
- Kauj Ruam 4: Ntxiv Blue LED
- Kauj ruam 5: Ntxiv Push Button
- Kauj Ruam 6: Push Button Errors
- Kauj Ruam 7: Piav Qhia Binary Counter
- Kauj ruam 8: Code rau Binary Counter
Video: Piv Txwv Kev Ua Lej: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Nov yog qhov piv txwv qhia siv los qhia pom kuv qhov kev cia siab rau kev siv qhia hauv Labs thiab Cov Haujlwm. Qhov kev sim no yuav tsim cov lus sib tw binary yooj yim nrog kev pab ntawm khawm thiab peb LEDS. Raws li koj tuaj yeem pom, txoj haujlwm yooj yim no tau tawg ua ob peb theem pib, ua raws cov cai xav tau los ua haujlwm. Txhua qhov kev sim yuav xav tau yam tsawg kawg nkaus:
1. Cov duab kos ua kom pom tseeb tias cov khoom sib txuas nrog lub rooj tsavxwm li cas.
2. Piav qhia seb txhua yam khoom siv yog dab tsi thiab nws siv li cas. (piv txwv li tsis txhob cia li rub tawm cov duab!)
3. Muab cov cai twg siv los tsim txoj haujlwm. Qhov no ib yam tuaj yeem tawg ua ib feem ib yam, txhawm rau pab piav qhia zoo li cas cov cai ua haujlwm thiab/lossis tuaj yeem hloov kho.
* Yeem Tau Tab sis Txhawb Nqa* Thaum twg ua tau, ntxiv ntu kev pab piav qhia yuav ua li cas thiaj daws tau qhov tsis raug nrog tsim lub phiaj xwm.
Kauj ruam 1: Ntxiv Led
1. Muab ib qho LED (xim twg) tso rau hauv daim ntawv tais
2. Txuas ib kawg ntawm 220 Ω (ohm) resistor mus rau cov hlau lead saum toj kawg nkaus (+), yuav tsum yog cov hlau lead ntev dua, thiab lwm qhov kawg rau Pin 12 ntawm koj li Arduino Board.
3. Txuas tus Jumper Hlau mus rau hauv qab hauv paus (-) thiab txuas rau hauv av rau ntawm txoj kab tsheb nqaj hlau.
5. Txuas Jumper Wire los ntawm txoj kev tsheb nqaj hlau mus rau GND (hauv av) Pin ntawm Arduino.
Kauj ruam 2: Coj yuam kev
Kauj Ruam 3: Ntxiv Green LED
Cov ntsuab LED muaj teeb tsa tib yam li peb cov LED liab.
1. Txuas tus coj mus rau lub khob cij.
2. Txuas 220Ω tus tiv thaiv rau qhov zoo (+) cov hlau lead thiab mus rau tus Pin 10 ntawm Arduino.
4. Txuas cov hlau lead tsis zoo rau hauv txoj kev tsheb nqaj hlau.
Kauj Ruam 4: Ntxiv Blue LED
Cov xiav LED muaj teeb tsa tib yam li peb cov liab thiab ntsuab LEDs.
1. Txuas tus coj mus rau lub khob cij.
2. Txuas 220Ω tus tiv thaiv rau qhov zoo (+) cov hlau lead thiab txuas rau Pin 8 ntawm Arduino.
4. Txuas cov hlau lead tsis zoo rau hauv txoj kev tsheb nqaj hlau.
Kauj ruam 5: Ntxiv Push Button
1. Txuas lub laub khawm mus rau lub khob cij los ntawm kev txuas nws mus rau kab "E" thiab "F". Cov kab “E” thiab “F” tau siv los cais peb kab, piv txwv li cov khoom ntawm A-E tau txuas nrog thiab cov khoom sib txuas ntawm F-J txuas nrog, txhawm rau ua ob ntu sib cais.
2. Muab lub 10kΩ resistor txuas sab xis ntawm lub pob rau hauv av.
3. Muab lub Jumper Wire txuas rau sab laug ntawm lub pob kom txuas rau lub tsheb ciav hlau.
4. Muab lub Jumper Wire txuas rau sab xis ntawm hauv qab kom tus pin 4. (Nws tuaj yeem siv tau rau ntawm ib sab ib yam li tus tiv thaiv. Jumper Wire yog nyob rau lwm sab ntawm lub pob kom ua daim duab teeb tsa ntau dua)
Kauj Ruam 6: Push Button Errors
Kauj Ruam 7: Piav Qhia Binary Counter
Hauv kev ua haujlwm, peb suav nrog siv tus lej lej hu ua binary, uas sawv cev nrog 1's thiab 0's. Ex 011 hauv binary yog qhov koj thiab kuv xav hu 3. LEDs zoo vim tias lawv tuaj yeem yooj yim sawv cev rau tus lej binary! 1 tuaj yeem sawv cev nrog LED rau thiab 0 tuaj yeem sawv cev nrog LED tawm. Txij li thaum peb muaj peb LEDs, peb muaj peb qhov binary peb tuaj yeem ua haujlwm nrog. Cov peev xwm muaj txiaj ntsig rau peb cov txee LED tau nthuav dav hauv daim duab saum toj no.
Kauj ruam 8: Code rau Binary Counter
Txuas nrog yog BinaryCounter.ino uas muaj tag nrho cov cai rau khiav lub phiaj xwm binary ntawm Arduino Uno.
Pom zoo:
IoT Guru Huab - Piv Piv Piv Txwv: 4 Kauj Ruam
IoT Guru Cloud - Piv Txwv Daim Qauv Yooj Yim: IoT Guru Cloud tau muab cov kev pabcuam rov qab los ntawm REST API thiab koj tuaj yeem sib sau cov REST hu rau koj lub vev xaib yooj yim. Nrog Highcharts, koj tuaj yeem tso tawm kab kos ntawm koj qhov kev ntsuas yooj yim nrog AJAX hu
Ua Ntej Qhia Kom Siv Cov Av Huv Huv Sensor W/ Piv Piv Txwv: 7 Kauj Ruam
Ua Ntej Qhia Kom Siv Cov Av Huv Huv Sensor W/ Piv Piv Txwv: Koj tuaj yeem nyeem qhov no thiab lwm yam kev qhia zoo ntawm ElectroPeak lub vev xaib raug cai Cov piv txwv tseem ceeb kuj tau muab los pab koj ua tus coj txoj cai.Koj Yuav Kawm Dab Tsi: Yuav av li cas
NodeMCU - MQTT Piv Txwv Piv Txwv: 4 Cov Kauj Ruam
NodeMCU - MQTT Piv txwv yooj yim: Zaj lus qhia no yuav qhia qhov pib MQTT raws tu qauv siv ntawm NodeMCU pawg thawj coj saib.Peb siv MQTTBox ua MQTT tus neeg siv khoom ntawm no, thiab peb yuav siv NodeMCU kom ua tiav cov haujlwm hauv qab no: Tshaj tawm "nyob zoo ntiaj teb" rau lub ncauj lus " outTopic”txhua ob vib nas thisSubscr
Timers ntawm 8051 Nrog Lub Teeb Pom Kev Piv Txwv Ntu-1: 3 Cov Kauj Ruam
Timers ntawm 8051 Nrog Lub Teeb Pom Kev Piv Txwv Ntu-1: Hauv qhov kev qhia no kuv yuav qhia koj txog yuav siv sijhawm li cas ntawm 8051. Ntawm no peb yuav tham txog timer 0 hauv hom 1. Tom ntej no peb yuav tham txog lwm hom thiab
HRV Kub rau OpenHAB Via ESP8266 (Tus lej piv txwv!): 3 Cov Kauj Ruam
HRV Kub rau OpenHAB Via ESP8266 (Tus Qauv Piv Txwv!): HRV - Wireless rau OpenHAB Cov lus qhia no tshwj xeeb rau cov neeg uas muaj HRV (cua sov rov ua kom lub qhov cua nkag) qhov system - txawm hais tias ib feem ntawm pawg thawj coj saib xyuas, qhib kev teeb tsa lossis Arduino code (xws li nyeem TTL cov ntaub ntawv xov xwm) tuaj yeem yog h