Cov txheej txheem:

Xim Phab Ntsa Xim: 7 Cov Kauj Ruam (nrog Duab)
Xim Phab Ntsa Xim: 7 Cov Kauj Ruam (nrog Duab)

Video: Xim Phab Ntsa Xim: 7 Cov Kauj Ruam (nrog Duab)

Video: Xim Phab Ntsa Xim: 7 Cov Kauj Ruam (nrog Duab)
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Xim Ntsa Moos
Xim Ntsa Moos
Xim Ntsa Moos
Xim Ntsa Moos
Xim Ntsa Moos
Xim Ntsa Moos

Lub sijhawm no kuv nthuav qhia koj cov xim phab ntsa sib piv rau cov menyuam tsim qauv siv cov hlua LED.

Lub hauv paus ntawm lub moos yog siv peb daim kab xev LED thiab xim sib txawv los qhia lub sijhawm:

  • Hauv cov kab coj los puag ncig, xim ntsuab tau siv los qhia cov teev, xim liab los qhia txog feeb thiab xim xiav los qhia ob qho tib si, teev thiab feeb
  • Hauv 4 leds sawb, nyob rau xim liab, txhua tus coj sawv cev rau ib feeb peb yuav tsum ntxiv rau cov feeb cim los ntawm cov coj coj sawb
  • Hauv 6 kab leds, hauv cov xim ntshav, txhua tus coj sawv cev 10 vib nas this

Lub moos tau teeb tsa ntawm lub phaj pob tshab thiab nws tau tsim kom yooj yim mount thiab unmount nws ntawm cov xim sib txawv.

DS3231 Lub Sij Hawm Tiag Tiag Lub Sijhawm tau siv los tswj cov teev, feeb thiab vib nas this.

Lub moos tau siv lub roj teeb 3, 7 V koj tuaj yeem them nyiaj siv lub micro USB charger.

Nws zoo nkaus li zoo nyob hauv qhov tsaus ntuj. Kuv vam tias koj nyiam.

Khoom siv

  • Arduino NANO lossis microcontroller sib xws
  • Adjustable DC rau DC step-up voltage boost converter
  • DS3231 Lub Sijhawm Sijhawm Sijhawm Tiag
  • Lub roj teeb qub qub 3, 7 V 1000 mAh
  • Micro USB charger rau roj teeb
  • 60 Leds sawb
  • Ob tog ob sab PCB
  • Cov Pob Zeb Pob Zeb Pob tshab
  • Hlau
  • Cov khoom siv Soldering
  • Duab los qhia
  • Compass
  • Protractor

Kauj Ruam 1: Siv cov hlua LED

Soldering LED Strips
Soldering LED Strips
Soldering LED Strips
Soldering LED Strips
Soldering LED Strips
Soldering LED Strips

Siv kuv lub ncoo txiav, tus kws txiav txim plaub ntug thiab lub ntsuas phoo, kuv kos lub moos ncig thiab txoj haujlwm ntawm teev.

Txoj kab uas hla ntawm tus kheej yuav tsum zoo ib yam uas yog cov yas phaj uas koj tab tom yuav tsa koj lub moos.

Hauv daim duab thib ob koj tuaj yeem pom puag ncig LED sawb. Txhua lub leds tau muab muag ib qho los ntawm ib qho los ua lub ntsej muag ntawm lub moos. Koj tau coj mus rau hauv tus as khauj me me uas koj tuaj yeem pom ntawm txhua tus coj kom muab lawv tso rau hauv txoj kev yog. Kuv tau siv kab ntsuab rau cov ntaub ntawv tus pin, kab liab rau 5V tus pin thiab ib qho dub rau tus pin hauv av.

Hauv daim duab thib peb koj tuaj yeem pom qhov kev sim ntawm txhua daim kab xev LED ua ntej yuav teeb tsa hauv lub moos

Kauj Ruam 2: Muab cov kab xev LED tso rau hauv daim duab los qhia

Muab cov kab xev LED tso rau hauv ib daim duab los qhia
Muab cov kab xev LED tso rau hauv ib daim duab los qhia

Txiav ib daim duab kheej kheej. Qhib ob lub qhov me me hauv daim duab los kom dhau los ntawm lawv peb kab ntawm txhua kab hlua LED.

Kauj Ruam 3: Hlau thiab Txuas Cov Khoom Hluav Taws Xob

Hlau thiab Txuas Cov Khoom Hluav Taws Xob
Hlau thiab Txuas Cov Khoom Hluav Taws Xob
Hlau thiab Txuas Cov Khoom Hluav Taws Xob
Hlau thiab Txuas Cov Khoom Hluav Taws Xob

Cov kauj ruam kuv tau ua yog cov hauv qab no:

  1. Solder 330 ohmios resistor mus rau qhov kawg ntawm cov ntaub ntawv cable (ntsuab cable) ntawm txhua LED sawb raws li koj tuaj yeem pom hauv thawj daim duab
  2. Koom nrog txhua 5V cov kab hluav taws xob
  3. Koom nrog txhua cov kab hauv av
  4. Solder lub microcontroller, qib nce boost hloov pauv, lub micro USB them nyiaj, tus qauv DS3231 thiab hloov me me ntawm ob sab PCB
  5. Txuas lub micro USB them nyiaj rau lub roj teeb (nws tau muab tso rau hauv PCB)
  6. Siv cov kab ntawv hloov pauv kab xov tooj rau D2 tus pin hauv lub microcontroller
  7. Siv lub 6 LED sawb cov ntaub ntawv txuas rau D3 tus pin hauv lub microcontroller
  8. Siv lub 4 LED sawb cov ntaub ntawv txuas rau D4 tus pin hauv lub microcontroller
  9. Solder tus pin SDA ntawm DS3231 tus qauv rau A4 tus pin hauv lub microcontroller
  10. Solder SCL tus pin ntawm DS3231 tus qauv rau A5 tus pin hauv lub microcontroller
  11. Hlau thiab txuas cov kauj ruam nce ntxiv hloov pauv mus rau lub micro USB them nyiaj raws li koj tuaj yeem pom hauv daim duab thib ob
  12. Kho cov kauj ruam nce qhov hloov hluav taws xob rau 5 V cov zis
  13. Hlau thiab txuas me ntsis hloov los tswj lub zog raws li koj tuaj yeem pom hauv daim duab

Koj tau coj mus rau hauv tus account cov hauv qab no: qhov siab ntawm cov hluav taws xob Circuit Court yuav tsum tsawg dua lub phaj qhov tob kom tso cai rau dai lub phab ntsa moos tsis muaj teeb meem

Kauj Ruam 4: Teem Sijhawm

DS3231 Lub Sijhawm Sijhawm Tiag Tiag tswj lub sijhawm vim tias nws siv roj teeb sab nraud, tab sis yog tias koj tsis tau txais ib qho, kuv tau suav nrog cov cai hauv qab no los teeb tsa thawj zaug:

// teem sijhawm

int cov = 10; int cov = 3; int gseconds = 0; // kawg teem sijhawm

Qhov sib txawv ci ntsa iab, hauv cov cai, tswj kev siv ntawm txhua daim kab xev hauv lub moos.

Kauj Ruam 5: Xaiv Xim thiab Mount Clock

Xaiv Xim thiab Mount Clock
Xaiv Xim thiab Mount Clock
Xaiv Xim thiab Mount Clock
Xaiv Xim thiab Mount Clock
Xaiv Xim thiab Mount Clock
Xaiv Xim thiab Mount Clock

Txiav ob peb daim duab los kho qhov kho vajtse rau phaj thiab dai nws txhua qhov chaw koj xav tau.

Kauj Ruam 6: Yuav Ua Li Cas Nyeem Lub Sijhawm

Yuav Ua Li Cas Nyeem Lub Sijhawm
Yuav Ua Li Cas Nyeem Lub Sijhawm
Yuav Ua Li Cas Nyeem Lub Sijhawm
Yuav Ua Li Cas Nyeem Lub Sijhawm
Yuav Ua Li Cas Nyeem Lub Sijhawm
Yuav Ua Li Cas Nyeem Lub Sijhawm

Duab nrog daim ntawv lo "03:34:10"

  • Hauv cov kab hluav taws xob puag ncig LED, cov leds tso nruab nrab ntawm 12 thiab 3 nyob ntawm (xim ntsuab). Nws txhais tau tias, nws yog 3.
  • Hauv cov kab hluav taws xob puag ncig LED, cov teeb nruab nrab ntawm 4 thiab 6 nyob ntawm (xim liab). Nws txhais tau tias, nws yog 3:30, tab sis hauv 4 kab leds, txhua lub leds nyob, yog li nws yog 3:34.
  • Thawj coj hauv 6 leds sawb yog nyob rau (1 x 10 = 10 vib nas this), yog li nws yog 3:34:10 lub sijhawm ntawd

Duab nrog daim ntawv lo "03:10:30"

  • Hauv cov kab hluav taws xob puag ncig LED, coj hauv 3 yog nyob rau (xim ntsuab). Nws txhais tau tias, nws yog 3.
  • Hauv cov kab hluav taws xob puag ncig LED, cov teeb nruab nrab ntawm 12 thiab 2 nyob ntawm (xim liab). Nws txhais tau tias, nws yog 3:10.
  • Qhov thib peb coj hauv 6 leds sawb nyob rau (3 x 10 = 30 vib nas this), yog li nws yog 3:10:30 thaum lub sijhawm ntawd

Duab nrog daim ntawv lo "03:16:10"

  • Hauv cov kab hluav taws xob puag ncig LED, cov leds tso nruab nrab ntawm 12 thiab 3 nyob ntawm (xim xiav). Nws txhais tau tias, nws yog 3:15, tab sis hauv 4 kab leds tsuas yog thawj coj coj mus, yog li nws yog 3:16.
  • Thawj coj hauv 6 leds sawb yog nyob rau (1 x 10 = 10 vib nas this), yog li nws yog 3:16:10 ntawm lub sijhawm ntawd

Pom zoo: