Cov txheej txheem:

Giant LED - Nrhiav Adas Savage: 13 Kauj Ruam (nrog Duab)
Giant LED - Nrhiav Adas Savage: 13 Kauj Ruam (nrog Duab)

Video: Giant LED - Nrhiav Adas Savage: 13 Kauj Ruam (nrog Duab)

Video: Giant LED - Nrhiav Adas Savage: 13 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Giant LED - Nrhiav Adas Savage
Giant LED - Nrhiav Adas Savage
Giant LED - Nrhiav Adas Savage
Giant LED - Nrhiav Adas Savage
Giant LED - Nrhiav Adas Savage
Giant LED - Nrhiav Adas Savage

Ntawm no koj yuav pom qhov hloov pauv ntawm Giant LED, rov npaj siab ua raws li Twitter, YouTube thiab Twitch ceeb toom teeb. Nws lub hom phiaj tseem ceeb rau kuv yog txhawm rau ceeb toom thaum muaj tweets, vis dis aus lossis twitch ntws los ntawm Adas Savage thiab pab pawg sim, thiab kom muaj kev ncaj ncees, ob peb lwm tus neeg kuv ua raws li Robert Cowan, Marty the Mechanic thiab ntau ntxiv.

Pom tseeb kuv tuaj yeem siv twitter, twitch thiab lwm yam, ntawm kuv lub xov tooj lossis laptop, tab sis muaj ntau qhov kev ceeb toom los ntawm ntau cov kev pabcuam thiab cov ntawv ceeb toom uas kuv ib txwm tua lawv tag nrho, ntxiv rau lub xov tooj mus rau hauv hom ntsiag to tom qab 10pm Raws li nws tseem yuav ua haujlwm nrog Webhooks Kuv muaj ib qho kuj tau teeb tsa kom tau txais qhov hloov tshiab los ntawm qee qhov Biq Query cov lus uas ua haujlwm ntsig txog kom qhia rau kuv paub yog tias lawv tau hloov kho tshiab OK nrog cov ntaub ntawv txaus txhua hnub.

Adafruit muaj qhov kev pabcuam hu ua Adafruit IO uas kuv xav sim thiab kuv tau lub ntsiab lus txhua xyoo los sim thiab rov kho ESP8266 tom qab hnov qee cov lus zoo ntawm Wemos D1 Mini tso tawm 3. Nws txhua tus pib ua ke thaum kuv pom a tsim rau LED ntawm yam sib txawv los ntawm Astro73. Kuv pib nrog qhov ntawd thiab rov ua haujlwm nws me ntsis rau qhov ntsuas thiab tseem ntxiv lub laub khawm rau hauv paus thiab qee qhov kev hloov pauv kom zoo nkauj. Koj tuaj yeem pom qhov remix ntawm no

Ntxiv rau nws tuaj yeem yog lub suab tswj hwm los ntawm Alexa tam sim no nrog rau kev tshwm sim ntawm IFTTT alexa txhais cov lus.

Kauj ruam 1: Cov khoom xyaw

Yog tias koj xav ua ib qho ntawm cov npe ntawm cov khoom no me me thiab tseem pheej pheej yig. Yog tias koj tsis mloog qhov tos koj tuaj yeem muab cov khoom tseem ceeb los ntawm txawv teb chaws thiab txo tus nqi ntau dua. Cov khoom tseem ceeb txawm li cas los xij yog Giant LED rooj plaub thiab hauv paus. Yog tias koj muaj lub tshuab luam ntawv 3D ces koj tau teeb tsa tag nrho, yog tias tsis muaj qee lub tuam txhab tshuab luam ntawv online uas yuav luam tawm ib feem. Tsuas muaj 3 qhov ntawd yuav tsum yog qhov pheej yig.

1. Wemos D1 Mini R3

2. Neopixel 8 LED

3. Luam lub hauv paus thiab txhais ceg hauv PETG dub

4. Luam lub lens thiab tuav lub teeb hauv pob tshab PLA

5. Laub Khawm Hloov 12mm square x1

6. Hloov Push Button Cap x1

7. USB lead thiab adapter rau lub hwj chim

8. M3x20 khawm taub hau

9. M3 Txiv ntoo

10. M2x8mm ntsia liaj qhov rooj x2

11. M2 Txiv ntoo x2

12. Ib co xaim dub, Liab thiab daj

13. 300-500 Ohm Resistor

14. Me me ntawm heatshrink

Koj tuaj yeem siv lwm yam khoom siv ESP, lossis txawm tias Huzzah, tab sis rooj plaub tau tsim los rau lub me me uas muaj qhov sib dhos thiab zam kom tsis txhob lo rau hauv.

Kauj Ruam 2: Cov Cuab Yeej

Txhawm rau tsim thiab tsim qhov no koj yuav xav tau cov hauv qab no

1. 3D tshuab luam ntawv

2. 1.5 hli thiab 2 hli Allen qhov tseem ceeb

3. Soldering Iron thiab solder

4. Cov neeg siv xov tooj

5. Puas

6. Kev lom zem

7. Scalpel rau trimming

Kauj Ruam 3: Txoj Cai Yuav Tsum Tau

Yog li ua ntej peb dhia mus rau hauv kev tsim Kuv yuav piav qhia qee qhov kev xav tau uas kuv xav suav nrog hauv qhov no. Feem ntau ntawm cov no kuv tau nyob hauv siab ua ntej pib thiab kuv tau kos tawm ob peb qhov dej ntws los ua haujlwm qhov kuv tau sim. Raws li nws tau mus ntxiv txawm tias kuv pom qee qhov teeb meem nrog cov kev pabcuam uas kuv xav hais txog.

Yuav tsum muaj.

Kuv xav kom LED los qhia kuv thaum lub tweet tshiab lossis yees duab tau tshaj tawm thiab nws tseem tshwm sim thaum qhov tshwj xeeb Twitch channel pib. Kuv kuj xav kom ceeb toom txuas ntxiv mus kom txog thaum kuv tso tseg yog li yog tias kuv tau nyob ib ntus kuv yuav paub tias muaj dab tsi tshwm sim thaum kuv tau mus lawm. Kuv kuj xav kom nws teeb tsa tau rau kev siv Wi-nkaus yam tsis tas yuav thim rov qab software ib yam. Ib qho kawg uas tau txiav tawm ib yam ntxiv yog ntxiv rau kev teb rau cov xwm txheej nyob, Kuv xav tau nws los tshuaj xyuas txhua 15 feeb cov xwm txheej ntawm cov ntaub ntawv pub rau nws

Yog li nrog cov hauv paus hauv qhov chaw, qhov tom ntej yog ua haujlwm seb txhua feem yuav ua tiav li cas. Koj tuaj yeem pom kuv cov tswv yim hauv qab no uas ib feem twg yuav raug daws los ntawm hom software lossis platform twg.

1. Adafruit IO, qhov no yog siv los teeb tsa pub rau ceeb toom, koj tuaj yeem tau txais tus as khauj ntawm no

Kuv tab tom yuav siv qhov no los ua kab lus xa xov uas kuv yuav xa nws cov lus los ntawm IFTTT thiab tom qab ntawd Giant LED tau txais cov lus ntawd kom nws tuaj yeem ua rau lawv.

2. IFTTT, https://ifttt.com/ thiab qhov no yog siv los luam theej Twitter, YouTube thiab Twitch raws thiab tom qab ntawd xa qhov xwm txheej mus rau Adafruit IO

3. ESP8266 txoj cai los nyeem cov ntawv no thiab qhov no tau hlawv rau ESP8266 los ntawm kev siv tus qauv Arduino IDE (v1.8.8)

4. Arduino code, thauj mus rau ESP8266 los nyeem Adafruit IO txau thiab teeb lub Neopixel

5. Arduino code los nyeem lub laub khawm kom tshem qhov ceeb toom

6. Muaj peev xwm teeb tsa lub WiFi adapter tsis tas yuav rov ESP, thiab rau qhov no kuv tau siv WiFi Tus Thawj Saib Xyuas Tsev Qiv los ntawm Tzapu, https://github.com/tzapu/WiFiManager txawm hais tias teeb tsa kev xaiv xav tau hloov me ntsis kom haum Adafruit IO cov tsev qiv ntawv.

Kauj Ruam 4: Teeb Adafruit IO

Teeb tsa Adafruit IO
Teeb tsa Adafruit IO

Nov yog thawj kauj ruam raws li koj yuav xav tau cov yuam sij nkag mus uas koj tsim ntawm no thiab tseem yuav tsum tsim cov txau uas IFTTT yuav xa cov xwm txheej mus rau. Koj tuaj yeem teeb tsa ob qho no thiab tus lej IFTTT thiab zoo nkauj npaum li tau txais txhua yam teeb tsa thiab ua haujlwm ua ntej koj tsiv mus rau Arduino ib feem ntawm txoj haujlwm no.

Ntau dua li theej cov piv txwv adafruit koj tuaj yeem pom cov hauv paus ntawm no https://learn.adafruit.com/gmailbox/adafruit-io-se… uas yuav ua rau koj teeb tsa.

Tom qab ntawd rau GIANT LED koj tseem yuav xav tau ntxiv rau qhov tsis raug raws raws cov lus qhia hauv qab no

1. xim - qhov no cia peb hloov xim nyob deb nrog qee yam zoo li Alexa

2. zog

3. twitterfan

4. youtubefan

Tom qab ntawd koj kuj yuav tsum tsim pawg tshiab yog tias koj tsis tau hu ua tswv yim, tom qab ntawd hauv pab pawg no tseem tsim cov khoom noj hu ua digital. Qhov no tseem yuav qhia rau peb pom qhov cuam tshuam ntawm kev nias lub pob yog tias peb xav nthuav kev siv lub cuab yeej no rau lwm lub hom phiaj.

Yog tias koj tseem xav tau ntawm qhov no yog ua si nrog lub dashboard kom koj tuaj yeem ntxiv cov txau rau nws rau cov ntaub ntawv thiab nrhiav lub hom phiaj ua txhaum.

Kauj Ruam 5: Teeb IFTTT

Kev teeb tsa IFTTT
Kev teeb tsa IFTTT
Kev teeb tsa IFTTT
Kev teeb tsa IFTTT

Koj tseem tuaj yeem ua raws Adafruit phau ntawv qhia ntawm no, https://learn.adafruit.com/gmailbox/ifttt-setup. Tom qab ntawd koj tuaj yeem xaiv Twitter, youtube thiab twitch ua los teeb tsa koj cov npe teev npe thiab tom qab ntawd xa cov no mus rau cov khoom noj uas cuam tshuam. Kuv tau txuas daim vis dis aus yooj yooj yim kom koj tuaj yeem pom sai npaum li cas.

Ib qho ntxiv yog tias koj xav kom tswj lub suab ntawm koj cov LED los ntawm Alexa tam sim no muaj Amazon Alexa applet. Txhawm rau teeb tsa ib qho ntawm no xaiv lub app thiab xaiv lo lus xiav, tom qab ntawd txuas nws mus rau Adafruit pub koj tau teeb tsa hu ua xim thiab sau 0000ff raws li cov ntaub ntawv xa mus rau qhov ntawd. Koj kuj tseem tuaj yeem hla cov lus txib ntxiv no mus rau GIANT LED xws li rov pib dua lossis rov pib dua yog tias koj xav tau.

Thaum koj tab tom teeb tsa IFTTT koj yuav tsum xaiv cov ntaub ntawv uas tau xa thiab qhov no hu ua "Cov Khoom Siv" hauv IFTTT. Thawj daim uas peb xav tau yog "UserName" tom qab ntawd muaj qhov chaw thiab tom qab ntawd "CreatedAt"

Peb khaws ob yam khoom kom thaum cov ntaub ntawv tuaj txog hauv ESP8266 peb tuaj yeem tshawb pom yog tias nws yog tweet tshiab thiab tias nws txawv los ntawm tweets yav dhau los los ntawm tib tus neeg siv. Koj tuaj yeem pom dab tsi qhov no yuav tsum nyiam los ntawm daim duab txuas.

Kauj Ruam 6: Txhim Kho ESP8266 Boards rau hauv Arduino IDE

Nov yog qhov uas qee yam me ntsis dag thiab yuav siv sijhawm me ntsis ntxiv txhawm rau txheeb xyuas. Ntxiv rau ESP8266 koj kuj xav tau Adafruit IO cov tsev qiv ntawv thiab koj tuaj yeem ua raws phau ntawv qhia no rau cov ntawd.

learn.adafruit.com/gmailbox/arduino-setup

Muaj qhov piav qhia yooj yim ntawm yuav ua li cas ntxiv ESP8266 cov laug cam ntawm no ib yam thiab

Tsis txhob hnov qab kom ntseeg tau tias koj li Arduino IDE tau mus txog qhov hloov tshiab ib yam nkaus thiab kuv tau siv 1.8.8 thaum lub sijhawm sau qhov no.

Ib lub tsev qiv ntawv lwm yam peb siv yog SimpleTimer vim qhov no yuav tso cai rau peb teeb tsa lub sijhawm tom qab yog li peb tuaj yeem tshawb xyuas ntu ntu, cov lus qhia rau qhov no tuaj yeem pom ntawm kev siv simpletimer https://playground.arduino.cc/Code/SimpleTimer# Rub tawm

Kauj Ruam 7: Txhim Kho Lub Tsev Haujlwm Saib Xyuas WiFi

Txhawm rau pab peb kom tau txais kev teeb tsa teeb tsa ntawm WiFi teeb tsa peb yuav siv Tzapu Wifi Manger, cov ntsiab lus ntawm qhov no thiab yuav teeb tsa cov tsev qiv ntawv tuaj yeem pom ntawm no, github.com/tzapu/WiFiManager

Nov yog qhov yooj yim zoo nkauj nruab ntawm cov tsev qiv ntawv sab nraud thiab qhov kev xaiv twb muaj nyob hauv Tswj lub tsev qiv ntawv ntu ntawm koj Arduino IDE cov cuab yeej ntu.

Kauj Ruam 8: ESP8266 Code - Nrog Debug Printing

// Cov cai no muaj cov ntawv luam tawm kom koj tuaj yeem saib xyuas nws txoj haujlwm ntawm Serial monitor

// Raws li Adafruit IO RGB LED Cov Qauv Piv Txwv // Adafruit nqis peev sijhawm thiab peev txheej muab qhov chaws qhib no. // Thov txhawb Adafruit thiab qhib qhov khoom kho vajtse los ntawm kev yuav khoom // cov khoom lag luam los ntawm Adafruit! // // Sau los ntawm Todd Treece rau Adafruit Industries // Copyright (c) 2016-2017 Adafruit Industries // Muaj ntawv tso cai raws li MIT daim ntawv tso cai. // // Txhua cov ntawv sau saum toj no yuav tsum suav nrog txhua qhov kev faib tawm. // siv simpletimer https://playground.arduino.cc/Code/SimpleTimer#Do… // https://playground.arduino.cc/Code/SimpleTimer#Do… // so ntawm cov cai los ntawm Ajax Jones https:// playground.arduino.cc/Code/SimpleTimer#Do // https://playground.arduino.cc/Code/SimpleTimer#Do… // ******************* ******* Kev teeb tsa ********************************************** #define IO_USERNAME "koj li IO Lub npe siv "#define IO_KEY" koj tus lej IO "// tawm mus dawb li peb yuav tau txais los ntawm Tus Thawj Tswj Wifi, zoo li ua haujlwm zoo li no #define WIFI_SSID" "#define WIFI_PASS" "// peb tsis suav nrog qhov no li AdafruitIO yuav suav nrog nws cov ntawv // #suav nrog //https://github.com/esp8266/Arduino // xav tau rau lub tsev qiv ntawv #include #include #include "WiFiManager.h" //https://github.com/tzapu/WiFiManager # suav nrog SimpleTimer timer; #suav nrog "AdafruitIO_WiFi.h" AdafruitIO_WiFi io (IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS); // ************************ NeoPixel teeb tsa ********************** ********* // #include "Adafruit_NeoPixel.h" #define PIXEL_PIN 5 #define PIXEL_COUNT 8 int NUM_LEDS = PIXEL_COUNT; #define PIXEL_TYPE NEO_GRB + NEO_KHZ800 Adafruit_NeoPixel pixels = Adafruit_NeoPixel (PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE); // Cov xim tseem ceeb thiab xim xim ntev default_color = 865554; ntev RED_color = 2689027; // liab #290803 ntev GREEN_color = 865554; // ntsuab #0d3512 ntev BLUE_color = 856117; // xiav #0d1035 ntev PURPLE_color = 2364968; // ntshav #241628 ntev BRIGHTRED_color = 15990784; // ci liab #f40000 // ---------------------------------------------- ----------------------------------------------- // sijhawm lub tswv yim los ntawm https://www.safaribooksonline.com/library/view/arduino-cookbook-2nd/9781449321185/ch12.html https://playground.arduino.cc/Code/SimpleTimer#Do… https:// playground. arduino.cc/Code/SimpleTimer#Do… const ntev oneSecond = 1000; // thib ob yog ib txhiab milliseconds const ntev oneMinute = oneSecond * 60; const ntev tsibMinutes = oneMinute * 5; const ntev kaum tsibMinutes = tsibMinutes * 3; const ntev oneHour = kaum tsib feeb * 4; // Twitter Cov neeg siv peb nyiam tshaj plaws thiab cov no yuav nyem thiab txhua lwm yam tweets peb tau xaiv yuav tsuas yog hloov xim String SuperTweet = {"ajaxjones", "donttrythis", "prodnose", "testedcom"}; Txoj hlua SuperTuber = {"sim", "cowan", "marty"}; // teeb tsa qhov xwm txheej ceeb toom kom peb tuaj yeem ua kom pom qhov LEDS hauv lub ntsiab lus tseem ceeb bool WHIZZY_TWEET = cuav; bool WHIZZY_TUBER = tsis tseeb; bool WHIZZY_TWITCH = tsis tseeb; // Khaws qhov kawg ntawm tweet thiab youtube yog li peb tuaj yeem thawb qhov kev pabcuam los txheeb xyuas ob zaug tam sim no thiab tom qab ntawv String lasttweet = ""; Txoj hlua lasttube = ""; Txoj hlua lasttwitch = ""; // digital pin 5, qhov no yog lub pob peb siv los rov pib dua cov xim ceeb toom #define BUTTON_PIN 4 // khawm lub xeev, tsis yog qhov tiag uas tau siv raws li peb tab tom nrhiav lub pob ntawm interupt bool tam sim no = cuav; bool kawg = tsis tseeb; // teeb tsa 'xim' pub, yog li peb tuaj yeem sim thiab xa cov xim raws qhov xav tau lossis siv Alexa txhais AdafruitIO_Feed *xim = io.feed ("xim"); // teeb tsa 'twitterfan' pub - Blue AdafruitIO_Feed *twitter = io.feed ("twitterfan"); // teeb tsa 'youtubefan' pub - Red AdafruitIO_Feed *youtube = io.feed ("youtubefan"); // teeb tsa 'twitch' pub - Ntshav AdafruitIO_Feed *twitch = io.feed ("twitch"); // teeb tsa 'digital' pub AdafruitIO_Feed *digital = io.feed ("input.digital"); // ----------------------------------------------------------------------- ----------------------------------------- tsis muaj teeb meem teeb tsa () {// teeb tsa khawm tus pin ua tswv yim, peb siv INPUT_PULLUP raws li peb tsis tas yuav siv sab nraud resistors pinMode (BUTTON_PIN, INPUT_PULLUP); // Txuas qhov cuam tshuam rau ISR vector rau lub khawm attachInterrupt (digitalPinToInterrupt (BUTTON_PIN), handleInterrupt, FALLING); // Pib ua ntu zus thiab tos rau cov saib txuas mus qhib tom qab txuas rau io.adafruit.com Serial.begin (115200); thaum (! Serial); // neopixel pib pixels.begin (); // Teem lub xeev intial rau liab kom peb paub tias peb nyob nraum offline thiab ua haujlwm setAll (0xf4, 0x00, 0x00); // liab // rau kev sim, qhov no yuav qhia qhov xwm txheej ntawm WiFi WiFi.printDiag (Serial); WiFiManager wifiManager; // teeb tsa kev hu rov qab uas tau hu thaum txuas mus rau WiFi yav dhau los tsis ua, thiab nkag mus rau Access Point hom wifiManager.setAPCallback (configModeCallback); // rov pib dua qhov chaw teeb tsa, tsis hais tawm kab ntawv tom ntej no kom yuam kev ntsuas ntawm WiFi Manager yog li koj tuaj yeem txuas // siv koj lub xov tooj lossis ntsiav tshuaj los saib rau Giant LED network uas yuav tshwm sim //wifiManager.resetSettings (); // teeb tsa lub sijhawm kom txog thaum teeb tsa lub portal raug kaw // muaj txiaj ntsig los ua txhua qhov rov los lossis mus pw // hauv vib nas this wifiManager.setTimeout (240); yog (! wifiManager.autoConnect ("GIANT LED")) {Serial.println (F ("ua tsis tiav txuas thiab ntaus sijhawm")); // rov pib dua thiab sim dua ncua (3000); ESP.reset (); ncua (1000); } // rau kev sim peb tuaj yeem pom yog tias peb muaj cov ntaub ntawv raug cai los txuas //Serial.println (WiFi. SSID ()); //Serial.println(WiFi.psk());//WiFi.begin(WIFI_SSID, WIFI_PASS); // thaum (WiFi.status ()! = WL_CONNECTED) {// ncua (500); //Serial.print ("."); //} Serial.println (); Serial.println (F ("Txuas nrog WiFi")); Serial.println (F ("IP chaw nyob:")); Serial.println (WiFi.localIP ()); // tam sim no peb txuas rau IO kev pabcuam Serial.print (F ("Txuas rau Adafruit IO")); io.connect (); // teeb tsa tus tuav tes xov rau 'xim' pub. color-> onMessage (handleMessage); // teeb tsa tus xa xov rau 'twitterfan' pub. twitter-> onMessage (twitterMessage); // teeb tsa tus xa xov rau 'youtubefan' pub. youtube-> onMessage (youtubeMessage); // teeb tsa tus tuav tes xov rau 'twitch' pub. twitch-> onMessage (twitchMessage); // tos rau qhov txuas thaum (io.status () <AIO_CONNECTED) {Serial.print (F (".")); ncua (500); } // peb txuas nrog Serial.println (); Serial.println (io.statusText ()); //Serial.println(sizeof(SuperTweet)); //Serial.println(sizeof(SuperTweet[0])); // Luam tawm cov npe ntawm Twitter tus account peb tab tom tos (byte idx = 0; idx <sizeof (SuperTweet) / sizeof (SuperTweet [0]); idx ++) {Serial.print (F ("SuperTweet [")); Serial.print (idx); Serial.print ("] = '"); Serial.print (SuperTweet [idx]); Serial.println ("'"); } // Luam tawm cov npe ntawm YouTube tus account peb tab tom tos (byte idx = 0; idx tau (); // thov cov xeev uas twb muaj lawm ntawm txau, yog li koj yuav tsum tau nyem qhov pib dua thaum nws pib youtube -> tau (); twitter-> tau (); twitch-> tau (); rau (int i = 0; kuv tau (); twitter-> tau (); twitch-> tau (); Serial.print ("tau txais qee qhov tweets"); Serial.print ("uptime (s):"); Serial.println (millis () / 1000);} // ---------------- ----------------------------------------------------------------------- ----------------------- void loop () {// io.run (); yuav tsum muaj rau txhua daim duab. io.run (); timer. run (); yog (WHIZZY_TWEET == tseeb) {RunningLights (0x0d, 0x10, 0x35, 250);} yog (WHIZZY_TUBER == muaj tseeb) {RunningLights (0x29, 0x08, 0x03, 250);} yog (WHIZZY_TWITCH == muaj tseeb) {RunningLights (0x24, 0x16, 0x28, 250);}} // --------------------------------- ----------------------------------------------------------------------- ------ // teeb tsa qhov kev cuam tshuam kom tshem tau qhov kev ceeb toom thaum lub pob nyem thiab tshawb xyuas hauv internet tsis muaj dab tsi handleInterrupt () {WHIZZY_TWEET = cuav; WHIZZY_TUBER = tsis tseeb; WHIZZY_TWITCH = tsis tseeb; tam sim no = muaj tseeb; // xa lub xeev tam sim no mus rau 'input.digital' pub ntawm adafruit io yog li peb tuaj yeem pom nws digital-> txuag (tam sim no); rau (int i = 0; i ")); Serial.print (tam sim no); Serial.print (F (" thiab xim pib ")); Serial.println (default_color); tam sim no = tsis tseeb; digital-> txuag (tam sim no); thaum (WiFi.status ()! = WL_CONNECTED) {ncua (500); setAll (0xeb, 0xfb, 0x03); // Yellow ebfb03}} // -------------- ----------------------------------------------------------------------- ------------------------- // qhov no hu thaum twg los tau 'twitter' cov lus tuaj txog-teeb tsa LED rau Xiav tsis muaj dab tsi twitterMessage (AdafruitIO_Data *cov ntaub ntawv) {String tweeter = (data-> toString ()); tweeter.toLowerCase (); if ((lasttweet! = Tweeter) &&& (tweeter! = "")) {Lasttweet = tweeter; setAll (0x0d, 0x10, 0x35); // Teeb tweet xim xiav Serial.print (F ("Tweet:")); Serial.print (tweeter); // txheeb xyuas qhov nyiam tweeter rau (byte idx = 0; idx = 0) {// Cia ua rau lawv tweets whizzy #0d1035 WHIZZY_TWEET = tseeb; Serial.print ("los ntawm"); Serial.print (SuperTweet [idx]);}} Serial.println ("");}} // --------- ----------------------------------------------------------------------- ------------------------------- ua tsaug - // qhov no hu thaum twg los 'youtube' cov lus tuaj txog- teeb LED rau RED tsis muaj dab tsi youtubeMessage (AdafruitIO_Data *cov ntaub ntawv) {String tuber = (data-> toString ()); tuber.toLowerCase (); yog ((lasttube! = tuber) && (tuber! = "")) {lasttube = tuber; setAll (0x29, 0x08, tso)0x03; ib. // Teeb youtube liab xim 290803 Serial.print (F ("Youtube:")); Serial.println (tuber); // kos rau Youtuber tus nyiam rau (byte idx = 0; idx = 0) {// Cia ua rau lawv cov vis dis aus tsis zoo #0d1035 WHIZZY_TUBER = muaj tseeb; Serial.print ("los ntawm"); Serial.print (SuperTuber [idx]); }} Serial.println (""); }} // ------------------------------------------------------- ------------------------------------------- // qhov no hu ua thaum twg los tau 'twitch' cov lus tuaj txog - teeb tsa LED rau PURPLE void twitchMessage (AdafruitIO_Data *data) {String twitch = (data-> toString ()); twitch.toLowerCase (); yog ((lasttwitch! = twitch) && (twitch! = "")) {lasttwitch = twitch; setAll (0x24, 0x16, 0x28); // Teeb twitch xim xim #241628 Serial.print (F ("Twitch:")); Serial.println (ntswj); // Tsis kos rau tus nyiam Twitcher peb tsuas ua raws ib qho WHIZZY_TUBER = muaj tseeb; Serial.println (""); }} // ------------------------------------------------------- ------------------------------------------- // Txoj haujlwm no hu ua thaum twg los xij lus 'xim' tau txais // uas yuav teeb tsa lub xim xim pib thaum pib raws qhov kawg xim pub tus nqi tsis muaj dab tsi handleMessage (AdafruitIO_Data *cov ntaub ntawv) {// luam RGB qhov tseem ceeb thiab hex tus nqi Serial.print (F ("Tau txais HEX tus nqi: ")); Serial.println (data-> tus nqi ()); ntev xim = data-> toNeoPixel (); // default_color = xim; Serial.print (F ("Tau Txais HEX ntev:")); Serial.println (xim); rau (int i = 0; kuv <PIXEL_COUNT; ++ i) {pixels.setPixelColor (i, xim); } showStrip (); } // ------------------------------------------------------- ------------------------------------------ tsis muaj dab tsi RunningLights (byte liab, byte ntsuab, byte xiav, int WaveDelay) {int Txoj Haujlwm = 0; rau (int j = 0; j <NUM_LEDS; j ++) {Txoj hauj lwm ++; // = 0; // Txoj hauj lwm + Tus nqi; rau (int i = 0; i <NUM_LEDS; i ++) {setPixel (i, ((sin (i + Txoj Haujlwm) * 127 + 128) / 255) * liab, ((sin (i + Txoj Haujlwm) * 127 + 128) / 255)*ntsuab, ((sin (i + Txoj Haujlwm)*127 + 128) / 255)*xiav); } showStrip (); ncua (WaveDelay); }} // ------------------------------------------------------- ------------------------------------------- // Neopixel ib txwm ua tsis muaj dab tsi setAll (byte liab, byte ntsuab, byte xiav) {rau (int i = 0; kuv getConfigPortalSSID ()); // nkag mus rau hom teeb tsa, teeb Neo Pixel rau ntshav #241628 = 2364968 // setAll (0x24, 0x16, 0x28); setAll (0xeb, 0xfb, 0x03); // Daj ebfb03}

Kauj Ruam 9: Txhim Kho Txhua Yam Ua Ke

Soldering Nws Txhua Qhov Ua Ke
Soldering Nws Txhua Qhov Ua Ke
Soldering Nws Txhua Qhov Ua Ke
Soldering Nws Txhua Qhov Ua Ke
Soldering Nws Txhua Qhov Ua Ke
Soldering Nws Txhua Qhov Ua Ke

Txhua yam hauv kev tsim qauv no tau muab muag ua ke thiab yuav tsum yooj yim heev rau kev tswj hwm. Kuv tau siv 3 lub xov hlau sib txawv los ua kom yooj yim thiab thawj qhov yog ntsuas hlau rau neopixel rau WEMOS. Kuv plaited lawv thiab muab ib qho me me ntawm cov cua sov-ntsws rau thiab tom qab ntawd muab lawv pov rau hauv raws li qhia kom nws yuav nteg tiaj hauv lub lens.

Lub pob yog tom ntej thiab yuav haum snug rau hauv paus. Ib sab ntawm lub pob mus rau Gnd thiab qhov no tau sib dhos ua ke nrog Cov av hauv av ntawm neopixel. Tom qab ntawd kuv tau ntim lawv thiab muab lawv ua ib qho rau hauv tus pin hauv av ntawm WEMOS.

Lub hwj chim ua rau Neopixel mus rau 5v PIn. Cov teeb liab xaim, lossis Di (cov ntaub ntawv hauv) ntawm neopixel tau muab muag rau Wemos tus pin li D1. Muaj qee qhov chaw uas qhia kom ntxig 300-500 Ohm resistor hauv koob nrog qhov no, tab sis tam sim no kuv tseem tsis muaj teeb meem yog li tam sim no nws tsuas yog kev sib txuas ncaj qha.

Kom ntseeg tau kev coj ua zoo, thiab ntawm cov lus qhia ntawm cov chaw xws li Adafruit Kuv tau muab 330R tus tiv thaiv nyob rau hauv ua ke nrog Di kab mus rau neopixel. Nws yog txhawm rau tiv thaiv thawj LED hauv lub nplhaib los ntawm kev tso tawm cov khawv koob khawv koob thiab yooj yim ua los ntawm kev txiav cov xaim thiab tso tus tiv thaiv rau hauv. Ib qho me me ntawm heatshrink yuav nres txhua txoj kev luv luv. Koj tuaj yeem txiav tus tiv thaiv luv luv zoo nkauj thiab tsuas yog muab lub hoop nyob hauv txhua qhov kawg thiab ua tib yam nrog cov xaim.

Lwm cov xaim rau khawm mus ncaj qha rau tus pin D2. Tsis tas yuav xav tau tus rub tawm tus neeg tawm tsam vim qhov no tau ua nyob rau hauv cov software los ntawm kev muab PULLUP hais kom tiv thaiv tus pin ntawd.

Qhov ntawd yog txhua yam muaj rau nws.

Kauj ruam 10: 3D luam tawm

Txuas ntawm no yog cov ntaub ntawv STL peb tab tom siv rau Giant LED. Cov ntaub ntawv yog qhov rov ua dua/rov ua haujlwm ntawm astro73 thiab koj tuaj yeem khaws txhua cov ntaub ntawv los ntawm https://www.thingiverse.com/thing:3290837 ib yam.

Rau ob txhais ceg thiab hauv paus Kuv siv Sunlu PETG+ filament uas ua haujlwm tau zoo heev ntawm Prusa i3 thiab kuv siv 10 lossis 20% gyroid infill.

Rau LED nws tus kheej Kuv tau siv Sunlu pob tshab PLA thiab siv ib puag ncig 10% ntxiv nrog cov txheej saum toj thiab hauv qab.

Nrog txhua tus kuv tsuas yog siv Tshuag Prusa PET thiab Prusa PLA teeb tsa hauv Slic3r thiab lawv txhua tus ua haujlwm tau zoo. Kuv tau txais txoj hlua me me ntawm ob txhais ceg, tab sis kuv tsuas yog siv lub tshuab cua tshuab hla lawv thiab txoj hlua ploj mus:)

Kauj Ruam 11: Giant LED Los Ua Ke

Giant LED los ua ke
Giant LED los ua ke
Giant LED los ua ke
Giant LED los ua ke
Giant LED los ua ke
Giant LED los ua ke

Txhua daim mus ua ke yooj yim heev, koj yuav tsum nias M3 txiv ntoo rau hauv lub hauv paus kom tso cai rau cov ntsia hlau los tuav qhov khoom ua ke. Koj kuj yuav tsum tau xaim NeoPixel rau WEMOS los ntawm ob txhais ceg ua ntej ib yam. Kuv tau txiav txim siab yuav ua li cas tso qee qhov txuas rau hauv, tab sis txiav txim siab tias nws yuav tsis sib nrug yav tom ntej.

Lub lens tsuas yog thawb kom haum rau ob txhais ceg thiab lawv tau tig mus rau lub hauv paus nrog ib leeg M3x20mm ntsia liaj qhov rooj. Koj yuav xav tau rab riam nyob sab hauv ntawm lub qhov khawm kom nws txav tau zoo thiab ywj pheej. Lub Wemos tau tuav nyob rau hauv qhov chaw nrog 2 M2x8 qhov ntsawb ntsia hlau ntsia los ntawm hauv qab no.

Txhawm rau ua kom tiav, koj tuaj yeem lo ib daim ntawm kev xav mus rau lub hauv paus kom tsis txhob muaj qhov swb yog tias xav tau.

Kauj Ruam 12: Teeb thiab Cov Lus Qhia Ua Haujlwm

Image
Image
Teeb thiab Cov Lus Qhia Ua Haujlwm
Teeb thiab Cov Lus Qhia Ua Haujlwm
Teeb thiab Cov Lus Qhia Ua Haujlwm
Teeb thiab Cov Lus Qhia Ua Haujlwm

Nrog txhua yam npaj txhij thiab cov software tso tawm thov qee lub zog rau usb thiab GIANT LED yuav tsum los thiab LED yuav mus RED thiab tom qab ntawd hloov mus rau xim daj. Qhov no qhia tias nws tawm ntawm kab thiab tos rau wifi teeb tsa. Siv xov tooj lossis saib zoo li GIANT LED wifi network thiab txuas thiab koj yuav tau txais WiFi Manager screen. Nws yuav tau tshuaj xyuas koj thaj tsam hauv cheeb tsam thiab koj tsuas yog sau koj cov ntsiab lus wifi, ESP yuav rov pib dua thiab tam sim no koj yuav online nrog lub teeb ntsuab. Nws tseem yuav txuas ntawm qhov no mus rau IO thiab lub teeb ceeb toom yuav tshwm tuaj vim nws tseem tsis tau pom dua cov lus yav dhau los. Nias lub pob ob peb lub sijhawm thiab GIANT LED tam sim no npaj rau kev hloov kho tshiab kom tuaj txog.

Koj tuaj yeem nkag mus rau Adafruit IO dashboard ntawm qhov no thiab ntxiv qee cov ntaub ntawv rau txhua qhov pub thiab pom lub teeb mus rau hauv hom kev ceeb toom.

Muaj kev lom zem!

Kauj Ruam 13: Lwm Yam Dab Tsi Ua Tau LED Loj

Dab Tsi Lwm Tus Ua Tau Giant LED Ua
Dab Tsi Lwm Tus Ua Tau Giant LED Ua
Dab Tsi Lwm Tus Ua Tau Giant LED Ua
Dab Tsi Lwm Tus Ua Tau Giant LED Ua

Thaum koj muaj cov hauv paus ntawm kev tsim qauv zoo li no thiab nrog IFTTT koj tuaj yeem siv nws rau ntau yam. Gmail inbox ceeb toom yog ib qho yooj yim, thiab raws li Adafruit tseem ua haujlwm nrog Webhooks lwm cov haujlwm tuaj yeem xa cov ntaub ntawv rau nws ib yam. Kuv muaj ib tus tau teeb tsa tam sim no txhawm rau taug qab qee Cov Lus Nug Loj Cov ntaub ntawv xa tawm ua ib feem ntawm txoj haujlwm ua haujlwm.

Tsis tas li nrog lub pob koj tuaj yeem siv nws los qhia rau lwm tus GIANT LED ib yam nkaus, koj tuaj yeem muaj ib lub tsev sib txawv thiab siv nws ua qhov taw qhia nyob deb kom tau txais lwm tog neeg los nyem lub pob kom tshem lub teeb.

Nov yog qhov txuas muaj txiaj ntsig ntawm webhook txoj hauv kev xa cov ntaub ntawv mus rau pub. Hauv qhov no nws siv IFTTT applet tab sis koj tuaj yeem yooj yim siv CURL txoj hauv kev nrog nab hab sej.

io.adafruit.com/blog/notebook/2018/11/26/f…

Qhov tseeb nws tseem tuaj yeem ua kom haum OLED 128x32 rau hauv paus txhawm rau ntxiv LED nrog qee cov ntsiab lus nyeem thiab kuv tam sim no ua haujlwm ntawm qhov ntawd thiab yuav hloov kho STL's thiab muab cov cai siv IO nrog qhov no ib yam.

Pom zoo: