Cov txheej txheem:
- Kauj Ruam 1: Yam Koj Yuav Tsum Tau
- Kauj Ruam 2: Luam Circuit Board
- Kauj Ruam 3: Ua kom tiav koj li PCB
- Kauj Ruam 4: Teeb ESP
- Kauj Ruam 5: Luam Vaj Tsev
- Kauj Ruam 6: Muaj Kev Lom Zem thiab Muaj Tswv Yim
Video: DIY Dashbutton rau Internet ntawm Yam: 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hav makers, nws yog tus tsim moekoe!
Hauv Cov Lus Qhia Kuv xav qhia koj yuav ua li cas coj kev nplij siab thiab khoom kim heev rau koj lub tsev. Thaum nyeem lub npe, koj yuav kwv yees peb yuav tsim dab tsi ntawm no. Txhua tus neeg uas mus ntsib amazon online khw tsawg kawg ib zaug, yuav ntsib nrog qhov me me no hu ua amazon dashbutton. Nrog cov cuab yeej siv roj teeb no, uas koj tuaj yeem lo nyob txhua qhov chaw hauv koj lub tsev, nws muaj peev xwm rov kho cov khoom tshwj xeeb los ntawm kev nias ib zaug.
Hauv qhov no yuav ua li cas peb yuav ua qee yam zoo sib xws, tab sis tsis tas yuav xaj dab tsi ntawm amazon. Peb yuav tswj hwm Internet ntawm Yam lossis cia peb hu qhov no Qhov Internet - tsuas yog vim IoT nyob hauv txhua tus neeg lub qhov ncauj thiab Toi suab tshwj xeeb rau kuv … Thiab Dab Tsi ntawm Internet tuaj yeem yog nyob ntawm koj. Koj tuaj yeem tuaj yeem tswj hwm txhua yam uas muaj tsawg kawg yog kev sib txuas wifi. Hauv kuv qhov xwm txheej, kuv xav tswj hwm kuv lub cuab yeej ntse hauv tsev xws li teeb, lub tshuab hluav taws xob thiab lub ntsej muag los ntawm kev txuas nws mus rau kuv lub Apple HomeKit uas twb muaj lawm.
Yog li qhov tseeb, lub hom phiaj ntawm txoj haujlwm no yog txhawm rau tsim lub tshuab hluav taws xob nrog PCB tus kheej tsim uas muaj cov hauv qab no:
- yooj yim li sai tau los ntawm tsuas muaj ib lub khawm tswj
- me me li sai tau
- sai li sai tau kom txo qis latencies
- raws li nqa tau ntau li ntau tau, lossis cia peb hu nws lub roj teeb
- thiab … zoo, nws yuav tsum muaj kev sib txuas wifi
Qhov tshwm sim feem ntau suav nrog ntawm PCB nrog chav tswj hluav taws xob, lub microcontroller, roj teeb LiPo thiab khawm yooj yim. Thaum lub sijhawm luv luv kuv ua kom zoo dua lub dashbutton PCB ob zaug, yog li peb nyob ntawm qhov thib peb ntawm PCB txog tam sim no.
Thaum koj xav pom tus cwj pwm ntawm qhov khoom me me no, tom qab ntawv mus saib cov vis dis aus no ntawm kuv Instagram. Muaj ntau cov yeeb yaj kiab ntawm dashbuttons hauv kev nqis tes ua thiab lawv tau tsim li cas. Yog li, rau txhua tus ntawm koj uas xav pom ntau ntxiv, koj tuaj yeem pom txhua yam ntawm no @maker.moekoe.
Kauj Ruam 1: Yam Koj Yuav Tsum Tau
Txhawm rau tsim koj tus kheej IoT dashbutton koj tsuas xav tau ob peb yam. Txawm hais tias muaj qhov sib txawv me ntsis los ntawm version rau version, qhov ntsuas hluav taws xob ib feem nyob ib yam. Rau txhua version koj yuav xav tau:
- MCP1700 3, 3v LDO tus tswj hluav taws xob
- 2x 1µF 1206 SMD capacitors
Ntxiv rau qhov puag ncig lossis qhov tseeb version (sab laug ntawm daim duab saum toj no):
- PCB (version 1 lossis 2)
- ESP8285-M3
- JST PH-2 90 ° Lipo txuas
- 100mAh Lipo roj teeb nrog qhov ntev ntawm 25x12mm
- 3x6mm SMD khawm
Los yog ntxiv rau cov npib cell version (sab xis ntawm daim duab saum toj no):
- PCB (qauv 3)
- ESP8266-07S
- WS2812b rgb (w) LED
- 0, 1µF 1206 SMD capacitor
- 6x6mm SMD khawm
- 2450 npib ntawm tes tuav
- LIR2450 npib cell roj teeb
Tau kawg, koj tuaj yeem xav txog lub tsev me me rau lub dashbutton. Lub tswv yim yooj yim tuaj yeem nrhiav pom hauv qib tsib ntawm Cov Lus Qhia no.
Kauj Ruam 2: Luam Circuit Board
Thaum kuv pib nrog lub dashbutton yam no, Kuv tsim pcb version ib yam yam tsis muaj qhov tshwj xeeb - tsuas yog txuas ob peb ntu nrog cov cim hluav taws xob. Kuv yuav tsis pom zoo cov ntawv no vim tias nws yog thawj daim ntawv sau tseg thiab nws tsis tau tsim kho zoo ib yam. Nov yog cov ntsiab lus me me ntawm tag nrho peb qhov kev hloov pauv:
Version 1 yog kuv thawj daim ntawv kawg uas muaj qee yam los ua kom zoo dua. Tej zaum kuv yuav hloov kho yav tom ntej tab sis nws tau ua haujlwm lawm. PCB muaj cov txheej sab nrauv ntawm 24x32mm. Nws tau siv los ntawm lub roj teeb LiPo me me thiab tsuas muaj lub zog tswj hluav taws xob rau lub zog ESP8285-M3. Lub roj teeb txuas nrog qee daim kab xev ob npaug rau hauv qab ntawm lub dashbutton.
Version 2 suav nrog lwm qhov zoo ntawm PCB. Nws yog puag ncig nrog txoj kab uas hla ntawm 30 hli thiab suav nrog lub dav hlau hauv av hla ob feem peb ntawm thaj chaw. Lwm qhov thib peb yog lub kav hlau txais xov ntawm lub microcontroller thiab yuav tsum tsis txhob sib tshooj nrog ib qho ntawm cov kab los yog cov cim hauv av kom txo kev cuam tshuam. Schematic yog tib yam li version ib. Thiab ib yam li version ib nws yog raws li ESP8285-M3.
Version 3 muaj lwm qhov zoo ib yam thiab. Qhov sib txawv tseem ceeb yog tias nws tau siv los ntawm tus qauv LIR2450 roj teeb uas tuaj yeem hloov pauv tau yooj yim yog tias nws tau txais khoob thiab yog li ntawd PCB yuav tsum loj dua me ntsis dua li lwm qhov. Ib qho ntxiv, nws suav nrog WS2812b rgb (w) coj los qhia rau ntawm yam sib txawv. Tsis tas li ntawd thiab hauv qhov sib piv rau lwm ob qhov nws tau ua raws ESP8266-07S.
Yog li tsuas yog xaiv cov ntawv los ntawm cov ntawv txuas thiab tso koj xaj ntawm koj lub tuam txhab PCB uas koj nyiam.
Kuv twv yuav raug hu qhia qhov thib ob, vim tias nws yog qhov kev txhim kho tshaj plaws ntawm txhua qhov thiab qhov loj me me tsuas yog 30mm yog qhov yooj yim heev hauv kuv lub tswv yim. Thaum koj xav kom muaj cov yam ntxwv ntxiv hauv qhov me me, tom qab ntawv hais txog version peb, tab sis cov ntawv no tseem ua haujlwm txuas ntxiv thiab tej zaum yuav tsum tau ua kom zoo dua hauv qee yam …
Kauj Ruam 3: Ua kom tiav koj li PCB
Yog tias koj tuav koj lub PCB hauv koj txhais tes, nws yog lub sijhawm los muab cov khoom sib txuas rau nws. Txhawm rau ua li ntawd, koj tuaj yeem siv cov thev naus laus zis twg koj nyiam. Hauv kuv qhov xwm txheej kuv tau siv cov khoom sib xyaw nrog cov kua nplaum thiab cov tshuab rov ua dua tshiab. Rau qhov no koj yuav xav tau qee qhov muab tshuaj txhuam tso rau hauv lub koob txhaj tshuaj, lub chaw tso tshuaj txhuam rov qab (lossis qee yam zoo li rab phom cua kub) lossis lub qhov cub. Zoo li muaj nyob hauv daim vis dis aus no (rau version ob) lossis cov vis dis aus saum toj no (rau version peb), koj yuav tsum faib me ntsis ntawm cov tshuaj txhuam txhuam rau txhua smd xaim hlau ua ntej koj tso cov khoom rau nws qhov chaw muab. Hauv cov vis dis aus rau version ob nws tau qhia nrog lub tshuab ua kom tsis siv neeg ib nrab thiab tso lub ntsej muag tab sis cov khoom siv tau loj txaus los ua kom lawv ua haujlwm tau zoo ib yam li pom hauv daim vis dis aus rau qib peb.
Tom qab qhov no koj tuaj yeem muab cov PCB tso rau hauv qhov cub lossis muab tshuaj txhuam rau lawv nrog koj cov thev naus laus zis xaiv. Cov txheej txheem no tseem pom raws li lub sijhawm ncua sij hawm hauv cov vis dis aus sab saud.
Tau kawg, qhov no yuav tsum ua tau nrog cov hlau sib txuas ib yam nkaus, tab sis kuv xav tias yuav tsis yog txoj hauv kev yooj yim tshaj plaws thiab koj yuav tsum ua siab ntev.
Kauj Ruam 4: Teeb ESP
Flashing lub microcontroller ntawm lub pcb yuav tsis yog qhov yooj yim tshaj plaws. Tab sis yog li ntawd tias lub dashbutton yuav tsum yog me me li sai tau, tseem muaj tsawg dua li cov khoom siv tau. Txhawm rau nyem nws, muaj peb yam tseem ceeb uas koj yuav tsum siv.
- GPIO0 (PROG rau version peb) xaim hluav taws xob jumper yuav tsum tau luv kom muab ESP hauv hom phiaj. Nco ntsoov, tias lub microcontroller yuav tsis pib li qub nrog qhov luv GPIO0/PROG xaim hlua.
- Koj yuav tsum txuas plaub daim ntaub xaim (3, 3v - gnd - rx - tx) rau sab nraud FTDI adapter. Ua li ntawd, koj tsis tas yuav siv qee cov xov hlau rau nws. Vim tias kuv tau ua raws plaub daim kab xev hauv 2, 54 mm, kab sib chaws koj tuaj yeem nqa 4-pin tus pinheader, txuas nws nrog cov hlua txuas rau FTDI adapter thiab nias nws tawm tsam cov ntaub qhwv hlau thaum rub tawm daim duab. Thiab vim tias daim duab muaj nqis tshaj txhiab lo lus, kuv tau ntxiv ib qho uas qhia txog cov txheej txheem no.
- Txoj cai tom qab tshaj tawm cov lus hauv Arduino IDE tshwm, koj yuav tsum nias lub pob pib dua ib zaug (nws yog LUB KOOB - khawm nkaus xwb ntawm lub dashbutton). Tom qab qhov no xiav coj ntawm ESP yuav tsum nyem ob peb zaug kom txog thaum nws taws tas li thaum lub bar tso rau sab hauv Arduino IDE ua tiav.
Kuv lub dashbutton tau muab tso rau hauv Apples HomeKit lub moj khaum los tswj hwm yam sib txawv hauv kuv lub tsev. Kuv yuav tsis mus rau hauv ntxaws yuav ua li cas rau nruab nws lossis nws ua haujlwm li cas vim qhov no yuav mus dhau qhov uas tau hais tseg. Yog tias koj xav ua nws ib yam nkaus koj tuaj yeem xa mus rau qhov ua haujlwm txaus ntawm KhaosT, uas ua haujlwm ntawm node.js kev siv HomeKit accessory server, uas kuv tau siv ib yam. Rau cov uas yuav siv nws kuv txuas Dashbutton_accessory.js cov ntaub ntawv.
Txawm li cas los xij nws muaj peev xwm los ua ke cov dashbuttons rau hauv lwm daim ntawv thov ntse hauv tsev, lossis ntau dua. Cov ntawv txuas nrog Arduino ua haujlwm nrog MQTT, uas yuav ua haujlwm nrog yuav luag txhua qhov kev siv tsev ntse.
Thaum koj xav pib nrog tus lej Arduino txuas nrog, tom qab ntawd yooj yim ntxiv koj li ntawv pov thawj wifi thiab MQTT tus tswv lag luam tus IP chaw nyob hauv cov kab hauv qab no:
const char* ssid = "XXX";
const char* password = "XXX"; const char* mqtt_server = "192.168.2.120";
Cov duab kos yooj yim tsa ESP los ntawm hom pw tsaug zog thaum khawm rov pib dua ib zaug. Tom qab qhov no nws yuav txuas mus rau qhov tshwj xeeb wifi network ntxiv rau MQTT broker, ua ntej nws tshaj tawm cov lus yooj yim (zoo li ib '1') rau cov ncauj lus tau piav tseg. Tom qab ntawd ESP rov qab mus rau hom pw tsaug zog. Puas yog koj lub network tsis tuaj yeem ncav cuag ESP, nws yuav rov qab mus rau hom pw tsaug zog tom qab rau vib nas this, tab sis tsis tau tshaj tawm dab tsi. Qhov no tsuas yog txhawm rau tiv thaiv lub roj teeb kom tas sai heev.
Kauj Ruam 5: Luam Vaj Tsev
Lub dashbutton yuav tsum tau ua haujlwm lawm thaum koj tau mus txog qib no. Tab sis nws yuav tsum tau txais rooj plaub me me los tiv thaiv qee qhov kev puas tsuaj rau PCB lossis rau cov khoom siv hluav taws xob. Tau kawg qhov no yog qhov muaj tswv yim ib feem ntawm Cov Lus Qhia no. Yog li, yog tias koj xav tau, koj tuaj yeem tsim koj lub tsev nyob thiab luam tawm ntawm koj lub tshuab luam ntawv 3d zoo li kuv tau ua. Koj tuaj yeem pib los ntawm kos lossis koj tuaj yeem siv kuv cov ntaub ntawv thiab ntxiv qee qhov kev hloov kho. Pom tseeb, cov tsev nyob tuaj yeem pom ntawm Thingiverse, tab sis kuv tau txuas cov ntaub ntawv ntawm no ib yam.
Cov ntaub ntawv lossis - kom raug dua - lub hau rau version 3 tseem tsis tau npaj txhij, tab sis kuv yuav hloov kho sai li sai tau.
Kauj Ruam 6: Muaj Kev Lom Zem thiab Muaj Tswv Yim
Yog li, vam tias koj tuaj yeem hloov koj lub teeb los ntawm ib lub pob nyem tam sim no!
Tsawg kawg, kuv qhov kev suav tau pom tias lub roj teeb muaj peev xwm ntawm ib qho thiab ob yuav nce mus txog 150 hnub nrog cov txiaj ntsig hauv qab no:
- Peev Xwm LiPo ntawm 105mAh
- thauj khoom tam sim no ntawm 70mA
- pw tsaug zog tam sim no ntawm 20µA
- sijhawm tshaj tawm 3 vib nas this
- khawm sib tham ntawm 2 ib teev twg (uas ntau dua li nws yuav mus txog, Kuv twv)
- roj teeb poob ntawm 30% (uas yog qhov zoo heev)
Lub roj teeb lub neej ntawm version 3 yuav tsum yog yam tsawg kawg nkaus, thaum nws muaj peev xwm 120 mAh. Txawm li cas los xij, nws muaj ws2812 coj ntawm lub nkoj, uas yuav kos qee qhov tam sim no ib yam.
Tam sim no nws yog rau koj! Vam tias koj nyiam nyeem Cov Lus Qhia no lossis tej zaum nyiam ua qhov zoo me me.
Qhov no thiab txawm tias lwm qhov haujlwm txias tuaj yeem pom ntawm kuv GitHub Page makermoekoe.github.io. Txog qhov hloov tshiab tsis ntev los no koj tuaj yeem ua raws kuv ntawm Instagram.
Yog tias koj muaj lus qhia lossis yog qee yam tsis meej rau koj, tom qab ntawv thov nug kuv hauv cov lus hauv qab no lossis sau ntawv luv rau kuv.
Hais txog
txiag moekoe
Pom zoo:
IoT Push Notification Siv Nodemcu ntawm Xov Tooj (Rau Txhua Yam): 5 Kauj Ruam (nrog Duab)
IoT Push Notification Siv Nodemcu ntawm Xov Tooj (Rau Txhua Yam): Xa kev ceeb toom rau cov lus, email yog cov qauv qub … Yog li cia ua qee yam tshiab uas yog qhov yooj yim heev thiab yooj yim TSIS YOG QHOV KEV PAB CUAM PHP HOSTING LOSSIS LAWV COMPLICATION … Tsev automation, theem twj tso kua mis, tso dej hauv vaj, tso tsiaj kom zoo
Kawm Ib Qho Kev Ua Yeeb Yam Yooj Yim ntawm SOLIDWORKS: Ua Rau Rau Rau Ib Sab Ncig: 22 Kauj Ruam
Kawm Ib Qho Kev Ua Yeeb Yam Yooj Yim ntawm SOLIDWORKS: Ua Rau Rau Rau Rau Ib Sab: Cov Lus Qhia no yuav taug koj cov hauv kev uas yuav tsum tau ua kom ua qauv 3D ntawm rau rau sab ib sab. Cov duab 3D, thiab cov fab sab hauv thiab sab nrauv lossis cov qauv 3D.Thaum ua haujlwm
Yuav Ua Li Cas Rau Koj Tus Kheej USB Tsheb Charger Rau Ib Tug IPod lossis Lwm Yam Khoom Uas Them Los Ntawm USB: 10 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Rau Koj Tus Kheej USB Tsheb Charger Rau Ib Tug IPod lossis Lwm Yam Khoom Uas Them Los Ntawm USB: Tsim USB tsheb them rau txhua lub iPod lossis lwm yam khoom siv uas tau them Via USB los ntawm kev sib txuas ua ke lub tsheb hloov pauv uas tso tawm 5v thiab USB Poj niam ntsaws. Qhov tseem ceeb tshaj plaws ntawm txoj haujlwm no yog kom ntseeg tau tias qhov kev tso tawm uas koj xaiv lub tsheb hloov pauv yog thawj koom ruam
Cov lus qhia ntawm Kev Ua Kom Zoo Mock-Up ntawm Track Slide Tsim rau Nqa/Txo Hauv Pem Hauv Ntej-Mounted Footrests ntawm Lub Hwj Huam Log: 9 Kauj Ruam (nrog Duab)
Cov lus qhia ntawm Kev Ua Kom Tiav Mock-Up ntawm Track Slide Tsim rau Nqa/Sab Qaum Nruab Nrab-Mounted Footrests ntawm Lub Hwj Huam Lub Rooj Zaum: Lub hauv paus tau teeb tsa lub tog zaum kom nqa tau hauv qab lub rooj kom zoo, thiab qis dua kom siv tau. Ib lub tswv yim rau kev ua haujlwm ywj pheej ntawm kev tuav cov footrest thiab kev xa tawm tsis suav nrog lub rooj zaum fais fab lag luam, thiab PWC cov neeg siv tau qhia txog qhov xav tau
Ua Si Txhua Yam Los Ntawm NES mus rau Xbox Nrog Skittlespider AT Aka "Qhov Tsis Txaus Siab": 11 Cov Kauj Ruam (nrog Duab)
Ua Si Txhua Yam Los Ntawm NES mus rau Xbox Nrog Skittlespider AT Aka "Qhov Tsis Txaus Siab": Cov lus qhia no yog rau Skittlespider ATT (Txhua Qhov System) tseem hu ua " Contraption " Txoj haujlwm no tau nyuab dua li qhov kuv xav tau. Hauv ob peb txoj hauv kev nws tau yooj yim dua, yog li kuv tsis tuaj yeem hais tias nws yog qhov nyuaj tag nrho lossis yooj yim txoj haujlwm