Cov txheej txheem:
- Kauj Ruam 1: Sib dhos lub Rooj Tswjhwm Saib LED
- Kauj Ruam 2: Npaj Raspberry Pi
- Kauj Ruam 3: Txuas Pi + Matrix Hat + LED Board
- Kauj Ruam 4: Ntsuas RGB Matrix
- Kauj Ruam 5: Kev Sib Txawv Sib Txawv thiab Luam Tus Nqi (lossis: Kev Ncaj Ncees Ntawm Txoj Kev Mus Rau Qhov Ntxa)
- Kauj Ruam 6: Txoj Haujlwm Starboard (lossis: Rov Qab Taug Qab thiab Npaj Rau Pixel)
Video: RPi 3 Starboard / Particle Generator: 6 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Puas yog koj hnov qab nrog koj Raspberry Pi? Koj puas tau npaj los hais kom lub zog tseem ceeb ntawm lub qab ntuj khwb, hu xov tooj thiab tso cov duab tawm ntawm qhov xav tau? Koj puas tsuas xav tau qee yam ntxim nyiam los dai rau hauv koj chav nyob, lossis txoj haujlwm zoo nkauj tshaj tawm hauv facebook los qhia rau Denise tias koj ua tau zoo nyob rau hnub no, ua tsaug ntau? Puas yog koj cuab nyob rau hauv lub computer simulation thiab whiling tam sim ntawd lub sij hawm kom txog thaum koj tau tso tawm los yog tshem tawm? Yog tias ib lossis tag nrho cov no piav qhia koj, tom qab ntawd [tshaj tawm lub suab] Zoo siab txais tos!
Phau ntawv qhia no yuav qhia koj yuav ua li cas sib sau ua ke thiab teeb tsa lub tshuab hluav taws xob me me tso saib siv Raspberry Pi 3 thiab qee qhov RGB matrix panels. Nws yuav tsum coj koj nruab nrab ntawm ib thiab ob teev, thiab cov khoom tiav yuav kwv yees li 30 "x8" (tsis suav nrog Pi) thiab phab ntsa-mountable. Nws ua kom zoo nkauj txias rau chav nyob, chaw ua haujlwm, chav ua si, lossis lwm qhov chaw uas koj xav muab tso rau.
Ua ntej koj pib, ntawm no yog yam koj yuav xav tau, thiab tus nqi kwv yees yog dab tsi:
- Rpi 3 + SD Card + Case + Power Supply: $ 70 (los ntawm Canakit, tab sis koj tuaj yeem zaum tau cov khoom pheej yig dua yog tias koj yuav lawv cais.)
- 4x 32x32 RGB LED Matrix (nyiam dua p6 sab hauv tsev nrog 1/16 luam theej duab): $ 80- $ 100 xa ntawm Alibaba lossis Aliexpress; $ 160 ntawm Adafruit lossis Sparkfun.
- Adafruit RGB Matrix lub kaus mom: $ 25
- 5V 4A Fais Fab Khoom: $ 15
- 3D luam tawm cov yeeb yaj kiab: $ 1ish (cov no yog txhawm rau txuas cov vaj huam sib luag thiab dai lawv ntawm phab ntsa; yog tias koj tsis muaj kev nkag mus rau lub tshuab luam ntawv 3D, koj tuaj yeem siv daim kab xev plaub los tuav lawv ua ke thiab qee cov khoom siv los ntawm lub khw muag khoom kho vajtse dai nws los ntawm phab ntsa. Kuv tau sim nrhiav cov ntaub ntawv tsim lossis cov.stls rau cov no, tab sis lawv zoo li tau dhau los ntawm lub ntiaj teb. Cov kab ntawv yooj yim zoo nkauj rau qauv, txawm hais tias.)
- 14x M4x10 ntsia liaj qhov rooj: $ 5ish
- Plaub 4x8 IDC cables thiab peb lub zog txuas rau RGB matrices (Kuv tsis paub tias cov no hu li cas!). Cov no yuav tsum tau suav nrog koj cov vaj huam sib luag LED.
- Tag Nrho: Ib puag ncig $ 200, muab lossis coj mus.
Txoj haujlwm no tsis xav kom koj muab tshuaj txhuam lossis muaj kev paub tshwj xeeb rau lub cajmeem; nws xav tias koj paub yuav sau cov duab rau daim npav microSD li cas. Yog tias koj tsis paub yuav ua li cas, Raspberry Pi lub hauv paus muaj cov lus qhia zoo ntawm no.
Nws kuj xav tias koj muaj kev paub yooj yim ntawm yuav ua dab tsi los ntawm kab hais kom ua hauv Linux, thiab txoj cai taug kev xav tias koj paub qhov pib ntawm Python (tab sis - koj tsis tas yuav ua raws txoj cai taug kev kom muaj peev xwm tsim thiab khiav lub tshuab hluav taws xob me me.) Yog tias koj tau nyam ntawm ib qho ntawm cov kauj ruam, tsis txhob yig tau nug cov lus nug lossis tshaj tawm hauv /r /raspberry_pi (uas tseem yog, Kuv xav tias, cov neeg mloog tseem ceeb rau cov lus qhia no)
Kauj Ruam 1: Sib dhos lub Rooj Tswjhwm Saib LED
Ua ntej, koj yuav mus sib sau ua tus neeg 32x32 LED vaj huam sib luag rau hauv ib lub vaj huam sib luag loj 128x32. Koj yuav tsum tau saib koj cov laug cam thiab pom cov xub me me uas qhia txog kev sib txuas; ntawm kuv lawv nyob ze rau HUB75/2x8 IDC cov khoom sib txuas. Nco ntsoov tias koj muaj cov xub taw qhia los ntawm qhov Rpi yuav txuas (tawm mus rau sab xis hauv daim duab saum toj no) nqes qhov ntev ntawm pawg thawj coj saib.
Koj kuj tseem yuav tsum txuas cov kab hluav taws xob. Feem ntau ntawm cov xov tooj no muaj ob tus poj niam txuas uas txuas rau cov laug cam, thiab ib txheej ntawm rab phom txuas uas txuas rau lub zog siv. Cov vaj huam sib luag kuv tab tom ua haujlwm nrog muaj cov ntsuas rau 5V thiab GND yuav luag tag nrho zais hauv qab cov khoom sib txuas lawv tus kheej, tab sis cov xov tooj tsuas txuas rau hauv ib qho kev qhia. Koj yuav xav kom ntseeg tau tias koj txuas txhua 5Vs ua ke thiab txhua qhov GNDs ua ke, vim tias yog tias koj siv lub zog rov qab no koj yuav luag yeej yuav kib lawv.
Vim tias cov xaim hluav taws xob suav nrog kuv cov laug cam tau luv heev, Kuv yuav tsum txuas ntxiv ib qho los ntawm kev ntxig cov hlua ntawm lub dav dav dav rau hauv qhov txuas ntawm lwm tus (Qhov no yooj yim zoo nkauj - koj yuav tsum tau khoov qhov chaw seem me ntsis sab hauv, tab sis kuv ' tau suav nrog daim duab tsuas yog nyob rau hauv rooj plaub). Kuv tau xaus nrog ob pawg ntawm cov chaw sib tw thiab ib qho 2x8 IDC txuas mus rau sab xis ntawm kuv tam sim no-elongated LED board.
Koj tseem yuav pom tias kuv tau txais ob lub ntsia hlau tsis txuas rau ib qho twg ntawm qhov kawg ntawm lub rooj tsavxwm; cov no yuav nyob rau sab saum toj thaum tag nrho cov khoom tau ntxeev dua, thiab yuav siv los txuas nws rau ntawm phab ntsa.
Yog li - thaum koj tau txuas txhua lub vaj huam sib luag ua ke nrog cov kab xev, 2x8 IDC cov xov tooj, thiab cov xov hluav taws xob, koj npaj tau txav mus rau qib tom ntej!
Kauj Ruam 2: Npaj Raspberry Pi
Tom ntej no, koj yuav teeb tsa pawg thawj coj saib LED ib sab (tam sim no) thiab tau txais Pi 3 npaj los khiav nws. Peb yuav siv Raspbian Stretch Lite thiab hzeller's RGB matrix library (ntau dua li Adafruit lub tsev qiv ntawv matrix, uas laus dua thiab tsis tau khaws cia.)
Ua ntej, koj yuav xav sau cov duab Raspbian Lite rau daim npav SD; ib zaug koj tau ua qhov no, mus tom ntej thiab txuas lub monitor thiab keyboard rau pi thiab khau raj nws. (Koj tseem tuaj yeem ua qhov no tsis muaj lub taub hau, hla ssh lossis txuas txuas, tab sis yog tias yog txoj hauv kev koj yuav mus koj yuav tsis xav tau kuv qhia koj yuav ua li cas.) Koj yuav xav tau internet txuas rau qhov no; Yog tias koj muaj wifi, txuas Pi rau koj lub wireless network los ntawm kev kho /etc/wpa_supplicant/wpa_supplicant.conf thiab khiav wpa_cli -i wlan0 reconfigure. (Yog tias koj tsis tau ua qhov no, koj tuaj yeem tau txais cov lus qhia ntawm no).
Thaum koj txuas nrog internet, peb yuav hloov kho dpkg chaw teeb tsa thiab rub tawm cov tsev qiv ntawv uas peb xav tau los ntawm kev ua cov lus txib hauv qab no:
sudo apt-tau hloov tshiab
sudo apt-tau nruab git python-dev python-pil
git clone
Tam sim no peb yuav tsum tau suav thiab teeb tsa cov lej lej. Yog li koj yuav mus rau hauv daim nplaub tshev uas muaj lub tsev qiv ntawv:
cd rpi-rgb-coj-matrix
thiab suav nws (qhov no yuav siv sijhawm ib pliag):
ua && ua build-python
thiab teeb tsa cov nab nab khi:
sudo ua install-python
Yog tias koj tau txais ib qho yuam kev thaum suav sau cov lej hauv tsev qiv ntawv, rov qab mus thiab xyuas kom tseeb tias koj tau teeb tsa sej-dev thiab sej-pil kom raug! Cov nab hab sej khi yuav tsis suav ua yam tsis muaj ob qho ntawm cov pob ntawd tau teeb tsa.
Koj kuj tseem yuav tsum tau kaw koj li Pi lub suab tso tawm (lub suab hauv lub suab cuam tshuam nrog cov lej lej) los ntawm kev kho /boot /config.txt. Nrhiav kab uas hais tias dtparam = audio = on thiab hloov nws mus rau dtparam = audio = off.
Yog tias txhua yam suav nrog OK (koj yuav tau txais ob peb lus ceeb toom txog Wstrict-protoypes) koj tus pi yuav tsum tau npaj los ua lub rooj tsav xwm matrix. Mus tom ntej thiab kaw nws (sudo kaw tam sim no), unplug nws, thiab peb yuav txuas cov teeb pom kev zoo rau pi hauv qib tom ntej.
Kauj Ruam 3: Txuas Pi + Matrix Hat + LED Board
Yog li, tam sim no koj tus Pi raug kaw thiab tsis tau ntsaws, cia peb txuas lub kaus mom matrix mus rau pi thiab pawg thawj coj saib LED rau lub kaus mom matrix. Yog tias koj tus Pi tseem tsis tau nyob hauv nws qhov xwm txheej, tam sim no yog lub sijhawm zoo los tso rau hauv.
Txhim kho lub kaus mom matrix los ntawm txheej nws nrog GPIO pins ntawm Pi thiab thawb nws maj mam nqis nrog txawm tias quab yuam ntawm ob sab. Nco ntsoov tias cov pins tau teeb tsa kom raug, yog li cov poj niam lub taub hau ntawm lub kaus mom raws nraim npog GPIO pins ntawm tus pi. Yog tias koj misalign nws, nws tsis yog kev puas tsuaj loj; tsuas yog maj mam rub nws rov qab thiab ncaj tawm cov pins uas tau khoov.
Thaum koj tau txais lub kaus mom, tso Pi rau sab xis ntawm lub rooj tsav xwm LED sib sau ua ke (ob zaug kuaj xyuas lub zog sib txuas dua, thiab xyuas kom tseeb tias cov xub taw qhia los ntawm Pi nqes qhov ntev ntawm lub rooj tsavxwm) thiab txuas nrog IDC cable rau lub kaus mom matrix.
Tom ntej no, koj yuav xav txuas lub spade terminals rau lub zog rau hauv lub matrix lub kaus mom lub davhlau ya nyob twg thaiv. Koj tau txais ob lub pob zeb txuas ntawm ib sab, tab sis lawv yuav tsum ob leeg haum rau qhov ntawd zoo. Qhib cov ntsia hlau ua ntej thiab - Qhov no yuav tsum mus yam tsis tau hais tias - xyuas kom tseeb tias koj tso 5V lub dav hlau nyob rau sab sab sau npe + (cov no yuav tsum yog xim liab, tab sis - dua - rov xyuas dua koj cov txuas thiab tsis txhob xav tias lawv tau tsim tawm kom raug) thiab lub davhlau ya nyob twg GND (cov no yuav tsum yog xim dub) nyob rau sab sab sau - Thaum lawv nyob ntawd, kaw cov ntsia hlau sab saum toj ntawm lub davhlau ya nyob twg thaiv, thiab koj yuav tsum muaj qee yam uas zoo li lub taub hau duab rau theem no.
Tam sim no - koj yuav tau pom tias qhov kev teeb tsa tshwj xeeb no tawm ib nrab ntawm lub dav hlau dav hlau ntawm ob sab nthuav tawm, nyob ib puag ncig tsuas yog millimeters saum lub hau matrix (thiab tsis ntau ntxiv los ntawm ib leeg.) THIAB - lub dav hlau spade yuav sai sai no nqa ob peb volts thiab ob peb amps ntawm Raw Power. Puas yog qhov no, (Kuv tuaj yeem hnov koj nug los ntawm lwm sab ntawm lub vijtsam) tiag tiag Txoj Cai Yuav Ua Li Cas? Puas yog, (koj ntsiag to ze thiab ntxhi), Lub Tswv Yim Zoo?
Thiab cov lus teb yog (Kuv teb, yws kuv lub xub pwg nyom) - tsis yog, nws tsis yog. Txoj hauv kev zoo los ua nws yuav yog hle cov kab txaij tawm ntawm cov xov hluav taws xob thiab rov ua rau lawv rov mus rau qhov txuas txuas rau qhov thaiv qhov dav hlau (lossis tso lawv li cov xov tooj liab thiab txuas lawv yam tsis muaj qhov txuas rau hauv qhov thaiv). Ua tsis tau li ntawd, koj tuaj yeem tso qee qhov cua sov ntsws tubing nyob ib ncig ntawm qhov pom ntawm qhov txuas txuas lossis tsuas yog qhwv nws hauv kab xev hluav taws xob. Tab sis lub ntiaj teb tau poob thiab tus txiv neej yog tub nkeeg thiab tsis muaj qab hau, yog li kuv tsis tau ua li ntawd.
Tab sis - qhwv lossis tsis tau qhwv - lub dav hlau txuas tau txuas nrog lub davhlau ya nyob twg thaiv, thiab peb tau npaj txav mus rau qib tom ntej.
Kauj Ruam 4: Ntsuas RGB Matrix
Tam sim no koj tus Pi tau txuas nrog rau lub teeb pom kev zoo, ntxeev lub rooj tsavxwm thiab tso lub zog Pi rov qab rau. Koj tuaj yeem ua lub hwj huam matrix tom qab Pi tau ntsaws; yog tias koj ua lub kaus mom ua ntej Pi, txawm li cas los xij, Pi yuav sim khau raj nrog qhov tsis txaus tam sim no, thiab yuav yws yws yws (thiab tej zaum yuav ua rau koj ceeb tsis txaus thiab tsis khau raj txhua.)
Yog tias koj muaj teeb meem tau txais Pi rau khau raj nrog lub kaus mom matrix rau, xyuas kom tseeb tias koj siv lub zog txaus txaus rau Pi (2A+ yuav tsum yog qhov zoo) thiab sim ntsaws ob lub hwj chim rau lub kaus mom thiab rau Pii rau hauv tib lub hwj huam txuas lossis txuas txuas txuas, thiab txhawb lawv ua ke.
Thaum Pi tau khau raj, peb tau npaj los ntsuas cov qib kawm. Mus rau qhov piv txwv ntawm nab nab (CD/rpi-rgb-led-matrix/bindings/python/kuaj) thiab sim tawm lub tshuab hluav taws xob rotating nrog cov lus txib hauv qab no:
sudo./rotating-block-generator.py -m adafruit-hat -led-chain 4
Koj yuav tsum tau khiav nws li sudo vim tias lub tsev qiv ntawv matrix xav tau qib qis nkag mus rau kho vajtse thaum pib. Lub -m qhia meej txog txoj kev uas cov vaj huam sib luag tau txuas nrog pi (hauv qhov no, lub kaus mom adafruit) thiab --lub saw tshwj xeeb -koj kwv yees nws -pes tsawg lub vaj huam sib luag peb tau txuas ua ke. Kab thiab kab ntawm ib lub vaj huam sib luag ob qho tib si rau 32, yog li peb nyob ntawd zoo.
Tam sim no - thaum koj tau ua tiav txoj haujlwm, ib ntawm ob (lossis, tiag tiag, ib ntawm peb) yam yuav tshwm sim:
- Tsis muaj dab tsi tshwm sim
- Koj tau txais ib qho kev sib tw zoo nyob hauv nruab nrab ntawm koj lub teeb pom kev zoo.
- Lub teeb pom kev ua haujlwm, uh, kuv xav tias, tab sis nws zoo li … txawv (ib nrab ntawm nws yog ntsuab, qee kab tsis pom teeb, thiab lwm yam)
Yog tias tsis muaj dab tsi tshwm sim, lossis yog tias lub vaj huam sib luag zoo li txawv txawv, ntaus ctrl+c kom tawm qhov qauv piv txwv, kaw tus pi, thiab tshawb xyuas txhua yam ntawm koj cov kev sib txuas (IDC cable, lub zog, xyuas kom ob lub zog txuas tau txuas nrog, thiab lwm yam). Kuj xyuas kom lub kaus mom txuas nrog kom raug; yog tias tsis kho nws, coj nws mus rau ib lub vaj huam sib luag (nco ntsoov siv-coj-saw 1 thaum ntsuas nws) thiab saib yog tias ib qho ntawm cov vaj huam sib luag yuav tsis zoo. Yog tias qhov ntawd tsis ua haujlwm, txheeb xyuas hzeller cov lus qhia daws teeb meem. yog tias tseem tsis ua haujlwm, sim tshaj tawm rau /r /raspberry_pi (lossis Adafruit cov rooj sib tham, yog tias koj tau txais koj lub vaj huam sib luag los ntawm Adafruit, lossis pawg sib pauv, thiab lwm yam, thiab lwm yam)
Yog tias nws ua haujlwm tab sis tseem zoo li txawv txawv (tej zaum zoo li lub taub hau duab rau ntu no) tom qab koj tau tshuaj xyuas qhov kev sib txuas, nws muaj peev xwm tias koj muaj txhua yam txuas nrog kom raug, tias cov vaj huam sib luag ua haujlwm tau zoo, tab sis Ib Yam Ntxiv nyob rau Uas yuav coj peb mus rau peb cov kauj ruam tom ntej - ntau qhov kev hloov pauv ntau dua li ib kauj ruam - ntawm kev sib npaug thiab ntsuas tus lej. (Yog tias koj pawg thawj coj ua haujlwm tau zoo thiab koj tsis txaus siab rau kev ua haujlwm sab hauv ntawm cov vaj huam sib luag no, xav tias yuav hla mus rau kauj ruam tom ntej.)
Kauj Ruam 5: Kev Sib Txawv Sib Txawv thiab Luam Tus Nqi (lossis: Kev Ncaj Ncees Ntawm Txoj Kev Mus Rau Qhov Ntxa)
Yog li, ib qho ntawm qhov yuam kev kuv tau ua thaum kuv xaj kuv thawj txheej txheej ntawm Alibaba yog tias kuv tau txais cov vaj huam sib luag sab nraum zoov (vim li cas tsis yog, kuv xav tias - lawv tsis muaj dej, thiab ci dua!). Thiab, thaum kuv txuas lawv mus rau kuv lub kaus mom, cov khoom saib.. tsis raug.
Txhawm rau nkag siab tias yog vim li cas, peb yuav siv sijhawm ib feeb los saib Phil Burgess los ntawm Adafruit cov lus piav qhia ntawm cov vaj huam sib luag no ua haujlwm li cas. Koj yuav nco ntsoov tias Burgess taw qhia tawm tias cov vaj huam sib luag tsis teeb tag nrho lawv cov LEDs ib zaug - lawv teeb lub teeb ntawm kab. Kev sib raug zoo ntawm lub vaj huam sib luag qhov siab hauv pixels thiab tus naj npawb ntawm kab uas ci ib zaug yog hu ua scan rate. Yog li, piv txwv - Ntawm 32x32 vaj huam sib luag nrog 1/16 luam theej duab, ob kab (1 thiab 17, 2 thiab 18, 3 thiab 19, thiab lwm yam) tau teeb ib zaug, txhua txoj hauv kev los ntawm lub rooj tsavxwm, thiab tom qab ntawd tus tswj hwm rov ua dua.. Feem ntau cov tsev qiv ntawv uas tsav RGB qib kawm tau tsim rau cov vaj huam sib luag qhov twg ntsuas ntsuas yog 1/2 ntawm qhov siab hauv pixels - uas yog, lawv tsav ob kab ntawm LEDs ib zaug.
Cov vaj huam sib luag sab nraum zoov (thiab qee lub vaj huam sib luag sab hauv tsev - xyuas kom tseeb tias koj saib qhov tshwj xeeb ua ntej xaj) muaj cov lej ntsuas uas yog 1/4 ntawm qhov siab hauv pixels, uas txhais tau tias lawv cia siab tias plaub kab yuav raug tsav ib zaug. Qhov no ua rau lawv ci dua (uas yog qhov zoo) tab sis ua rau ntau tus qauv txheej txheem tsis ua haujlwm nrog lawv (uas tsis zoo). Ntxiv rau qhov ntawd, lawv zoo li muaj cov pixels tawm ntawm qhov kev txiav txim sab hauv, uas yuav tsum tau hloov pauv qhov x thiab y qhov tseem ceeb hauv software txhawm rau txhawm rau hais txog cov pixels raug. Vim li cas thiaj ua li no? Kuv tsis muaj tswv yim. Koj puas paub? Yog muaj, thov qhia rau kuv. Txwv tsis pub nws yuav tsuas yog yuav tsum yog qhov paub tsis meej.
Yog li, yog tias koj tau txais ib qho ntawm cov coj txawv txawv sab nraum zoov, koj (tej zaum) muaj hmoo! hzeller tsis ntev los no tau ntxiv kev txhawb nqa rau kev teeb tsa ib txwm ntawm cov hom vaj huam sib luag no rau nws lub tsev qiv ntawv. Koj tuaj yeem nyeem ntxiv txog nws ntawm nplooj ntawv github rau txoj haujlwm, tab sis koj tuaj yeem hla --led-multiplexing = {0, 1, 2, 3} rau tus lej piv txwv (koj kuj tseem yuav xav ua piv txwv li koj tau txais ob-ntev saw ntawm ib nrab-ntev panels) thiab nws yuav tsum ua haujlwm.
Muaj qee qhov kev hloov pauv pixel uas tsis txhawb nqa, txawm hais tias - thiab (kwv yees dab tsi) kuv lub vaj huam sib luag muaj ib qho ntawm lawv! Yog li, kuv yuav tsum sau kuv tus kheej hloov pauv tus lej (Kuv kuj - vim li cas los xij - yuav tsum qhia lub tsev qiv ntawv kom ua zoo li kuv tau txais yim 16x32 vaj huam sib luag ua ke). uas yog raws li nram no:
def transformPixels (j, k): effJ = j % 32
effK = k % 32
modY = k
modX = j
#modX thiab modY yog hloov X thiab Y;
#effJ thiab effK xyuas kom peb hloov pauv hauv 32x32 matrix ua ntej thawb
yog ((effJ)> 15):
modX = modX + 16
yog ((effK)> 7):
modY = modY - 8
modX = modX + 16
yog ((effK)> 15):
modX = modX - 16
yog tias ((effK)> 23):
modY = modY - 8
modX = modX + 16
#Tom qab ntawd, peb thawb lawv mus rau qhov chaw raug (txhua x+32 txav ib lub vaj huam sib luag)
yog tias (j> 31):
TXX += 32
yog tias (j> 63):
TXX += 32
yog tias (j> 95):
TXX += 32
rov qab (modX, modY)
Yog tias koj muaj vaj huam sib luag zoo li kuv, qhov no yuav ua haujlwm rau nws. Yog tias nws tsis yog, koj yuav tsum sau koj tus kheej - yog li, koj paub, hmoov zoo thiab ua haujlwm zoo.
Kauj Ruam 6: Txoj Haujlwm Starboard (lossis: Rov Qab Taug Qab thiab Npaj Rau Pixel)
Tam sim no koj tau txais koj daim ntawv kawm tiav ua haujlwm thiab npaj mus, txhua yam koj yuav tsum ua yog tso cov phiaj xwm pib ntawm koj Pi thiab npaj nws mus. Nco ntsoov tias koj nyob hauv tus neeg siv pi lub tsev teev npe (cd /home /pi) thiab khiav cov lus txib hauv qab no:
git clone
koj yuav tsum muaj daim nplaub tshev tshiab, starboard, uas muaj peb daim ntawv: LICENSE.md, README.md thiab starboard_s16.py. Sim qhov program pib los ntawm kev khiav nws hla nab hab sej:
sudo nab hab sej./starboard_s16.py
thiab koj yuav tsum tau txais ib pawg ntawm cov khoom txav ntawm qhov sib txawv sib txawv thiab lwj ntawm qhov sib txawv. Txhua 10, 000 zuam lossis yog li (koj tuaj yeem nkag mus rau hauv tsab ntawv nab nab los kho/hloov qhov no) nws yuav hloov hom (muaj plaub: RGB, HSV, Zaj sawv, thiab Greyscale).
Yog li, tam sim no tsuas yog ib qho uas yuav tsum tau ua yog ua kom tus lej pib ntawm tus lej pib ntawm kev pib. Peb yuav ua qhov ntawd los ntawm kev kho (nrog sudo) /etc/rc.local. Qhov koj xav ua yog ntxiv kab hauv qab no ua ntej "tawm 0" hauv tsab ntawv:
nab hab sej /home/pi/starboard/starboard_s16.py &
Tom qab koj ua qhov ntawd, rov pib dua pi - ib zaug nws ua tiav los ntawm kev pib ua ntu zus, starboard_s16.py tsab ntawv yuav tsum pib txoj cai!
Yog tias koj xav kom poke ib puag ncig hauv tsab ntawv, tsis txhob ua li ntawd - nws tau ntawv tso cai raws li GNU GPL 3.0. Yog tias tsab ntawv yuav tsis ua haujlwm rau koj, lossis koj muaj teeb meem nrog nws, cia li qhia rau kuv paub lossis xa kab rau ntawm github, thiab kuv yuav pom tias kuv tuaj yeem ua dab tsi los kho nws!
Qhov kawg (yam) kawg uas koj yuav xav ua yog teeb tsa SSH ntawm tus pi, yog li koj tuaj yeem nyob deb thiab kaw nws kom nyab xeeb. Koj yuav / twv yuav raug hu / xav hloov koj tus password (ntawm qhov passwd hais kom ua), thiab koj tuaj yeem nrhiav cov lus qhia rau ua kom ssh (tseem los ntawm kab hais kom ua) ntawm no.
Pom zoo:
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
IoT Cat Feeder Siv Particle Photon koom nrog Alexa, SmartThings, IFTTT, Google Sheets: 7 Cov Kauj Ruam (nrog Duab)
IoT Cat Feeder Siv Particle Photon koom nrog Alexa, SmartThings, IFTTT, Google Sheets: Xav tau lub tshuab pub miv miv tsis siv neeg yog piav qhia tus kheej. Miv (peb tus miv lub npe yog Bella) tuaj yeem ua rau tsis txaus siab thaum tshaib plab thiab yog tias koj tus miv zoo li kuv yuav noj lub tais qhuav txhua lub sijhawm. Kuv xav tau ib txoj hauv kev los faib cov khoom noj kom raug
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab
Fog Sensor - Particle Photon - Txuag Cov Ntaub Ntawv Online: 5 Cov Kauj Ruam (nrog Duab)
Fog Sensor - Particle Photon - Txuag Cov Ntaub Ntawv Online: Txhawm rau ntsuas cov huab cua los yog pa luam yeeb hauv huab cua peb tau ua qhov ntsuas huab no. Nws ntsuas tus nqi ntawm lub teeb uas LDR tau txais los ntawm lub laser, thiab muab piv rau tus nqi ntawm lub teeb ntawm ib puag ncig. Nws tshaj tawm cov ntaub ntawv ntawm daim ntawv google lub sijhawm tiag tiag ntawm IFTTT