Cov txheej txheem:

DIY WiFi RGB LED Teeb Teeb: 4 Kauj Ruam (nrog Duab)
DIY WiFi RGB LED Teeb Teeb: 4 Kauj Ruam (nrog Duab)

Video: DIY WiFi RGB LED Teeb Teeb: 4 Kauj Ruam (nrog Duab)

Video: DIY WiFi RGB LED Teeb Teeb: 4 Kauj Ruam (nrog Duab)
Video: Колыма - родина нашего страха / Kolyma - Birthplace of Our Fear 2024, Kaum ib hlis
Anonim
Image
Image
DIY WiFi RGB LED Teeb Teeb
DIY WiFi RGB LED Teeb Teeb

Lub teeb no yuav luag tag nrho 3D luam tawm, suav nrog lub teeb diffuser lwm qhov nqi kwv yees li 10 $. Nws muaj ntau qhov kev teeb tsa ua ntej, lub teeb pom kev zoo cuam tshuam thiab lub teeb zoo li qub nrog lub ntsej muag autoplay. Cov khw muag teeb tau siv qhov teeb tsa rau sab hauv nco, yog li nws tuaj yeem teeb tsa ib zaug thiab siv zoo li lub teeb ib txwm nrog hloov lub zog. Tsis muaj app xav tau, nws tuaj yeem tswj hwm los ntawm kev siv cov cuab yeej twg qhov browser muaj. Nws kuj tseem tuaj yeem ua haujlwm hauv 2 hom, raws li ib leeg thiab ib feem ntawm tsev WiFi network.

Khoom siv

• 1 x Ob Sab Sab PCB Prototype 4*6 cm

• 1 x HLK-PM01 AC-DC 220V rau 5V Step-Down Power Supply Module lossis qee yam zoo sib xws

• 1 x Wemos D1 Mini WiFi Development Board Micro USB

• RGB I2C LED sawb nrog 60 LEDs/m

• 4 x M3 txiv ntoo

• 2 x M3x6 ntsia hlau

• 5 x M3x12 ntsia hlau

• Lub hwj huam qaum nrog lub ntsaws thiab tus hloov pauv rau nws

• qee cov xov hlau jumper

• 3 x header pins

• Cov cuab yeej siv tshuaj txhuam

• 3D tshuab luam ntawv nrog Ntshiab thiab Dub filament

Kauj Ruam 1: 3D Luam Tshooj

3D Luam Qhov
3D Luam Qhov

Txhua tus qauv STL txuas nrog, tshwj tsis yog diffuser tuaj yeem luam tawm nrog txhua qhov kev xav tau.

Nov yog qhov piv txwv:

Txheej siab: 0.2

Kev txhawb nqa: TSIS YOG (YOG tsuas yog rau cov qauv hauv paus)

Phab ntsa: 0.8 hli

Txhawm rau kom tau txais lub teeb pom kev zoo dua nws yog qhov zoo dua coj cov diffuser hauv VASE hom thiab hla cov yas ntxiv, kom ua tiav qhov no, teeb ntws mus rau 120%, saib cov duab txuas nrog.

Kuv xav kom luam tawm LED ntauwd ua ntej, nws yuav tso cai hloov pauv mus rau kauj ruam tom ntej.

Kauj ruam 2: Soldering

Soldering
Soldering
Soldering
Soldering
Soldering
Soldering
Soldering
Soldering

Ua ntej tshaj plaws peb yuav tsum lo cov kab txaij LED rau ntawm tus pej thuam LED. Yog tias koj siv tib LED kab txaij, zoo li kuv (60 leds/m) ces txiav 3 daim, 1 nrog 10 LEDs, 2 lwm nrog 9 LEDs. Siv cov duab txuas, ua piv txwv thiab lo LED kab txaij mus rau tus pej thuam thiab xyuas kom tseeb tias txhua tus xub ntawm kab txaij nyob hauv tib txoj kev thiab taw qhia los ntawm hauv qab mus rau saum. Muab cov xov hlau txuas rau kab txaij raws li qhia hauv kab duab kab.

Nqa PCB thiab txiav nws nruab nrab ntawm AC lub hwj huam txuas, zoo li pom ntawm daim duab. Ntxig AC module rau hauv PCB qhov, muab nws tso rau. Ua tib yam nrog Wemos board. Thov nco ntsoov tias tsis tas yuav tsum tau siv txhua tus pin rau Wemos board, peb xav tau tsuas yog 3 ntawm lawv. Ntxig cov pins header thiab txuas rau nws. Txuas tag nrho cov ntawd nrog cov xov hlau.

Kauj ruam 3: Kho thiab teeb tsa Software

Configure thiab Upload Software
Configure thiab Upload Software
Configure thiab Upload Software
Configure thiab Upload Software
Configure thiab Upload Software
Configure thiab Upload Software

Niaj hnub no muaj ntau lub tsev qiv ntawv sib txawv, cov cai thiab lwm yam khoom, uas tau ua los ntawm tib neeg sib txawv, qhov piv txwv no raws li Jason Coon txoj haujlwm.

Peb yuav tsum rub tawm thiab teeb tsa Arduino IDE, ua tsaug rau Steve Quinn, uas twb tau tsim cov lus qhia ntxaws ntawm kev ua qhov no hauv nws Cov Lus Qhia, yog li tsis tas yuav tsum ntaus txhua yam ntawd.

Thaum cov kauj ruam dhau los ua tiav - qhib daim duab hauv Arduino IDE.

Nrhiav kab "const bool apMode = cuav;" thiab txiav txim siab, koj yuav siv lub teeb no li cas, "muaj tseeb" txhais tau tias nws yuav ua haujlwm nyob rau hauv hom ib leeg thiab ntaus ntawv los tswj nws yuav tsum txuas nrog ntawm WiFi ncaj qha rau nws.

Nrhiav qhov "#define NUM_LEDS 10" kab thiab teeb tus lej pixels sib npaug rau qhov ntev ntawm kab txaij LED ntev tshaj plaws.

Qhib Secrets.h tab hauv Arduino IDE thiab sau cov ntaub ntawv raws li koj xaiv ua ntej.

Txuag thiab xa cov duab kos mus rau ESP pawg thawj coj saib. Siv "ESP 8266 Sketch Data Upload" ntawv qhia zaub mov thiab xa lwm cov ntaub ntawv los ntawm daim duab mus rau SPIFS. Thaum qhov no ua tiav koj tuaj yeem txuas cov LEDs thiab nkag mus rau lub teeb los ntawm kev ntaus https:// magiclamp hauv koj tus browser, yog tias koj tau teeb tsa "const bool apMode = cuav;".

Rau AP (nyob ib leeg) hom koj yuav tsum nrhiav WiFi Network hu ua "MagicLamp + lej" thiab txuas rau nws los ntawm kev siv tus lej zais uas koj tau teev hauv "Secrets.h" cov ntaub ntawv. Tom qab ua tiav no - txuas rau lub teeb los ntawm kev ntaus https://192.168.4.1 hauv koj tus browser. Ib nplooj ntawv yuav tau ntim nrog ntau txoj kev xaiv tswj.

Kauj ruam 4: Sib dhos

Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos
Sib dhos

Thaum koj muaj tag nrho cov ntu luam tawm, ua tiav cov laug thiab ua tiav xa thiab sim software - peb tuaj yeem sib dhos lub teeb no.

• Ntsia tus tuav lub tshuab hluav taws xob rau hauv qab lub hau

• unsolder lub ac hlau los ntawm PCB thiab xov nws los ntawm txoj hlua kab hauv qab

• Muab cov hlau xaim rov qab rau nws qhov chaw

• snap PCB rau ntawm qhov chaw

• txhim kho AC hlau los ntawm txoj hlua txuas

• lo lub LED rub nrog tsawg dua rau hauv paus los ntawm kev siv 2 daim nplaum nplaum los yog kua nplaum

• txuas cov xov hlau LED nrog PCB

• kaw lub hauv paus nrog lub hau thiab siv 3 tus ntsia hlau los kho nws

• muab lub diffuser tso rau saum lub teeb (ceev faj nws yuav tsum raug thawb kom nruj thiab maj mam muab)

Qhov ntawd yog nws!

Tam sim no koj tuaj yeem tig nws thiab pom qee lub teeb pom kev zoo uas koj yuav nyiam.

Ua tsaug rau koj nyeem.

Pom zoo: