Cov txheej txheem:

DIY Wi-nkaus RGB Sawb Tus Tswj: 5 Kauj Ruam
DIY Wi-nkaus RGB Sawb Tus Tswj: 5 Kauj Ruam

Video: DIY Wi-nkaus RGB Sawb Tus Tswj: 5 Kauj Ruam

Video: DIY Wi-nkaus RGB Sawb Tus Tswj: 5 Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
DIY Wi-nkaus RGB Sawb Tswj
DIY Wi-nkaus RGB Sawb Tswj

Ua tsaug rau JLCPCB thiab LCSC uas ua rau txoj haujlwm no ua tau! Xyuas lawv hnub no!

(Nco tseg: Qhov no tsis yog kuv tsim (Sib nrug los ntawm cov txheej txheem thiab PCB) thiab tag nrho cov txiaj ntsig rau lub tswv yim mus rau Saiyam)

Yuav ua li cas txoj haujlwm no pib yog kuv yuav RGB LED sawb tawm ntawm Ebay thiab qhov txaus ntshai me me IR tswj tau txaus ntshai, kuv ntxub nws. Yog li kuv tau mus ua lub luag haujlwm los ua wifi kom tswj tau qhov no.

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov
  • 3 1K Kuj
  • 3 Lub zog loj transistors, kuv siv TIP31
  • LINKIT IB Microcontroller
  • Analog RGB Sawb
  • (Tus so yog koj tau ua PCB ib yam li kuv tau ua)
  • 1 Ntsia Hlau Terminal
  • Txiv neej Headers
  • Cov cuab yeej
  • Soldering Hlau/Chaw Nres Tsheb
  • Solder
  • Pliers
  • Hlau Cutters

Kauj ruam 2: Schematic

Schematic
Schematic

Thaum kuv tab tom tshawb fawb qhov kev tsim no kuv siv Saiyam's block daim duab los ua qhov txheej txheem no hauv EasyEda (Txuas rau nws ntawm no) Tam sim no yog tias koj tsis tuaj yeem nyeem qhov ntawd lossis tsis tuaj yeem cuam tshuam ua li ntawd, ntawm no yog lub tswv yim yooj yim, Emitter tus pin ntawm txhua tus transistors kom txuas nrog GND tus pin ntawm linkit ib. Lub hauv paus tus pin ntawm Transistor 1 kom txuas nrog Digital PIN 9 ntawm linkit ib. Lub hauv paus tus pin ntawm Transistor 2 kom txuas nrog Digital PIN 3 ntawm linkit ib. Lub hauv paus tus pin ntawm Transistor 3 kom txuas nrog Digital PIN 2 ntawm linkit ib. Anode ntawm LED sawb kom txuas nrog Fais fab mov (+). Emitter pins ntawm txhua lub transistors kom txuas nrog Fais fab mov (-). Nco ntsoov tias siv tus pin 3 thiab 9 yog qhov tsim nyog thiab lawv tsis tuaj yeem hloov pauv vim lawv tsuas yog PWM tus pin ntawm Linkit ONE. Txij li tsuas muaj ob qho ntawm lawv, qhov xim thib peb ntawm LED sawb xav tau kev tswj hwm mus rau tus lej digital ib txwm muaj.

Kauj Ruam 3: Luag Koj Li PCB

Solder Koj PCB
Solder Koj PCB
Solder Koj PCB
Solder Koj PCB

Thaum kuv ua cov txheej txheem kuv tau ua rau hauv PCBs thiab xaj lawv ntawm JLCPCB thiab tau txais lawv hauv 5 hnub!

Kuv mam li txheej txheem mus rau LCSC thiab xaj cov khoom, cov no siv sijhawm me ntsis vim tias nws kim heev rau DHL kom nws mus rau qhov kuv nyob.

Tom qab 5 hnub tos kuv tau txais kuv cov PCBs, thiab lawv tau zoo npaum li kuv xav kom lawv ua, koj tuaj yeem tshawb xyuas kuv qhov kev tshuaj xyuas ntawm JLCPCB ntawm no kom pom ntau ntxiv ntawm cov no.

Ob peb hnub tom qab kuv tau txais kuv pob khoom los ntawm LCSC nrog txhua qhov kuv ua txhua yam ntim tau zoo nyob hauv lawv tus kheej lub hnab tiv thaiv zoo li qub.

Tus tswj hwm khiav ntawm 12V, yog li koj yuav xav tau ib puag ncig 12V 3A rau 3m sawb zoo li kuv tau siv.

Cov kauj ruam tom ntej yog txhawm rau txhawm rau txhua yam rau koj lub perfboard lossis koj lub PCB, ua kom ntseeg tau tias qhov sib txawv ntawm Transistors yog qhov raug.

Koj tuaj yeem zaum qhia kuv ua yuam kev ntawm no thiab yog tias koj ua tsis tau, kuv tau siv cov poj niam lub taub hau hloov ntawm txiv neej, raws li qhov txuas ntawm ib lub taub hau yog poj niam.

Kauj ruam 4: Upload Code

Rub tawm Txoj Cai!
Rub tawm Txoj Cai!
Rub tawm Txoj Cai!
Rub tawm Txoj Cai!
Rub tawm Txoj Cai!
Rub tawm Txoj Cai!

Tom qab ua txhua qhov txuas thiab txuas, tam sim no nws yog lub sijhawm los upload cov cai rau txuas rau ib qho. Tab sis ua ntej ntawd koj yuav tsum muaj lub tsev qiv ntawv Blynk. Kuv tau xa cov ntawv zip hauv qab no. Tshem tawm tag nrho cov ntsiab lus thiab xa lawv mus rau Cov Ntaub Ntawv> Arduino> Tsev Qiv Ntawv.

Cov cai rau txoj haujlwm no pom nyob hauv Blynk lub tsev qiv ntawv nws tus kheej. Hauv arduino IDE, mus rau Cov Ntaub Ntawv> Piv txwv> Blynk> Linkit ONE. Tam sim no koj yuav tsum tau hloov qee qhov kev hloov pauv hauv cov cai:

Hauv qab: char auth = "YourAuthToken"; // Ntxiv tus cim token ntawm koj qhov project blynk (saib cov kauj ruam tom ntej)

Hauv qab: #define WIFI_SSID “YourSSID” // Ntxiv lub npe ntawm koj li kev sib txuas WiFi.

Hauv qab no: #define WIFI_PASS “YourPASS” // Ntxiv tus password ntawm koj li kev txuas WiFi

Hauv qab no: #define WIFI_AUTH LWIFI_WPA // Xaiv los ntawm LWIFI_OPEN, LWIFI_WPA, lossis LWIFI_WEP.

Yog tias koj tsis paub tus Auth token, hla mus rau kauj ruam tom ntej thiab tom qab ntawd rov qab los rau theem no. Yog tias koj twb muaj ib qho lawm, tsuas yog teeb tsa qhov txuas ntawm Linkit ONE rau SPI, UART thiab USB txoj haujlwm thiab xa cov cai.

cdn.instructables.com/ORIG/F09/CBFR/IIEYYR…

Nco tseg: Qhov no tsis yog kuv tus lej thiab txhua qhov credit mus rau tus tsim nws.

Thaum koj ua li ntawd.

Rub tawm Blynk App los ntawm play store dawb. Sau npe rau tus as khauj los ntawm kev muab koj li email chaw nyob thiab lwm yam ntsiab lus. Koj yuav tsum muaj internet txuas los ua qhov no. Thaum nkag mus rau hauv koj tus as khauj, tsim txoj haujlwm tshiab nrog lub npe uas koj xaiv. Koj yuav pom qee tus lej thiab cim thaum koj ua qhov project. Nov yog koj daim ntawv lees paub siv los txuas koj Linkit ONE rau blynk server. Luam daim ntawv Auth token thiab ntxiv nws rau cov lej muab rau hauv cov kauj ruam dhau los (Hloov mus rau kauj ruam dhau los kom paub meej). Tam sim no txav mus rau qhov project screen uas yuav tsis pib thaum pib. Mus rau lub vaj huam sib luag widgets thiab luam ib 'Khawm' thiab 'ZeRGBa'. Hauv lub pob, teeb tus lej tus lej li 2. Teev ob tus lej tus lej hauv ZeRGBa li 3 thiab 9. Tso tus thib peb tseg. Tam sim no thaum kawg hloov ntawm koj qhov linkit ONE, cia nws txuas rau Wifi network thiab tom qab ntawd hauv app, xaiv qhov 'Ua Si' xaiv. Qhov ntawd yog nws! Tam sim no koj yuav muaj peev xwm tswj tau kab txaij ntawm koj lub smartphone. Yog tias nws tsis ua haujlwm, txheeb xyuas koj cov kev sib txuas. Nco ntsoov tias daim ntawv lees paub yuav tsum tau hais kom raug hauv txoj cai.

(Nco tseg: Cov screenshots tsis yog kuv li kuv tsis nco qab rau lawv, credit rau Saiyam)

Kauj ruam 5: Thiab koj ua tiav

Ua tsaug rau cov neeg txhawb nqa ua qhov haujlwm no ua tau thiab ua tsaug rau Saiyam rau lub tswv yim.

Kuv kuj tseem muaj qee cov PCBs tshuav los ntawm txoj haujlwm no thiab koj tuaj yeem yuav lawv ntawm no, yog tias leej twg txaus siab!

Pom zoo: