Cov txheej txheem:

WiFi RGB Cellular Teeb Siv ESP8266: 6 Cov Kauj Ruam
WiFi RGB Cellular Teeb Siv ESP8266: 6 Cov Kauj Ruam

Video: WiFi RGB Cellular Teeb Siv ESP8266: 6 Cov Kauj Ruam

Video: WiFi RGB Cellular Teeb Siv ESP8266: 6 Cov Kauj Ruam
Video: #RGB on an #AGV ๐Ÿ˜Ž 2024, Hlis ntuj nqeg
Anonim
WiFi RGB Cellular Teeb Siv ESP8266
WiFi RGB Cellular Teeb Siv ESP8266

Hauv cov ntawv tshaj tawm no, peb tsim lub teeb pom kev zoo RGB xov tooj ntawm tes uas tuaj yeem tswj tau ntawm WiFi. Nplooj ntawv tswj hwm muaj lub log xim uas tso cai rau koj hloov xim sai thiab koj tseem tuaj yeem hais qhia qhov tseem ceeb RGB ncaj qha los tsim tag nrho ntau dua 16 lab xim ua ke.

Cov vis dis aus saum toj no npog txhua yam koj xav paub thiab tseem piav qhia tias teeb tau teeb ua ke li cas.

Kauj Ruam 1: Sau cov Cheebtsam

Sau cov Cheebtsam
Sau cov Cheebtsam
Sau cov Cheebtsam
Sau cov Cheebtsam

Peb yuav xav tau WeMos D1 Mini lossis sib xws ESP8266 pawg thawj coj, lub microUSB tawg pawg thawj coj thiab qee qhov 5V, WS2812B hais tau RGB LEDs. Koj tuaj yeem siv cov kab ntawv txuas hauv qab no ua qhov siv:

  • WeMos D1 Mini:
  • MicroUSB Breakout:
  • WS2812B LEDs:

D1 mini board muaj lub microUSB txuas thiab 5V tso tawm tab sis lub zog los ntawm USB txuas ua ntej dhau los ntawm diode thiab 500mA fuse ua ntej mus txog tus pin. Peb xav tau tam sim no ntau dua li qhov no vim txhua LED tuaj yeem coj mus txog 60mA ntawm qhov ci tag nrho. Tias yog vim li cas peb yuav siv lub microUSB breakout board los ua lub teeb no.

Kauj Ruam 2: Npaj Teeb 3D Qauv

Npaj Teeb 3D Qauv
Npaj Teeb 3D Qauv

Rub tawm cov qauv siv qhov txuas hauv qab no thiab luam nws raws li qhov ntsuas koj xav tau.

3D Qauv Ntawm Thingiverseiverse: https://www.thingiverse.com/thing: 883446

Kuv siv cov ntawv cim 140 thiab ntsuas nws mus rau 70% vim kuv tsis xav tau qee yam loj heev.

Nws tau pom zoo tias koj muab cov kua nplaum tso rau ntawm lub hauv paus ib zaug koj ntxiv cov LEDs, tab sis hauv cov vis dis aus, kuv tau sim tso lub rooj muag zaub sab hauv hauv paus thiab qhov no ua rau me ntsis tsis khov. Kuv yuav rov luam dua lub hauv paus thiab sawv thiab lo nws tom qab.

Kauj Ruam 3: Ntxiv & Hlau LEDs

Ntxiv & Hlau cov LEDs
Ntxiv & Hlau cov LEDs
Ntxiv & Hlau cov LEDs
Ntxiv & Hlau cov LEDs
Ntxiv & Hlau cov LEDs
Ntxiv & Hlau cov LEDs

Tom qab ntawd koj yuav tsum txiav cov LED kab kom ntev thiab ntxiv ntau npaum li koj xav tau. Kuv txiav txim siab ntxiv tag nrho ntawm 26 LEDs hauv ob txheej, raws li pom hauv cov duab. Lub hwj huam pins tau txuas nrog txhua qhov, tab sis cov ntaub ntawv yuav tsum ntws los ntawm tus pin nkag mus rau cov zis yog li nco ntsoov qhov no.

Kuv kuj txiav ib lub qhov nyob hauv qhov sawv ntsug kom cov xov hlau tuaj yeem xaub tau yooj yim raws li lub rooj tsavxwm yuav zaum sab nraud.

Kauj Ruam 4: Npaj Sketch

Npaj daim Sketch
Npaj daim Sketch
Npaj daim Sketch
Npaj daim Sketch
Npaj daim Sketch
Npaj daim Sketch

Rub tawm cov duab kos siv qhov txuas hauv qab no thiab qhib nws hauv Arduino IDE.

Sketch:

Koj yuav tsum tau ntxiv cov lej lossis cov duab LED nrog rau koj lub npe WiFi network thiab tus lej cim raws li pawg thawj coj xav tau txuas rau nws. Koj kuj tseem tuaj yeem hloov qhov pib RGB tus nqi rau lub teeb thaum nws txhawb zog.

Koj yuav tsum tau teeb tsa ESP8266 pawg txhawb nqa pob & Adafruit NeoPixel lub tsev qiv ntawv rau daim duab no.

Txhim kho ESP8266 pawg tswj hwm pob txhawb nqa:

  • Qhib qhov kev nyiam qhov rai (Cov Ntaub Ntawv-> Nyiam), ntxiv qhov URL hauv qab no (https://arduino.esp8266.com/stable/package_esp8266com_index.json) mus rau ntu tus thawj tswj hwm ntu thiab tom qab ntawd kaw lub qhov rai.
  • Qhib tus thawj tswj hwm pawg tswj hwm los ntawm (Cov Cuab Yeej-> Cov Phiaj Xwm-> Tus Thawj Saib Xyuas Haujlwm) thiab ntaus hauv ESP8266 thiab teeb tsa pob uas muaj.
  • Thaum ua tiav, kaw tus thawj tswj hwm pawg thawj coj saib xyuas thiab xaiv lub rooj teeb tsa raug raws li qhia hauv daim duab.

Txhim kho Adafruit NeoPixel lub tsev qiv ntawv:

  • Qhib tus neeg saib xyuas lub tsev qiv ntawv (Cov Cuab Yeej-> Tus Thawj Saib Xyuas Tsev Qiv Ntawv)
  • Ntaus hauv "Adafruit NeoPixel" thiab teeb tsa lub tsev qiv ntawv uas pom

Thaum qhov no ua tiav, nyem lub pob upload thiab tos rau qhov kos duab kom upload. Tom qab ntawd, qhib lub vijtsam saib thiab tos tus IP chaw nyob uas tau teev tseg. Feem ntau cov routers WiFi niaj hnub cia tus IP chaw nyob rau cov khoom siv, tab sis koj tseem tuaj yeem khaws tus IP tus kheej los ntawm kev hloov DHCP chaw.

Kauj Ruam 5: Txuas Txhua Yam Ua Ke

Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke
Txuas Txhua Yam Ua Ke

Siv daim duab txuas los txuas txhua yam ua ke. Nco ntsoov siv lub hwj chim tsim nyog nyob ntawm seb muaj pes tsawg tus LEDs. Nws raug pom zoo kom siv 5V, 2A fais fab mov rau 26 LEDs zoo li hauv qhov kev tsim no thiab USB lub zog fais fab peb tau tsim ua ntej yuav ua haujlwm zoo xwb.

Kauj Ruam 6: Kuaj Lub Teeb

Kuaj Lub Teeb
Kuaj Lub Teeb
Kuaj Lub Teeb
Kuaj Lub Teeb
Kuaj Lub Teeb
Kuaj Lub Teeb
Kuaj Lub Teeb
Kuaj Lub Teeb

Ntaus tus IP chaw nyob rau hauv lub vev xaib hauv koj lub khoos phis tawj lossis lub xov tooj ntawm tes thiab nyem lub pob Control. Tom qab ntawd koj yuav tau txais lub log xim. Cias xaiv cov xim uas koj xav tau lub teeb yuav tsum hloov xim. Koj tseem tuaj yeem sau tus nqi RGB ncaj qha yog xav tau.

Qhov ntawd yooj yim npaum li cas nws yog tsim kom muaj lub xov tooj ntawm tes zoo RGB zoo nkauj uas zoo nkauj heev! Siv lub vev xaib tsis yooj yim kiag li tab sis kuv yuav muab lub teeb no tso rau hauv qhov haujlwm ua haujlwm hauv tsev nrog rau qee qhov ntxiv. Qhov ntawd yuav tsum txhim kho kev siv tau tag nrho. Yog tias lub tsev siv lub tshuab ua haujlwm txaus siab rau koj ces ua raws peb kom nyob twj ywm ceeb toom siv cov kab ntawv txuas hauv qab no:

  • YouTube:
  • Koj li xyoob ntoo Instagram:
  • Facebook:
  • Twitter:
  • BnBe Lub Vev Xaib:

Pom zoo: