Cov txheej txheem:

NTP Synchronized Tswb Tswb: 8 Kauj Ruam
NTP Synchronized Tswb Tswb: 8 Kauj Ruam

Video: NTP Synchronized Tswb Tswb: 8 Kauj Ruam

Video: NTP Synchronized Tswb Tswb: 8 Kauj Ruam
Video: Аналитика данных в реальном времени в Datadog, Алексис Ле-Куойк 2024, Kaum ib hlis
Anonim
NTP Synchronized Tswb Tswb
NTP Synchronized Tswb Tswb

Nyob zoo.

Nov yog kuv thawj qhov kev qhia thiab lus Askiv tsis yog kuv hom lus yog li thov ua siab ntev.

Kuv xav tsim NTP lub tswb moos nrog RTC uas yuav muab sib txuas los ntawm internet.

Kuv pom lub moos zoo heev los ntawm ZaNgAbY thiab tus txiv leej tub no (Ua tsaug).

Lub moos yog tus coj teev teev teev teev RTC lub moos raws li lub npe nrov ESP8266 uas tau sib txuas rau NTP server.

Txawm hais tias lub moos zoo nkauj heev nws tsis muaj qee qhov haujlwm kuv nyiam yog li kuv tau ntxiv qee qhov.

1. Tswb muaj nuj nqi nrog cov zaub cais.

2. Pib ci ntsa iab.

3. Sab nraud pib dua khawm yog lub moos yog pawg thiab xav tau pib dua.

4. Hloov lub hli mus rau tus lej thiab tsis yog lo lus (Kuv nyiam qhov ntawd)

5. Thaum pib yog WiFi txuas tsis tau tiav thiab lub sijhawm RTC siv tau RTC lub sijhawm tau tshwm.

6. Ib lub teeb xiav yuav taws yog tias muaj WiFi txuas.

7. WiFi ssid thiab tus password tsis nyuaj coded, koj tuaj yeem hloov nws los ntawm lub vev xaib.

8. Yog tias tom qab 24 teev nws tsis tuaj yeem hloov kho los ntawm NTP server tus ESP8266 yuav sim txuas mus rau WiFi.

9. Lub tswb nres hloov yog khawm kov

Kauj Ruam 1: Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej

Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej
Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej
Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej
Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej
Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej
Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej

Qhov:

4 + 2 x 8x8 MAX7219 LED Matrix (zoo li no)

1 x RTC DS3231 (zoo li no)

1 x ESP12 Board (zoo li no)

1 x tib kov khawm (zoo li no)

1 x LDR module (zoo li no)

1 x I2C PCF8574 module (Kuv siv I2C rau LCD module zoo li no)

1 x Sparkfun Serial coj zaub (Kuv siv daj tab sis xiav yog qhov zoo)

Prototype PCB 65.5mm x 210mm (Kuv ua los ntawm ob ntu)

1 x heev nti tswb moos kom tshem lub suab nrov (zoo li no)

1 x plexiglass pip 80mm inch sab nraum 74mm sab hauv 213mm ntev.

1 x 5.5mm X 2.1mm DC Lub Hwj Huam Muab Khoom Hlau Hlau Vaj Huam Sib Luag Mount.

4 x laub khawm.

1 x rau/tawm hloov.

1 x xiav coj thiab 1k resistor.

1 x 470uF 16v capacitor.

1 x Qhov rai tint zaj duab xis.

1 x 5v 1A fais fab mov.

xov hlau

Cov Cuab Yeej:

cam khwb cia hlau

thiab cov cuab yeej dav dav.

Kauj Ruam 2: Kauj Ruam 2: Npaj Zaub

Kauj Ruam 2: Npaj Cov Zaub
Kauj Ruam 2: Npaj Cov Zaub
Kauj Ruam 2: Npaj Cov Zaub
Kauj Ruam 2: Npaj Cov Zaub
Kauj Ruam 2: Npaj Cov Zaub
Kauj Ruam 2: Npaj Cov Zaub

Kuv tau txais ob chav ntawm 4 block txhua yog li kuv txiav ib rau ib nrab thiab tau txais 6 thaiv cov duab, yog tias koj xav tau koj tuaj yeem yuav 6 ib qho thaiv thiab txuas lawv ua ke (xyuam xim tias Dout ntawm ib lub thaiv txuas nrog rau Din tom ntej)).

Tom qab koj muaj 6 lub ntsej muag nthuav tawm, sib sau ua ke ntawm tus qauv PCB, Kuv siv cov ntsia hlau, qhov txuas thiab ntsia hlau, yog tias koj nyiam qhov kev daws teeb meem nrawm koj tuaj yeem siv daim kab xev ob npaug.

Tom ntej no peb yuav tsum sib sau lub tswb tso rau hauv qab lub ntsiab teev teev matrix zaub, ua tibzoo saib cov duab.

Ntawm sab laug ntawm lub tswb zaub kuv tau siv lub xiav WiFi coj.

Kauj Ruam 3: Hloov ESP8266 Module los Siv Tus Kheej Sab Nraud

Hloov ESP8266 Module los Siv Tus Kheej Sab Nraud
Hloov ESP8266 Module los Siv Tus Kheej Sab Nraud

Kuv muaj teeb meem kom tau txais WiFi txuas tau zoo hauv chav uas siv lub moos, yog li kuv tau hloov ESP8266 tus qauv los siv tus kav hlau txais xov sab nraud.

Yog tias koj tsis muaj teeb meem nrog WiFi txuas koj tuaj yeem siv tus kav hlau txais xov qub.

Kauj Ruam 4: Sib Sau Lwm Yam Khoom

Sib Sau Lwm Yam Khoom
Sib Sau Lwm Yam Khoom
Sib Sau Lwm Yam Khoom
Sib Sau Lwm Yam Khoom
Sib Sau Lwm Yam Khoom
Sib Sau Lwm Yam Khoom

Nyob tom qab ntawm tsab qauv PCB peb yuav sib sau ua ke ESP8266, RTC thiab PCF8574 modules.

Kuv tau siv lub qhov (socket) kom kuv tuaj yeem ntsaws thiab ntsaws cov qauv.

Tsis tas li koj yuav tsum sib sau ua ke LDR module kom lub sensor tuaj yeem pom lub teeb ib puag ncig.

Kawg ntxiv qhov hloov pauv kov hauv qhov chaw yooj yim yog li koj tuaj yeem ncav nws yooj yim kom tsis txhob tswb.

Kauj Ruam 5: Txuas Ua Ke Txhua Yam Khoom

Txuas Ua Ke Txhua Yam Khoom
Txuas Ua Ke Txhua Yam Khoom
Txuas Ua Ke Txhua Yam Khoom
Txuas Ua Ke Txhua Yam Khoom
Txuas Ua Ke Txhua Yam Khoom
Txuas Ua Ke Txhua Yam Khoom
Txuas Ua Ke Txhua Yam Khoom
Txuas Ua Ke Txhua Yam Khoom

Thov ua tib zoo saib cov txheej txheem, nws tsis nyuaj, nws tsuas yog txuas cov xov hlau los ntawm ib qho qauv mus rau lwm qhov.

Yog tias koj muaj teeb meem los nyeem schematic ntawm no yog cov lus piav qhia:

====================

MAX7219 rau ESP8266 ====================

VCC - 5V (ceeb toom 1)

GND - NCO

TSO - D8

DIN -D7 hli

NQA - D5

===================

DS3231 rau ESP8266

===================

GND - NCO

VCC - 3.3V

SDA - D1

TSO - D2

==========================================

Sparkfun serial 7 ntu qhia rau ESP8266

==========================================

VCC - 5V (ceeb toom 1)

GND - NCO

RX - D4

==========================================

LDR lub teeb pom kev zoo module rau ESP8266

==========================================

VCC - 3.3V

GND - NCO

TSO - A0

===========================================

WiFi coj catode - D3, anode rau 3.3V nrog 1k resistor

(Kuv siv 1k resistor vim kuv xav kom coj mus rau qhov tsaus)

===========================================

============================================

Ebay PCF8574T I/O Fr I2C Port Interface Support Arduino ======================================= =======

P0 - teev khawm

P1 - teev dn khawm

P2 - feeb nce khawm

P3 - buzzer (Kuv siv lub tshuab hluav taws xob los ntawm lub tswb tswb tsub nqi ~ $ 1)

P4 - feeb dn khawm

P5 - tswb ON/OFF khawm

P6 - ntxiv 1 teev rau lub caij ntuj sov (tsuas yog rau cov neeg Ixayees) (ceeb toom 2)

P7 - tswb nres khawm khawm

SDA rau SDA ntawm RTC

SCL rau SCL ntawm RTC

GND to CSY

VCC rau 3.3V

Txhua lub khawm txuas ib sab mus rau chaw nres nkoj thiab lwm sab rau GND.

Nco tseg 1 - Txhua 6 qhov thaiv ntawm cov coj matrix thiab lub tswb ceeb toom txuas nrog 5V

Nco tseg 2 - Kev hloov pauv uas txuas nrog P6 ntawm PCF8574 tsuas yog xav tau hauv kuv lub tebchaws vim tias lub caij ntuj sov tsis yog ib txwm nyob hauv tib hnub zoo li lub ntiaj teb tas li kuv tuaj yeem ntxiv ib teev yog xav tau.

Lub zog rau lub moos tuaj yeem muab ua ob txoj hauv kev:

1. txuas USB cable rau ESP12e module thiab noj 5V rau cov lus qhia los ntawm VV tus pin ntawm tus qauv.

2. cov tswv yim 5V los ntawm cov khoom sib txuas tshwj xeeb (zoo li tau piav qhia hauv kab lus), txuas 5V rau tus lej cim lej thiab lub tswb qhia thiab rau Vin tus pin ntawm ESP12e module.

Yog tias koj siv qhov kev xaiv 2 koj xav tau txuas 470uF 16V capacitor nruab nrab ntawm 5V thiab GND.

Kuv kuj tseem txuas qhov pib dua rau lub laub khawm uas kuv tuaj yeem ncav cuag sab nraud ntawm lub moos nrog tus pin.

Pom qhov voltage ntawm txhua tus qauv !

Kauj ruam 6: Software

Txuas nrog yog daim duab Arduino, kuv muab ntau cov lus pom yog li kuv ntseeg tias nws yuav meej.

Koj yuav tsum suav nrog WiFiManager lub tsev qiv ntawv los ntawm kev hnov thiab ESP8266WiFi lub tsev qiv ntawv los ntawm kev hnov

Yog tias koj tsis paub yuav ua haujlwm li cas ESP12e nrog Arduino IDE thov google rau nws.

Kauj ruam 7: Lub thawv

Lub Thawv
Lub Thawv
Lub Thawv
Lub Thawv
Lub Thawv
Lub Thawv

Kuv tau ua lub thawv los ntawm lub raj Plexiglas 210 hli ntev uas kuv tau npog sab hauv nrog lub qhov rai tint zaj duab xis (siv hauv tsheb).

Ob sab npog kuv ua los ntawm Delrin uas kuv tau ua nrog lub tshuab CNC milling (tej zaum nws tuaj yeem ua tiav nrog lub tshuab luam ntawv 3D).

Kuv tsuas muaj cov ntaub ntawv DXF rau cov npog uas kuv siv rau CNC lub cajmeem.

Yog tias ib tus neeg xav tau cov ntaub ntawv DXF thov xa ntawv tuaj rau kuv.

Tau kawg koj tuaj yeem ua lub thawv zoo sib txawv rau lub moos.

Kauj Ruam 8: Lub Sij Hawm Tiav tiav

Lub moos tiav tuaj yeem pom ntawm no

Ua tsaug.

Pom zoo: