Cov txheej txheem:

DIY ESP-Smartwatch: 4 Cov Kauj Ruam
DIY ESP-Smartwatch: 4 Cov Kauj Ruam

Video: DIY ESP-Smartwatch: 4 Cov Kauj Ruam

Video: DIY ESP-Smartwatch: 4 Cov Kauj Ruam
Video: как сделать мини-осциллограф, используя Arduino nano, dfrobot 2024, Hlis ntuj nqeg
Anonim
Image
Image
DIY ESP-Smartwatch
DIY ESP-Smartwatch
DIY ESP-Smartwatch
DIY ESP-Smartwatch

Cov Khoom Siv ESPWatch no yog rau cov pib kawm paub tsim ESP saib nrog cov lus qhia ntxaws, nws yog rau cov pib kom dhia mus rau hauv lub ntiaj teb hluav taws xob, nrog 1 ~ 2 teev kev kawm, tsis muaj lub tshuab hluav taws xob pib tuaj yeem tsim ESP saib no, txaus siab rau kev xyiv fab ntawm kev tsim ib yam dab tsi los ntawm koj tus kheej.

ESPWatch yog ua raws ESP12 WIFI module, nws tau txais lub sijhawm tiag tiag los ntawm Internet server, thiab tseem tuaj yeem tswj hwm cov cuab yeej hauv zej zog, xws li Relay/LED/Fan. Nrog rau qhov kev kawm no, koj yuav kawm paub cov txuj ci yooj yim ntawm cov khoom siv sib txuas/Arduino Programming/WIFI siv/Basic http raws tu qauv, thawj zaug & cov kauj ruam yooj yim kom nkag mus rau hauv lub tshuab hluav taws xob/lub ntiaj teb.

Muaj peb kuj tau npaj cov ntaub ntawv yooj yim/watchband, yog li koj tuaj yeem tau txais nws ua haujlwm ntawm koj lub dab teg li ob peb feeb. Koj puas tau npaj los qhia lub moos txias no tsim los ntawm koj tus kheej?

Qhov tshwj xeeb:

1. Cov khoom siv nrog cov lus qhia ntxaws rau cov neeg kawm;

2. Yees duab rau kev kawm;

3. Raws li Arduino IDE/ESP;

4. Lub sijhawm saib tiag + Kev tswj chaw taws teeb;

5. Qhib kho vajtse+ Qhib software;

6. Rau hnub nyoog 12+;

Cov npe pob: 0.96inch IIC OLED X1

ESP-12S x1

Khawm x3

3.7V Lipo Roj teeb x1

Micro USB x 1

Hloov x1

saib bandx1

Acrylic plhaub x1

Qee qhov resistors thiab capacitors

Qee yam ntawm Copper kem thiab ntsia hlau

Kauj Ruam 1: Teeb Arduino IDE

Ua raws li phau ntawv qhia teeb tsa Arduino IDE rau ESP8266

Nyem qhov no.

Kauj Ruam 2: Kev Kho Vajtse Txuas

Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas
Kho vajtse txuas

2.1 Txuas lub roj teeb

2.2 Txuas GND, RX thiab TX mus rau USB-rau-Serial adapter

Saib -> USB rau SerialGND GND

TX RX na

RX TXI

Kauj Ruam 3: Rub Txoj Cai rau Smart Watch thiab Relay

Rub tawm Txoj Cai rau Smart Watch thiab Relay
Rub tawm Txoj Cai rau Smart Watch thiab Relay
Rub tawm Txoj Cai rau Smart Watch thiab Relay
Rub tawm Txoj Cai rau Smart Watch thiab Relay
Rub tawm Txoj Cai rau Smart Watch thiab Relay
Rub tawm Txoj Cai rau Smart Watch thiab Relay

Qhov piv txwv no yuav tau txais sijhawm los ntawm NTP server, tso tawm hnub thiab sijhawm ntawm OLED, thiab tswj kev xa mus los ntawm MQTT cov npav.

3.1 Kev vam khom

*cov arduino-mqtt

*ThingPulse ESP8266 OLED SSD1306

*Sijhawm

Peb tuaj yeem tshawb nrhiav "ntpclient", "lwmqtt", "esp ssd1306" thiab "sijhawm siv sijhawm" txhawm rau nrhiav cov tsev qiv ntawv no hauv Tus Thawj Saib Xyuas Tsev Qiv Ntawv. Tom qab ntawd nruab lawv.

3.2 Siv CloudMQTT ua tus broker ntawm no.

3.2.1 Kos npe rau CloudMQTT thiab tsim qhov piv txwv

3.3 Rub tawm cov duab kos saib/watch.ino mus rau saib

Rub daim ntawv foos ntawm no.

3.3.1 Qhib daim duab saib.ino hloov pauv SSID thiab passowrd ntawm Wi-nkaus, thiab hloov pauv tus tswv tsev, chaw nres nkoj, tus neeg siv thiab tus lej siv rau MQTT.

3.3.2 Xaiv lub rooj tsavxwm raug thiab chaw nres nkoj com

3.3.4 Tuav lub khawm FLASH; Hwj chim ntawm theESP8266 los ntawm SW1 los tso ESP8226 rau hauv bootloader hom.

3.3.5 Nyem rau lub pob upload, upload cov cai

3.4 Rub tawm daim duab qhia chaw relay/relay.ino mus rau tus qauv txuas

3.4.1 Qhib cov duab kos, hloov SSID thiab passowrd ntawm Wi-nkaus, thiab hloov pauv tus tswv tsev, chaw nres nkoj, tus neeg siv thiab tus lej siv rau MQTT

Sau tseg: chaw nres nkoj yuav tsum zoo ib yam li lub moos.

3.4.2 ESP-01S: Siv ESP8266 debugger, pib rov pib dua thaum tso cov cai. Zoo ib yam li NodeMCU.

3.4.3 Plug ESP-01 ESP8266 debugger.

3.4.4 Qhib cov duab sketches relay.ino

3.4.5 Xaiv lub rooj tsavxwm raug

3.4.6 Nyem upload khawm upload cov cai.

Kauj Ruam 4: Tam sim no Koj Siv Tau Koj Lub Ntsej Muag Saib Kom Tswj

Tam sim no koj tuaj yeem Siv Koj Smart Watch los Tswj
Tam sim no koj tuaj yeem Siv Koj Smart Watch los Tswj
Tam sim no koj tuaj yeem Siv Koj Smart Watch los Tswj
Tam sim no koj tuaj yeem Siv Koj Smart Watch los Tswj
Tam sim no koj tuaj yeem Siv Koj Smart Watch los Tswj
Tam sim no koj tuaj yeem Siv Koj Smart Watch los Tswj

4.1 Ntse saib lub sijhawm saib:

4.2 Siv cov nyees khawm "S1" thiab "S2" los tswj lub teeb thiab kiv cua.

1) Nias lub S1 xaiv lub teeb tswj UI, nias S2 tig ON lossis tua lub teeb.

2) Nias lub S1 xaiv tus kiv cua tswj UI, nias S2 tig ON lossis tua lub kiv cua.

Pom zoo: