Cov txheej txheem:

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: 7 Kauj Ruam (nrog Duab)

Video: LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa: 7 Kauj Ruam (nrog Duab)

Video: LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa: 7 Kauj Ruam (nrog Duab)
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Kaum ib hlis
Anonim
LED Tswb Tswb Tswb Tswb Tswb Tswb Tswb Tswb Tswb
LED Tswb Tswb Tswb Tswb Tswb Tswb Tswb Tswb Tswb

Kuv Kev Txhawb Siab 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 (Kev Cuam Tshuam Caij Nplooj Ntoos Zeeg). Kuv txawm pom tias nyuaj npaum li cas thaum sawv ntxov thaum lub caij ntuj no tseem tsis tau los. Cov tsos mob ntawm SAD hnyav tuaj yeem suav nrog kev chim siab, tsaug zog ntau tab sis tseem nkees, tsis tuaj yeem tawm ntawm txaj, kev nyuaj siab, thiab txawm tias qee qhov teeb meem ntawm lub cev xws li mob sib koom thiab txo qis kev kis mob. Kuv tau hnov txog lub tswb ceeb toom uas sim sim lub hnub tuaj thiab xav tias nws tuaj yeem yog txoj hauv kev daws tau nws cov teeb meem. Kev Npaj Kuv nco qab pom qhov qhia tau (https://www.instructables.com/id/Blue-LED-dawn-simulator- rau-Soleil-Sun-Alarm/) txog kev hloov kho lub tswb ceeb toom tuaj kom muab lub teeb xiav siv LEDs txij li xiav yuav tsum yog lub teeb zoo los pab. Kuv nyiam lub tswv yim tab sis txoj hauv kev siv lub microcontroller nyob rau hauv cov lus qhia no ua rau kuv ntshai vim kuv tau muaj qee qhov kev paub dhau los nrog kev ua haujlwm ib qho tom qab tsim txoj cai. Nws kuj tseem tsis daws lwm qhov kev txhawj xeeb ntawm kuv: siv $ 80 ntawm lub tswb moos thiab hloov kho nws, tsis yog tias kuv tus hluas nkauj tsis tsim nyog nws: D Kuv thawj zaug xav txog kev tsim lub moos los ntawm kos siv lub microcontroller. Peb tau tsim lub moos binary suav hauv ib ntawm kuv chav kawm hauv tsev kawm qib siab, yog li kuv tau paub nrog cov laj thawj. Tom qab ntawd kuv tau tso lub tswv yim ntawd vim tias kuv yuav tsis siv tib lub program programming lus thiab kuv yuav siv sijhawm ntau los tsim cov cai. Tom qab ntawd kuv muaj lub tswv yim siv lub tswb moos digital pheej yig uas tuaj yeem, vam tias, muab qhov hluav taws xob thaum lub tswb nrov tawm. Kuv tuaj yeem nqa qhov hluav taws xob no thiab siv nws hloov pauv nrog lub microcontroller. Thaum lub tswb nrov tawm thiab qhov hluav taws xob tau nce siab, cov txheej txheem dimming yuav pib. Yog tias khawm snooze raug tsoo, lossis lub tswb raug kaw, qhov hluav taws xob yuav qis dua thiab cov txheej txheem dimming yuav tsum nres, tig lub teeb tawm. Kuv tshawb fawb lub tswv yim no thiab pom tias nws muaj peev xwm siv hluav taws xob los ntawm lub moos thiab siv nws nrog lub microcontroller! Ib tug txiv leej tub tau ua tiav txoj haujlwm zoo ib yam uas qhib nws qhov muag tsis pom thaum sawv ntxov (https://hackaday.com/2008/11/18/alarm-clock-automated-blinds/). The Microcontroller Lub tswv yim pib ntws thiab txhua yam kuv muaj los ua yog xaiv lub microcontroller los siv. Kuv pom ib tsab xov xwm ntawm sparkfun.com uas tau hla cov txheej txheem tsim lub Circuit Court los ua haujlwm ATMega168. Kuv tau ua tib zoo nyeem thiab txiav txim siab tias nws zoo li yooj yim txaus thiab nws yog lub microcontroller uas kuv xav siv. Raws li kev tshawb fawb ntxiv, Kuv pom qhov Arduino yam uas txhua tus tau siv rau lawv cov haujlwm DIY. Nws siv ATMega168, tau qhib qhov chaw, thiab muaj ntau lub rooj sib tham pab thiab pib ua piv txwv; zoo meej rau tus pib. Kuv txiav txim siab siv nws los ua haujlwm rau kuv lub ATMega168 thiab hloov nws mus rau hauv lub rooj sib cais uas muaj cov khoom siv liab qab rau ATMega168 kom khiav. Nrog daim kawg ntawm qhov kev sib dhos hauv tes, kuv tuaj yeem pib. Nco Ntsoov Sab: Ua ntej kuv pib, kuv tsuas yog xav ua tsaug rau txhua qhov chaw uas kuv siv. Kuv sim ua kom ntseeg tau tias kuv txuas ib qho kev siv uas kuv tau siv hauv cov lus qhia. Cov cai tsuas yog kev siv ntawm cov piv txwv suav nrog hauv Arduino ib puag ncig thiab me ntsis ntawm kuv tus kheej yog li ua tsaug rau cov neeg uas tau sau cov ntawd! Tsis tas li, qhov no yog kuv thawj qhov project microcontroller. Kuv paub tseeb tias kuv tsis tau ua txhua yam kom raug, xws li ntxiv cov ntxaij lim dej rau qhov chaw thiab lwm qhov sib txawv rau kuv cov kab hluav taws xob. Yog tias koj pom qee yam uas tuaj yeem txhim kho, qhia rau kuv paub! Kuv yuav nco ntsoov hloov kho lossis sau ntawv ntawm nws. Txaus siab rau!

Kauj Ruam 1: Tshawb xyuas lub moos thiab Tswb Tswb Circuit

Tshawb xyuas lub moos thiab Tswb Tswb Circuit
Tshawb xyuas lub moos thiab Tswb Tswb Circuit
Tshawb xyuas lub moos thiab Tswb Tswb Circuit
Tshawb xyuas lub moos thiab Tswb Tswb Circuit
Tshawb xyuas lub moos thiab Tswb Tswb Circuit
Tshawb xyuas lub moos thiab Tswb Tswb Circuit

Kuaj Lub moos Qhov no yog lub moos kuv tau xaiv. Kuv tau txais nws ntawm Walmart thiab nws pheej yig yog li yog tias kuv tsis muaj peev xwm siv nws, Kuv yuav tsis chim siab heev. Nws tseem muaj lub roj teeb 9v thaub qab yog tias lub zog tawm mus. Kuv pom tom qab pom tias lub tswb nrov ntawm lub ATMega168 tseem ploj mus! Yog li nws tseem yuav ua rau koj tsaug zog yog tias tsis muaj lub zog! Thaum nws tau khiav tawm ntawm lub roj teeb lub zog pem hauv ntej tso tawm thiab nws hloov mus rau lwm lub moos sab hauv uas tsis raug tab sis tseem ua haujlwm tau zoo. Thaum lub zog rov txuas dua lub moos yuav tsum tau hloov kho tab sis lub tswb teeb tsa yuav nyob. Lub moos los sib nrug ncaj yooj yim. Muaj plaub tus ntsia hlau nyob hauv qab thiab peb tus ntsia hlau uas ua lub khawm PCB pawg thawj coj txuas rau sab saum toj ntawm rooj plaub. Txhawm rau tshem tawm sab saum toj thiab nkag mus rau lub LCD tau zoo dua, koj yuav tsum tau xov 9v clip hla lub qhov hauv qab ib nrab. Pem hauv ntej LCD tawm thiab thaum tshuaj xyuas, muaj ob peb qhov sib txawv. Kuv pom lub tshuab hloov pauv, tus neeg hais lus piezoelectric rau lub tswb, qee qhov diodes rau lub khoos phis tawj hloov pauv, qee cov nyees khawm rau cov tswv yim, thiab lub moos saib uas zoo li muaj tag nrho cov moos nyob hauv qab nws. Kuv pom hauv av thiab pib tshawb nrhiav tam sim ntawd. Ua tib zoo saib xyuas thaum ua qhov no ntawm koj lub tswb, TUS NEEG UA HAUJ LWM HAUV TSEV KAWM NTAWV TXHUA TUS ZOO TSHAJ PLAWS ZOO TSHAJ PLAWS ZOO TSHAJ PLAWS Kuv tau sau tseg ntawm qhov hluav taws xob ntawm txhua tus pin thaum lub tswb nrov tau tawm thiab thaum lub tswb tau qhib. Kuv tau cia siab rau tus pin uas muab qhov zoo 5v logic voltage thaum lub tswb tau qhib thiab 0v thaum lub tswb raug kaw. Kuv tsis yog tus muaj hmoo tab sis qhov hluav taws xob uas mus rau tus hais lus tau muab qhov hluav taws xob sib txawv los ntawm 9.5v-12.5v. Kuv xav tias kuv tuaj yeem siv qhov no. Kuv kuj pom tus pin cim VCC uas muab qhov hluav taws xob sib txawv los ntawm 10v-12v. Qhov no los rau hauv kev ua si tom qab thaum tsim lub zog siv hluav taws xob rau lub microcontroller. Alarm Output Circuit Kuv tau xaim hlau rau hauv av thiab ib qho rau tus pin tswb thiab pib ua haujlwm hauv Circuit kom tsis txhob tawm qhov hluav taws xob. Kuv xav tias kuv tuaj yeem siv 5v tus tswj hwm tab sis kuv tsuas yog muaj tus tswj kev hloov pauv tso ib puag ncig. Kuv tau ua qee qhov lej thiab kuv qhov txiaj ntsig tau muab qhov hluav taws xob qis dua 5v. Kuv tinkered me ntsis thiab swapped resisters kom txog thaum nws muab 5v kuv xav tau. Kuv siv 470uF capacitor ntawm lub tswv yim txhawm rau ua kom tawm qhov hluav taws xob. Nrog lub capacitor, qhov hluav taws xob tsuas yog sib txawv ntawm 10.5v-10v. Hauv qab no yog cov txheej txheem ntawm kuv tau siv los ua kom kuv lub tswb tso tawm thiab daim duab ntawm cov khoom ua ke ntawm lub khob cij.

Kauj Ruam 2: Lub Hwj Hwj Hwj Hwj Hwj Hwj Hwj Hwj Hwj Hwj Hwj Hwjchim ci LED, thiab thaiv

Lub hwj chim muab hluav taws xob, LED tsav Circuit, thiab thaiv
Lub hwj chim muab hluav taws xob, LED tsav Circuit, thiab thaiv
Lub Hwj Hwj Hwj Hwj Hwj Hwj Hwj Hwjchim, LED Tsav Circuit Court, thiab thaiv
Lub Hwj Hwj Hwj Hwj Hwj Hwj Hwj Hwjchim, LED Tsav Circuit Court, thiab thaiv
Lub Hwj Hwj Hwj Hwj Hwj Hwj Hwj Hwjchim, LED Tsav Circuit Court, thiab thaiv
Lub Hwj Hwj Hwj Hwj Hwj Hwj Hwj Hwjchim, LED Tsav Circuit Court, thiab thaiv

Lub Hwj Huam Muab Hluav Taws Xob Yog tias kuv yuav tsum txuas tus microcontroller ncaj qha mus rau Vcc ntawm lub moos, kuv yuav tshuab nws tawm (zoo tsis yog tiag tiag, tab sis ua rau nws tsis muaj txiaj ntsig). Kuv yuav tsum tau kho qhov voltage thiab coj nws mus rau 5v. Kuv siv cov txheej txheem tswj hwm yooj yim uas siv tsuas yog ob lub capacitors thiab 5v tus tswj hwm. Kuv tau mus rau lub tsev kawm ntawv lab thiab nyob ntawm 5v tus tswj hwm hauv cov thoob khib nyiab. Kuv tau txuas lub Circuit Court thiab sim nws tawm. Nws muab qhov zoo thiab ruaj khov 4.99v. LED Tsav Circuit Vim tias ATMega168 tsuas tuaj yeem xa txog 16mA ntawm tam sim no rau txhua qhov ntawm nws cov digital outputs, tus tswj tam sim no xav tau los ua kom lub zog LEDs. Kuv pom qhov kev sib tham no ntawm Arduino cov rooj sib tham pab thiab nws zoo li zoo ib yam thiab yooj yim hauv Circuit. Txhawm rau coj lub teeb ntawm LEDs, Kuv txiav txim siab siv lub teeb pom kev los ntawm lub teeb nyem. Lub teeb nyem kuv yuav muaj peb lub qhov rau peb LEDs. Kuv txiav txim siab los zom lawv kom loj dua thiab muab plaub rau hauv txhua lub qhov, yog li piav qhia txoj hauv kev kos kab hluav taws xob. Qhov xov tooj Thaum kuv xam tawm kuv tuaj yeem ua tiav siv lub moos Vcc thiab lub tswb tso tawm, Kuv txiav txim siab los txuas qee cov xov hlau nyias thiab xov lawv tawm los ntawm ib lub qhov nyob rau sab. Kuv kuj muaj lub tswv yim ntxiv lub voj nyob hauv kuv qhov kev tswj hwm microcontroller los ua nkauj nkauj tsis yog lub tswb nrov. Kuv tau siv ob lub xov hlau ntev dua rau tus neeg hais lus piezoelectric thiab xov rau sab ntawd ib yam. Kuv siv qee cov xaim hluav taws xob txiav tawm qhov me me me me nyob rau ib nrab ntawm lub moos thiab ntsaws txhua yam rov qab ua ke.

Kauj Ruam 3: Hooking Up the ATMega168 thiab Tsim Cov Qauv

Hooking Up the ATMega168 and Building the Prototype
Hooking Up the ATMega168 and Building the Prototype
Hooking Up the ATMega168 and Building the Prototype
Hooking Up the ATMega168 and Building the Prototype
Hooking Up the ATMega168 and Building the Prototype
Hooking Up the ATMega168 and Building the Prototype
Hooking Up the ATMega168 and Building the Prototype
Hooking Up the ATMega168 and Building the Prototype

Hooking the ATMega168 Muaj tsuas yog ob peb tus pin uas yuav tsum tau txuas nrog rau ATMega168 kom khiav. Kuv pom qhov pinout ntawm ATMega168 ntawm https://www.moderndevice.com/Docs/RBBB_Instructions_05.pdf kev sib txuas yog raws li hauv qab no: Rau Vcc-Pin 1 rau Vcc nrog 10k resistor. -Pin 7 thiab Pin 20 rau VccTo Av-Pin 8 thiab Pin 22 rau Av-Pin 21 rau hauv av nrog. 1uF electrolytic capacitorInput-Pin 4 (Digital pin 2) txuas nrog kuv lub xov tooj cua tswb hais lus-Pin 16 rau lub tswv yim ntawm LED tsav tsheb Circuit Clock-16Mhz Crystal-Ib ceg rau Pin 9 lwm ceg mus rau Pin 10--11 Kev Sib Txuas hauv txhua qhov-Nco tseg: Kuv ntseeg tias kuv tuaj yeem txuas qee lub kaus mom rau ob txhais ceg siv lead ua tab sis txij li kuv qhov kev zov me nyuam tsis xav tau lub moos raug, kuv tau tso nws tseg ib yam. Kuv siv lub tswb ceeb toom cov lej digital ntawm qhov tsis sib xws, lwm tus lej digital yuav tsum ua haujlwm. Tus hais lus piezoelectric thiab LEDs yuav tsum txuas nrog Digital PWM Pin lossis lawv yuav tsis ua haujlwm. Tsis tas li, kuv tsis tuaj yeem pom tus qauv zoo hauv Dav dawb hau rau tus lej 28 tus pin yog li kuv tsuas yog MS pleev xim rau nws tag nrho ua ke: D Thov txim yog tias nws zoo li tsis meej pem. Nug cov lus nug yog tias koj xav tau! Kuv tau tsim daim duab thaiv zoo ib yam los pab nrog kev nkag siab qhov twg txhua yam mus lossis los ntawm. Kev Tsim Tus Qauv --- Cov Npe Cov Npe --- Tswb Tawm Circuit -LM317T Kho Tau Zoo Voltage Regulator (Koj tuaj yeem siv 5v tus tswj hwm, kuv tsuas yog muaj qhov no) ib qho) -1k Ohm Resistor -3.8k Ohm Resistor -470uF Electrolytic CapacitorPower Supply -UA7805C 5v Regulator -100uF Electrolytic Capacitor -10uF Electrolytic CapacitorLED Tsav Circuit -2N3904 -150 Ohm (Koj tuaj yeem sim nrog qis dua lossis siab dua qhov muaj nuj nqis nyob ntawm koj cov LEDs) -1k Ohm ResistorMicrocontroller -28 Pin Socket (Yeem tab sis kuv rov ua dua kuv ATMega168 ntau zaus nrog kuv Arduino) -ATMega168 -.1uF Electrolytic Capacitor -16 MHz Crystal -10k Ohm ResistorMisc Cov Khoom Siv -Prototyping Perf Board -Prototyping Board Ob txhais ceg thiab Screws -Wire Thaum kuv tsim qauv kuv lub Circuit Court Kuv tau tsim txhua ntu ntawm lub khob cij, ntsuas nws, thiab xa nws mus rau daim txiag ntoo. Kuv pib nrog lub tswb ntsuas hluav taws xob tso tawm thiab xyuas kom nws ua haujlwm raug. Tom qab ntawd kuv tau txav mus rau qhov faib khoom siv hluav taws xob, tom qab ntawd tus tsav tsheb LED, thiab ua tiav nrog lub microcontroller Circuit. Tab sis, pom raws li koj tsis tas yuav sim lub Circuit Court thiab ua kom ntseeg tau tias cov ntsiab lus ua haujlwm, txij li kuv tau ua tiav qhov ntawd, koj tsuas tuaj yeem tsim tag nrho Circuit. Xyuas kom koj tau txais cov hluav taws xob raug ntawm qhov chaw raug. 0v ntawm qhov tso tawm ntawm lub tswb ntsuas hluav taws xob thaum lub tswb tawm thiab 5v thaum nws nyob. 5v ntawm qhov tso tawm ntawm cov khoom siv hluav taws xob. Tsis txhob lo lub ATMega168 hauv lub qhov ntsaws tseem tsis tau, nws yuav tsum tau programmed. Kuv tuaj yeem siv daim ntawv me me los yog txiav kuv li tab sis kuv txiav txim siab tso nws ib leeg. Nws tsis loj heev. Tom qab lub Circuit Court tau pib ua qauv, kev tsim kho ntawm LED teeb tuaj yeem pib.

Kauj Ruam 4: Tsim LED "Teeb"

Tsim lub LED
Tsim lub LED
Tsim lub LED
Tsim lub LED
Tsim lub LED
Tsim lub LED
Tsim lub LED
Tsim lub LED

Triple Quad LED Bulb !!!! "'Yog tias koj xav tau, koj tuaj yeem hla cov kauj ruam no thiab siv ib qho LED los ntsuas koj lub Circuit Court. Koj tuaj yeem rov qab los rau qhov no thaum koj tau lees paub lub Circuit Court thiab ua haujlwm lawm. LEDs vim tias kuv tsis muaj qhov pom kev ci ci ntxiv blues sab laug. Kuv tau hnov xiav pab tau zoo dua nrog SAD. Kuv tau txiav txim siab Txhim plaub LEDs rau hauv txhua lub qhov thiab kuv xav tau ib txoj hauv kev los xaim lawv tag nrho. Kuv tuaj nrog cov txheej txheem no uas muag plaub LEDs ua ke thiab tom qab ntawd txuas peb ntawm cov "plaub LEDs" ua ke. Txhua LEDs nyob ua ke, ua kom qhov hluav taws xob zoo ib yam li ib qho LED thiab ua kom muaj zog tam sim no. Qhov no yog qhov teeb meem LED tsav tsheb. Protip: Cov koob me me ntawm lub qhov ntswg pabStep1: Tuav ob lub LEDs ua ke nrog hauv av coj mus kov. Cov tiaj tiaj ntawm LEDs yuav tsum zaum ntawm ib sab. Ntau qhov kawg ntawm koj cov soldering iro n nrog qee lub lauj kaub thiaj li muaj cov kua dej tso rau ntawm qhov taub. Ceev nrooj kov ob lub hauv paus ua rau koj cov hlau txuas kom ze rau LED raws li koj tuaj yeem ua tau. Yog tias koj tso cov lus taw qhia rau qhov ntawd ntev, cov hlau lead yuav sov thiab nws yuav tsis zoo li qub. zaum ib sab ntawm lwm khub yaug. Kuv sanded cov LEDs los pab diffuse lub teeb me ntsis. Tam sim no, khoov cov coj raws li qhia. Zoo li nyuaj rau thaij duab ntawm tus txheej txheem tab sis pib khoov qhov ua tau zoo sab nrauv. Khoov qhov tsis zoo coj mus rau sab flattened thiab ncaj ncaj kom thaum koj muab ob khub ua ke, plaub qhov kev coj tsis zoo tuaj tag nrho ua ke ua ib qho loj. Noj ob khub, tuav lawv ua ke. Cov pins tsis zoo yuav txhua yam nyob hauv qhov chaw. Kov lawv nrog koj cov hlau txuas kom fuse lawv tag nrho ua ke. Tam sim no, khoov ib qho ntawm qhov ua tau zoo nyob ib puag ncig sab nraum ntawm plaub lub LED, muag ntawm txhua qhov txuas. Kaw tag nrho tab sis ib qho ntawm qhov ua tau zoo tawm ntawm ib qho zoo thiab ib qho tsis zoo. Koj ua tiav! Tam sim no ua ob ntxiv:] Thaum koj muaj peb lub quad LEDs, nws yog lub sijhawm kom haum lawv rau hauv lub teeb nyem. Kuv yuav lub teeb nyem no rau $ 3 ntawm lub khw duas las. Nws yog dorcey thiab tag nrho cov ntu sib cais, yog li nws yooj yim nkag tau mus rau txhua ntu. Kuv siv cov nyiaj cuam tshuam thiab lub khob dub rov qab. Lub khob hliav qab dub tuaj yeem hle nws cov khoom hlau tawm hauv daim yas xwb. Nws tau siv tom qab txhawm rau txhawm rau lub teeb rau lub caj dab kho tau. Nyob ntawm lub teeb nyem uas koj pom, koj yuav tsum ua kom haum koj cov LEDs ntawm lub caj dab kho tau sib txawv. Kuv tau sim nrhiav lub teeb pom kev zoo uas yuav muaj nyob hauv ntau qhov chaw. Qhov 4: Kuv tau siv lub dremel coj los nthuav dav peb lub qhov hauv lub tsom iav. Tom qab ntawd kuv thawb txhua ntawm plaub plaub LEDs rau hauv lawv lub qhov nrog qhov tsis zoo coj mus rau sab hauv. Khoov thiab cuam tshuam qhov tsis zoo thiab ua tau zoo ua ke ua tiav TRIPLE QUAD LED BULB! Tom qab ntawd kuv tau xaim ntawm ob qhov ntev, cov xov hlau nyias uas tom qab ntawd yuav tau muab tso rau hauv lub caj dab uas kho tau thiab muab txuas rau lub rooj tsav xwm loj. Kuv kuj muab qee cov kua nplaum rau ntawm txhua lub pob quad LED kom paub tseeb tias lawv yuav nyob hauv qhov chaw.

Kauj Ruam 5: Kho caj dab thiab puag

Adjustable Neck thiab Base
Adjustable Neck thiab Base
Adjustable Neck thiab Base
Adjustable Neck thiab Base
Adjustable Neck thiab Base
Adjustable Neck thiab Base

Lub caj dab kho tau txhawm rau coj ncaj qha "hnub ci" uas lub tswb tswb tsim tawm, Kuv tau xaiv los ntxiv lub caj dab kho tau. Thaum xub thawj kuv xav tias kuv tuaj yeem siv txoj hlua txuas rau lub caj dab tab sis txij li kuv tau txwv cov cuab yeej thiab kho vajtse hauv tsev kawm qib siab, Kuv tsis tuaj yeem ruaj ntseg nws mus rau lub hauv paus zoo heev. Ntxiv rau, nws nyuaj heev rau khoov thiab tsis kho kom zoo. Kuv tau xaus siv tsuas yog ib qho ntawm cov xov hlau sab hauv ntawm txoj kab. Nws muab tawm zoo nkauj heev. Kuv muaj peev xwm txuas nws yam tsis muaj kho vajtse, tsuas yog lub qhov hauv paus. Kuv pib tawm los ntawm kev noj ib txoj hlua tawm ntawm txoj kab thiab qhwv nws ncig sab nraud, tsim kom muaj txoj hlua zoo. Tom qab ntawd kuv twisted tsuas yog xaim tawm ntawm kab. Kuv mam li nthuav nws tawm thiab txuas nws rau lub khob dub uas kuv tau hais ua ntej. Lub khob hliav qab dub los nrog qee cov khoom siv hluav taws xob los ntawm lub teeb nyem txuas rau nws tab sis nws yooj yim tshem tawm. Tam sim no koj tsuas yog lub khob hliav qab yas, ua ob lub qhov rau ntawm ntug, txhua qhov loj txaus rau xaim kom haum los ntawm. Kuv pub nws thiab tom qab ntawd nqis thiab tawm ntawm lwm sab, curling nws hauv qab. Tom qab ntawd kuv siv cov xaim xaim, hloov pauv tau los ntawm txoj kab txuas kom ruaj ntseg ntxiv. Ob lub xov hlau ntev uas tau muab pauv ua ntej tuaj yeem pub los ntawm lub khob dub rov qab thiab lub teeb tuaj yeem sib tw nyob hauv qhov chaw. Kuv ntxiv kua nplaum me ntsis kom nws txuas. Lub hauv paus Txhawm rau txhawm rau kho lub caj dab, Kuv tau hlais 7/64 nti qhov hauv cov ntoo hauv qab thiab kaw cov xaim hauv. Ob txoj hlua hluav taws xob LED tuaj yeem qhwv ncig lub caj dab thiab muab pov rau ntawm pawg thawj coj saib. Txhawm rau txuas lub rooj tsavxwm, Kuv tau siv plaub lub PCB mounts. Kuv muaj lub qhov tho me ntsis muaj, tab sis nws tsis tsim nyog. Yog tias koj tsis muaj xov me ntsis, tsuas yog laum lub qhov uas me dua li cov ntsia hlau thiab ntswj nws nrog qee lub pliers. Kuv txuas lub moos mus rau lub hauv paus uas siv qee lub velcro. Kuv tsis tau ntsia nws txij li kuv lub moos muaj lub roj teeb thaub qab thiab thaum lub roj teeb tuag, nws yuav xav tau hloov. Thaum kawg, Kuv ntxiv qee cov roj hmab taw rau ntawm cov ces kaum.

Kauj Ruam 6: Txoj Haujlwm

Txoj Haujlwm
Txoj Haujlwm

Txhawm rau ua haujlwm rau koj li ATMega168 nrog USB txuas thiab Arduino pawg thawj coj, koj yuav xav tau ATMega168 nti uas muaj Arduino bootloader twb tau ua rau nws lawm. Nov yog txoj hauv kev yooj yim tshaj plaws, uas kuv tuaj yeem pom, txhawm rau ua haujlwm microcontroller. Thaum kuv yuav kuv lub rooj tsavxwm, kuv tau khaws ib qho ATMega168 ntxiv nrog lub bootloader los ntawm tib lub chaw muag khoom. Tej zaum koj yuav tsum tau them me ntsis ntxiv rau cov phiaj xwm ua ntej, tab sis nws tsim nyog rau kuv txij li thaum kuv tsis xav kom cuam tshuam nrog cov txuas txuas txuas txuas txuas lwm yam Kuv tau txuas cov cai ua.txt cov ntaub ntawv thiab.pde ntaub ntawv. Kuv tsis xav ua kom cov lus qhia no ntev los ntawm kev tshaj tawm tag nrho cov cai. Kuv siv qhov tseeb Arduino programing ib puag ncig: arduino-0015. Qhov kuv nyiam txog Arduino cov laug cam yog tias muaj ntau qhov piv txwv suav nrog nrog ib puag ncig, qhov chaw ib puag ncig yog dawb, thiab muaj qee qhov haujlwm ntau thiab pab nplooj ntawv nyob ntawd. Nws tseem yog qhov yooj yim heev los tsim pawg tswj hwm kom khiav koj txoj haujlwm ntawm nws tus kheej. Kuv tau sim tawm tswv yim rau qhov kev nkag siab zoo tshaj plaws yog li kuv yuav khaws cov lus piav qhia kom tsawg tshaj plaws. Kuv siv "Fading LED" piv txwv los ntawm BARRAGAN kom paub zoo txog qhov ntsuas qhov ntsuas qhov ntsuas siab (PWM) ATMega168 muaj peev xwm. Kuv muaj peb nqe lus "yog". Thawj qhov ploj hauv qib qis dua (0-75 tawm ntawm 255) qeeb vim tias qib siab dua zoo ib yam. Qhov thib ob ploj mus nyob rau qib qis qis dua sai dua. Tag nrho fade hauv cov txheej txheem yuav siv 15 feeb. Thaum cov LEDs tau mus txog qhov ci tag nrho, lub suab nkauj yuav ua si kom txog rau thaum lub tswb raug kaw. Qhov thawj lub tswb yog qhov txaus ntshai heev. Nws tsuas yog lub tswb nrov nrov uas txhua tus neeg ntxub. Kuv xav tias, vim li cas ho tsis siv tus hais lus los ua zaj nkauj zoo siab kom sawv los? Txij li thaum kuv tus hluas nkauj hlub The Beatles thiab kuv paub Hav Jude muaj suab nkauj yooj yim haum, Kuv txiav txim siab siv nws. Lub voj voos xwmfab tau tsim thiab tom qab ntawd PWM tau siv los sau cov lus ntawm Hey Jude ntawm tus neeg hais lus piezoelectric. Txhawm rau tsim cov nkauj, kuv tau ua piv txwv "Melody" los ntawm Arduino ib puag ncig piv txwv. Kuv pom qee cov nkauj yooj yim thiab txhais cov ntawv ntawd rau hauv cov ntawv sau tseg. Kuv yuav tsum tau nce tus naj npawb ntawm cov ntawv uas tau ua rau 41 thiab ua lej kom paub tus lej qis dua li 'c' uas tau muab. Tom qab ntawd kuv tau cog cov cai ntawd rau hauv kuv tus lej tseem ceeb. Txhawm rau ua haujlwm rau lub nti, koj yuav tsum xub teeb tsa lub USB tsav tsheb uas muab nrog Arduino ib puag ncig. Tom qab ntawd, xaiv koj lub rooj tsavxwm los ntawm cov ntawv qhia zaub mov nco thiab xaiv qhov tsim nyog COM chaw nres nkoj. Tag nrho cov txheej txheem no tau piav qhia ntxaws ntawm no: https://arduino.cc/en/Guide/WindowsAnd uas yog hais txog nws! Tom qab ua haujlwm ntawm ATMega168, nws tuaj yeem raug tshem tawm ntawm Arduino thiab dhau mus rau hauv qhov kev sim ua qauv!

Kauj Ruam 7: Xaus

Xaus
Xaus
Xaus
Xaus
Xaus
Xaus

Tom qab kuv ua tiav lub tswb tswb sawv ntxov, Kuv txawm hais txog qee qhov kev txhim kho lossis cov yam ntxwv ntxiv uas kuv tuaj yeem tau ntxiv. Ib qho ntawm cov tswv yim kuv tuaj nrog yog qhov hloov pauv kom tig lub teeb ntawm qhov ci ci kom nws tuaj yeem siv ua lub teeb nyeem ntawv. Lwm qhov hloov pauv tuaj yeem siv los qhib lub tswb nrov lossis qhib. Lub rooj tsav xwm hauv Circuit Court kuj tseem tuaj yeem ua tau me dua. Kuv nyuam qhuav muaj qhov no tso ib puag ncig thiab txiav txim siab tso nws rau hauv ib thooj. Qhov khoom kawg ntawm no nws yog! Kuv tau ntxiv ob peb daim duab ntawm nws zoo li cas thaum lub teeb ci hauv. Ib zaug ntxiv, yog tias koj muaj lus nug txog qhov haujlwm no, tsuas yog nug, Kuv nyiam pab!

Pom zoo: