Cov txheej txheem:

Internet Neon LED Lub Plawv Lub Teeb: 6 Kauj Ruam (nrog Duab)
Internet Neon LED Lub Plawv Lub Teeb: 6 Kauj Ruam (nrog Duab)

Video: Internet Neon LED Lub Plawv Lub Teeb: 6 Kauj Ruam (nrog Duab)

Video: Internet Neon LED Lub Plawv Lub Teeb: 6 Kauj Ruam (nrog Duab)
Video: Mus ua nyab rau yim hmoob tsis zoo 7/27/2017 2024, Kaum ib hlis
Anonim
Image
Image
Internet Neon LED Lub Plawv Lub Teeb
Internet Neon LED Lub Plawv Lub Teeb
Internet Neon LED Lub Plawv Lub Teeb
Internet Neon LED Lub Plawv Lub Teeb

Sib nrug deb ntawm tus neeg tshwj xeeb ntawd lossis tsuas yog kev nyob sib nrug? Koj puas xav qhia rau lawv paub tias koj xav txog lawv? Ua qhov internet txuas nrog neon LED lub teeb lub teeb thiab teeb nws ntaus los ntawm koj lub xov tooj lossis khoos phis tawj, txhua lub sijhawm, los ntawm txhua qhov chaw

Cov lus qhia no yog npaj rau tus pib thiab xav tias tsis muaj kev paub dhau los nrog microcontrollers. Qee qhov txuj ci tseem ceeb yuav tsum tau siv.

Khoom siv

• Lub plawv zoo li tus "LED neon" kos npe los ntawm Amazon (tshawb rau lub plawv neon coj kos npe) lossis lwm qhov. Cov no tsis yog cov cim neon tiag tiag nrog cov raj uas muaj roj puv tab sis cov kab hluav taws xob LED ntim rau hauv cov yas nthuav dav uas zoo li cov raj neon hauv ntau xim. Koj tuaj yeem yuav ib qho nrog lub hauv paus txuas, lossis tsim koj tus kheej lub hauv paus. Feem ntau khiav ntawm 5v thiab muaj USB txuas rau lub zog.

Qee qhov piv txwv:

www.amazon.com/Battery-Powered-Hanging-Birthday-Christmas/dp/B07V35L4TT

www.amazon.com/Heart-Bedroom-Wedding-Holid…

www.amazon.com/XIYUNTE-Love-Light-Neon-Sig…

www.amazon.com/Cupid-Shape-Heart-Lights-De…

• WeMos mini lossis lwm yam ESP8266

• Micro-USB cov ntaub ntawv cable los teeb tsa pawg thawj coj

• NPN transistor, lub hom phiaj xws li 2N2222, 2N3904 lossis 2N4401

• Resistor 1/8 lossis 1/4 watt, 100 txog 470 ohm

• Hookup hlau

• Perfboard, heatshrink tubing (xaiv tau)

Cov Cuab Yeej • Kab pheeb ces kaum

lossis tus xov tooj hluav taws xob

• Soldering hlau thiab solder

yooj yim:

zoo dua:

• Arduino IDE rau txoj haujlwm

• Voltmeter yooj yim:

los yog xoob LED (xaiv tau)

• Ntsia Hlau

Kauj Ruam 1: Tsim Koj Lub Teeb LED Lub Plawv

Tsim Koj Lub Teeb LED Lub Plawv
Tsim Koj Lub Teeb LED Lub Plawv
Tsim Koj Lub Teeb LED Lub Plawv
Tsim Koj Lub Teeb LED Lub Plawv

Kauj Ruam 1: Npaj lub teeb ci LED

Qhib lub hauv paus ntawm qhov kos npe los ntawm tshem lub roj teeb npog thiab ib qho ntsia hlau. Txuag cov ntsia hlau.

Koj xav pom qhov zoo 5 volts thiab kev sib txuas hauv av, thiab voltmeter ua qhov no yooj yim dua. Txuas lub cim rau hauv USB lub zog thiab tshawb xyuas nrog lub voltmeter. Thawj zaug sim cov roj teeb tiv tauj hauv lub roj teeb. Qhov zoo 5v yuav raug cim nrog "+", thiab hauv av lossis tiv toj roj teeb tsis zoo feem ntau yog lub caij nplooj ntoo hlav nrog xaim txuas ntawm lub kaum sab xis ntawm lub thawv roj teeb. Tom qab koj tau cim rau + thiab kev sib cuag hauv av, koj tuaj yeem tshem tawm lwm lub roj teeb nyob hauv lub thawv - peb yuav tsis siv roj teeb txhua.

Yuav muaj ib khub ntawm cov xov hlau los ntawm USB ntsaws (ib qho rau + thiab ib qho rau hauv av) thiab lwm txheej mus rau hauv plawv (dua, ib qho txuas rau + thiab lwm qhov rau hauv av.) Tshem tawm tsuas yog xaim mus ntawm hauv av thiab LED kos npe, tawm ntawm lwm peb kab xov tooj thaum lawv txuas nrog lub roj teeb tiv tauj. Muab cov xaim liab txuas rau + lub roj teeb lub dav hlau thiab xaim dub rau hauv av.

Yog tias koj lub siab muaj qhov hloov pauv hauv lub hauv paus raws li qhov piv txwv saum toj no thiab koj xav khaws nws txoj haujlwm, cov xaim liab tuaj yeem muab txuas rau lub davhlau ya nyob twg ntawm qhov hloov pauv uas pom 5v ntawm voltmeter thaum qhov hloov pauv nyob hauv ON txoj haujlwm thiab xoom. volts ntawm OFF txoj haujlwm.

[Yog tias koj tsis muaj lub ntsuas hluav taws xob (thiab koj yuav tsum - cov khoom yooj yim yog pheej yig thiab yooj yim kom muaj, yog tias tsuas yog kuaj koj lub roj teeb) koj tuaj yeem siv ib qho LED los nrhiav + thiab hauv av sib txuas. Qhov ntev ntawm LED coj mus rau + thiab luv dua rau hauv av. Kov tsuas yog luv luv, raws li koj tsis siv tam sim no txwv resistor ntawm no.]

Kauj Ruam 2: Sib dhos Circuit

Sib dhos Circuit Court
Sib dhos Circuit Court
Sib dhos Circuit Court
Sib dhos Circuit Court
Sib dhos Circuit Court
Sib dhos Circuit Court

Lub Circuit Court yog qhov yooj yim heev nrog tsuas yog ob peb yam. Ob qho tib si schematic thiab kab hluav taws xob daim duab tau suav nrog. Koj tuaj yeem xaiv los teeb tsa lub Circuit Court ntawm lub khob cij rau kev sim tab sis siv cov laug txuas rau ESP8266 pawg thawj coj yuav ua rau nws nyuaj dua tom qab txuas cov xov hlau txuas rau cov pins dua li nws yuav txuas cov xov hlau mus rau qhov khoob. Yog cov pins tau teeb tsa ntawm koj lub rooj tsav xwm ESP, ib qho me me ntawm perfboard yuav ua rau koj lub neej yooj yim dua.

Yog tias koj ntiav ib lub khob cij thaum ntsuas, koj tuaj yeem ntxig ib qho LED kom sawv hauv plawv tab sis nco ntsoov saib polarity: ntev dua ceg ntawm LED mus rau liab + txhuas. Muaj ntau lub hom phiaj dav-dav siv NPN transistors tuaj yeem siv, xws li 2N2222 lossis 2N4401 tab sis koj yuav tsum txheeb xyuas qhov pinout ntawm cov cuab yeej tshwj xeeb uas koj siv: peb xaim hlau coj los ntawm transistor, emitter (E), collector (C) thiab hauv paus (B) tab sis qhov kev txiav txim ntawm cov coj no yuav txawv nrog cov cuab yeej thiab cov chaw tsim khoom. Lub hauv paus (B) feem ntau tab sis tsis yog lub hauv paus ib txwm muaj. Txheeb xyuas daim ntawv qhia tshwj xeeb rau tshwj xeeb transistor koj siv ua ntej soldering. Txuas ib kawg ntawm tus tiv thaiv tus pin D6 ntawm WeMos board thiab lwm qhov rau lub hauv paus (B) ntawm transistor. Tus nqi ntawm tus tiv thaiv xav tau yog nyob ntawm tus transistor koj xaiv thiab tam sim no ntau npaum li cas yog kos los ntawm LED kos npe tab sis yuav zoo li yuav poob hauv thaj tsam ntawm 100 - 470 ohms. Peb xav kom lub transistor ua qhov hloov pauv hauv qhov hu ua "xeev". (Muaj ntau yam kev laij lej online rau lub hauv paus resistor qhov tseem ceeb tab sis nws yuav yooj yim rau ob peb yam sib txawv resistors yog xav tau thaum ua tiav qhov Circuit Court.) Cov xov hlau hauv av los ntawm lub plawv kos npe uas tau raug txuas ua ntej (lossis luv dua LED) tam sim no txuas nrog mus rau tus neeg khaws cov transistor (C) thiab cov emitter (E) coj mus rau cov hmoov av dub. Ua ntej mus txuas ntxiv txheeb xyuas txhua qhov koj kev sib txuas tiv thaiv cov txheej txheem thiab daim duab, tshwj xeeb tshaj yog kev sib txuas ntawm transistor.

Koj kuj tseem xav tau xaim los ntawm hauv av mus rau G tus pin ntawm WeMos mini ntxiv rau xaim los ntawm +5 volts rau tus pin cim 5V ntawm WeMos board. Los ntawm kev pom zoo, + cov xov hluav taws xob feem ntau liab, thiab cov xov hlau hauv av feem ntau yog xim dub kom yooj yim txheeb xyuas.

Kauj Ruam 3: Sau Npe Rau Adafruit IO

Sau npe rau Adafruit IO
Sau npe rau Adafruit IO
Sau npe rau Adafruit IO
Sau npe rau Adafruit IO
Sau npe rau Adafruit IO
Sau npe rau Adafruit IO
Sau npe rau Adafruit IO
Sau npe rau Adafruit IO

Tom ntej no, koj yuav xav zwm npe rau tus as khauj dawb ntawm IO.adafruit.com. Xaiv "Pib dawb." Koj yuav xaiv lub npe siv thiab muab tus lej lej lej ntev xws li "aio_5NrczkqJQCTddgWWOQM1glJSx." Sau ob qho no rau tom qab.

Tsim ob txoj hauv kev los nqa cov ntaub ntawv ntawm koj lub cuab yeej thiab Adafruit IO server. Ib qho yuav tsum raug hu ua "pib" thiab lwm qhov "tawm tswv yim" (txhua qhov ntawv qis dua.)

Tsim lub dashboard tshiab rau txoj haujlwm no thiab npe nws txhua yam uas koj nyiam. Nov yog qhov uas koj yuav coj koj tus browser los tswj lub siab. Ntxiv ob qhov tshiab "thaiv" rau koj lub dashboard los ntawm nias lub pob +. Xaiv lub sijhawm tam sim no rau qhov pib pub nrog khawm Cov Ntawv ntawm "Pib" thiab qhov tseem ceeb 1 rau Xov Xwm Tus Nqi thiab 0 rau Kev Tso Tawm Tus Nqi. Tom ntej, ntxiv qhov "ntsuas" thaiv thiab txuas rau cov lus tawm tswv yim. Xaiv cov xim los sawv cev rau ob lub teeb pom kev thiab lub teeb pom kev zoo thiab teeb lub cim rau "= 1." Koj tuaj yeem muab 0 lossis 1 tso rau hauv Tus Kheej Tus Nqi Ntsuas los saib seb cov xim yuav tshwm li cas.

Koj tuaj yeem cim koj lub dashboard lossis khaws nws mus rau lub vijtsam hauv tsev ntawm koj lub xov tooj kom nkag tau yooj yim. Lub khawm Pib yuav, uhh, pib lub plawv nyob deb kom ci thiab qhov taw qhia kev tawm tswv yim yuav ci thaum lub plawv tau txais lub teeb liab pib thiab mus tsaus thaum nws tawm hauv 30 feeb.

Kauj Ruam 4: Ua Haujlwm ESP2866

Rub tawm qhov tseeb Arduino IDE software rau koj lub khoos phis tawm los ntawm https://www.arduino.cc/en/Main/Software thiab teeb tsa cov lus piav qhia cov laug cam https://arduino.esp8266.com/stable/package_esp8266c… nyob hauv Preferences -> Ntxiv Pawg Thawj Coj Tus thawj tswj URLs. Tam sim no koj yuav tsum pom ntau lub laug cam nyob hauv Cov Cuab Yeej -> Cov laug cam, suav nrog (LOLIN) WeMos mini.

Mus rau cov ntawv qhia zaub mov Sketch -> suav nrog Lub Tsev Qiv Ntawv -> Tswj Cov Tsev Qiv Ntawv … Ntawm no koj yuav tshawb nrhiav thiab teeb tsa qhov tseeb ntawm ob qhov xav tau Arduino tsev qiv ntawv: ESP8266WiFi thiab Adafruit_IO_WiFi. Kaw lub thawv tshawb nrhiav thaum ua tiav.

Tam sim no rub tawm lub plawv kab ntawv ntawm nplooj ntawv no rau koj lub computer thiab qhib hauv Arduino IDE. Tej zaum koj yuav raug qhia kom khaws nws hauv daim nplaub tshev uas muaj tib lub npe.

Hauv qab ** ntu ntu, sau koj tus kheej qhov tseem ceeb rau IO_USERNAME thiab IO_KEY los ntawm Adafruit nrog rau koj tus kheej WiFi network WIFI_SSID thiab WIFI_PASS. Koj tuaj yeem hloov kho ob peb lwm yam ntxiv raws li koj pom zoo:

#define fadeDuration 1000* 60* 30: Lub sijhawm pib rau lub teeb kom nyob yog 30 feeb

#define minFade 10: Tej zaum tsis tas yuav hloov qhov no

#define maxFade 200: Ntau yam 100 - 500

Txuag cov cai kho.

Mus rau IDE ntawv qhia zaub mov thiab xaiv Cov Cuab Yeej -> Boards -> LOLIN (WeMos) D1 thiab mini. Txuas lub USB cable rau WeMos lub rooj tsavxwm thiab koj lub khoos phis tawj thiab xaiv qhov chaw nres nkoj uas tsim nyog raws li Cov Cuab Yeej -> Chaw Nres Nkoj. Xaiv cov ntawv qhia zaub mov Sketch -> Upload, thiab tos kom cov txheej txheem tiav. Disconnect tus serial cable.

Yog xav paub cov lus qhia ntxaws txog teeb tsa thiab siv Arduino IDE, ntxiv rau ntau lwm yam ncauj lus, txheeb xyuas qhov zoo

Kauj Ruam 5: Teeb Koj Lub Plawv

Teeb Koj Lub Plawv!
Teeb Koj Lub Plawv!

Txuas lub plawv mus rau 5v USB lub zog siv. Koj yuav tsum pom lub teeb xiav LED ci ntawm lub rooj tsav xwm hauv Circuit.

Mus rau koj lub dashboard thiab nias Start khawm. Yog tias txhua yam ua tau zoo cov lus taw qhia yuav hloov xim thiab koj lub siab yuav pib plooj!

Teeb meem

Yog tias koj muaj teeb meem, kos cov hauv qab no:

Puas yog ESP8266 fais fab tuag (LED xiav)?

Txheeb xyuas koj cov thaiv kom zoo, tshwj xeeb tshaj yog kev sib txuas ntawm transistor.

Paub meej tias koj muaj lub npe siv AIO raug thiab tus lej tseem ceeb nrog rau SSID thiab tus lej zais hauv tus lej.

IDE tus lej saib xyuas tuaj yeem siv los pab daws qhov teeb meem.

Kauj ruam 6: Txaus siab rau

Txaus siab rau!
Txaus siab rau!
Txaus siab rau!
Txaus siab rau!

Tsis txaj muag ntsaws: Cov lus qhia no tau npaj los ua nkag hauv Kev Sib Tw Lub Siab https://www.instructables.com/contest/heart/ Pov npav rau nws!

Yuav mus qhov twg ntawm no (kev sib tw):

Yuav ua li cas txog kev suav nrog lub sijhawm ntsuas kom ntev li cas lub plawv nyob qis?

Yuav ua li cas txog ob lub cuab yeej ua ke, txhua tus nrog lub pob nyem kom ua rau lwm tus?

Pom zoo: