Cov txheej txheem:

IEEE WORD CLOCK PROJECT: 12 Kauj Ruam (nrog Duab)
IEEE WORD CLOCK PROJECT: 12 Kauj Ruam (nrog Duab)

Video: IEEE WORD CLOCK PROJECT: 12 Kauj Ruam (nrog Duab)

Video: IEEE WORD CLOCK PROJECT: 12 Kauj Ruam (nrog Duab)
Video: Logic Gates Learning Kit #2 - Transistor Demo 2024, Kaum ib hlis
Anonim
IEEE WORD CLOCK PROJECT
IEEE WORD CLOCK PROJECT
IEEE WORD CLOCK PROJECT
IEEE WORD CLOCK PROJECT

Nov yog txoj haujlwm rau UNO's IEEE club, nws yog txoj hauv kev tshwj xeeb los sawv cev rau lub sijhawm twg. Lo Lus Mloog sau lub sijhawm thiab nrog RGB kab txaij koj tuaj yeem muaj lub moos hauv txhua xim uas koj xaiv. Siv lub peev xwm WiFi ntawm ESP32, lub moos txuas mus rau qhov tshwj xeeb WiFi network thiab rub lub sijhawm tam sim no los ntawm internet. Yog tias koj tsis muaj WiFi network txuas rau, tsis txhob txhawj xeeb, cov cai tuaj yeem hloov kho kom yooj yim kom khiav ntawm ESP32 lub moos sab hauv tab sis qhov no yuav ua rau Lo Lus Clock tsis yog lub sijhawm raug.

Txoj Haujlwm thiab Txoj Cai tshoov siab los ntawm:

www.instructables.com/id/THE-WORD-CLOCK/

randomnerdtutorials.com/esp32-ntp-client-d…

Khoom siv

-ESP32 Microcontroller

-WS2812b RGB Ib Leeg Nyob Ib Leeg LED Sawb (60 coj ib lub 'meter')

Txaus rau 8 daim kab xev ntawm 13 LEDs, ~ 2 meters

-Tsev Vaj Huam Sib Luag

  • Lub vaj huam sib luag pem hauv ntej no tuaj yeem txiav laser los ntawm cov khoom siv tsis pom kev
  • Hauv Cov Lus Qhia no lub vaj huam sib luag pem hauv ntej tau txiav laser los ntawm 1/8 nti ntoo vaj huam sib luag nrog qhov ntev 9x7

-Defusing cov khoom

Yuav yog ib yam dab tsi los ntawm cov ntaub nthuav dav mus rau daim ntawv luam ntawv

-Kab xev

-5V fais fab mov

-USB rau micro-USB cable

-Computer nrog internet nkag tau

-Arduino IDE

-Provided chaws

-Wi -nkaus network

Kauj Ruam 1: Txiav LED Strips kom Ntev

Txiav LED Strips kom Ntev
Txiav LED Strips kom Ntev

Tus kheej qhov chaw nyob LED sawb yog ib qho tseem ceeb tshaj plaws ntawm txoj haujlwm no. Yog tias koj tsis tau txais hom LED sawb zoo, txoj cai yuav tsis ua haujlwm. Qhov sib nrug ntawm LEDs ntawm kab txaij yog qhov tseem ceeb rau, nco ntsoov tias koj muaj cov kab xev uas muaj 60 LEDs ib lub 'meter'. Rau qhov haujlwm no, ~ 2 metres ntawm cov hlua LED yuav txaus.

Rau txoj haujlwm, koj yuav tsum tau txiav tag nrho LED kab txaij rau hauv cov kab me me kom lawv tuaj yeem haum rau ntawm lub rooj tsavxwm. Koj yuav xav tau 8 kab ntawv uas yog 13 LEDs ntev. Pib txij thaum pib ntawm kab txaij (Xaus nrog tus poj niam txuas) suav 13 leds thiab tom qab ntawd txiav cov hlua kom koj muaj kab txaij me dua nrog 13 LEDs. Rov ua dua kom txog thaum koj muaj 8 daim kab xev tag nrho, qhov no yuav muaj 2 ib 'meter' ntev LED strips. Koj yuav tau txais 4 daim kab xev kom zoo los ntawm txhua lub ntsuas kab ntawm LEDs. Khaws cov LEDS ntxiv rau hloov chaw lossis lwm yam haujlwm.

Kauj Ruam 2: Kev teeb tsa thiab thaiv cov hlua LED

Kev teeb tsa thiab thaiv cov hlua LED
Kev teeb tsa thiab thaiv cov hlua LED
Kev teeb tsa thiab thaiv cov hlua LED
Kev teeb tsa thiab thaiv cov hlua LED

Tam sim no koj muaj 8 daim kab xev ntawm LEDs, nws yog lub sijhawm los teeb tsa lawv ntawm cov qauv muab (Cov Vaj Huam Sib Luag.svg). Thaum luam tawm cov ntaub ntawv.svg nco ntsoov ntsuas nws kom raug rau 9in txog 7in. Ua tib zoo saib xyuas cov lus qhia ntawm kab ntawv. Yog tias koj saib ze rau ntawm kab txaij, koj yuav pom Din nrog tus xub taw qhia rau LED module. Cov lus qhia ntawm tus xub yuav raug siv los teeb tsa cov hlua LED kom raug. Muab cov hlua LED tso rau ntawm tus qauv ua ntej tshem tawm cov nplaum tiv thaiv. Pib los ntawm kab saum toj kawg nkaus, kab "IT R IS C TEN HALF" kab, tso thawj kab ntawv nrog Din xub taw qhia rau sab xis. Muab cov hlua LED txuas ntxiv rau kab tom ntej no tab sis lub sijhawm no kom ntseeg tau tias Din xub yog taw tes rau sab laug. Txuas ntxiv tso txhua daim kab xev LED hloov pauv qhov kev taw qhia uas xub pom. Kab kawg yuav tsum tau taw tes rau sab laug.

Thaum koj muaj txhua daim kab xev LED tau teeb tsa kom raug ntawm tus qauv, tshem tawm los ntawm kab txaij, tshem cov nplaum tiv thaiv kab tawm ntawm sab nraum qab ntawm kab txaij LED thiab siv nws rau tus qauv ncaj li sai tau. Tom qab txhua daim kab xev LED tau ua raws daim qauv, ua tib zoo siv cov xov hlau txuas mus rau +5V, GND, thiab Cov Ntaub Ntawv sib txuas ua ke.

Kauj Ruam 3: Txuas mus rau ESP32

Txuas mus rau ESP32
Txuas mus rau ESP32

Thaum tag nrho cov kab txaij tau muab muag ua ke, nws yog lub sijhawm los txuas cov hlua LED mus rau ESP32 maub los. Koj tuaj yeem tso cov xaim rau hauv tus poj niam txuas lossis koj tuaj yeem ua tib zoo tshem tawm cov cua sov los ntawm cov xov hlau thiab de-solder los ntawm LED sawb. Thaum koj xaim cov xov hlau no rau ESP32 nco ntsoov tias koj muaj cov xaim txaus los tso lub mirco-USB rau qee qhov taw tes uas koj tuaj yeem ntsaws rau hauv mirco-USB cable. Solder cov hlau uas txuas nrog +5V lossis +3.3V rau Vin, GND rau GND, thiab Din rau D13.

Kauj Ruam 4: Txhim Kho Arduino IDE

Txhim kho Arduino IDE
Txhim kho Arduino IDE

Yog tias koj tsis muaj Arduino IDE teeb tsa rub nws los ntawm qhov txuas hauv qab no

www.arduino.cc/en/Main/Software

Xaiv qhov tseeb version rau koj OS

Kauj Ruam 5: Teeb Arduino IDE

Tom qab qhib Arduino IDE, mus rau kab ntawv sib txuas txhawm rau teeb tsa ESP32 Board tsav tsheb

Txhim kho ESP32 Board hauv Arduino IDE (Windows cov lus qhia)

Txhim kho ESP32 Board hauv Arduino IDE (Mac thiab Linux cov lus qhia)

Tom ntej no, rub tawm NTP Client library los ntawm Taranais los ntawm qhov txuas hauv qab no:

Nyem rau qhov no rub tawm NTP Client library

Tsis tas li koj yuav tsum rub tawm Adafruit Neopixel Library

github.com/adafruit/Adafruit_NeoPixel

Unzip cov ntaub ntawv.zip thiab luam daim nplaub tshev sab hauv rau koj lub Arduino IDE cov tsev qiv ntawv tais ceev tseg.

Kauj Ruam 6: Programming ESP32 rau Lo Lus Clock Project

Qhib ib daim duab tshiab Arduino thiab rub cov cai saum toj no. Luam thiab muab cov cai no tso rau hauv koj daim duab tshiab Arduino thiab sau cov cai ib yam kom ntseeg tau tias txhua tus tsav tsheb raug teeb tsa.

Kauj Ruam 7: Kauj Ruam Kawg …

Muaj qee qhov teeb tsa hauv cov cai uas koj yuav tsum tau hloov kho.

Kauj ruam 8: Txuas rau WiFi

Txuas mus rau WiFi
Txuas mus rau WiFi

Ob qhov kev hloov pauv hauv tus lej yuav tsum tau hloov pauv rau koj lub npe network wifi thiab tus password.

Kauj Ruam 9: Hloov Xim ntawm LEDs

Hloov Xim ntawm LEDs
Hloov Xim ntawm LEDs

Qhov kev hloov pauv no tswj hwm cov xim LED yog dab tsi, kev teeb tsa ntawm kab no tuaj yeem saib zoo li no:

uint32_t xim = strip. Color (Ntsuab, Liab, Xiav);

Los ntawm kev hloov qhov txiaj ntsig ntawm txhua tus nqi xim (0-255), koj tuaj yeem hloov xim LEDs yog xim dab tsi. Cov cai tau teeb tsa ua ntej rau LEDs yog qhov ci ntsuab.

Kauj Ruam 10: Kho Sijhawm

Kho Sijhawm
Kho Sijhawm

Qhov no yog qhov thaiv ntawm cov cai lav paub kho lub sijhawm hloov pauv vim yog thaj chaw sijhawm. Nws tau teeb tsa rau CDT, nco ntsoov cov cai no tsis hloov pauv nrog hnub ci txuag. Koj yuav tsum tau hloov tus nqi offset rau -21600 thaum nruab hnub txuag nyiaj "poob rov qab".

Kauj Ruam 11: Rooj Sib Tham Kawg

Los Ua Ke Kawg
Los Ua Ke Kawg

Thaum ESP32 txuas rau WiFi thiab koj lub teeb LED tau teeb pom kev, nws yog lub sijhawm los sib dhos txoj haujlwm.

Kaw koj cov ntaub ntawv nthuav tawm mus rau tom qab ntawm lub vaj huam sib luag pem hauv ntej kom tag nrho cov ntawv txiav tawm raug npog. Tom qab ntawv kab cov LEDs nrog tsab ntawv txiav tawm. Thaum cov no raug ua ke, kaw cov npoo ntawm nraub qaum thiab hauv ntej vaj huam sib luag.

Kauj Ruam 12: Cov Lus Cim Kawg

Txoj haujlwm no tuaj yeem siv tau los ntawm roj teeb tab sis vim muaj coob tus LEDs uas tab tom siv, cov roj teeb yuav tsis tuaj yeem muab hluav taws xob txaus.

Qee qhov LEDs yuav ua teeb pom kev zoo, qhov no tuaj yeem kho tau los ntawm kev rov pib dua ESP32 los ntawm nias lub pob EN. Hloov Vin tus pin rau 3.3V los ntawm 5V kuj tseem tuaj yeem kho qhov teeb meem no.

Pom zoo: