Cov txheej txheem:

IoT Emoji Kos Npe: 9 Kauj Ruam (nrog Duab)
IoT Emoji Kos Npe: 9 Kauj Ruam (nrog Duab)

Video: IoT Emoji Kos Npe: 9 Kauj Ruam (nrog Duab)

Video: IoT Emoji Kos Npe: 9 Kauj Ruam (nrog Duab)
Video: 5-дневное путешествие на поезде через 3 000 км на север и юг Японии по очень низкой цене. (Кюсю) 2024, Kaum ib hlis
Anonim
IoT Emoji Kos Npe
IoT Emoji Kos Npe

Cov lus qhia no qhia yuav siv ESP8266 thiab qee qhov NeoPixels los tsim IoT Emoji Sign.

Kauj ruam 1: Kev npaj

Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj

ESP8266 dev board

Ib qho ESP8266 pawg thawj coj yuav tsum ua tau zoo. Lub sijhawm no kuv tab tom siv WeMos D1 Mini Pro, qhov no yog qhov tsawg tshaj plaws thiab thinnest dev board kuv tuaj yeem pom. Yog tias koj xav tau nws nqa tau, xaiv lub rooj tsavxwm nrog Lipo txhawb nqa.

NeoPixels

Txoj haujlwm no siv Arduino Adafruit_NeoPixel lub tsev qiv ntawv, ib qho kev sib raug zoo ntawm LED nti zoo, xws li WS2812, WS2812B, SK6812, SK6812mini … thiab lwm yam.

Lub sijhawm no kuv tab tom siv 64 LED chips ntawm SK6812mini los ua vaj huam sib luag me me 8x8. Tab sis txoj haujlwm ua haujlwm tsis yog txoj haujlwm tseem ceeb ntawm txoj haujlwm no, koj tuaj yeem siv cov hlua LED los ua kom yooj yim rau txoj haujlwm lossis txawm tias ncaj qha yuav lub 8x8 NeoPixel LED Matrix;

Kos Npe

Lub sijhawm no kuv tab tom siv lub micro USB hlau hloov pauv tau yooj yim lub raj hlau ua lub cim kos npe.

Kauj Ruam 2: Yeem: 3D Luam Ntawv & Sib Dhos

Yeem: 3D Luam Ntawv & Sib Dhos
Yeem: 3D Luam Ntawv & Sib Dhos
Yeem: 3D Luam Ntawv & Sib Dhos
Yeem: 3D Luam Ntawv & Sib Dhos
Yeem: 3D Luam Ntawv & Sib dhos
Yeem: 3D Luam Ntawv & Sib dhos

Yog tias koj yooj yim yuav 8x8 NeoPixel LED Matrix, koj tuaj yeem hla cov theem no.

  1. 3D luam rooj plaub:
  2. Muab tso rau SK6812mini nti hauv Zigzag kev taw qhia
  3. Soldering ua haujlwm
  4. Siv cov kua nplaum kub kaw qhov Circuit Court
  5. Txuas lub hwj huam pins thiab tus pin teeb liab (SK6812 Din rau ESP8266 tus pin 4 / D2) rau ESP8266 dev board
  6. Ntsia
  7. Txuas lub USB cable

Kauj Ruam 3: Kev Npaj Software

Kev Npaj Software
Kev Npaj Software
Kev Npaj Software
Kev Npaj Software

Arduino IDE Cov

Yog tias koj tseem tsis tau teeb tsa Arduino IDE, thov rub tawm thiab teeb tsa nws los ntawm lub vev xaib raug cai:

www.arduino.cc/en/main/software

Kev them nyiaj yug ESP8266

Yog tias koj tseem tsis tau teeb tsa Arduino ESP8266 kev txhawb nqa, thov ua raws cov theem hauv "Arduino ntawm ESP8266" ntu:

github.com/esp8266/Arduino

Tsev Kawm Ntawv Arduino

Siv Arduino Library install 3 nyob ntawm cov tsev qiv ntawv:

  • WiFiManager
  • ArduinoWebSockets
  • Adafruit_NeoPixel

Kauj Ruam 4: Rub Tawm Cov Cai

Rub tawm Source Code
Rub tawm Source Code

Thov download kuv qhov chaws ntawm no:

github.com/moononournation/IoT-Emoji-Sign

Kauj ruam 5: 8x8 Emoji

8 x8 Emojis
8 x8 Emojis

Txoj haujlwm no xav tau qee qhov 8x8 pixels emoji, kuv google thiab tau txais cov teeb yooj yim los ntawm Justin Cyr tweet:

twitter.com/JUSTIN_CYR/status/658031097805…

Tom qab ntawd kuv hloov kho cov duab thiab siv base64decode.org hloov pauv mus rau ib puag ncig base64 encoded hlua los teeb nws rau hauv HTML.

Koj tuaj yeem pom cov duab hloov pauv ntawm: src/emojis.png

Kauj Ruam 6: Yooj Yim HTML UI

Yooj yim HTML UI
Yooj yim HTML UI

Kuv tau sau tsab ntawv HTML yooj yim heev rau xaiv lub emoji thiab tom qab ntawd hloov cov pixels mus rau ESP8266 los ntawm Web Socket raws tu qauv hauv hom binary.

Tom qab ntawd kuv siv html-minifier hloov pauv mus rau ib txoj kab ntev ntev los txhawm rau nws rau hauv Arduino code.

Koj tuaj yeem pom cov ntawv HTML ntawm: src/index.html

Kauj Ruam 7: Arduino Program

Arduino Txoj Haujlwm
Arduino Txoj Haujlwm
  1. Txuas ESP8266 dev board rau lub khoos phis tawj
  2. Qhib Arduino IDE
  3. Xaiv lub rooj tsav xwm raug ntawm cov cuab yeej ntawv qhia zaub mov
  4. Nias Upload khawm

Kauj ruam 8: Teeb & Ua Si

Image
Image

Thov saib cov vis dis aus tso rau teeb thiab ua kom paub meej.

Nov yog cov ntsiab lus:

  1. Txuas IoT Emoji Kos Npe
  2. Teeb WiFi (thawj zaug nkaus xwb)

    1. Siv koj lub xov tooj ntawm tes tshawb nrhiav thiab txuas rau AP "esp-emoji"
    2. WiFiManager Captive Portal qhia
    3. Nias "Configure WiFi" khawm
    4. Xaiv koj tus AP
    5. Sau tus lej AP
    6. Nias "Txuag" khawm
    7. ESP8266 pib rov pib dua
  3. ESP8266 pib txuas rau koj tus AP
  4. Siv koj lub xov tooj ntawm tes mus rau "esp-emoji.local"
  5. Xaiv Emoji thiab Ua Si!

Ref:

Kauj Ruam 9: Zoo Siab Kos Npe

Zoo Siab Kos Npe!
Zoo Siab Kos Npe!
Zoo Siab Kos Npe!
Zoo Siab Kos Npe!

Emoji teeb los ntawm Justin Cyr tweet tsuas yog piv txwv yooj yim, koj tuaj yeem npaj koj tus kheej li 8x8 Emoji teeb thiab qhia koj kos npe!

Arduino Kev Sib Tw 2019
Arduino Kev Sib Tw 2019
Arduino Kev Sib Tw 2019
Arduino Kev Sib Tw 2019

Khiav Tawm Hauv Arduino Contest 2019

Pom zoo: