Cov txheej txheem:

DIY LED Advent Calendar: 3 Kauj Ruam
DIY LED Advent Calendar: 3 Kauj Ruam

Video: DIY LED Advent Calendar: 3 Kauj Ruam

Video: DIY LED Advent Calendar: 3 Kauj Ruam
Video: CATRICE DIY ADVENT CALENDAR 2020 UNBOXING | Sammy Louise 2024, Kaum ib hlis
Anonim
DIY LED Advent Calendar
DIY LED Advent Calendar
DIY LED Advent Calendar
DIY LED Advent Calendar

Kuv yuav piav qhia tias peb tsim lub moos zoo li cas uas ua haujlwm ob zaug raws li daim ntawv qhia hnub nyoog. Muaj 24 ws2811 leds nyob ib ncig ntawm lub moos nyob rau hauv ib lub voj voog thiab txhua ntawm lawv lub teeb ntsuab rau hnub ua ntej Christmas. Hnub Christmas, txhua lub teeb ci liab. Txhua lub hlis lwm lub teeb yog xim xiav. Nws tau tsav los ntawm es8266 uas tuaj yeem tswj hwm los ntawm Arduino IDE, tab sis raspberry pi kuj tseem yuav ua haujlwm. Qhov no tuaj yeem hloov kho tau zoo thiab hloov pauv mus rau qhov koj nyiam, thiab nws tseem tuaj yeem ua cov duab kos sab nraud ntawm cov xim ib txwm muaj. Khaws nyeem kom paub tias kuv tau ua li cas, lossis saib cov vis dis aus hauv qab no!

Khoom siv:

  1. ib 8266
  2. 5V fais fab mov
  3. ws 2811 leds
  4. Cov khoom siv moos

Kauj Ruam 1: Tsim Lub Sijhawm

Tsim lub moos
Tsim lub moos
Tsim lub moos
Tsim lub moos
Tsim lub moos
Tsim lub moos

Peb pib los ntawm kev tsim lub moos, uas yog 5 daim ntawm liab ntoo qhib 3.5 "dav los ntawm 18" siab. Tom qab gluing lawv ua ke, peb tshem tawm cov kua nplaum ntau dhau thiab ua kom nws tiaj. Tom qab ntawd peb coj tus jigsaw los ua lub vojvoog ntxhib, thiab txav mus rau txoj siv txoj hlua ziab kom lub vojvoog zoo dua qub. Tom qab ntawd, peb siv tus ntoo ntoo lub xwmfab ntsuas 15 lub kaum sab xis los ntawm qhov chaw los kos kab rau qhov twg txhua lub teeb yuav tsum yog. Peb siv lub laum xovxwm los laum qhov li 1.5 ntiv tes los ntawm ntug ntawm lub moos. Peb ua tiav nws nrog Mahoney's Walnut Oil.

Kauj Ruam 2: Ntxiv Cov Khoom Siv Hluav Taws Xob thiab Txhim Kho Cov Hluav Taws Xob

Ntxiv cov khoom siv hluav taws xob thiab xaim hluav taws xob hauv Circuit
Ntxiv cov khoom siv hluav taws xob thiab xaim hluav taws xob hauv Circuit
Ntxiv cov khoom siv hluav taws xob thiab xaim hluav taws xob hauv Circuit
Ntxiv cov khoom siv hluav taws xob thiab xaim hluav taws xob hauv Circuit
Ntxiv cov khoom siv hluav taws xob thiab xaim hluav taws xob hauv Circuit
Ntxiv cov khoom siv hluav taws xob thiab xaim hluav taws xob hauv Circuit
Ntxiv Cov Khoom Siv Hluav Taws Xob thiab Txhim Kho Cov Hluav Taws Xob
Ntxiv Cov Khoom Siv Hluav Taws Xob thiab Txhim Kho Cov Hluav Taws Xob

Peb pib sib dhos los ntawm kev thawb 24 ws2811 leds dhau los ntawm 1/2inch qhov peb drilled tawm. Tom qab ntawd peb tau kos tus qauv ntawm lub moos tivthaiv thiab xa tawm txog 3/8 ntiv tes so kom peb tuaj yeem haum nws tom qab. Thaum qhov ntawd ua tiav peb tau kub hnyiab tau 5V lub zog hluav taws xob rau sab nraub qaum, ntxiv ib qho hlais uas yuav tuav nws mus rau ntawm phab ntsa, thiab txuas lub voj voog uas yuav ua rau lub teeb ci. Lub Circuit Court yog ib qho yooj yim heev thiab siv tus pin nkaus xwb los ntawm es8266 microcontroller los tswj cov leds, thiab 5V lub zog txhawb kom txhawb lawv.

Kauj Ruam 3: Txhim Kho Txoj Cai thiab Txaus Siab

Nruab qhov Code thiab Txaus siab rau!
Nruab qhov Code thiab Txaus siab rau!
Nruab qhov Code thiab Txaus siab rau!
Nruab qhov Code thiab Txaus siab rau!
Nruab qhov Code thiab Txaus siab rau!
Nruab qhov Code thiab Txaus siab rau!

Cov kauj ruam tom ntej yog teeb tsa cov cai hauv qab no. Txij li thaum peb siv ES8266 Arduino IDE yuav ua haujlwm zoo rau qhov no:

github.com/tmckay1/advent_calendar

Koj yuav tsum tau hloov tus lej tus lej uas tswj hwm LEDs yog tias koj tsis siv tus pin zoo ib yam li peb, thiab ntxiv koj cov ntaub ntawv wifi (SSID/password). Koj kuj tseem yuav tsum tau teeb tsa kev vam khom xws li FastLED thiab NTP Client, thiab koj tab tom siv es8266 pawg thawj coj zoo li kuv tau ua koj tseem yuav xav tau teeb tsa pawg thawj coj hauv Arduino IDE (txheeb xyuas cov ntaub ntawv kom paub ntau ntxiv).

Yeej txoj cai tau txais hnub tam sim no los ntawm NTP Client txhua 10 vib nas this ib zaug txuas nrog wifi thiab tom qab ntawd suav pes tsawg lub teeb kom qhib yog tias nws yog Kaum Ob Hlis. Thaum nws tau txais cov ntaub ntawv ntawd, nws siv FastLED lub tsev qiv ntawv kom pom lub teeb ntawm lub moos.

Tom qab txhim kho cov cai, ntsaws rau hauv thiab txaus siab:)

Cov peev txheej

Txhim kho NTP Client Dependency:

Txhim kho FastLED Dependency:

Txhim kho es8266 pawg thawj coj ntawm Arduino IDE:

Pom zoo: