Cov txheej txheem:
- Kauj Ruam 1: Kev Taw Qhia rau Neopixels
- Kauj Ruam 2: Cov Ntaub Ntawv Xav Tau
- Kauj Ruam 3: Kev tsim kho
- Kauj ruam 4: Code
- Kauj ruam 5: App
- Kauj Ruam 6: Yuav Ua Li Cas Upload rau SPIFFS?
- Kauj Ruam 7: Nws Ua Haujlwm Li Cas?
- Kauj ruam 8: Android App
Video: Ua Si Nrog Hluav Taws Hla WIFI! ESP8266 & Neopixels: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Los ntawm ElectropeakElectroPeak Lub Vev Xaib Ua Haujlwm Ntxiv Ntxiv los ntawm tus sau:
Txog: ElectroPeak yog koj qhov chaw ib-nres los kawm cov khoom siv hluav taws xob thiab coj koj lub tswv yim mus rau qhov tseeb. Peb muab cov lus qhia saum toj kawg nkaus los qhia koj li cas koj tuaj yeem ua koj cov phiaj xwm. Peb kuj tseem muab cov khoom lag luam zoo yog li koj muaj … Ntau Ntxiv Txog Electropeak »
Tsim kom muaj qhov hluav taws kub simulation cuam tshuam nrog Wi-nkaus wireless tswj. Ib lub xov tooj ntawm tes (rau Android smartphones) nrog lub ntsej muag zoo saib tau npaj rau nruab los ua si nrog koj qhov kev tsim! Peb tseem yuav siv Arduino thiab ESP8266 los tswj cov nplaim taws. Thaum kawg ntawm txoj haujlwm no koj yuav kawm:
- Yuav ua li cas NeoPixels ua haujlwm.
- Yuav ua li cas rau phiaj xwm ESP8266 thiab tswj cov kev hloov pauv ntawm wifi
- Yuav ua li cas tsim kom muaj cov hluav taws txias nrog Neopixels
Kauj Ruam 1: Kev Taw Qhia rau Neopixels
Ib tus zuj zus tuaj yeem hais qhia LEDs lossis feem ntau hu ua Neopixles tau nyob ib puag ncig tam sim no thiab koj tej zaum paub lawv tab sis, yog tias koj tsis ua, lawv zoo li ib txwm RGB LED's tab sis raws li lub npe qhia cov xim ntawm txhua tus ntawm lawv tuaj yeem hais tus kheej, tso cai rau cov qauv zoo kawg nkaus thiab cov duab ua kom tau. Rau WS2812b koj tsuas xav tau 3 xov hlau, 2 rau lub zog thiab 1 rau cov ntaub ntawv. Qhov ntawd txhais tau tias koj tsuas xav tau ib tus lej Arduino pub dawb los tswj ib tuj ntawm LEDs!
Hauv txoj haujlwm no, peb yuav siv cov ntse LEDs no los tsim hluav taws. Txog kev tswj hwm LEDs peb yuav siv lub tsev qiv ntawv FastLED txaus. Peb yuav siv qhov piv txwv ntawm Fire2012 ntawm lub tsev qiv ntawv sau los ntawm Mark Kriegsman. Peb siv 6 daim kab xev ntawm txhua tus muaj 30 LEDs (tag nrho ntawm 180 LEDs) peb lo cov LEDs no ntawm ib daim ntawm PVC yeeb nkab thiab muab tso rau hauv lub khob iav (cov iav thooj voos kheej kheej no feem ntau siv ua vases). Peb yuav tsum nthuav lub teeb ntawm LEDs kom ua rau lawv saib txuas ntxiv, kom ua li ntawd peb siv cov ntawv taug qab uas tso lub teeb hla thiab nthuav lub teeb.
Kauj Ruam 2: Cov Ntaub Ntawv Xav Tau
Kho vajtse Cheebtsam
- ESP8266 Serial WIFI Witty Cloud Board × 1
- Neopixels Ntse LED Sawb (60LED/m sawb) × 1
- Logic Level Converter × 1
- 21cm 40P Txiv neej Rau Poj Niam Jumper Hlau × 1
- PVC yeeb nkab 60cm loj 2 "× 1
- Cov ntawv taug qab × 1
- Lub tog raj kheej iav × 1
Software Apps
Arduino IDE Cov
Cov Cuab Yeej Siv Tes
- Kub kua nplaum phom
- Soldering hlau
Kauj Ruam 3: Kev tsim kho
Ua ntej tshaj tawm kom tau lub khob iav kom zoo, peb lub tog raj kheej muaj qhov ntev ntawm 60cm thiab txoj kab uas hla ntawm 12cm.
Yog tias koj tuaj yeem pom cov iav khov hauv lub tog raj kheej uas yuav zoo tab sis yog tias nws yog iav ntshiab koj tuaj yeem siv daim ntawv taug qab los npog lub tog raj kheej (sab hauv lossis sab nrauv), cov ntawv taug qab ua haujlwm zoo ntawm kev nthuav tawm lub teeb thiab ua tiav cov txiaj ntsig zoo. Tom qab tau txais lub khob iav ntsuas nws qhov ntev sab hauv thiab tom qab txiav cov yeeb nkab PVC kom nws haum rau sab hauv lub tog raj kheej. Peb lub tog raj kheej iav muaj qhov siab 60cm (tsis suav nrog lub hauv paus nws muaj qhov ntev ntawm 59cm) yog li peb txiav peb cov yeeb nkab PVC mus rau 59cm. Koj yuav lo cov hlua LED ntawm cov yeeb nkab no, cov yeeb nkab nrog txoj kab uas hla ntawm 4cm yuav zoo tag nrho. Tom ntej no peb yuav tsum txiav peb cov coj coj mus rau 6 qhov sib npaug ntawm no peb siv 60LEDs/m ntom sawb (koj tuaj yeem siv qhov hnyav ntau dua rau cov txiaj ntsig zoo dua yog tias koj xav tau) peb siv rau 50 cm ntev, uas txhais tau tias peb xav tau 3 meters. Qhov chaw rau qhov ntev sib npaug ib ncig ntawm cov yeeb nkab PVC thiab lo kab xev rau cov yeeb nkab. Nov yog qhov nws yuav tsum zoo li cas.
Txog cov kab hluav taws xob LED ua ke koj tuaj yeem ncaj qha txuas cov xov hluav taws xob mus rau kab txaij raws li cov duab hauv qab no lossis thawj cov laug txuas lub taub hau rau ntawm kab txaij thiab tom qab ntawd siv cov xov hlau txuas los txuas lawv.
Thaum tag nrho cov kab txuas LED tau ua tiav koj yuav tsum tso cov yeeb nkab sab hauv lub tog raj kheej. Txhawm rau nruab nrab cov yeeb nkab sab hauv lub tog raj kheej koj tuaj yeem siv ua npuas dej los txiav lub voj voog uas muaj txheej sab nraud sib npaug rau sab hauv ntawm lub tog raj kheej iav thiab lub taub sab hauv sib npaug rau sab nrauv ntawm PVC yeeb nkab. Npaj ob qho no rau txhua sab ntawm cov yeeb nkab. Txuas cov ntu no mus rau qhov kawg thiab maj mam muab cov yeeb nkab tso rau hauv lub tog raj kheej.
Kauj ruam 4: Code
Peb siv Arduino IDE rau coding thiab xa mus rau ESP8266. Koj yuav tsum siv lub rooj tsavxwm uas muaj ESP8266 nrog 3MB ntawm SPIFFS yog tias koj xav xa cov software tswj cov ntaub ntawv ntawm SPIFFS. SPIFFS luv rau "Serial Peripheral Interface Flash File System" koj tuaj yeem xa cov ntawv tswj hwm mus rau qhov cim xeeb no los pab cov ntaub ntawv los ntawm qhov chaw ntawd. Los ntawm kev ua qhov no koj tuaj yeem qhib koj tus browser (xws li hauv koj lub xov tooj lossis phau ntawv sau) thiab mus rau qhov chaw nyob ntawm koj li ESP (lub neej ntawd yog 192.168.4.1) thiab koj yuav tau txais tus tswj interface hauv koj tus browser yam tsis tas yuav teeb tsa lub app, yog tias koj muaj iPhone lossis iPad qhov no yog qhov koj xaiv nkaus xwb.
Tshaj tawm cov duab kos hauv qab no mus rau koj li ESP board. Peb xav tau FastLED lub tsev qiv ntawv, yog li thawj zaug ntxiv nws rau koj Arduino IDE yog tias koj tsis tau muaj dua (Koj tuaj yeem rub tawm nws ntawm no). Txoj cai sim hluav taws yog Mark Kriegsman qhov hluav taws kub2012 kos duab uas koj tuaj yeem pom hauv cov piv txwv. Qhov piv txwv ntawd yog rau ib kab ntawm kev coj tab sis, ntawm no peb tau hloov pauv txoj cai los siv cov lej sib txawv. Qhov ntau tus lej/kab ntawv ntau dua qhov cuam tshuam yuav zoo dua. Lub zeem muag ntawm kev sim hluav taws tau piav qhia meej hauv cov piv txwv. Yog tias koj xav paub nws ua haujlwm li cas nyeem qhov chaws ntawm tus piv txwv.
Kauj ruam 5: App
Txhawm rau tswj "saib thiab hnov" ntawm qhov hluav taws kub muaj ob qhov sib txawv los ua si nrog: SPARKING thiab COOLING, uas koj tuaj yeem tswj tau zoo hauv cov tswj software tso rau hauv SPIFFS lossis Android app koj tuaj yeem rub tawm. Koj tseem tuaj yeem tswj FPS ntawm no.
Cov xim ntawm cov hluav taws yog tswj nrog cov xim palette uas tseem tuaj yeem hloov pauv los ntawm cov software tswj (dhau 4 xim nres). Tsuas yog nyem/coj mus rhaub txhua lub voj voog xim sawv cev rau qhov xim nres kom teeb xim, tom qab teeb tsa cov xim tsoo ze kom kaw qhov kev sib tham thiab pom qhov hloov pauv.
Kauj Ruam 6: Yuav Ua Li Cas Upload rau SPIFFS?
Txhawm rau xa cov ntaub ntawv mus rau SPIFFS nco siv Arduino IDE ua ntej koj yuav tsum tsim daim nplaub tshev hu ua "cov ntaub ntawv" sab hauv daim duab kab ntawv thiab tso tag nrho cov ntaub ntawv koj xav muab tso rau hauv daim nplaub tshev ntawd. Cov ntawv rub tawm ntawm no muaj ob daim duab thiab daim nplaub tshev no.
Tom ntej no, koj xav tau Arduino ESP8266 filesystem uploader plugin rau Arduino. Ua raws cov lus qhia ntawm nws nplooj Github thiab teeb tsa lub plugin. Thaum teeb tsa koj yuav pom ESP8266 Sketch Data Upload hauv qab cov cuab yeej ntawv qhia zaub mov. Muab koj ESP rau hauv hom phiaj kev ua haujlwm thiab nyem qhov ntawd. Ua siab ntev thiab cia cov ntawv rub tawm, uas yuav siv sijhawm me ntsis. Nco tseg: teeb tsa "upload nrawm" rau 921600 kom nws nrawm dua.
Kauj Ruam 7: Nws Ua Haujlwm Li Cas?
Cov duab kos tso rau ESP8266 pawg thawj coj saib tsim lub web server ntawm qhov ntawd, uas teb rau cov lus thov xa los ntawm app. Lub app yooj yim xa GET thov mus rau server (ESP8266). Cov ntaub ntawv ntawm cov xim los tsim cov palette tau xa raws li kev sib cav hauv qhov tau txais, ib yam muaj tseeb rau lwm qhov tsis xws li Sparking and Cooling parameters.
Piv txwv, txhawm rau teeb pom kev zoo, cov ntawv thov hauv qab no tau xa los ntawm app https://192.168.4.1/conf?brightness=224 muaj tus tuav haujlwm rau qhov kev thov hauv daim duab kos uas thaum tau txais qhov kev thov no teeb tsa qhov ci ci. Txheeb xyuas cov cai kom paub ntau ntxiv.
Kauj ruam 8: Android App
Android app yog tsim los siv Phonegap. Nws yog thev naus laus zis uas tso cai rau koj los tsim hla-platform mobile apps siv web thev naus laus zis (HTML, CSS, Javascript). Koj tuaj yeem tau txais cov cai los ntawm qhov txuas hauv qab no.
Pom zoo:
Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob DIY Powered Nrog 1.25 V thiab 0.054 Ma: 4 Kauj Ruam
Lub Tshuab Hluav Taws Xob Hluav Taws Xob DIY Tsim Nrog 1.25 V thiab 0.054 Ma: Lub hom phiaj: ua kom lub tshuab hluav taws xob Dc me me siv nrog ib lub hnub ci vaj huam sib luag me me vimun sc-3012-2a (siv sab hauv thiab sab nraum zoov) 29.44mm × 11.6mm × 1.1mm, uas tuaj yeem ua tau ua qhov ci ci uas muab tsuas yog 1,25 VX 0.054 maFind peb ON INSTAGRAM thiab pom qhov yooj yim elec
Kab Hluav Taws Xob Hluav Taws Xob lossis Hluav Taws Xob Oscillator: 9 Cov Kauj Ruam (nrog Duab)
Kab Hluav Taws Xob Hluav Taws Xob lossis Hluav Taws Xob Oscillator: Taw Qhia Kuv tau ua raws li kev txhim kho neeg hlau rau txog 10 xyoo thiab kuv keeb kwm yav dhau yog Biology thiab Videography. Cov kev nyiam no tau ncig kuv qhov kev mob siab rau, kev nkag siab (kawm txog kab). Kab yog qhov teeb meem loj hauv ntau qhov ua rau
Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Igniter: 6 Kauj Ruam (nrog Duab)
Cov Hluav Taws Xob Bluetooth Hluav Taws Xob Igniter: Puas yog nws zoo rau taws ntau dua ib lub foob pob hluav taws tib lub sijhawm? Lossis txawm tias muaj kev nyab xeeb nyob deb rau qhov phom sij txaus ntshai. Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim lub Circuit Court uas tuaj yeem ua tau li cas nrog kev pab ntawm Bluetooth ua haujlwm
Ib Leeg Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: 6 Cov Kauj Ruam
Ib Leeg Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob / Hluav Taws Xob Hluav Taws Xob: Hauv qhov haujlwm no peb tab tom ua kom muaj Ib lub kauj induction lub cev Muaj zog, thiab ntau yam piav qhia ntxiv, cov qauv ntawm lub tshuab hluav taws xob no tau siv ntau yam khoom siv tam sim no. Peb lub cav tsis muaj lub zog loj, nws yog ntau ntxiv txog kev ua haujlwm
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: 6 Kauj Ruam
Yuav Ua Li Cas Siv Cov Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Hluav Taws Xob Module: Nco tseg thiab ceev faj: CFL muaj cov mercury uas yog cov khoom phom sij, yog li nws yuav tsum tau ua raws li feem ntau CFL cov teeb, hluav taws xob hluav taws xob tau ua haujlwm zoo thiab tseem siv tau, tsuas yog lub teeb mus tsis zoo. CFL Circuit Court ntawm 18-24 Watts yog