Cov txheej txheem:

Teeb Teeb - Huab Cua thiab Ceeb Toom: 7 Cov Kauj Ruam (nrog Duab)
Teeb Teeb - Huab Cua thiab Ceeb Toom: 7 Cov Kauj Ruam (nrog Duab)

Video: Teeb Teeb - Huab Cua thiab Ceeb Toom: 7 Cov Kauj Ruam (nrog Duab)

Video: Teeb Teeb - Huab Cua thiab Ceeb Toom: 7 Cov Kauj Ruam (nrog Duab)
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Duab
Duab

Thaum tshawb xyuas los ntawm ntau yam, Kuv pom qhov no zoo kawg nkaus Wave Teeb thiab Kuv HAD los tsim nws.

www.thingiverse.com/thing: 774456

Lub teeb tau tsim zoo heev thiab luam tawm yam tsis muaj kev txhawb nqa (xav tau luam tawm ntawm ib sab)

Tsis tas li ntawd, muaj lub hauv paus teeb uas siv cov hlua LED

Duab
Duab

Thiab ntawm chav kawm, kuv tsis tuaj yeem yooj yim tso nws ua lub teeb ntawm lub txaj. Kuv yuav tsum ua nws wifi thiab qhia huab cua. Yog li, kuv siv txhua qhov ESP8266 module nrog WS2812B LEDs los tswj cov xim ntawm lub teeb raws li kev kwv yees hnub no. Tsis tas li ntawd, lub teeb hloov mus thaum 10:00 teev tsaus ntuj thiab qhib thaum 6:00 teev sawv ntxov.

Kauj ruam 1: Yuav tsum tau ua

Yuav tsum muaj
Yuav tsum muaj
Yuav tsum muaj
Yuav tsum muaj

Koj yuav xav tau cov khoom hauv qab no los tsim lub teeb nthwv dej no:

Cov Cuab Yeej:

  1. 3D tshuab luam ntawv - ib qho uas tuaj yeem luam tsawg kawg 30-35cm
  2. USB-TTL module rau program ESP-12E
  3. Kub Nplaum Phom
  4. Soldering Hlau

Khoom siv:

  1. PLA - dawb rau lub teeb thiab lwm xim rau lub hauv paus
  2. 30 WS2812B Chaw Nyob RGB LEDs
  3. ESP8266 - 12E
  4. 74HCT245N
  5. 5V Fais fab mov
  6. 5V-3.3V Fais fab hloov pauv
  7. Ob peb header pins thiab resistors
  8. Solder

Kauj ruam 2: Luam 3D

3D Luam
3D Luam
3D Luam
3D Luam
3D Luam
3D Luam

3D Luam cov ntawv hauv qab no

Teeb

  1. Luam tawm siv PLA dawb tig rau sab
  2. Kev txhawb nqa thiab Rafts tsis xav tau
  3. Txawm hais tias kuv tau siv 5mm brim kom ntseeg tau tias nws nyob qis qis rau lub txaj thaum luam ntawv
  4. Kuv siv cov chaw hauv qab no:

    • 0.8 hli volcano nozzle thiab 0.3mm txheej siab.
    • 2 puag ncig
    • 100% infill (qhov no tsis muaj teeb meem tiag tiag vim tias daim nyias nyias, lawv tau ntim rau hauv lawm)
  5. Ceeb toom - qhov no yog cov ntawv loj loj thiab siv sijhawm ntau. Yog li, yog tias koj tsis xis nyob tawm koj lub tshuab luam ntawv ib hmo (lossis ntau hmo) qhov no tsis yog rau koj. Tau nws luam tawm siv 3Dhubs. Kuv siv ~ 30 teev

Sawv

  1. Kuv hloov kho sawv ntsug siv TinkerCAD los tsim kab noj hniav hauv paus rau cov khoom siv hluav taws xob. Koj tuaj yeem rub nws ntawm no:
  2. Luam tawm siv cov xim PLA (Kuv siv ntoo ntim):

    • 0.8 hli volcano nozzle thiab 0.3mm txheej siab.
    • 2 puag ncig
    • 20% ntxiv
  3. Ceeb toom txawm hais tias - kab noj hniav kuv tau tsim tsis muaj kev txhawb nqa thiab sab hauv tau ntxais me ntsis (tshwj xeeb nrog cov ntoo PLA uas tsis ua choj zoo)

Sab saum toj

Qhov no yog ib qho xaiv tau. Kuv tsim nws hauv TinkerCAD kom zais lub qhov nyob saum lub teeb. Nws tsis muaj dab tsi zoo, tab sis ua haujlwm.

  1. https://www.tinkercad.com/things/5aD6V4O0jpy
  2. Kev txhawb nqa thiab Rafts tsis xav tau
  3. Kuv siv cov chaw hauv qab no:

    • 0.8 hli volcano nozzle thiab 0.3mm txheej siab.
    • 2 puag ncig
    • 30% ua ntej

Kauj Ruam 3: Hluav Taws Xob Hluav Taws Xob

Hauv Circuit Court
Hauv Circuit Court
Hauv Circuit Court
Hauv Circuit Court
Hauv Circuit Court
Hauv Circuit Court

Lub Circuit Court siv rau lub teeb no yooj yim heev thiab yog tias koj WS2812Bs (qee qhov ua, qee qhov tsis ua) ua haujlwm ntawm 3.3V teeb liab, nws yooj yim dua li koj tuaj yeem zam dhau 74HCT245N.

Lub hauv paus tseem ceeb (saib schematic saum toj no):

  1. ESP-12E (koj tuaj yeem hla cov theem no yog tias koj siv ib qho ntawm cov qauv tsim ua ntej los ntawm Adafruit, Sparkfun, thiab lwm yam):

    • Txuas tus pin 3 thiab 8 rau 3.3V
    • Txuas tus pin 1, 11 thiab 12 rau 3.3V los ntawm 10k resistor
    • Txuas tus pin 9 thiab 10 rau GND
    • Txuas tus pin 12 rau GND los ntawm kev qhib 2-tus pin txuas. Cov pins no tuaj yeem txuas ua ke los ua haujlwm rau ESP-12E
    • Txuas tus pin 15 thiab 16 rau tus pin header (cov no yog RX thiab TX pins siv los ua haujlwm ESP-12E)
  2. 74HCT245N (tsis quav ntsej qhov no yog tias koj WS2812B LEDs ua haujlwm ncaj qha ntawm 3.3V)

    • Txuas tus pin 1 thiab 20 rau +5V
    • Txuas tus pin 10 thiab 19 rau GND
    • Txuas tus pin 2 rau tus pin 13 ntawm ESP-12E
  3. TWS 2812B

    • Txuas +5V thiab GND rau +5V thiab GND pins feem
    • Txuas DIN rau tus pin 18 ntawm 74HCT245N
    • Yog tias koj hla 74HCT245N, txuas DIN rau tus pin 13 ntawm ESP-12E

Xyuas kom txhua tus GNDs txuas nrog ua ke. Nco ntsoov tias koj tsis txuas +5 lossis +3.3 rau GND.

Kuv muaj ob peb lub rooj zaum dag los ntawm qhov haujlwm ua ntej thiab siv yooj yim (cov duab saum toj no)

github.com/dushyantahuja/ESP8266-RGB-W-LED…

Kauj Ruam 4: Kev teeb tsa ESP-12E

Kev ua haujlwm ESP-12E
Kev ua haujlwm ESP-12E

Kuv siv Arduino IDE txhawm rau upload cov cai rau ESP-12E. Nws xav tau qee qhov teeb tsa ua ntej koj tuaj yeem ua qhov no.

Teeb tsa Arduino IDE

Qhov hloov tshiab kawg ntawm Arduino IDE tau ua kom yooj yim dua los teeb tsa cov laug cam no thiab koj tsis tas yuav hla ntau lub hoops kom nws ua haujlwm nrog ESP8266 cov laug cam.

Cov theem yog raws li hauv qab no:

  1. Rub tawm IDE tshiab kawg los ntawm
  2. Qhib IDE thiab mus rau Cov Cuab Yeej -> Boards -> Boards Manager …
  3. Tshawb nrhiav ESP8266 thiab nyem rau nruab (saib duab saum toj no)

Programming lub Module

Cov qauv no tsis tuaj nrog USB interface, yog li koj yuav tsum siv USB-TTL module / arduino los tswj kev sib txuas lus USB nrog lub khoos phis tawj. Koj tuaj yeem yuav ib qho ntawm cov qauv pheej yig muaj nyob ntawm ebay (https://www.ebay.com/sch/i.html?_from=R40&_sacat=0&…) - txhua qhov ua haujlwm ib yam - tsuas yog ceeb toom thaum pom cov tsav tsheb raug tias koj lub computer pom lub module.

Cov kev sib txuas yog yooj yim zoo nkauj:

  1. Txuas GND los ntawm USB-TTL rau tus pin cim GND ntawm ESP-12E
  2. Txuas 3.3V los ntawm USB-TTL rau tus pin cim VCC ntawm ESP-12E
  3. Txuas TX los ntawm USB-TTL rau tus pin cim RX ntawm ESP-12E
  4. Txuas RX los ntawm USB-TTL rau tus pin cim TX ntawm ESP-12E
  5. Luv qhov Program header kom tus PIN 12 txuas rau GND

Tam sim no tus qauv tau npaj los ua haujlwm.

Kauj ruam 5: Txoj Cai

Cov cai tau hnyav nyob ntawm kev qhia ntawm Random Nerd Tutorials https://randomnerdtutorials.com/esp8266-weather-fo…-raws li qhov tseeb qhov huab cua tau raug theej los ntawm qhov ntawd.

  1. Nruab cov tsev qiv ntawv hauv qab no:

    • FastLED (https://fastled.io)
    • ArduinoOTA (https://github.com/esp8266/Arduino/tree/master/libraries/ArduinoOTA)
    • ArduinboJSON (https://github.com/bblanchon/ArduinoJson)
  2. Tau txais OpenWeatherMap API (https://openweathermap.org/api)
  3. Rub tawm cov cai los ntawm github:
  4. Ua cov kev hloov hauv qab no:

    • Wifi thiab Lo lus zais ntawm kab 56 thiab 57
    • Lub Nroog thiab API Ntsiab Lus ntawm kab 23 thiab 24
  5. Hloov mus rau ESP-12E

Yog tias txhua yam mus tau zoo, cov cai tau tshaj tawm, koj tus qauv txuas rau lub router wifi thiab qhia huab cua. Tam sim no, Kuv tau teeb tsa kom:

  1. Yog tias nws yuav pos huab / nag - Xiav
  2. Yog tias nws yuav daus / cua daj cua dub - Liab -Xiav
  3. Yog tias nws ntshiab - Ntsuab
  4. Lwm Tus Zaj sawv - suav nrog rau cov xwm txheej tshwj xeeb / yuam kev

Koj tuaj yeem hloov pauv kab 365-377 los hloov cov no. Cov Palettes siv yog kab 70-82

Kauj Ruam 6: Sib sau ua ke

Image
Image
Arduino Kev Sib Tw 2017
Arduino Kev Sib Tw 2017

Sib sau ua ke cov khoom hauv qab no:

  1. Qhwv cov hlua LED rau ntawm lub teeb LED thiab lo nrog cov kua nplaum kub
  2. Ntxig lub Circuit Court module rau hauv qab thiab txuas nrog cov kua nplaum kub
  3. Xaub lub teeb nthwv dej saum lub LED sawv
  4. Muab tso rau saum toj

Plug rau hauv 5V fais fab mov thiab txaus siab rau

Kauj Ruam 7: Cov phiaj xwm yav tom ntej

Nws ua haujlwm tam sim no, txawm li cas los xij kuv npaj yuav ntxiv cov yam ntxwv hauv qab no:

  1. Koom nrog MQTT kom nws tuaj yeem txuas rau OpenHAB
  2. Tej zaum tsim qee yam kev ceeb toom rau kev hu tsis tau / lus
  3. Sawv kaj

Cov lus pom zoo txais tos. Thiab yog tias koj tsim ib qho, nco ntsoov tshaj tawm cov duab ntawm no.

Pom zoo: