Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Kho Kho Cov Hluav Taws Xob thiab Cov Khoom Siv Hluav Taws Xob
- Kauj ruam 2: Code
- Kauj ruam 3: Sib sau ua ke
Video: Arduino Outlet Timer: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Lub sijhawm tso hluav taws xob yog lub cuab yeej zoo rau khaws cov cuab yeej siv kom nyob ntev dhau, tab sis lawv tsis muaj qhov kev hloov kho uas qee zaum tsim nyog. Qee cov khoom siv tsis muaj cov hloov pauv txhua lub sijhawm, thiab ua lub tshuab ua lub tsev siv lub sijhawm tuaj yeem ua haujlwm tau zoo. Txog qhov haujlwm no, Kuv tau siv Arduino nano, I2C 18x2 LCD screen, 3 nyees khawm, chav tso hluav taws xob DLI, thiab rooj plaub 3d luam tawm los tsim lub sijhawm hloov pauv tau zoo rau ob peb lub qhov hluav taws xob.
Ob peb yam yuav tsum nco ntsoov:
-Hauv txoj haujlwm no kuv tau siv Arduino Nano, tab sis zoo li ntau qhov ntawm kuv tau siv, lawv tuaj yeem hloov pauv mus rau lwm qhov zoo sib xws. Kev siv ESP8266 tuaj yeem tso cai rau kev siv tshuab hluav taws xob tsis zoo hauv tsev rau teeb, kiv cua, thiab lwm yam
-DLI's tuaj yeem muaj nqi ntau dua li kev yuav khoom ntau tus neeg ib txwm siv, kev xa tawm, tab sis nws muaj kev nyab xeeb dua thiab lub tswv yim zoo dua. DLI yog qhov yooj yim siv thiab tau tsim los rau lub hom phiaj ntawd, kev ua kom tsis zoo siv qhov kev xa tawm tuaj yeem ua rau muaj kev phom sij ntawm tam sim no mus qhov twg koj tsis xav tau.
Khoom siv
Arduino Nano (Kuv nyuam qhuav hloov mus siv Osoyoo pro micros, uas ua haujlwm zoo ib yam li Nanos thiab raug nqi ntau dua, tab sis hauv qhov haujlwm no kuv tau siv nano)
DLI qhov hluav taws xob
18x2 I2C LCD npo- nco ntsoov sim kom tau lub vijtsam uas txhawb I2C. Sim xaim tag nrho 16 tus lej kab tuaj yeem ua rau mob
Cov nyees khawm me thiab loj
3d luam ntawv rooj plaub- Kuv yuav muab STL hauv qab no. Cov ntaub ntawv no tseem tau txhais kom haum rau txhua ntu uas kuv tau siv thiab txhais tau tias yuav tsum tau muab tso ua ke siv Cov Kub Kub
Tag nrho cov khoom siv no tsis tau ua kom zoo dua rau tus nqi, vim tias lawv tsuas yog ib feem kuv pom dag nyob ib puag ncig lub tsev. Muaj ntau txoj kev xaiv rau txhua tus, thiab kuv xav tias koj tuaj yeem tsim qhov no (ntxiv rau DLI qhov hluav taws xob) nrog tsawg dua $ 10.
Kauj Ruam 1: Kho Kho Cov Hluav Taws Xob thiab Cov Khoom Siv Hluav Taws Xob
Vim tias kuv siv Arduino Nano yam tsis muaj lub taub hau, kuv tau siv lub LCD tso rau ntawm ib qho los txuas nws ntawm SDA, SCL, 5V, thiab GND. Ib daim ntawv yog tias nyob rau hauv cov kab fritzing lub LCD zaub tsis yog I2C, Kuv tsuas yog xaim nws zoo li yog thawj 4 tus pin tau zoo li tau piav qhia saum toj no. Rau cov zaub zoo ib yam li qhov no, koj xav tau tshwj xeeb I2C adapter board los txuas rau kab ntawm tus pin ntawm sab saum toj kom hloov nws mus rau kev sib txuas lus. Tsis tas li, ntawm Arduino Nano SDA yog tus pin A4 thiab SCL A5
Peb Cov nyees khawm thiab lub qhov hluav taws xob DLI yuav tsum txhua tus sib koom hauv av vim tias tsuas muaj 2 tus pin hauv av ntawm tus qauv ntawm arduino (Kuv faib cov xov no los ntawm kev yooj yim txuas cov xov hlau thiab sib txuas ua ke). Txhua lub khawm tom qab txuas mus rau digital i/o pins thiab tom qab ntawd lub davhlau ya nyob twg zoo rau DLI qhov hluav taws xob.
Kauj ruam 2: Code
Hauv qab no yog qhov txuas rau Arduino code uas khiav kuv lub sijhawm. Kev teeb tsa rau LCD Zaub yog ib yam uas kuv tau txais online, yog li kuv tsis nkag siab txhua qhov teeb tsa tus pin. Ib qho tseem ceeb kom nco ntsoov txog khawm khawm yog tias thaum txuas cov nyees khawm rau hauv av tsis yog 5v, tus pinMode yuav tsum tau teeb tsa rau INPUT_PULLUP (raws li kuv tau ua tiav) uas ua rau muaj kev sib txuas rub tawm hauv lub arduino. Qhov "ntxeev" qhov tso tawm ntawm lub pob tab sis nws ua rau nws ruaj khov heev thiab tseem tshem tawm qhov kev pheej hmoo ntawm kib lub rooj tsavxwm los ntawm kev tso 5v qhov uas nws tsis yog. Txhawm rau tswj DLI, tsawg kawg nrog tus qauv uas kuv tau siv, nws tau yooj yim li khiav 2 xov hlau rau hauv nws, thiab xa 5v los ntawm ib qho los hloov DLI rau/tawm. Kuv teeb tsa lub sijhawm kom muaj qhov siab kawg ntawm 5 teev, thiab yog tias koj hloov qhov no kuv yuav hais qhia hloov pauv tus nqi lub sijhawm mus ntev es tsis txhob siv int vim nws tuaj yeem hla dhau. Txoj kev uas kuv tau teeb tsa kev ua haujlwm ntawm kuv 3 khawm yog kom muaj ib qho Pib dua/Kaw lub sijhawm (thiab DLI), ib qho ntxiv 15 feeb, thiab ib qho rho tawm 15 min. Thaum kawg, Kuv tau siv nws li ntawd tom qab 60 vib nas this ntawm "tsis ua haujlwm" (thaum lub sijhawm nyob ntawm 0 thiab tsis muaj cov nyees khawm tau nias) lub vijtsam LCD yuav kaw kom tsis txhob hlawv.
Kauj ruam 3: Sib sau ua ke
Cov ntaub ntawv uas kuv luam tawm yog tsim los kom txhua daim yog kub glued rau hauv qhov chaw los ntawm sab hauv. Lub vijtsam thiab cov nyees khawm haum haum rau hauv lawv qhov chaw (lub qhov rau cov nyees khawm xav tau qee qhov xuab zeb vim tias cov xov ntawm ob lub khawm me me). Arduino tsis muaj qhov kaw nruj lossis nce, tab sis theej Kuv tsim cov ntaub ntawv kom muaj qhov chaw rau nws zaum kom nws yuav tuav hauv qhov chaw los ntawm ob kab xev kab xev thiab tuaj yeem nkag tau rau kev them nyiaj/cov phiaj xwm ntawm (hauv kuv rooj plaub) mini usb. Thaum kawg, lub vaj huam sib luag tom qab tau tsim los xaub rau sab nraub qaum thiab tuaj yeem ua kom sov sov rau hauv qhov chaw. Kuv tau txuas cov ntaub ntawv.stl rau lub casing hauv qab no.
Pom zoo:
Xyaum Arduino ESP32 Wireless Wall Outlet LED Sawb Controller: 6 Kauj Ruam
Tswv yim Arduino ESP32 Wireless Wall Outlet LED Sawb Controller: Qhov no yog qhov ua tau zoo heev DIY Wireless Wall Outlet maub los rau tus nqi qis LED strips. Lawv ua haujlwm tau zoo nrog RGB Led strips. EBay Wifi tus tswj hwm tsis tau tsim kom zoo, thiab tawg yooj yim. Uas
Stepper Motor Nrog D Flip Flops thiab 555 Timer; Thawj ntu ntawm Circuit Circuit 555 Timer: 3 Kauj Ruam
Stepper Motor Nrog D Flip Flops thiab 555 Timer; Thawj Ntu ntawm Circuit 555 Tus Timer: Tus tsav lub cav yog lub cav DC uas txav mus los hauv cov kauj ruam uas tsis sib xws. timer. Nws yog thawj daim duab (saib saum toj no) nrog 555 nti w
AVR Microcontroller. LEDs Flasher Siv Timer. Timers cuam tshuam. Timer CTC Hom: 6 Kauj Ruam
AVR Microcontroller. LEDs Flasher Siv Timer. Timers cuam tshuam. Timer CTC Hom: Nyob zoo txhua tus! Timers yog lub tswv yim tseem ceeb hauv kev siv hluav taws xob. Txhua qhov khoom siv hluav taws xob ua haujlwm raws lub sijhawm. Lub sijhawm no lub hauv paus pab ua kom txhua txoj haujlwm sib koom ua ke. Txhua lub microcontrollers ua haujlwm ntawm qee lub sijhawm teev ua ntej
NE555 Timer - Kev teeb tsa NE555 Timer hauv Kev Kho Kom Zoo: 7 Cov Kauj Ruam
NE555 Timer | Kev teeb tsa NE555 Timer hauv Kev Kho Kom Zoo: Lub sijhawm NE555 yog ib qho ntawm ICs feem ntau siv hauv ntiaj teb cov khoom siv hluav taws xob. Nws yog nyob rau hauv daim ntawv ntawm DIP 8, txhais tau tias nws muaj 8 tus pin
Npau npau Timer Timer: 5 Kauj Ruam (nrog Duab)
Npau taws Timer Lub Sijhawm: Cov Lus Qhia no tau tsim los ua kom tiav qhov haujlwm xav tau ntawm Makecourse ntawm Tsev Kawm Qib Siab South Florida (www.makecourse.com). Txoj haujlwm no yog lub sijhawm uas tig los ntawm lub ntsej muag luag ntxhi kom txog rau thaum lub sijhawm xaiv los txog, tom qab ntawd tig kuv