Cov txheej txheem:

Raspberry Pi Dew Rhaub Rau Txhua Lub Koob Yees Duab: 7 Kauj Ruam
Raspberry Pi Dew Rhaub Rau Txhua Lub Koob Yees Duab: 7 Kauj Ruam

Video: Raspberry Pi Dew Rhaub Rau Txhua Lub Koob Yees Duab: 7 Kauj Ruam

Video: Raspberry Pi Dew Rhaub Rau Txhua Lub Koob Yees Duab: 7 Kauj Ruam
Video: Часы G Shock до 100 долларов-15 лучших часов Casio G Shock до 100 дол... 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi Dew rhaub rau Txhua Lub Koob Yees Duab
Raspberry Pi Dew rhaub rau Txhua Lub Koob Yees Duab

[Saib ntawm Kauj Ruam 7 rau kev hloov pauv mus rau kev siv relay]

Nov yog kev hloov kho rau lub koob yees duab saum ntuj uas kuv tau ua raws li Thomas Jaquin cov lus qhia zoo (Wireless Txhua Lub Koob Yees Duab) Ib qho teeb meem tshwm sim uas tshwm sim rau lub koob yees duab saum ntuj (thiab lub tsom iav tsom iav ib yam nkaus) yog cov lwg yuav ua rau pom ntawm lub koob yees duab dome raws li nws tau txias dua ntawm hmo ntuj, uas zais qhov pom ntawm ntuj hmo ntuj. Kev daws teeb meem yog ntxiv lub rhaub dej lwg uas yuav ua kom lub cua sov sov siab dua saum lub lwg dej, lossis qhov kub uas cov dej yuav ua rau hauv lub dome.

Ib txoj hauv kev los ua qhov no yog kom khiav tam sim no los ntawm ntau tus tiv thaiv, uas tom qab ntawd yuav ua kom sov dua, thiab siv qhov ntawd ua cua sov. Hauv qhov no, txij li lub koob yees duab twb muaj Raspberry Pi, kuv xav siv qhov ntawd los tswj cov kab hluav taws xob tiv thaiv los ntawm kev xa tawm, tig lawv thiab tawm raws li xav tau kom tswj tau qhov kub kub saum toj no dewpoint. Ib qho ntsuas kub nyob hauv lub dome rau kev tswj hwm. Kuv txiav txim siab rub cov huab cua hauv cheeb tsam huab cua & cov av noo los ntawm National Weather Service rau cov ntaub ntawv dewpoint xav tau, tsis yog ntxiv lwm qhov ntsuas, thiab xav tau kev nkag mus rau hauv kuv lub koob yees duab vaj tsev uas tuaj yeem xau.

Raspberry Pi muaj GPIO lub taub hau uas tso cai rau nthuav cov laug cam los tswj cov cuab yeej siv lub cev, tab sis IO nws tus kheej tsis tau tsim los daws qhov tam sim no lub zog tiv thaiv hluav taws xob xav tau. Yog li xav tau cov khoom ntxiv. Kuv tab tom npaj yuav siv lub relay cais tawm lub zog hluav taws xob, yog li yuav tsum muaj tus tsav tsheb IC txuas mus rau Pi. Kuv kuj xav tau qhov ntsuas kub kom nyeem tau qhov kub hauv lub dome, yog li xav tau qhov sib piv rau digital hloov pauv (ADC) kom tus Pi tuaj yeem nyeem qhov ntsuas kub. Cov khoom no muaj nyob ntawm tus kheej, tab sis koj tseem tuaj yeem yuav 'lub kaus mom' rau Pi uas muaj cov khoom siv no ntawm lub rooj tsavxwm uas nyuam qhuav ntsaws rau hauv GPIO ntawm Pi.

Kuv tau mus nrog Pimoroni Explorer pHAT, uas muaj tag nrho ntau ntawm I/O, tab sis rau kuv lub hom phiaj, nws muaj plaub qhov kev sib piv sib piv ntawm 0-5V, thiab plaub qhov kev tso tawm digital uas haum rau kev tsav tsheb txuas.

Txog qhov ntsuas kub ntawm lub dome, Kuv siv TMP36, uas kuv nyiam vim nws muaj qhov yooj yim linear equation kom tau txais qhov kub los ntawm kev nyeem qhov hluav taws xob. Kuv siv cov thermistors thiab RTDs ntawm kuv txoj haujlwm, tab sis lawv tsis yog kab thiab yog li nyuaj dua los siv los ntawm kos.

Kuv siv Adafruit's Perma Proto Bonnet Mini cov khoom siv raws li lub rooj tsav xwm hauv vaj huam sib luag txhawm rau txhawm rau txuas, txuas lub davhlau ya nyob twg, thiab lwm yam txuas mus rau, uas yog qhov zoo vim nws yog qhov loj me rau Pi, thiab muaj cov khoom siv hluav taws xob cuam tshuam nrog qhov Pi muab.

Cov ntawd yog cov tseem ceeb. Kuv tau txais tag nrho txhua yam los ntawm Digikey, vim tias lawv khaws Adafruit cov khoom ntxiv nrog rau txhua qhov ntu ntu ib txwm muaj, yog li nws yooj yim kom tau txais txhua yam ib zaug. Nov yog qhov txuas rau lub laub yuav khoom nrog txhua ntu uas kuv xaj:

www.digikey.com/short/z7c88f

Nws suav nrog ob peb txoj hlua ntawm cov xaim rau cov xov hluav taws xob, yog tias koj twb muaj qee qhov lawm, koj tsis xav tau.

Khoom siv

  • Pimoroni Explorer pHAT
  • TMP36 kub sensor
  • 150 Ohm 2W resistors
  • 1A 5VDC SPDT Tshaj Tawm
  • Ntsia hlau dav hlau thaiv
  • Circuit board
  • Hlau
  • standoffs ntawm Circuit Board
  • solder & soldering hlau

Daim ntawv teev npe ntawm digikey:

www.digikey.com/short/z7c88f

Kauj Ruam 1: Cov Lus Qhia Txog Hluav Taws Xob

Nws yog ib qho tseem ceeb kom ntseeg tau tias cov khoom siv tau siv kom raug raws li lub zog thiab tam sim no lawv yuav pom, txwv tsis pub koj tuaj yeem ua tsis tiav ntxov, lossis txawm tias hluav taws!

Lub hauv paus tseem ceeb uas yuav tsum txhawj xeeb txog qhov no yog qhov ntsuas tam sim no ntawm cov neeg sib txuas lus, thiab lub zog ntsuas ntawm tus tiv thaiv.

Txij li tsuas yog thauj khoom hauv peb lub zog hluav taws xob yog cov tiv thaiv, peb tsuas tuaj yeem suav qhov kev tiv thaiv tag nrho, muab qhov ntawd tso rau hauv Ohm txoj cai, thiab suav qhov tam sim no hauv peb qhov Circuit.

Tag Nrho Kev Tiv Thaiv ntawm cov khoom sib xws: 1/R_T = 1/R_1 +1/R_2 +1/R_3 +1/R_N

Yog tias tus neeg tiv taus sib npaug, nws tuaj yeem txo qis rau: R_T = R/N. Yog li rau plaub qhov sib npaug resistors nws yog R_T = R/4.

Kuv siv plaub 150 Ω resistors, yog li kuv qhov kev tiv thaiv tag nrho los ntawm plaub ntawm lawv yog (150 Ω) /4 = 37.5 Ω.

Ohm txoj cai tsuas yog Voltage = Tam sim no X Kuj (V = I × R). Peb tuaj yeem rov kho qhov ntawd los txiav txim siab tam sim no kom tau txais I = V/R. Yog tias peb ntsaws peb qhov hluav taws xob los ntawm peb lub zog siv hluav taws xob thiab peb tiv taus, peb tau txais I = (12 V)/(37.5 Ω) = 0.32 A. qhov 1A txuas uas peb tab tom siv yog ntau dua 3 npaug ntawm qhov xav tau, uas yog txaus.

Rau cov neeg tawm tsam, peb yuav tsum txiav txim siab qhov nyiaj ntawm lub zog dhau los ntawm txhua tus. Qhov sib npaug ntawm lub zog los nyob hauv ntau daim ntawv (los ntawm kev hloov pauv nrog Ohm txoj cai), tab sis qhov yooj yim tshaj plaws rau peb yog P = E^2/R. Rau peb tus kheej cov neeg tawm tsam, qhov no dhau los P = (12V)^2/150Ω = 0.96 W. Yog li peb yuav xav tsawg kawg yog 1 watt resistor, tab sis 2 watt yuav muab rau peb ntxiv qhov tseem ceeb ntawm kev nyab xeeb.

Tag nrho lub zog ntawm Circuit yuav tsuas yog 4 x 0.96 W, lossis 3.84 W (Koj tseem tuaj yeem tso tag nrho qhov tsis kam mus rau qhov sib npaug zog thiab tau txais txiaj ntsig zoo ib yam).

Kuv sau txhua qhov no tawm, yog li hauv qhov koj xav tau lub zog ntau dua los ua kom sov dua (ua kom sov dua), koj tuaj yeem khiav koj tus lej, thiab xam cov resistors xav tau, lawv qhov ntsuas, thiab ntsuas qhov xav tau ntawm kev xa tawm.

Kuv tau pib sim khiav lub Circuit nrog 5 volts los ntawm Raspberry Pi lub zog tsheb nqaj hlau, tab sis lub zog tsim tawm ib tus tiv thaiv tsuas yog P = (5V)^2/150Ω = 0.166 W, rau tag nrho 0.66 W, uas tsis yog ' t txaus los tsim ntau dua ob peb degrees ntawm qhov kub nce.

Kauj Ruam 2: Kauj Ruam 1: Kuaj

Kauj ruam 1: Soldering
Kauj ruam 1: Soldering
Kauj ruam 1: Soldering
Kauj ruam 1: Soldering
Kauj ruam 1: Soldering
Kauj ruam 1: Soldering

Okay, txaus ntawm cov npe ntu thiab kev xav, cia peb mus rau qhov tsim hluav taws xob thiab kev sib dhos!

Kuv tau kos lub voj voos ntawm Proto-Bonnet ob txoj hauv kev sib txawv, ib zaug ua cov phiaj xwm thaiv, thiab ib zaug ua qhov pom kev sawv cev ntawm pawg thawj coj saib. Kuj tseem muaj daim duab kos npe ntawm Pimoroni Explorer pHAT pawg thawj coj, qhia cov thaiv uas mus nruab nrab ntawm nws thiab Proto-Bonnet.

Ntawm Explorer pHAT, 40 tus pin header uas los nrog nws yuav tsum tau muab muag rau ntawm lub rooj tsavxwm, qhov no yog kev sib txuas ntawm nws thiab Raspberry Pi. Nws los nrog lub davhlau ya nyob twg header rau I/O, tab sis kuv tsis tau siv nws, tsuas yog siv cov xov hlau txuas ncaj qha rau lub rooj tsavxwm. Proto-Bonnet kuj suav nrog kev sib txuas rau lub taub hau, tab sis nws tsis siv rau hauv qhov no.

Qhov ntsuas kub tau xaim ncaj qha mus rau Explorer pHAT pawg thawj coj siv xov hlau los ua qhov sib txawv ntawm qhov chaw ntawm Raspberry Pi thiab sab hauv ntawm Lub Koob Yees Duab Dome qhov chaw nws nyob.

Cov Ntsia Hlau Terminal thaiv thiab cov tswj Relay yog ob qho khoom siv uas tau muag rau Proto-Bonnet pawg thawj coj, hauv cov txheej txheem lawv tau sau npe T1, T2, T3 (rau peb lub ntsia hlau txuas), thiab CR1 rau kev xa tawm.

Cov resistors tau muag rau cov coj uas tseem mus ntawm Raspberry Pi mus rau Lub Koob Yees Duab Dome, lawv txuas rau Proto-Bonnet ntawm cov ntsia hlau txuas ntawm T1 thiab T3. Kuv tsis nco qab thaij duab ntawm lub rooj sib txoos ua ntej kuv teeb lub koob yees duab rov qab rau kuv lub ru tsev, tab sis kuv tau sim qhov chaw tawm ntawm tus tiv thaiv tusyees ib puag ncig lub dome, nrog tsuas yog ob lub xov hlau rov los rau Proto-Bonnet. Nkag mus rau hauv lub qhov taub los ntawm qhov sib txawv ntawm ob sab ntawm cov yeeb nkab, nrog qhov ntsuas kub nkag los ntawm peb lub qhov, sib npaug sib nrug nruab nrab ntawm ob ntawm cov tiv thaiv nyob ze ntawm ntug ntawm lub dome.

Kauj Ruam 3: Kauj Ruam 2: Sib dhos

Kauj ruam 2: Sib dhos
Kauj ruam 2: Sib dhos

Thaum nws tau tag nrho ua ke ua ke, koj tuaj yeem nruab nws ntawm koj lub koob yees duab saum ntuj. Mount Explorer pHAT ntawm Rasperry Pi, thawb nws mus rau 40 tus pin header, thiab tom qab ntawd Proto-Bonnet tau teeb tsa nyob ib sab rau nws nyob rau sab saum toj ntawm Pi siv qee qhov kev sawv ntsug. Lwm qhov kev xaiv yuav siv qhov kev tsis pom zoo nyob rau sab saum toj ntawm Explorer, tab sis txij li thaum kuv tau siv ABS Cov Yeeb Nkab thaiv, nws ua rau Pi loj dhau los kom haum dua.

Txoj kev ntsuas qhov ntsuas kub nce mus rau lub qhov rooj mus rau nws qhov chaw, thiab teeb tsa cov hlua tiv thaiv ib yam nkaus. Tom qab ntawd xaim hlua rau lub davhlau ya nyob twg thaiv ntawm lub rooj sib tham.

Nkag mus rau qhov program!

Kauj Ruam 4: Kauj Ruam 3: Thauj Chaw Tshawb Xyuas PHAT Cov Tsev Qiv Ntawv, thiab Kev Xeem Txuj Ci

Ua ntej peb tuaj yeem siv Explorer pHAT, peb yuav tsum thauj lub tsev qiv ntawv rau nws los ntawm Pimoroni yog li Pi tuaj yeem sib tham nrog nws.

Ntawm koj tus Raspberry Pi, qhib lub davhlau ya nyob twg thiab nkag mus:

curl https://get.pimoroni.com/explorerhat | tsoo

Ntaus 'y' lossis 'n' raws li qhov tsim nyog kom ua tiav kev teeb tsa.

Tom ntej no, peb yuav xav ua qhov haujlwm yooj yim los ntsuas cov tswv yim thiab cov txiaj ntsig, kom ntseeg tau tias peb cov xov hlau raug. Qhov txuas DewHeater_TestProg.py yog tsab ntawv nab nab uas qhia txog qhov kub thiab txias, thiab tig rov qhib txhua ob vib nas this.

lub sij hawm ntshuam

ntshuam explorerhat ncua = 2 thaum Tseeb: T1 = explorerhat.analog.one.read () tempC = ((T1*1000) -500)/10 tempF = tempC*1.8 +32 print ('{0: 5.3f} volts, {1: 5.3f} degC, {2: 5.2f} deg F'.format (puag ncig (T1, 3), puag ncig (tempC, 3), puag ncig (tempF, 3))) V1 = explorerhat.output.two. ntawm () luam tawm ('Relay rau') time.sleep (ncua) V1 = explorerhat.output.two.off () print ('Relay off') time.sleep (ncua)

Koj tuaj yeem qhib cov ntaub ntawv ntawm koj tus raspberry Pi, (ntawm kuv nws tau qhib hauv Thonny, tab sis muaj ntau ntau lwm tus kws kho mob Python nyob ntawd ib yam nkaus), thiab tom qab ntawd khiav nws, thiab nws yuav tsum pib qhia qhov ntsuas kub, thiab koj yuav hnov relay txhaj rau thiab tawm! Yog tias tsis yog, ua qee qhov kev tshuaj xyuas koj cov thaiv thiab cov kab hluav taws xob.

Kauj Ruam 5: Kauj Ruam 4: Thauj Lub Tshuab Dej Rhaub Dej Kub

Nov yog lub tshuab rhaub dej rhaub tag nrho. Nws ua ntau yam:

  • Rub tawm qhov ntsuas kub sab nrauv tam sim no thiab dewpoint los ntawm qhov chaw muab kev pabcuam huab cua hauv tebchaws txhua tsib feeb. Yog tias nws tsis tau txais cov ntaub ntawv, nws ua kom sov dhau los thiab sim dua hauv lwm tsib feeb.

    • NWS thov kom cov ntaub ntawv tiv toj suav nrog hauv API thov, yog tias muaj teeb meem nrog qhov kev thov, lawv paub tias yuav tiv tauj leej twg. Nov yog kab 40 ntawm txoj haujlwm, thov hloov '[email protected]' nrog koj tus email chaw nyob.
    • Koj yuav tsum tau mus rau weather.gov thiab nrhiav kev kwv yees rau koj cheeb tsam, kom tau Daim Npav ID, uas yog chaw nres tsheb huab cua ze tshaj plaws ntawm NWS. ID chaw nres tsheb nyob hauv () tom qab lub npe chaw nyob. Nkag mus rau kab no 17 ntawm txoj haujlwm. Tam sim no nws qhia KPDX, lossis Portland, Oregon.
    • Yog tias koj nyob sab nraud Tebchaws Asmeskas, muaj lwm txoj hauv kev siv cov ntaub ntawv los ntawm OpenWeatherMap.org. Kuv tsis tau sim nws kuv tus kheej, tab sis koj tuaj yeem saib qhov piv txwv no ntawm no: Nyeem -JSON-Nrog-Raspberry-Pi
  • Nco ntsoov tias qhov kub thiab txias los ntawm NWS thiab los ntawm qhov ntsuas kub nyob hauv degrees Centigrade, zoo ib yam rau ASI lub koob yees duab, yog li kom sib xws, Kuv khaws lawv txhua Centrigrade ntau dua li hloov mus rau Fahrenheit, uas yog qhov kuv tau siv dua.
  • Tom ntej no, nws nyeem qhov ntsuas kub los ntawm lub dome sensor, thiab yog tias nws qis dua 10 degrees saum toj no dewpoint, tom qab ntawd nws tig rau ntawm qhov txuas. Yog tias nws siab dua 10.5 degrees saum toj no dewpoint, nws tua lub relay. Koj tuaj yeem hloov cov chaw no yog xav tau.
  • Ib pliag ib pliag, nws teev cov txiaj ntsig tam sim no rau qhov kub thiab txias, thiab xa cov xwm txheej mus rau.csv cov ntaub ntawv yog li koj tuaj yeem pom nws ua li cas dhau sijhawm.

#Raspberry Pi Dew Rhaub tswj qhov program

#Dec 2019 #Brian Plett #Siv Pimoroni Explorer pHAT, ntsuas kub, thiab xa tawm #los tswj cov kab hluav taws xob tiv thaiv raws li lub tshuab rhaub dej sov rau lub koob yees duab saum ntuj #Pulls sab nraum huab cua kub thiab dewpoint los ntawm NWS lub vev xaib #khaws qhov ntsuas kub sab hauv 10 degrees saum toj no dewpoint ntshuam sij hawm ntshuam datetime ntshuam thov ntshuam csv ntshuam os ntshuam explorerhat #Station ID ze tshaj qhov chaw nres tsheb huab cua ntawm NWS. Mus rau weather.gov thiab nrhiav kev tshaj tawm rau koj thaj chaw, #station ID nyob hauv () tom qab lub npe chaw nyob. settings = {'station_ID': 'KPDX',} #Alternate URL rau xov xwm huab cua #BASE_URL = "https://api.openweathermap.org/data/2.5/weather?appid={0}&zip={1}, { 2} & chav = {3}"

#Huab cua URL txhawm rau khaws cov ntaub ntawv

BASE_URL = "https://api.weather.gov/stations/{0}/observations/latest"

#delay rau kev tswj relay, vib nas this

ControlDelay = 2 A = 0 B = 0 thaum Tseeb: #hnub siv rau hauv cov ntaub ntawv teev npe datestr = datetime.datetime.now (). Strftime ("%Y%m%d") #hnub & sijhawm siv rau txhua kab ntawv localtime = datetime.datetime.now (). strftime ("%Y/%m/%d%H:%M") #CSV file path path = '/home/pi/allsky/DewHeaterLogs/DewHeatLog{}.csv' thaum B == 0: sim: #Lub ntsuas kub thiab dewpoint los ntawm NWS txhua 60 vib nas this final_url = BASE_URL.format (teeb tsa ["chaw nres tsheb_ID"]) huab cua_data = thov.get (final_url, sijhawm tas = 5, headers = {'Tus neeg siv-tus sawv cev ':' Raspberry Pi 3+ Allsky Camera [email protected] '}) oatRaw = weather_data.json () ["khoom"] ["kub"] ["tus nqi"] dewRaw = weather_data.json () ["khoom"] ["dewpoint"] ["tus nqi"] #diagnostic print rau raw cov ntaub ntawv ntsuas kub (oatRaw, dewRaw) OAT = puag ncig (oatRaw, 3) Dew = puag ncig (dewRaw, 3) tshwj tsis yog: A = 0 B = 1 so A = 0 B = 1 tawg yog A <300: A = A + ControlDelay lwm yam: B = 0 #Nyeem cov hluav taws xob nyoos los ntawm Raspberry Pi Explorer PHat thiab hloov mus rau qhov kub T1 = explorerhat.analog.one.read () tempC = ((T1 *1 000) -500)/10 #tempF = tempC*1.8 +32 yog (tempC Dew + 10.5): V1 = explorerhat.output.two. 0: 5.2f} degC, {1: 5.2f} degC, {2: 5.2f} deg C {3: 5.0f} '. Format (round (OAT, 3), round (Dew, 3), round (tempC, 3), explorerhat.output.two.read ())) #10 vib nas this tom qab feeb dhau los, sau cov ntaub ntawv rau CSV cov ntaub ntawv yog A == 10: yog os.path.isfile (path.format (datestr)): print (path.format (datestr)) nrog qhib (path.format (datestr), "a") raws li csvfile: txtwrite = csv.writer (csvfile) txtwrite.writerow ([sijhawm hauv zos, OAT, Lw, tempC, explorerhat. output.two.read ()]) lwm: fieldnames = ['hnub tim', 'Sab Nraud Cua Kub', 'Dewpoint', 'Dome Temp', 'Relay State'] nrog qhib (path.format (datestr), "w ") raws li csvfile: txtwrite = csv.writer (csvfile) txtwrite.writerow (cov npe teb) txtwrite.writerow ([sijhawm sijhawm, OAT, Dew, tempC, explorerhat.output.two.read ()]) time.sleep (ControlDelay)

Kuv tau khaws qhov no rau hauv daim nplaub tshev tshiab hauv qab allsky nplaub tshev hu ua DewHeaterLogs.

Sim ua qhov no me ntsis kom ntseeg tau tias txhua yam zoo, ua ntej txav mus rau nws ua raws li tsab ntawv.

Kauj Ruam 6: Kauj Ruam 5: Khiav Tsab Ntawv ntawm Kev Pib

Txhawm rau khiav Dew Rhaub tsab ntawv sai li sai tau Raspberry Pi pib, Kuv ua raws cov lus qhia ntawm no:

www.instructables.com/id/Raspberry-Pi-Laun…

Rau Launcher tsab ntawv, Kuv tsim qhov no:

#!/bin/sh

# launcher.sh # mus rau phau ntawv teev npe hauv tsev, tom qab ntawd mus rau cov npe no, tom qab ntawd ua kab ntawv nab hab sej, tom qab ntawd rov qab los tsev cd/cd tsev/pi/allsky/DewHeaterLogs pw 90 sudo nab hab sej DewHeater_Web.py & cd/

Thaum qhov no ua tiav, koj yuav tsum zoo mus. Txaus siab rau lub koob yees duab tsis muaj lwg!

Kauj Ruam 7: Hloov Kho Lub Kaum Ob Hlis 2020

Txog ib nrab ntawm xyoo tas los, kuv lub rhaub dej kub ua haujlwm tsis ua haujlwm, yog li kuv xiam cov cai kom txog thaum kuv tuaj yeem saib nws. Thaum kawg muaj qee lub sijhawm nyob rau lub caij ntuj so, thiab pom tias qhov kev sib txuas uas kuv tau siv tau qhia txog kev tiv thaiv siab thoob plaws nws cov neeg sib tham thaum ua haujlwm, tej zaum los ntawm kev ua haujlwm ntau dhau.

Yog li kuv hloov kho nws nrog qhov ntsuas tau zoo dua, ib qho nrog 5A kev sib tham ntau dua li 1A kev sib cuag. Tsis tas li nws yog lub zog xa tawm ntau dua li lub teeb liab xa mus, yog li kuv vam tias nws yuav pab tau. Nws yog TE PCH-105D2H, 000. Kuv kuj tau ntxiv qee qhov ntsia hlau txuas rau Explorer pHAT, yog li kuv tuaj yeem yooj yim txuas lub rhaub thiab ntsuas kub raws li xav tau. Tag nrho 3 ntawm cov no nyob ntawm lub tawb nqa khoom hauv qab no:

Lub khw muag khoom Digikey

Nco ntsoov tias cov pins rau qhov kev xa xov no txawv dua li yav dhau los, yog li qhov twg koj xaim mus rau qhov sib txawv me ntsis, tab sis yuav tsum ncaj. Lub polarity tsis muaj teeb meem rau lub kauj, FYI.

Pom zoo: