Cov txheej txheem:
- Kauj Ruam 1: Cov ntsiab lus ntawm Duino644 Cov Khoom
- Kauj Ruam 2: Soldering Duino644 Board
- Kauj Ruam 3: Txuas rau hauv Zaub thiab kaw lub moos
- Kauj ruam 4: Npaj SD Card
- Kauj Ruam 5: Khoos Phis Tawj Duino644 Nrog rau "Ntse Clock 2" Sketch
- Kauj Ruam 6: Fais Lub Sijhawm thiab Txaus Siab Rau Nws
Video: Sib dhos "Wise Clock 2" (Arduino-based Alarm Clock With Many of Extra Features): 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:31
Phau ntawv qhia no qhia yuav ua li cas sib sau cov khoom siv rau Wise Clock 2, qhib qhov chaw (kho vajtse thiab software) txoj haujlwm. Hauv kev xaus, qhov no yog qhov Wise Clock 2 tuaj yeem ua tau (nrog rau qhov qhib qhov software tso tawm tam sim no): - tso saib lub sijhawm tam sim no thiab hnub tim; - nyeem cov neeg siv hloov kho cov ntaub ntawv los ntawm daim npav SD thiab tso tawm nws cov ntsiab lus (uas feem ntau yog cov lus hais tawm, yog li "paub qab hau" hauv lub npe); - muab lub tswb ua haujlwm; - muab kev tswj chaw taws teeb (infrared). Cov Wise Clock 2 cov khoom siv suav nrog hauv qab no: 1. Duino644 microcontroller board (raws li cov khoom siv npaj-rau-solder); 2. 16x32 (liab) LED matrix zaub; 3. lub thawv ntawv (ob daim ntawv acrylic thiab cov cuab yeej xav tau). Cov theem hauv qab no yuav qhia yuav ua li cas thiaj tsim Wise Clock 2, suav nrog: - yuav ua li cas thiaj li txuas tau lub Duino644 board; - yuav ua li cas txuas cov zaub; - yuav ua li cas kaw lub moos; - yuav ua li cas thiaj ua haujlwm tau zoo (npaj daim npav SD, teem sijhawm thiab lwm yam).
Kauj Ruam 1: Cov ntsiab lus ntawm Duino644 Cov Khoom
Duino644 yog lub npe ntawm microcontroller board siv hauv Wise Clock 2. Duino644 cov khoom muaj cov hauv qab no: - PCB nrog daim npav SD daim npav ntsaws rau nws; - ATmega644 nti thiab 40-pin qhov rau nws; -DS1307 nti (tus tswj lub sijhawm tiag tiag) hauv pob 8-pin DIP, thiab lub qhov (socket) 8-pin rau nws; -24LC256 EEPROM nti hauv pob 8-pin DIP, thiab lub qhov (socket) 8-pin rau nws; - CR1220 me me npib cell roj teeb, thiab nws cov yas yas yas; - 16MHz siv lead ua thiab ob lub 22pF capacitors; - 32768Hz siv lead ua; - hais lus micro; - txoj cai kaum lub micro hloov (4 daim); - USB miniB-hom txuas; 2x8-pin poj niam lub taub hau (2 daim); - siv siab xiav LED hauv 1206 pob; - 40-tus pin poj niam lub taub hau; - L78L33 qhov ntsuas hluav taws xob; -JST 2-tus pin txuas hluav taws xob thiab JST 2-tus pin fais fab txuas nrog kab; - infrared txais IC thiab 3-tus pin qhov rau nws; -6-pin txoj cai kaum tus txiv neej lub taub hau (rau FTDI txuas); - 10K resistors (10 daim); - 4K7 resistors (3 daim); - 75R resistor; - 100nF decoupling capacitors (3 daim); 2x3-pin txiv neej lub mloog pob ntseg (rau ICSP txuas). Thaum peb txheeb xyuas peb muaj tag nrho cov khoom npaj, peb tuaj yeem npaj mus rau qhov muag.
Kauj Ruam 2: Soldering Duino644 Board
Txawm hais tias tsis pom zoo raws li cov khoom siv pib, Duino644 yuav tsum yog qhov yooj yim rau cov laug. Tsuas yog ob qho khoom siv xav tau qee qhov kev paub dhau los (thiab lub qhov muag zoo thiab khov kho tes) vim tias lawv tau teeb tsa saum npoo: ib qho yog USB miniB txuas, ib qho tiv thaiv zoo tiv thaiv kab mob, uas tuaj yeem siv cua sov ntau, thiab lwm qhov yog 2-dav hlau xiav LED, hauv (ib ntawm) pob SMD loj tshaj. 1. (Duab 2.1) Cia peb pib nrog USB miniB txuas. Muab nws tso kom 2 pob yas yas nkag mus rau hauv lawv lub qhov hauv PCB, thiab lub qhov rooj txuas ze rau ntawm lub rooj tsavxwm. Solder plaub sab "pob ntseg" ua ntej kom ruaj ntseg nws, thiab txuas ntxiv nrog 5 tus pin txuas. Siv lub tshuab tsom iav kom paub tseeb tias tsis muaj cov laug txuas txuas nyob nruab nrab ntawm cov ntawd. Txhawm rau tshem tawm cov choj txuas tau, siv de-soldering wick. Siv koj lub sijhawm, qhov no tsis yog (xws li) qhov tiv thaiv kub. 2. Tom ntej no, peb yuav solder lub 75 ohm (ntshav, ntsuab, dub, kub, xim av) resistor hauv nws qhov chaw, cim R14. 3. Cia peb siv qhov kev paub dhau los tau siv lub tshuab txuas SMD txuas rau lub LED. Kev taw qhia ntawm cov khoom no yog qhov tseem ceeb, yog li nws yuav tsum tau muab tso kom raug. Lub cathode (lub davhlau ya nyob twg tsis zoo) ntawm LED tau cim nrog lub teev ntsuab (tsom iav qhov tseeb yeej pab tau ntawm no). Ntawm PCB, cathode tau cim nrog 3 tus lej. Qhuav ib co kua nplaum rau ntawm daim kab xev cathode, tom qab ntawd tso lub LED lub cathode hla lub ncoo ntawd thiab txhuam nrog cov blob uas twb muaj lawm. Tom qab ntawd txhuam cov anode ncoo. 3. (Duab 2.2) Ntawm qhov no peb ua thawj qhov kev txheeb xyuas, kom paub tseeb tias pawg thawj coj tau txais lub zog los ntawm USB. Tsuas yog ntsaws rau hauv USB cable thiab LED yuav tsum dhau los ua xim xiav. Peb muaj qhov hluav taws kub! 4. Peb yuav tom ntej solder cov resistors. Pib nrog peb tus 4K7 resistors (daj, ntshav, dub, xim av, xim av): R5, R6, R7 (kev taw qhia tsis tseem ceeb). Tom qab ntawd muab tso thiab tso rau qhov seem 10K resistors (xim av, dub, txiv kab ntxwv, kub): R1, R2, R3, R4, R8, R9, R10, R11, R12, R13. 5. (Daim Duab 2.3) Tom ntej no, tso thiab tso lub IC ntsawb, pib nrog 40 tus pin loj thiab txuas ntxiv nrog 2 tus me me 8 tus pin. Them sai sai rau qhov chaw nyob kom lawv cov ntawv sib dhos ua ke nrog cov hauv silkscreen. Qhov no yuav pab tom qab txhawm rau txhawm rau ua kom raug cov kab hluav taws xob sib xyaw lawv tus kheej. 6. Solder ob lub muaju nyob hauv qhov chaw cim "XTAL" thiab "Q2", feem (lawv cov kev taw qhia tsis tseem ceeb). 7. Solder 22pF capacitors (cov xim txiv kab ntxwv) hauv lawv qhov chaw, cim C1 thiab C2 (kev taw qhia tsis tseem ceeb). 8. Solder peb decoupling 100nF lub capacitors (xim xiav) hauv lawv qhov chaw, cim C3, C5, C8 (kev taw qhia tsis tseem ceeb). 9. Muab thiab muab cov yas yas yas yas tso rau hauv nws txoj haujlwm cim, tom qab ntawd ntxig lub npib roj teeb rau hauv tus tuav (tus ncej zoo tig rau lub rooj tsavxwm, tsis pom lub ntsej muag). 10. Ntxig thiab muab ob lub taub hau 2x8 poj niam tso rau hauv lawv txoj haujlwm cim (sab kaum ntawm pawg thawj coj saib). Cov no yog cov txuas rau lub vaj huam sib luag zaub. 11. Siv cov plaub lub micro hloov (cov nyees khawm thawb) hauv lawv txoj haujlwm cim: - peb mus rau sab saum toj ntawm lub rooj tsavxwm thiab siv los ntawm lub sijhawm ua haujlwm (teeb tsa lub tswb, nkag mus rau cov ntawv qhia zaub mov thiab lwm yam); - ib qho mus rau sab laug ntawm lub rooj tsavxwm thiab yog khawm rov pib dua. 12. Solder lub micro speaker hauv nws qhov chaw cim, nyob rau sab saum toj ntawm lub rooj tsavxwm (kev taw qhia tsis tseem ceeb). 13. Cuam tus 3-tus pin poj niam lub taub hau nyob rau sab saud sab laug ntawm lub rooj tsavxwm (cim IR). Qhov no yog lub qhov (socket) rau lub tshuab txais hluav taws xob. Ntxig tus IR txais rau hauv lub qhov (socket), tig rau sab hauv ntawm lub rooj tsavxwm. Tom qab ntawd khoov nws lub dav hlau 90 degrees, yog li nws xaus lub ntsej muag (hauv kab ntawm TV tswj chaw taws teeb). 14. Ntxig rau L78L33 tus tswj hluav taws xob hluav taws xob nti, ua tib zoo saib xyuas nws cov kev taw qhia zoo ib yam ntawm daim iav. 15. Siv tus 6-pin txoj cai kaum tus txiv neej lub taub hau hauv qhov chaw cim FTDI. 16. (Daim Duab 2.4) Ntxig cov kab hluav taws xob sib txuas ua ke hauv lawv lub qhov (socket), them nyiaj tshwj xeeb rau lawv qhov kev taw qhia. Qhov loj ATmega644 nti muaj lub thais ntsej muag tig mus rau saum lub rooj tsavxwm. Lwm qhov ob daim me me muaj qhov thais rau hauv qab ntawm lub rooj tsavxwm. DS1307 yuav tsum tau muab tso rau hauv lub qhov (socket) ze rau lub npib roj teeb. 24LC256 yuav tsum tau muab tso rau hauv nws lub qhov (socket) ze rau hauv qab ntug ntawm lub rooj tsavxwm, raws li cim. Txog tam sim no, Duino644 microcontroller board tau sib sau ua ke thiab npaj rau kev sim (lossis siv). Nws yuav tsum zoo li ib qho ntawm daim duab 2.5. Tom ntej no, peb yuav ntsaws lub rooj teeb duab Tom qab ntawd, peb yuav teeb tsa ATmega644 nti nrog qhov tseeb Wise Clock sketch, dhau los ntawm Arduino IDE.
Kauj Ruam 3: Txuas rau hauv Zaub thiab kaw lub moos
Ntxig qhov tshiab tshiab Duino644 tso rau sab nraum qab ntawm lub vaj huam sib luag zaub (zoo li hauv daim duab 3.1), ua kom ntseeg tau tias ob qhov txuas txuas (txiv neej lub taub hau ntawm lub vaj huam sib luag zaub thiab poj niam lub taub hau ntawm Duino644 board) ntsaws rau ib leeg. Nias maj mam kom txog thaum cov kab txuas txuas tag nrho thiab xyuas kom ob lub rooj sib txig sib luag. Qhov no tsuas yog kev txuas nruab nrab ntawm ob lub laug cam (tsis muaj cov txuas txuas lossis cov ntsia hlau), thiab nws yuav raug tiv thaiv los ntawm lub thaiv. Cov ntaub thaiv npog muaj ob daim plexiglass daim hlau sib tsoo ob lub laug cam (Duino644 thiab cov zaub). Cov phaj no tau tuav nrog cov ntsia hlau txuas ua ke (thiab ntsia hlau thiab txiv ntseej). Cia peb ua txuas nrog txuas cov nylon dawb spacers (standoffs) ntawm ob sab ntawm lub vaj huam sib luag zaub, hauv plaub qhov ntawm lub ces kaum. Cov spacers luv mus rau pem hauv ntej ntawm cov zaub, ntev dua yog ntsia hlau rau sab nraub qaum (raws li qhia hauv duab 3.2). Nco tseg lub tshuab ntxhua khaub ncaws siv nrog lub tshuab luv luv, lawv tsim qhov chaw me me nruab nrab ntawm lub vaj huam sib luag plexiglass pem hauv ntej thiab LED tso nws tus kheej, yog li lawv tsis kov. Tom qab cov spacers tau nruj, muab tso thiab ntsia hlau rau hauv lub phaj plexiglass pem hauv ntej, tom qab ntawd mus rau phaj tom qab. Zuaj tag nrho cov ntsia hlau thiab txiv ntseej thaum lub thawv ntim rau ntawm qhov chaw kab rov tav (lub rooj), kom ntseeg tau tias lub rooj sib txoos nws ruaj khov thiab tsis muaj qhov cuam tshuam. Tom qab peb npaj daim npav SD, peb yuav tsum tau npaj los ntsuas lub moos.
Kauj ruam 4: Npaj SD Card
Wise Clock 2 qhia cov lus hais tawm los ntawm cov ntawv sau cia hauv SD daim npav (duab 4.1). Lub npe ntawm cov ntawv no yog "quotes.txt" thiab yog ib feem ntawm cov ntawv zip uas muaj cov duab kos (rub tawm los ntawm no). Nws kuj tseem tuaj yeem tsim los ntawm kos, ua ASCII cov ntawv sau, kom suav nrog ib tus nyiam cov lus hais, hauv qhov xav tau ua ntu zus. Tsuas yog txwv (hauv software) yog qhov ntev ntawm kab, uas tsis tuaj yeem tshaj 150 cim. Cov kab sib cais nrog CR/LF (thauj rov qab/kab pub, lossis ASCII cov lej 13/10). Daim npav SD yuav tsum tau ua raws li FAT (tseem hu ua FAT16). Qhov no tuaj yeem ua tiav hauv Windows, los ntawm kev xaiv "Hom" hauv File Explorer, uas qhia txog lub thawv sib tham uas pom hauv daim duab 4.2. Nco tseg: Lub peev xwm siab tshaj plaws uas FAT16 tuaj yeem ua tau yog 2GB. Lwm cov ntaub ntawv tseem ceeb ntawm SD card yog "time.txt", yuav tsum tau teeb tsa lub moos. Cov ntaub ntawv "Time.txt" muaj kab ntawv zoo li no: 12: 22: 45Z2009-11-14-6 uas yuav tsum tau hloov kho kom pom lub sijhawm tam sim no thiab hnub tim. Thaum lub moos tau siv lub zog (nrog daim npav SD tso), lub sijhawm thiab hnub tau nyeem los ntawm kab no yuav raug teeb tsa hauv lub sijhawm tiag tiag raws li lub sijhawm tam sim no thiab hnub tim, feem. Tom qab lub moos yog (tau txais) teeb tsa ntawm lub zog-ua haujlwm, cov ntaub ntawv "time.txt" tau cim tseg tias raug tshem tawm, yog li lub sijhawm tom ntej lub moos tau siv cov ntawv tsis pom. Ob daim ntawv, quotes.txt thiab time.txt, tuaj yeem pom cov ntawv zip uas muaj cov duab kos.
Kauj Ruam 5: Khoos Phis Tawj Duino644 Nrog rau "Ntse Clock 2" Sketch
1. Rub tawm Cov Ntawv Teev Npe Txawj Ntse los ntawm qhov chaw tshwj xeeb. 2. Ntxiv Sanguino cov tsev qiv ntawv rau koj Arduino IDE. (Duino644 yog saj ntawm Sanguino, yog tias koj xav tau. Nws tau sib xws nrog Sanguino thiab siv tib lub tsev qiv ntawv tsim los ntawm Sanguino pab pawg los txhawb lawv tus kheej pawg thawj coj. Thiab peb ua tsaug rau lawv.) 3. Tua tawm Arduino IDE thiab xaiv "Sanguino" raws li pawg phiaj (saib daim duab 5.1). 4. Qhib Lub Npe Txawj Ntse hauv Arduino IDE thiab muab tso ua ke. 5. Siv FTDI cable lossis FTDI breakout (txuas nruab nrab ntawm USB thiab 6-tus pin FTDI txuas ntawm Duino644 pawg thawj coj saib), xa cov ntawv sau ua ke (saib daim duab 5.2). Nco tseg: Cov cai hais los saum no tau sim thiab lees paub ua haujlwm nrog Arduino IDE version 17.
Kauj Ruam 6: Fais Lub Sijhawm thiab Txaus Siab Rau Nws
Tam sim no lub moos tau sib sau ua ke thiab ua haujlwm, nws yog lub sijhawm los txhawb nws nrog USB cable, zoo dua los ntawm USB adapter, zoo li cov uas tau siv los them iPhones thiab lwm yam khoom siv txawb (duab 2). Txaus siab rau nws!
Pom zoo:
[2021] Sib dhos Phau Ntawv Qhia rau Valenta Off-Roader: 23 Kauj Ruam
[2021] Sib dhos Qhia rau Valenta Off-Roader: Valenta Off-RoaderValenta Off-Roader yog Micro: me ntsis powered Off-Road RC tsheb. Nws yog Lego Technic sib xws thiab nruab nrog ob (x2) micro iav motors ntawm lub log tsheb tom ntej thiab (x1) ua-nyob rau hauv lub tog raj kheej servo raws li Roberval tshuav nyiaj li cas caj npab mechanism.3D Pa
DIY Oscilloscope Kit - Sib dhos thiab Qhia Teeb Meem: 10 Cov Kauj Ruam (nrog Duab)
DIY Oscilloscope Kit - Sib dhos thiab Qhia Teeb Meem: Kuv xav tau ntau zaus, thaum tsim qee cov khoom siv hluav taws xob oscilloscope los tshuaj xyuas qhov muaj thiab ua ntawm cov cim hluav taws xob. Txog tam sim no kuv tau siv lub qub Soviet (xyoo 1988) ib qho channel analog CRT oscilloscope. Nws tseem ua haujlwm tau zoo
Ntu 3: GPIO: ARM Sib dhos: Kab Follower: TI-RSLK: 6 Kauj Ruam
Ntu 3: GPIO: ARM Sib dhos: Kab Follower: TI-RSLK: Nyob Zoo. Nov yog ntu txuas ntxiv uas peb txuas ntxiv siv ARM sib dhos (tsis yog hom lus qib siab dua). Qhov kev tshoov siab rau Qhov Qhia Paub no yog Lab 6 ntawm Texas Instruments Robotics System Learning Kit, lossis TI-RSLK.Peb yuav siv lub mic
IOT123 - D1M CH340G - Sib dhos: 7 Kauj Ruam
IOT123 - D1M CH340G - Sib dhos: ESP8266 pawg thawj coj txhim kho yog qhov zoo mus rau pawg thawj coj rau koj li haujlwm IOT, tab sis nthuav tawm cov teeb meem yog tias lawv tau siv roj teeb. Nws tau sau tseg zoo li cas ntau yam ESP8266 kev txhim kho cov laug cam tsis muaj zog siv tau (ntawm no thiab ntawm no). Witty Develop… nyeem ntxiv
IOT123 - D1M BLOCK - TP4056 Sib dhos: 8 Kauj Ruam
IOT123 - D1M BLOCK - TP4056 Kev Sib Daws: D1M BLOCKS ntxiv cov ntaub ntawv tsis raug, daim ntawv lo, cov lus qhia polarity thiab kev tawg rau qhov nrov Wemos D1 Mini SOC/Shields/Clones. Qhov D1M BLOCK encapsulates lub roj teeb them nqi hluav taws xob. Qhov D1M BLOCK no tau tsim los ntsuas lub zog roj teeb rau D1M ESP12 BLOCK. T