Cov txheej txheem:

Automated Windows Shades: 6 Kauj Ruam (nrog Duab)
Automated Windows Shades: 6 Kauj Ruam (nrog Duab)

Video: Automated Windows Shades: 6 Kauj Ruam (nrog Duab)

Video: Automated Windows Shades: 6 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
Image
Image
Automated Windows Shades
Automated Windows Shades
Automated Windows Shades
Automated Windows Shades

Ib lo lus ua ntej

Kuv tau pom ntau cov lus qhia yuav ua li cas siv phau ntawv ntxoov ntxoo thiab qhov muag tsis pom, zoo nyob rau hauv qhov no peb yuav siv hluav taws xob ntxoov ntxoo. Peb yuav npog cov duab hluav taws xob khiav los ntawm cov tshuab hluav taws xob txuas ntxiv tam sim no (DC) uas qhib lossis kaw los ntawm kev thim rov qab ntawm qhov tam sim no.

Txawm hais tias yog koj yuav hluav taws xob ntxoov ntxoo koj yuav tau txais qee qhov kev siv tshuab muaj laj thawj rau kev ua lub tshuab hluav taws xob ntawm koj tus kheej xws li:

* koj yuav tsuas muaj qhov hloov pauv nyob ze lawv rau kev tswj hwm nce/nqis

* nws pheej yig dua (qee lub tuam txhab muab kev siv tshuab siab heev rau ntau ntxiv $$)

* hloov pauv tau ntau dua, koj tuaj yeem program lawv qhib lossis kaw ntawm ntau yam xwm txheej, peb yuav kawm txog kev tsim lub vev xaib hauv python uas yuav txuas rau qhov ntxoov bluetooth interface, thiab nthuav tawm API los tswj qhov ntxoov, peb kuj tseem yuav koom ua ke nws nrog yam khoom hais thiab nyob ntawd koj tuaj yeem ua tej yam xws li tswj cov ntxoov ntawm lub sijhawm lossis tswj nws los ntawm kev nkag siab sensor

Qhov no yuav yog kev qhia ua ntu nruab nrab, koj yuav xav tau kev txawj ntse xws li kev siv lub tshuab ua haujlwm, kev tsim qauv arduino, kev nkag siab hluav taws xob yooj yim, thiab qee qhov yuav teeb tsa cov kev pabcuam ntawm server li cas, khiav thiab teeb tsa lawv.

Yog tias koj nyiam cov vis dis aus hauv youtube, koj tuaj yeem sau npe ntawm no.

Kauj Ruam 1: Yam Yuav Tsum Tau

Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau

Tswv yim: nthuav cov duab kom pom cov ntawv piav qhia ntawm lawv

Qhov:

1. arduino pro mini 16Mhz 5V yam (eBay) 2 $

2. HC-05 bluetooth module (eBay) 3.3 $

3. 5 V Ob txoj kev xa tawm (eBay) 1.6 $

4. NPN tranzistor uas tau ntsuas tsawg kawg ob peb amps, kuv tau siv Tip142T <1 $

5. 220 ohms, 0.25W rezistor <1 $

6. diode, 1N4004 <1 $

7. xov hlau los txuas qhov seem <1 $

8. PCB (eBay) <1 $ ib thooj

9. 2 x KF301-2P ntsaws ntsaws txuas (eBay) <1 $ ib thooj

10. txiv neej-poj niam jumper xov hlau (eBay) 1.2 $ x 2 rau ib pawg

11. L7805CV 5V tus tswj hwm (eBay) <1 $ ib thooj

12. 5.5mm DC Power Plug Jack Socket txiv neej thiab poj niam (eBay) <1 $ ib thooj

13. Thaum Tshav Kub Kub Shrink Tubing lossis insulating daim kab xev

14. Lub hwj chim, qhov khoom siv yuav tsum tau ntsuas rau 12V thiab 2-3A.

Kuv tau khaws kuv li los ntawm 12 V 2 A charger (eBay) 3.2 $

14. Terminal strip block (eBay) 15c

15. tus tuav fuse (Aliexpress) 1 $ ib thooj

16. fuse (eBay) <1 $ ib thooj

17. txiv neej & poj niam pcb txuas (eBay) <1 $ rau qhov peb xav tau

18. AC fais fab cable

19. lub thawv yas yas, kuv li yog 6 x 19 cm

Cov Cuab Yeej:

1. Soldering hlau nrog solder

2. Hlau txiav

3. Ntsia hlau ntau yam

4. Cutter

5. lub zog laum thiab 8.5 mm laum ntsis

6. USB rau serial FTDI adapter FT232RL rau programm arduino pro mini

7. Lub khoos phis tawj nrog ArduinoIDE tau teeb tsa los teeb tsa lub program arduino

8. Sib zog dua yog tias koj siv Cov Hluav Taws Xob Kub Kub

9. Lub xov tooj smartphone muaj peev xwm txuas tau bluetooth (kuv siv lub hauv xov tooj ntawd ua piv txwv) nrog lub software bluetooth tau teeb tsa

10. Yeem tau: iav tsom iav, ntsuas qhov ntsuas, pliers

Kauj ruam 2: Kev npaj

Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj

Xaiv lub hwj huam mov, thiab lub thawv yas

Thawj qhov yog los txiav txim siab npaum li cas tam sim no thiab qhov hluav taws xob ua qhov ntxoov ntxoo ua haujlwm li cas.

Qhov no tuaj yeem ua tiav nyeem cov lus qhia tshwj xeeb lossis ntsuas ntsuas siv lub multimeter. Feem ntau lawv ua haujlwm 12 V thiab 1-3 Amps (kuv li 2.5 A thiab 12 V). Sib npaug tam sim no los ntawm pes tsawg ntawm lawv koj puas xav tau tsav ib txhij (kuv tsav ob) kom paub qhov siab tshaj tam sim no xav tau. Koj yuav tsum pom lub zog siv hluav taws xob uas zoo ib yam nkaus thiab zoo ib yam amperage lossis siab dua.

Ntawm theem no kuv tau dag me ntsis, siv 12 V thiab 2.5 A lub zog xa hluav taws xob los tsav ob lub 12 V thiab 2.5 A lub cav uas txhais tau tias lub cav siv lub zog ob zaug ntau npaum li lub hwj chim muab tau. Tab sis siv cov txheej txheem hu ua PWM (txheeb xyuas qhov txuas kom pom cov ntsiab lus ntxiv) Kuv tau tswj kom tsav lub cav ib txhij ntawm qhov nrawm dua.

Qhov laj thawj kuv tau ua qhov no yog kom txuag chaw hauv lub thawv (Kuv tau xaiv lub thawv me me).

Lub thawv yas yuav tsum tau muab lub zog tso hluav taws xob, ob qhov xa tawm, lub pcb me me nrog cov khoom siv hluav taws xob thiab cov xov hlau yog li xaiv qhov loj me kom txhua yam haum.

Kuv lub zog siv hluav taws xob muaj lub thawv yas uas kuv tau ripped sib nrug siv lub cuab yeej dremel, kuv tau txiav cov xov hlau uas twb muaj lawm thiab hauv txoj kev no kuv tau txais qhov pheej yig thiab lub hwj chim me me haum rau kuv qhov project (saib duab).

Npaj cov kab hluav taws xob

Koj yuav tsum tau suav tias ntev npaum li cas cov kab hluav taws xob yuav yog, uas yog kom txog thaum lawv mus txog lub thawv tswj uas peb tab tom thab plaub. Muaj feem yog tias cov kab hluav taws xob uas twb muaj lawm tsis ntev txaus, thiab koj yuav tsum tau txuas ntxiv, tshem tawm ob lub xov hlau (cov xov tooj uas twb muaj lawm thiab cov txuas txuas txuas ntxiv) ntawm ib kawg, tso cov cua sov ntsws ntsws, xaim cov xov hluav taws xob tom qab ntawd siv cua sov nrog sib zog kom insulate.

Qhov kawg ntawm txoj kab txuas txuas yuav muaj txiv neej 5.5mm DC Lub Hwj Huam Plug Hluav Taws Xob. Koj yuav tsum tau muab ob lub xov hlau txuas rau lub qhov (socket) qhov txiaj ntsig kawg yuav zoo li hauv cov duab.

Ntxig tus poj niam 5.5mm DC Lub Hwj Huam Hluav Taws Xob rau hauv lub thawv

Siv lub tshuab drilling siv ob lub qhov loj txaus rau lub jack kom swb los ntawm. Ntxig lub hwj huam ntsaws rau hauv, ntsia hlau siv cov txiv ntoo. Tom qab ntawd cov tuab tuab tuab thiab cov xov hlau liab rau txhua qhov ntawm lub qhov nkag, tom qab ntawd insulate lawv siv cov raj cua sov. Cov xov hlau yuav tsum ntev txaus kom nkag mus rau lub davhlau ya nyob twg thaiv tau yooj yim, tab sis tsis txhob ntev kom nyob qhov chaw ntau dhau.

Txuas tus tuav lub fuse nrog lub fuse

Mus rau ib sab ntawm lub thawv laum lub qhov me me kom tso cov txiv ntoo me me uas tuav lub fuse yas dhos. Tom qab ntawd siv lub pliers, tus ntsia hlau tsav tsheb thiab cov txiv ntoo, ntswj nws nruj rau hauv txoj haujlwm. Tus tuav lub fuse yuav tsum nyob ze qhov chaw muab hluav taws xob, thiab yuav tsum sab hauv lub thawv. Ib zaug ntxiv xyuas cov duab.

Kauj Ruam 3: Tsim PCB nrog Cov Khoom Siv Hluav Taws Xob

Tsim PCB nrog Cov Khoom Siv Hluav Taws Xob
Tsim PCB nrog Cov Khoom Siv Hluav Taws Xob
Tsim PCB nrog Cov Khoom Siv Hluav Taws Xob
Tsim PCB nrog Cov Khoom Siv Hluav Taws Xob
Tsim PCB nrog Cov Khoom Siv Hluav Taws Xob
Tsim PCB nrog Cov Khoom Siv Hluav Taws Xob

PCB yuav tuav lub microcontroller, kev sib txuas lus bluetooth, RTC module, lub zog tranzistor nrog lub diode rau kev tiv thaiv thiab lub rezistor me me, txuas cov xov hlau thiab 5V tus tswj hwm.

Kuv tau txuas cov fritzig schematic yog li tej yam yuav yooj yim. Thawj daim duab sawv cev rau cov duab xa tawm ntawm cov duab thiab kuv kuj tau txuas nrog sketch.fzz (thawj daim ntawv, koj tuaj yeem qhib nws nrog cov cuab yeej no)

Cov kauj ruam soldering:

1. txiav tus poj niam PCB txuas, muaj ob tus 12 tus pin txuas rau lub microcontroller, kuj tseem muaj 6 tus pin txuas rau bluetooth thiab lwm 12 tus pin txuas ntawm sab xis ntawm microcontroller thiab ob tus pin txuas rau kev xa tawm tsis zoo thiab lub zog zoo

2. Tom qab txhua qhov txuas txuas raug txiav yuav tsum tau muab tso rau sab nraum qab ntawm PCB

3. Solder ob lub KF301-2P plug txuas

4. Muab L7805CV 5V tus tswj hwm rau ntawm PCB. Khoov nws ob txhais ceg thiab muab nws tso rau ntawm lwm sab ces txiav cov ceg ntau dhau nrog cov kab txiav

5. Solder NPN Tip142T tranzistor thiab 1N4004 tiv thaiv diode, txiav cov ceg ntau tom qab

6. Solder 220 ohm rezistor nruab nrab ntawm tus lej digital 5 thiab tus pin tranzistor puag

7. Cov kab hluavtaws tuab tuab ntawm lub tranzistor thiab KF301-2P plugs (liab thiab dub raws li lawv tau cim rau ntawm daim duab)

8. Siv tag nrho cov liab (+), dub (-), thiab dawb (teeb liab) cov xov hlau nyias raws li cov txheej txheem fritzig

9. Solder txiv neej tus pin ntawm lub microcontroler koj xav tau ob 12 tus txiv neej pin ntawm ob sab

10. Ua kev sib txuas ntawm txhua tus microcontroller sab xis poj niam coj tus pin (nws tau piav qhia zoo dua hauv cov duab). Kev sib txuas yuav ua los ntawm kev siv cov laug xwb (cov pins yuav nyob ze)

11. Yeem tau: nrog lub iav tsom iav tshuaj xyuas cov kab laug sab rau cov kab hluav taws xob luv, thiab txheeb xyuas seb cov xov hlau puas tau muab tso rau sab nraum qab ntawm PCB, kuj koj tuaj yeem tshawb xyuas nrog lub ntsuas qhov ntsuas (qhov teeb meem tiv thaiv) yog tias muaj luv luv ntawm qhov zoo thiab kev sib txuas tsis zoo Lwm qhov kev sim yog ua kom lub zog hluav taws xob tsis muaj lub microcontroller, bluetooth

12. Tso lub microcontroller thiab HC-05 bluetooth rau ntawm pcb

Kauj Ruam 4: Teeb thiab Sib dhos

Teeb thiab Sib dhos
Teeb thiab Sib dhos
Teeb thiab Sib dhos
Teeb thiab Sib dhos

Txog tam sim no peb tau npaj peb lub pcb, peb lub thawv yas npaj cov kab xaim hlua txuas, thiab peb lwm cov khoom npaj. Txhua yam peb yuav tsum tau ua tam sim no yog xaim kab ke.

1. los ntawm lub qhov sab sauv sab hauv lub thawv ntxig rau AC fais fab cable, hle kab thiab muab nws txuas rau ntawm lub hwj chim (yog tias koj lub hwj chim muaj cov ntsia hlau ces ntsia nws)

2. siv cov xaim liab liab tso cov khoom tso tawm (+) ntawm lub zog xa mus rau ib sab ntawm fuses, siv cov cua sov me ntsis txhawm rau txhawm rau zais cov kab xaim raug nthuav tawm.

3. muab lwm txoj hlua liab txuas rau lwm sab ntawm lub fuse siv lub raj ntswj, lwm sab ntawm cov hlau yuav tsum tau muab ntxig thiab ntswj rau hauv cov tswv yim (+) ntawm KF301-2P cov ntsia hlau txuas

4. Muab cov xaim dub tso rau qhov tso tawm (-) sab ntawm lub zog hluav taws xob thiab tom qab ntawd ntsia hlau rau ntawm PCB cov tswv yim KF301-2P ntsia hlau txuas

4. Siv tus txiv neej-poj niam lub khob cij txuas, txuas qhov sib txuas zoo thiab tsis zoo rau pcb tus poj niam zoo thiab tsis zoo txuas. Kuj txuas tus pin 8 thiab 9 ntawm lub microcontroller (siv lub pcb niam txuas rau sab laug ntawm PCB) mus rau lub relay txhais pins

5. txuas ib sab ntawm lub davhlau ya nyob twg thaiv cov kab liab rau dub raws cov xov dub los ntawm tus poj niam 5.5mm DC Lub Hwj Huam Plug txuas. Hauv koj muaj ntau dua ib qho 5.5 mm poj niam txuas zoo li kuv ua, tom qab ntawd tag nrho cov xov hlau liab yuav xaus rau sab laug sab sauv ntawm lub davhlau ya nyob twg thaiv, thiab tag nrho cov xov hlau dub nyob rau sab xis ntawm lub dav hlau thaiv (saib duab). Thaum koj yuav ua haujlwm ntxoov yog tias lawv tsis txav mus rau tib txoj kev peb yuav thim cov xov ntawm no (ntau ntxiv tom qab ntawd)

6. txuas cov xov hlau zoo thiab tsis zoo los ntawm KF301-2P (tawm) cov ntsia hlau txuas mus rau qhov nruab nrab ntawm cov chaw xa xov. Qhov nruab nrab ntawm cov dav hlau hu ua ntau.

7. txuas sab laug ntawm sab laug relay (tsis muaj teeb meem li cas koj tab tom ntsib qhov tseeb) mus rau sab laug ntawm txoj cai txuas mus rau sab laug sab laug ntawm lub davhlau ya nyob twg thaiv. Tom qab ntawd txuas sab xis ntawm sab laug txuas mus rau sab xis ntawm txoj cai txuas mus rau sab xis sab xis ntawm lub davhlau ya nyob twg. Lub davhlau ya nyob twg thaiv yuav muaj sab saud txuas nrog rau tus poj niam 5.5 hli txuas (saib cov kauj ruam 5).

Nco tseg: Kuv tau piav qhia lub davhlau ya nyob twg raws li muaj sab saud thiab sab qis txhua sab laug thiab sab xis. Nws tsis muaj teeb meem li cas koj tuav lub davhlau ya nyob twg thaiv tsuav koj nco qab tias sab twg yog dab tsi. Koj tuaj yeem tshawb xyuas cov duab thiab tshwj xeeb tshaj yog cov txheej txheem fritzig.

Kauj Ruam 5: Arduino Code

Arduino Txoj Cai
Arduino Txoj Cai

Cov cai yuav tsum tau muab xa mus rau arduino pro mini siv USB rau txuas FTDI adapter FT232RL.

Koj yuav tsum txuas GND, VCC, Rx, Tx thiab DTR tus pin rau arduino pro mini. Tom qab ntawd qhib lub software arduino xaiv cov cuab yeej/chaw nres nkoj thiab qhov chaw nres nkoj twg koj tab tom siv. Tom qab ntawd Cov Cuab Yeej/Pawg Thawj Coj/Arduino Pro lossis Pro Mini. Ces Cov Cuab Yeej/Pawg Thawj Coj/Txheej Txheem/ATmega328 (5V 16Mhz).

Thaum kawg, qhib daim duab hauv qab no, thiab nias upload.

Kev hloov kho: Tib qho uas tuaj yeem hloov kho hauv daim duab yog pwmPower. Tus nqi tuaj yeem nyob nruab nrab ntawm 0 thiab 255 thiab nws kwv yees kwv yees ntau npaum li cas ntawm cov khoom siv hluav taws xob yuav mus rau qhov ntxoov ntxoo. Nws yog qhov pib hloov lub zog sai thiab tawm. Kuv tau siv nws feem ntau tso cai rau kuv siv lub zog me me yam tsis muaj cua sov lossis kaw. Yog tias koj lub zog siv hluav taws xob muaj zog ntau dua li lub cav yuav kos koj tuaj yeem teeb tsa lub zog rau 255.

Yog li qhov haujlwm no ua haujlwm li cas: ua ntej nws mloog kab ntawv txuas (ntu software thib ob) rau kev xa tawm. Thaum kis tau tus mob tuaj txog, cov lus tau nyeem hauv qhov tsis txog thaum ";" yog tam sim no los yog qhov kawg ntawm tsis tuaj txog. Tom qab ntawd nws tau txheeb xyuas thiab yog tias nws nyob hauv hom ntawv raug (ex: O45;) lub luag haujlwm toggleState tau hu nrog thawj lub xeev ntsuas, thiab tom qab ntawd lub sijhawm.

Txhawm rau ua tiav qhov kev hloov pauv ob qho tib si txuas tau qhib lossis kaw. Tus tranzistor tau hloov pauv thiab siv PWM rau lub sijhawm tshwj xeeb. O45 yuav txhais tau tias qhib rau 45 vib nas this.

Tom qab qhov hais kom ua tiav, qhov tsis raug tshem tawm.

Kauj Ruam 6: Siv

Pab
Pab
Pab
Pab
Pab
Pab

Peb tuaj yeem siv cov kev tswj hwm ntau dua ib txoj hauv kev

1. Via daim ntawv thov bluetooth hauv xov tooj ntawd lossis iphone (yooj yim tshaj)

Hauv kuv qhov kev qhia kuv tau xaiv Android app hu ua Bluetooth Controller. Cov app no cia koj hloov kho cov nyees khawm uas yuav xa cov ntaub ntawv txuas mus. Kuv tau tsim ob lub khawm hu ua nce thiab nqis, kuv tau cuam tshuam nrog txoj cai "C40;" thiab nqis nrog "O35;".

C40; yog txhais tau tias kuv yuav kaw (thim) qhov ntxoov ntxoo rau 40 vib nas this, "035" txhais tau tias yuav qhib (lawv nce) rau 35 vib nas this. ";" yog cov lus txib uas kuv tau xaiv hauv kuv daim duab, uas txhais tau tias nws qhia qhov kawg ntawm kev hais kom ua.

2. Via tsab ntawv nab hab sej uas tau ua haujlwm tsis tu ncua hauv keeb kwm yav dhau

Nov yog qhov qhia ua ntu zus ntawm kev qhia. Kuv tau sau tsab ntawv nab nab uas yuav khiav ntawm tus server zoo li raspberry pi lossis lub khoos phis tawj uas siv internet. Nws yuav txuas rau bluetooth ntawm lub thawv tswj, thiab nws yuav nthuav tawm http API. API tuaj yeem nkag mus ncaj qha lossis dhau ntawm yam khoom.

Kuv yuav piav qhia ib qib zuj zus tias koj yuav tsum ua dab tsi

a thawj qhov yog ua khub bluetooth

koj yuav siv bluetoothctl hais kom ua los ntawm console, sab hauv

zog on

nrhiav tau ntawm tus neeg sawv cev ntawm tus neeg sawv cev -pairable pairable ntawm scan ntawm khub xx: xx: xx: xx: xx: xx (thiab nkag tus password) ntseeg xx: xx: xx: xx: xx: xx (yog tias tsis muaj tus password):

tom ntej qhib cov ntaub ntawv teeb tsa bluetooth

vim /etc/bluetooth/rfcomm.conf

sab hauv koj yuav tsum teeb tsa koj lub cuab yeej bluetooth zoo li:

rfcomm1 {

khi yog; ntaus koj_bluetooth_mac_address ib yam dab tsi zoo li 97: D3: 31: 21: A0: 51; channel 1; tawm tswv yim "Kev sib txuas rau kuv qhov ntxoov ntxoo bt"; }

khi, rov pib dua cov kev pabcuam bluetooth

sudo rfcomm khi allsudo /etc/init.d/bluetooth rov pib dua sudo hciconfig hci0 nce

b. nruab flask, hwj hwj yooj yim auth:

sudo -H pip nruab Flask Flask -BasicAuth

c. tsim cov ntaub ntawv server.py nrog cov cai hauv qab no thiab khiav server:

# kev siv: nab nab httpToBluetooth username password bluetooth_address

# Nco tseg: lub npe siv, tus lej siv tau siv

ntshuam os, bluetooth, sys, xov

los ntawm lub raj ntshuam ntshuam Flask los ntawm flask_basicauth ntshuam BasicAuth los ntawm kab ntshuam Queue app = Flask (_ name_) teeb tsa = sys.argv app.config ['BASIC_AUTH_USERNAME'] = teeb tsa [1] app.config ['BASIC_AUTH_PASSWORD'] = teeb tsa [2] queue = Queue () basic_auth = BasicAuth (app) class BluetoothBackground (threading. Thread): def _init _ (self, bluetooth_address, queue): threading. Thread._ init _ (self) self._ bluetooth_address = bluetooth_address self._ queue = queue self.shutdown = Cuav def khiav (tus kheej): tus kheej._ bluetooth = tus kheej.get_bluetooth () thaum tsis yog tus kheej.): kev sib txuas = bluetooth. BluetoothSocket (bluetooth. RFCOMM) kev sib txuas.settimeout (Tsis muaj) sim: kev txuas.connect ((tus kheej._ bluetooth_address, 1)) tshwj tsis yog kev zam, e: luam tawm 'Ua yuam kev txuas rau bluetooth' + str (e) txuas.setblocking (Cuav) rov qab txuas cov chav kawm Webserver (threading. Thread): def khiav (tus kheej): chaw nres nkoj = hauv t (os.environ.get ('PORT', 5000)) app.run (host = '0.0.0.0', chaw nres nkoj = chaw nres nkoj, debug = Tseeb, use_reloader = Tsis tseeb) @app.route ("/send_to_serial/") @basic_auth.required def xa_to_serial (hais kom ua): queue.put (hais kom ua) xa 'ok' threads = threads.append (BluetoothBackground (teeb tsa [3], queue)) threads.append (Webserver ()) [thread.start () rau xov hauv xov]

kom khiav tus neeg rau zaub mov ua haujlwm:

sej server.py neeg siv lo lus zais 97: D2: 31: 20: A0: 51

Ok, yog li server.py yog peb tsab ntawv, tus siv thiab tus password yog cov ntaub ntawv pov thawj siv rau koj qhov kev lees paub, thiab "97: D2: 31: 20: A0: 51" yog koj li bluetooth MAC chaw nyob.

d. siv koj lub server xa cov lus txib los ntawm txhua qhov chaw hauv ntiaj teb

los ntawm hom browser: https:// your_ip: 5000/send_to_serial/C30;

- nkag mus rau tus neeg siv thiab tus lej zais uas koj tau teeb tsa ua ntej thaum pib ua sej server

-C30; yog cov lus txib uas yuav xa mus rau lub cuab yeej bluetooth (peb lub npov uas yuav tswj hwm qhov ntxoov ntxoo)

- txheeb xyuas qhov chaw nres nkoj 5000 tsis thaiv los ntawm koj lub firewall (peb tab tom siv qhov chaw nres nkoj ntawd)

- yog tias koj nyob tom qab lub router (piv txwv li raspberry pi) koj yuav tsum ua chaw nres nkoj xa mus los ntawm lub router los ntawm chaw nres nkoj 5000 mus rau chaw nres nkoj 5000

e. koj tuaj yeem siv cov lus hais los ua tej yam xws li tswj cov duab ntxoov ntxoo ntawm lub sijhawm lossis thaum qee qhov channel cov ntaub ntawv hloov pauv. Piv txwv li koj tuaj yeem nqes lub teeb pom kev zoo (sab nraum) mus rau kev xav thiab thaum lub teeb pom kev poob qis rau qee qhov (nws yog yav tsaus ntuj) koj tuaj yeem kaw qhov ntxoov kom cov neeg sab nrauv tsis pom koj.

Koj tuaj yeem txuas cov duab ntxoov ntxoo (nab npawb neeg rau zaub mov peb tau teeb tsa ua ntej) nrog yam hais lus siv ThingHTTP.

Kuv tau suav nrog daim duab ntawm ThingHTTP daim ntawv nrog cov ntaub ntawv sau ua piv txwv thiab daim duab nrog TimeControl Yog li kom ua tau zoo tshaj plaws yam hais lus yuav tsum ua txhua yam koj xav tau.

3. Via kuv lub tsev-automation daim ntawv thov

Qhov no nyuaj me ntsis, kuv daim ntawv thov siv tsev-tsev ua ntau ntau dua li tswj cov ntxoov.

Nws tseem tswj hwm lub teeb, lub qhov rooj, muaj ntau lub ntsuas pa, sib txuas nrog cov hloov pauv thiab muaj cov neeg siv cov cai yooj yim uas tuaj yeem piv txwv qhib qhov ntxoov ntxoo yog tias lub teeb nyob sab hauv qis, lossis yog thaum sawv ntxov.

Koj tuaj yeem tshawb xyuas kuv qhov chaw cia khoom github, thiab yog tias koj muaj lus nug Kuv yuav zoo siab los teb lawv.

Yog tias koj pom kuv cov lus qhia me ntsis muaj txiaj ntsig thov qhia nws lossis ntxiv rau qhov koj nyiam. Thiab kuv xav pom qee cov lus pom zoo ib yam:)

Pom zoo: