Cov txheej txheem:

Tseem Lwm Lub Sijhawm: 4 Kauj Ruam
Tseem Lwm Lub Sijhawm: 4 Kauj Ruam

Video: Tseem Lwm Lub Sijhawm: 4 Kauj Ruam

Video: Tseem Lwm Lub Sijhawm: 4 Kauj Ruam
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Kaum ib hlis
Anonim
Tseem Lwm Sijhawm
Tseem Lwm Sijhawm

Raws li tuaj yeem pom los ntawm kuv qhov kev tso tawm yav dhau los Kuv tau txais qee 7 Segment Display boards los ntawm qee yam khoom siv hnyav.

Kuv qhov kev siv yav dhau los siv Arduino nrog Lub Sijhawm Sijhawm Sijhawm Sijhawm.

Cov lus qhia no siv ESP8266 D1 Mini txuas nrog NTP server!

Txoj cai yog ua piv txwv los ntawm ESP8266WiFi lub tsev qiv ntawv.

Kuv yuav tsis mus rau hauv kev nthuav dav hais txog 7 Segment zaub thaiv raws li muaj ntau kaum tus piv txwv ntawm net. 2 cov laug cam kuv muaj, siv MAX7219 tus lej txiav tus tsav tsheb, cov no tsuas yog xav tau 3 tus pin los tswj txog 8 x 7 Segment Displays.

Kuv kuj xav qhia hnub tim, yog li xav tau 3 tus pin ntxiv!

Kuv xav tau lwm 7 ouputs los tso saib Hnub! Txhawm rau kom nyob ib puag ncig qhov tsis muaj cov pins tso tawm, Kuv tau xaiv Neo Pixel zaub, 1 tus pin, 7 tawm!

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Qhov yuav tsum tau ua

12 x 7 ntu nthuav qhia (hauv kuv qhov xwm txheej kuv muaj hmoo heev uas muaj ob peb lub tshuab hnyav hnyav uas tau txuag ntau txoj hlua hlau.

1 x ESP8266 D1 Mini LOSSIS ib qho ESP8266 nrog 7 lossis ntau dua cov txiaj ntsig digital

2 x MAX7129 (Ib zaug ntxiv, Kuv muaj hmoo tau muaj lub tshuab ua kom hnyav lub rooj zaub)

1 x Ncaj 8 NeoPixel zaub

2 x qib shifters

1x5v zog

Kauj Ruam 2: DAY Zaub

DAY Zaub
DAY Zaub
DAY Zaub
DAY Zaub

Txog qhov no kuv siv ib feem ntawm daim npav rho nyiaj qub rau hauv paus, qee daim npav tuab (hauv kuv cov ntaub ntawv 300gsm daim duab) thiab qee qhov muab ob npaug rau daim kab xev.

Nws tsuas yog 2 daim kab xev ntawm daim kab xev txiav nrog rab riam tes. Qhov sib nrug yog qhov deb ntawm LEDs ntawm NeoPixel board.

Cov kab ntawv nyias nyias ntawm daim npav tau siv los tsim cov channel rau txhua hnub.

Cov npe hnub tau luam tawm ntawm kab xev meej nrog Dymo daim ntawv lo.

Kauj ruam 3: Txuas Txuas & Software

ESP8266 cov khoom lag luam yog qhov zoo tshaj plaws vim yog

a) Lawv yog cov av pheej yig

b) Lawv xav tau ob peb yam sab nraud

Kuv xav tau 5v rau cov lus qhia thiab 3v rau ESP yog li kuv tau siv ob peb qib hloov pauv nrog lub zog 5v.

MAX7219 tsuas xav tau 3 tus pin los tswj txog 8 cov lus, cov no yog tus pin 1 (Din), 12 (Load / CS) & 13 (Clock).

Cov no tau txuas nrog ntawm qib hloov pauv.

Cov cai yog raws li hauv qab no:

// inputs: DIN tus pin, CLK tus pin, LOAD tus pin tus lej ntawm cov chipLedControl mydisplay = LedControl (3, 2, 1, 1)

LedControl datesisp = LedControl (7, 6, 5, 1);

Tus lej ntawm cov chips tau teeb tsa ntawm 1 vim tias kuv tab tom kho 2 cov lus raws li cov khoom sib cais es tsis siv DOUT thiab ua rau lawv poob.

NeoPixel txuas nrog digital output 4

#Txhais tus lej PIN 4

#define NUMPIXELS 7 (tsis quav ntsej 1 ntawm 8 LEDs)

Muaj qee qhov #suav nrog txhua qhov uas tuaj yeem pom ntawm GitHub.

Router SSID & PASSWORD yuav tsum tau nkag thiab NTP Server xaiv, (Kuv Googled NTP Servers dawb)

Kauj ruam 4: On Power Up

Ntawm lub zog, NeoPixel LEDs tau ripped los ntawm, tom qab ntawd, 7 ntu ntu qhia pom hloov pauv 'c' & '8' kom txog thaum kev sib txuas tau ua rau lub router.

Yog tias txhua ntu qhia qhov sib txuas c8 nws txhais tau tias NTP server txuas tsis tau tsim, rov pib dua yuav tsum daws qhov no.

Thaum kev sib txuas tau tsim, Lub Sijhawm & Hnub tau tshwm sim, Hnub tau qhia los ntawm LED xiav.

Pom zoo: