Cov txheej txheem:

Cov Ntawv Ceeb Toom Zoo Tshaj - Ironman Tsab: 5 Kauj Ruam (nrog Duab)
Cov Ntawv Ceeb Toom Zoo Tshaj - Ironman Tsab: 5 Kauj Ruam (nrog Duab)

Video: Cov Ntawv Ceeb Toom Zoo Tshaj - Ironman Tsab: 5 Kauj Ruam (nrog Duab)

Video: Cov Ntawv Ceeb Toom Zoo Tshaj - Ironman Tsab: 5 Kauj Ruam (nrog Duab)
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Kaum ib hlis
Anonim
Image
Image
Cov Ntawv Ceeb Toom Zoo Tshaj - Ironman Tsab
Cov Ntawv Ceeb Toom Zoo Tshaj - Ironman Tsab

"Excelsior" - Stan Lee.

Cov Ntawv Ceeb Toom Zoo Tshaj

Cov lus qhia no tau mob siab rau leej txiv lig ntawm kuv tus superheroes uas kuv nyiam.

Rau qee lub sijhawm kuv muaj tus pej thuam Iron-man no ntawm lub txee. Nws yog khoom ua si ntawm lub hauv paus tsis txaus ntseeg muab rau kuv tom qab sib cav nrog phooj ywg. Kuv tau lees tias kuv tuaj yeem ua kom nws zoo dua. Lub sijhawm dhau mus thiab cov khoom ua si tsuas yog zaum ntawm kuv lub txee rau lub hlis thiab hli, tsis ua si nrog lub teeb LED tsis sib cuam tshuam lossis pleev xim.

Nws yog lub sijhawm los hloov qhov no!

Cia peb tso qee lub neej rau hauv Ironman no, pleev xim rau nws thiab ntxiv Jarvis-suav suav lub zog! Nws yog lub pov thawj rau kev lom zem ntau npaum li cas ib leeg LED tuaj yeem muab rau koj yog siv kom raug!

Nta:

  • Siab "txuas" tswj tau RGB LED teeb - yog ib qho xwb!
  • Muaj peev xwm tshaj tawm koj li Facebook, Twitter, WhatsApp lwm yam ntawv ceeb toom
  • Tau tshaj Alexa (yog tias koj xav tau)
  • Totally SuperHero tus phooj ywg
  • Jarvis sab hauv (nws yog ESP8266 tab sis qhov ntawd yog qhov ze tshaj plaws kuv tuaj yeem pom)

Sijhawm: 2hCost: txog 5 USD Kev nyuaj: Superhero yooj yim

(Nco tseg txoj haujlwm xav tau NodeRED server rau IoT txuas)

Muaj kev sib tw mus - yog tias kuv tuaj yeem yeej nws nrog ib qhov project LED uas yuav yog qhov kev paub zoo kawg nkaus! Pov npav tau txais txiaj ntsig ntau!

Cov lus qhia yog ua tiav raws qhov ntxim nyiam no sau los ntawm kuv! Koj tuaj yeem nyeem ntxiv txog nws nyob ntawd, tab sis ceeb toom cov lus qhia no yog kev ua nrog kev lom zem!

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse

Qhov no yuav yog daim ntawv teev cov cuab yeej luv tshaj plaws puas tau:

  • ESP8266-01 - ib yam li qhov no ($ 3)
  • 1 RGB LED WS2812b koj xav tau ib qho - nws tsis muaj nuj nqis!
  • 5V rau 3.3V stepdown (ua kom nws USB powered) ($ 2)

Koj tseem yuav xav tau cov hlau txuas (tus txiv neej), qee tus hero zoo ib yam ua siab ntev, ntiv tes khov kho thiab rab phom laser vim tias koj tsis tuaj yeem muaj cov lasers txaus. Tsis tas li ntawd yog tias koj tuaj yeem nkag mus hauv lub tsev … nres nyeem Peter no thiab mus thiab cawm lub nroog!

Nws yog qhov tseeb Kuv tsuas yog sim ua cov kauj ruam no zoo li hnyav. Qhov tseeb yog - qhov no yog txoj haujlwm lom zem kom tau txais koj txhais taw mus rau MQTT, NodeRED, ESP8266 thiab qee yam khoom siv hluav taws xob yooj yim. Koj tuaj yeem siv roj teeb los txhawb lub zog no tab sis ESP yam tsis muaj hom pw yuav zom los ntawm lawv sai heev.

Kauj Ruam 2: Tso Jarvis (esp8266) rau hauv Ironman

Tso Jarvis (esp8266) rau hauv Ironman
Tso Jarvis (esp8266) rau hauv Ironman

Nws tsis hu ua hmoov! Kuv tau npaj tag nrho tias:

  1. WS2812b muaj daim kab xev nplaum thiab haum rau sab nraub qaum ntawm ESP
  2. ESP8266 haum hauv Ironman lub taub hau (Tony yog lub taub hau loj tiag!)

Qhov tseeb lom zem: Kuv tus phooj ywg tam sim no muaj lub npe "Iron-man" (tsis txhob qhia nws tias, nws tsis paub txog qhov no). Kuv khaws cov npe npe txhua lub sijhawm kuv yuav tsum nrhiav tus nyob hauv tsev tshiab, ua ntej xaiv (Kuv tau hla Batman thiab Superman lawm). Tsis tsuas yog nws lub npe tshwm sim los ua Anthony, tab sis thawj lo lus nug nws tau nug yog hais txog lub rooj zaum hlau!

Ntau npaum li koj yuav raug ntxias kom muab tso ua ke - tsis txhob ua qhov no tseem tsis tau. Thaum WS2812b tau muab muag rau ESP8266 nrog txhua lub xov hlau, nws yuav nyuaj rau nyem qhov chaws.

Nrog qhov ntawd hauv siab - sijhawm rau Jarvis qib AI

Kauj Ruam 3: Software "Nyob Zoo Jarvis"

Software
Software
Software
Software

Muaj ob yam ntawm kev teeb tsa no:

NodeRED:

NodeRED yog qhov yooj yim siv thiab koj tuaj yeem ua ntau yam tsis txaus ntseeg nrog qhov no. Los ntawm kev siv tshuab yooj yim los qhia rau peb cov khoom ua si Jarvis yuav ua dab tsi! Kuv muaj kev qhia rau cov pib tshiab yog tias koj xav nthuav koj txoj kev paub ntxiv. Nws tsis xav tau rau cov lus qhia no. Yog tias koj xav ua kom lub teeb tshwm sim - cia li nyeem ntxiv.

Tus neeg rau zaub mov yog lub luag haujlwm rau 2 yam:

  1. txhawm rau ntes cov teeb meem (ceeb toom tuaj, khawm nias thiab lwm yam)
  2. xa cov lus txib kom teeb lub teeb

Txhawm rau sib tham nrog ESP8266 Kuv tab tom siv txoj hlua uas tau tsim nrog cov hauv qab no:

Hom ntawv: (tus lej: liab: ntsuab: xiav: LedON: LedOFF: Lub teeb ci: voj) tus lej: int 0-255 // tus lej ntsais liab: int 0-255 // liab channel (siv xim xaiv) ntsuab: int 0- 255 // ntsuab channel (siv xim xaiv) xiav: int 0-255 // xiav channel (siv xim xaiv) LedOn/Off: int mills 100-1000 // LED thiab ua kom lub sijhawm tawg: Brightness: int 0-255 // LED ci ci voj: int 0, 1, 2 // hom (suav/tas mus li ntsais muag/meej)

Raws li tus yuam sij no cov lus piv txwv zoo li no:

3:15:96:226:1000:300:255:0

Yuav txhais ua 3 Blue pulses ntev li 1 vib nas this txhua 300 ms ntawm qhov ci tag nrho.

Qhov no yuav xa ntawm MQTT mus rau ESP8266. Nws nyob ntawm koj qhov yuav ua rau kev ntsais muag yuav tshwm sim. Kuv yuav npog ob peb qho piv txwv piv txwv:

Kev Ceeb Toom Txawb

Pom tseeb los ntes cov lus thiab ceeb toom Kuv yuav siv Tasker thiab AutoNotification plugin. Txhua lub sijhawm kuv tau txais cov lus ntawm qee yam - cia ua WhatsApp thiab SMS - Kuv xav kom Ironman ntsais muag x zaug hauv y xim.

Hauv cov cuab yeej Android, koj tuaj yeem siv Tasker los tshuaj xyuas qhov kev ceeb toom uas tau muab tawm thiab ua qee yam raws li qhov no. AutoNotification yuav saib xyuas txhua qhov kev ceeb toom thiab yog tias nws tau tshaj tawm los ntawm SMS app lossis Whatsapp nws yuav xa HTTP Post rau NodeRED. Kuv muaj ntau Tasker cov lus qhia yog tias koj xav paub ntau ntxiv txog nws.

Txog WhatsApp Kuv yuav ntsais muag LED 6 zaug, teeb xim kom ntsuab

coj = 6: 15: 224: 99: 600: 100: 254: 0

Rau SMS Kuv xav kom LED tig xiav thiab ntsais 10 zaug coj-

10:15:96:226:1000:300:254:0

Koj tuaj yeem rub tawm thiab ntshuam cov ntaub ntawv Tasker tiav nrog txhua cov ntaub ntawv txuas nrog rau cov lus qhia no.

ESP8266

Siv MQTT - Kuv tab tom xa cov ntawv nrog cov ntaub ntawv ntawm LED yuav tsum coj li cas. Koj yuav tsum nyem ESP (tej zaum siv qhov DIY flash adapter no) siv Arduino IDE nrog cov cai. Txoj cai tau npaj rau koj, thiab txhua yam koj yuav tsum tau ua yog hloov kho daim ntawv pov thawj muaj tseeb nrog koj li WiFi nkag mus thiab NodeRED server cov ntaub ntawv.

#define SSID_NAME "xxxxxxx";#txhais SSID_PASS "xxxxxxx"; #define MQTT_SERVER "192.168.1.183"; #define MQTT_USER "xxxxxx"; #define MQTT_PASS "xxxxxx"; #define MQTT_CLIENT "Ironman2";

Yog tias koj tsis paub yuav ua li cas nyem ESP8266 - ntawm no yog phau ntawv qhia rau koj. Nco ntsoov tias kom ua haujlwm LED koj yuav xav tau FastLED lub tsev qiv ntawv los ntawm Arduino IDE.

Kauj ruam 4: Avengers Sib Sau

Avengers Sib Sau!
Avengers Sib Sau!

Nws yog lub sijhawm los muab txhua yam ua ke! Muaj ob peb yam ua. Koj tuaj yeem pom qhov txuas txuas tab sis hauv qhov yooj yim:

  1. USB cable txuas lub zog fais fab (1 thiab 4) mus rau 5V txog 3.3V qib qis
  2. 3.3V siv los txhawb lub zog RGB LED thiab ESP8266 (nco ntsoov fais fab CH-EN tus pin)
  3. Lub teeb liab xa los ntawm GPIO02 mus rau LED

Muab ob npaug rau xyuas tag nrho cov xov hlau, vim qhov ua yuam kev ntawm cov kauj ruam no tuaj yeem kim! Koj yuav luag npaj txhij! Nws yog lub sijhawm rau cov kauj ruam kawg!

Kauj Ruam 5: Nws Zoo Li Saib Cov Xim Qhuav

Hmoov zoo, Kuv tau nrawm cov duab rau koj - yog li koj tsis tas yuav thev 2h kev pleev xim! Siv cov xim acrylic thiab koj lub tswv yim los ua ib yam dab tsi nruab nrab zoo li epic!

Ib qho ntxiv, yog tias koj xav tau txais kev ceeb toom txog qhov hloov tshiab rau qhov no lossis lwm qhov haujlwm - txiav txim siab ua raws kuv ntawm lub platform uas koj xaiv: Facebook Twitter Instagram YouTube

Thiab yog tias koj xav zoo li yuav kuv kas fes lossis txhawb kuv txoj hauv kev txuas ntxiv mus:

Paypal Patreon

Kuv vam tias koj tau txaus siab rau txoj haujlwm!

Pom zoo: