Cov txheej txheem:

NQI RING CLOCK: 5 Kauj Ruam (nrog Duab)
NQI RING CLOCK: 5 Kauj Ruam (nrog Duab)

Video: NQI RING CLOCK: 5 Kauj Ruam (nrog Duab)

Video: NQI RING CLOCK: 5 Kauj Ruam (nrog Duab)
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Kaum ib hlis
Anonim
LUS QHIA RING CLOCK
LUS QHIA RING CLOCK
LUS QHIA RING CLOCK
LUS QHIA RING CLOCK

Kuv tau npaj yuav lub Neopixel Ring 60 Led los ua lub moos tab sis hmoov tsis kuv tsis tuaj yeem yuav nws. Thaum kawg, Kuv yuav Neopixel Ring 35 Leds & tuaj nrog txoj hauv kev yooj yim los ua lub moos internet uas tuaj yeem tso saib teev, feeb & thib ob nrog lub LED Ring 35. Cia peb pib.

Kauj Ruam 1: PARTS LIST

Cov khoom tseem ceeb suav nrog:

  • 01pcs x ESP8266 NODEMCU
  • 01pcs x NEOPIXEL RING 35 LEDS
  • 01pcs x DOUBLE SIDED UNIVERSAL PCB Rau DIY 5x7cm
  • 01pcs x MALE & Poj niam 40PIN 2.54MM HEADER
  • 01pcs x PHONE CHARGER RAU POWER SUPPLY

Kauj ruam 2: SCHEMATIC

SCHEMATIC
SCHEMATIC

Qhov no yog ib qho yooj yim Circuit Court. NEOPIXEL RING muaj 2 x 3 pawm npav raws li hauv qab no: 5V, DI, GND thiab 5V, DO, GND. Txhawm rau tswj nws, txhua yam peb yuav tsum tau ua yog txhawm rau txuas 3 txuas rau cov 3 pawm no 5V, DI, GND ntawm lub nplhaib. 5V thiab GND ntawm NEOPIXEL RING txuas rau +5V thiab GND ntawm cov khoom siv hluav taws xob sab nraud thiab cov ntaub ntawv DI tus pin txuas nrog ESP8266 NODEMCU ntawm tus pin D4.

Nco tseg: Kuv nrhiav tsis tau NEOPIXEL RING 35 LED hauv FRITZING lub tsev qiv ntawv, yog li kuv siv NEOPIXEL RING 60 LED los hloov nws hauv daim duab qhia chaw.

Kauj Ruam 3: Kev Muag Khoom Thiab Sib Koom

Ua ntej tshaj, Kuv tshem cov kab hluav taws xob qub los ntawm NEOPIXEL RING, tom qab ntawd kuv tau siv 3 tus pin txiv neej lub taub hau ntawm 5V, DI, GND pins ntawm NEOPIXEL RING.

Duab
Duab

Kuv txiav DIY PROTOBOARD CIRCUIT 5X7cm rau hauv daim me me, muab 2 kab ntawm poj niam lub taub hau rau ntsaws ESP8266 NODEMCU rau nws. Hauv daim duab no, kuv tau muag qee cov khoom ntxiv xws li: 8P poj niam lub taub hau rau MPU6050, ib qho RGB LED nrog 3pcs x tam sim no txwv kev tiv thaiv thiab 2P ntsia hlau dav hlau thaiv.

Duab
Duab

Soldering 3 tus pin poj niam lub taub hau (5V, D4, GND) hauv qab ntawm DIY PCB tom qab cov txheej txheem ntawm cov kauj ruam dhau los. Tus poj niam lub taub hau no yuav txuas rau txiv neej lub taub hau ntawm NEOPIXEL RING.

Duab
Duab

Kaw lub thawv me me kom npog ESP8266 NODEMCU. Kuv vam tias kuv muaj lub tshuab luam ntawv 3D los ua cov thawv me me zoo li no. Kuv drilled lub qhov ntawm lub thawv kom tus poj niam lub taub hau ntawm DIY PCB tuaj yeem hla qhov no thiab txuas rau NEOPIXEL RING.

Duab
Duab

Nws yooj yim heev. Ua Tiav.

Duab
Duab

Kuv siv lub xov tooj ntawm tes them hluav taws xob txhawm rau muab 5V lub zog rau suav lub moos.

Duab
Duab

Kauj ruam 4: PROGRAMMING

Kuv lub tswv yim tau qhia hauv daim duab hauv qab no:

Duab
Duab

Teev teev yuav muab tso tawm ua tus lej binary thiab peb xav tau 4 LEDs sib npaug rau 4-ntsis binary naj npawb los qhia teev (max. 12). Txhua zaus thiab thib ob yog sawv cev los ntawm suav cov lej LED hauv kaum tus lej (max. 5) thiab cov lej lej (max.9). Tag nrho, peb xav tau (5+9) x 2 = 28 LEDs los qhia feeb thiab thib ob.

Qhov NEOPIXEL RING no muaj 35 LEDs yog li 3 LEDs uas seem tau siv los ua qhov sib cais los qhia meej teev, feeb & thib ob. Nws yog cim los ntawm BLACK xim hauv daim duab.

Peb tuaj yeem pom daim duab hauv qab no kom nkag siab tias lub moos no qhia lub sijhawm li cas.

Duab
Duab

Txoj haujlwm ntawm LEDs tau tshaj tawm hauv cov kab hauv qab no:

byte HHHH [4] = {16, 17, 18, 19}; // Teev Sijhawm - 4 Ntsis Tus lej Binary

byte M0 [5] = {14, 13, 12, 11, 10}; // Minute - Kaum tus lej byte M1 [9] = {9, 8, 7, 6, 5, 4, 3, 2, 1}; // Minute - Unit digit byte S0 [5] = {21, 22, 23, 24, 25}; // Minute - Kaum tus lej byte S1 [9] = {26, 27, 28, 29, 30, 31, 32, 33, 34}; // Minute - Unit digit byte SEPERATOR [3] = {0, 15, 20}; // 3 Seedsor coj

Lub Sijhawm Nplua Nuj No tuaj yeem nyeem cov ntaub ntawv sijhawm los ntawm NTP server thiab lub sijhawm yuav hloov kho dua li WIFI los ntawm ESP8266 NODEMCU.

Peb tuaj yeem xa mus rau lub vev xaib no kom xaiv cov xim coj uas koj nyiam. Hauv daim duab hauv qab no, suav lub moos moos qhia lub sijhawm uas tsis muaj cov leds sib cais.

Duab
Duab

Yog tias nws ua rau tsis meej pem, peb tuaj yeem teeb lwm yam xim rau lawv (ex: WHITE hauv daim duab hauv qab no) kom sib txawv teev, feeb thiab thib ob.

Duab
Duab

Suav cov lej ntiv tes ntiv tes muaj nyob ntawm kuv GitHub.

Kauj ruam 5: Ua tiav

KAWG
KAWG
KAWG
KAWG
KAWG
KAWG

Saib qee cov duab ntxiv.

Ua tsaug rau koj saib thiab kuv vam tias koj nyiam nws !!!

Thov LIKE thiab SUBSCRIBE rau kuv tus YouTube channel.

Pom zoo: