Cov txheej txheem:
- Kauj ruam 1: Hloov tshiab 2019
- Kauj Ruam 2: Qhov Yuav Tsum Tau
- Kauj Ruam 3: Txiav tawm Qhov
- Kauj Ruam 4: Sib sau Huab
- Kauj Ruam 5: Ntxiv Neopixel Sawb
- Kauj Ruam 6: Ntxiv Diffuser thiab Txheej Sab Saum Toj
- Kauj Ruam 7: Solder Up
- Kauj ruam 8: Teeb Pi
- Kauj Ruam 9: Ua tiav Kev Sib Ntsib
- Kauj Ruam 10: 3d Luam Ntawv
- Kauj Ruam 11: Kev Xav Thaum Kawg
Video: Huab Cua Huab Cua Huab Cua: 11 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Txoj haujlwm no ua huab cua huab siv Raspberry Pi Zero W. Nws txuas rau Yahoo Huab Cua API thiab nyob ntawm qhov kev kwv yees rau hnub tom ntej hloov xim.
Kuv tau txais kev tshoov siab los ntawm Wisconsin Gas Building uas muaj nplaim taws ntawm lub ru tsev uas hloov pauv raws li kev kwv yees. Nws yog lub cim tseem ceeb hauv Milwaukee, WI.
Cov paj huam hauv qab no mus nrog nws.
Thaum nplaim taws liab, huab cua sov ua ntej! Thaum nplaim taws kub, ceev faj kom txias! Thaum nplaim taws xiav, tsis muaj kev hloov pauv! Thaum muaj nplaim taws, xav tias yuav daus lossis los nag!
Kuv xav tias huab yuav zoo dua ntawm phab ntsa. Rau cov cai yog tias qhov kev kwv yees siab rau hnub tom ntej yog ntau dua 10% sov nws yuav liab, yog tias qhov kwv yees qis dua ntau dua 10% txias dua nws yuav yog kub. Tab sis tsuas yog thaum ob qho xwm txheej tau ntsib cov xim liab yeej ib txwm yeej. Yog tias tsis tau ua raws li cov huab nyob qis. Yog tias muaj nag lossis daus hauv qhov kev kwv yees nws yuav ntsais muag.
Kauj ruam 1: Hloov tshiab 2019
Nws zoo li Yahoo tau txiav tawm qhov API no uas kuv tau siv rau qhov no. Yog li tam sim no phau ntawv qhia no yuav tsis ua haujlwm rau qhov ntawd. Xav paub ntau ntxiv tuaj yeem pom ntawm
Kauj Ruam 2: Qhov Yuav Tsum Tau
- Neopixels Sawb - 60 LEDS ib lub 'meter'
- Sawtooth Daim Duab Ncej Dai
- 3M SJ5302 Ntshiab Bumpon
- 1/2 in. X 6 in. X 3 ft. S4S Oak Board
- 1/8 "Hardboard
- 1/8 "Acrylic Dawb Translucent
- 1/8 "ntoo dowel
- Watco Natural Danish Roj Ntoo Ua tiav kuj tsaus Walnut xaiv rau qee qhov huab ntxiv
- Ntoo Nplaum
- Kub Nplaum Phom
- Phom phom
- Silicone npog Stranded -Core Wire - 25ft 26AWG - Liab, Dub, thiab Xiav
- Raspberry Pi Zero W.
- Micro SD daim npav
- USB Cable Dawb - lossis txiav sib nrug ib qho koj tau tso ib puag ncig
Kauj Ruam 3: Txiav tawm Qhov
Kuv tau suav nrog cov ntaub ntawv svg rau txiav cov no. Raws li koj pom muaj 4 txheej. Koj tuaj yeem pom hauv seem ntawm phau ntawv qhia uas kuv tau hloov kuv qhov chaw vim tias kuv tau txiav qhov tsis zoo ntawm txheej txheej saum toj thiab ntxeev nws kom zais qhov tsis huv.
Ntawm txheej 2 & 4 yuav tsum muaj 1/8 sib sib zog nqus nruab nrab ntawm txoj kev sab hauv thiab txoj kev nruab nrab. Qhov ntawd yuav tso cai rau diffuser thiab backplate tau rov qab los rau hauv. Kuv siv cov acrylic translucent rau lub diffuser thiab hardboard rau lub backplate.
Nov yog daim duab saib ua ntej ntawm kuv Shapeoko3 ua ntej txiav qhov tawm. Peb rov qab siv cov huab sab hauv tom qab hauv phau ntawv qhia, yog li tsis txhob tso lawv pov tseg.
Cov duab huab siv los ntawm softicons.com txij li kuv cov txuj ci kos duab tsis zoo li.
Kauj Ruam 4: Sib sau Huab
Thaum cov ntu raug txiav koj tuaj yeem lo nws ua ke, tsuas yog ob daim xav tau cov kua nplaum. Qhov 1/8 dowel yog tom qab ntawd muab tso rau hauv lub qhov los pab ua kom haum. Kuv tsis tau siv cov kua nplaum nyob rau hauv cov ntawd yog li kuv tuaj yeem tshem tawm lawv thaum cov txheej tau glued ua ke.
Siv qee cov clamps kom cov ntu nruj ua ke thaum ziab. So tawm cov kua nplaum ntau dhau uas tawm ntawm cov nqaws.
Thaum cov kua nplaum ziab kuv nqa cov khoom seem los ntawm sab hauv thiab xuab zeb lawv nrog 150 grit thiab tom qab ntawd 220 grit. Tom qab ntawd kuv thov so ntawm qhov stain. Kuv siv Watco Danish Roj hauv Tsaus Walnut rau qee qhov thiab Ntuj rau lwm tus. Nrog daim ntaub huv si tso qee qhov tsuas thiab so ntawm huab. Teem ib sab thiab cia kom qhuav. Nco ntsoov kom dai daim ntaub kom qhuav kom nws tsis txhob hlawv los ntawm cov roj.
Nws kuj yog lub sijhawm zoo los lo rau txheej txheej saum toj kawg nkaus. Txoj hauv kev no koj yuav tsis tau txais stain thoob lub diffuser tom qab.
Ua kom huab loj
Thaum cov kua nplaum qhuav koj tuaj yeem ua tau xuab zeb thiab ua kom lub ntsiab huab siv cov roj danish ntuj.
Kauj Ruam 5: Ntxiv Neopixel Sawb
Txhawm rau txiav txim siab qhov nyiaj ntawm txoj hlua xav tau kuv teeb nws sab hauv thiab ua kom ntseeg tau tias nws mus txog txhua ntu. Kuv tau xaus siv 19 kab ntawv. Tab sis tom qab gluing pom tau tias kuv yuav tsum tau siv 20.
Tom qab ntawd kuv tau tshem cov roj hmab ib ncig ntawm kab txaij txij li kuv tsis xav tau qhov ntawd. Tam sim no kuv xav tau ntxiv cov xov hlau rau kab txaij kom txuas rau Pi Zero.
Kuv tau pom nws ua haujlwm tau zoo dua yog tias koj npaj ua ntej qhov kawg ntawm kab txaij nrog rau qhov kawg ntawm xaim.
Tam sim no solder cov xov hlau rau sawb.
Nrog rau daim ntawv rov qab rau ntawm daim ntawv thov siv cov kua nplaum kub rau ob peb qhov me me los tuav NeoPixel kab txaij rau ntawm ntug ntawm huab. Sim ua kom daim kab xev nyob ze rau ntawm lub phaj nraub qaum kom ntau li ntau tau. Raws li koj tuaj yeem pom ntawm no kuv yuav tsum tau siv lwm LED ntawm kab sawb.
Kauj Ruam 6: Ntxiv Diffuser thiab Txheej Sab Saum Toj
Teem lub diffuser txheej hauv qhov ntxig thiab siv lub teeb me me ntawm cov kua nplaum nyob ib sab saum toj.
Tam sim no zoo ib yam li ua ntej txuas rau txheej saum toj kawg nkaus thiab kaw nws. Nco ntsoov kho nws mus rau lwm txheej kom zoo tshaj plaws thiab so hauv cov kua nplaum ntau dhau.
Kauj Ruam 7: Solder Up
Kev xaim hluav taws xob yog qhov yooj yim rau qhov no.
GPIO 18 ntawm Pi rau Din Neopixel
5V los ntawm Pi mus rau 5V Neopixel
GND los ntawm Pi rau GND Neopixel
Ua ntej siv lub USB cable peb yuav tsum tau siv lub qhov rau nws. Kuv qaum yog tad qis dua 3 hli yog li kuv tau siv lub qhov siv 3 hli me ntsis kom ntseeg tau tias tsis txhob xaum rau hauv cov kab neopixel.
Txiav qhov kawg uas tsis muaj Txiv neej kawg uas txuas rau hauv lub khoos phis tawj. Tom qab ntawd tshem tawm qee qhov thaiv kom nkag mus rau cov xov hlau. Peb tsuas xav tau Red (5V) thiab Dub (GND) cov xov hlau.
Nov yog yuav ua li cas nws yuav tsum saib tag nrho cov laug.
Kauj ruam 8: Teeb Pi
Thawj qhov xav tau yog daim npav SD lub kaw lus ua haujlwm. Kuv siv Raspbian Jessie Lite.
Siv qhov program xws li etcher.io txhawm rau hlawv cov duab rau daim npav SD. Thaum qhov ua tiav peb yuav xav tau ntxiv ob daim ntawv rau hauv phau ntawv teev npe khau raj yog li pi yuav muaj ssh qhib thiab cov ntaub ntawv wifi raug.
Qhib wpa_supplicant.conf cov ntaub ntawv nrog cov ntawv sau thiab muab koj li wifi ssid thiab tus password rau hauv. Tom qab ntawd ntxiv cov ntawv rau hauv daim npav sd. Txhawm rau pab ssh peb tsuas yog xav tau cov ntawv sau npe ssh uas tsis muaj kev txuas ntxiv muab tso rau hauv daim npav sd ib yam.
Kev piav qhia zoo dua ntawm qhov no kuj tseem tuaj yeem pom ntawm phau ntawv qhia no ntawm adafruit.com
Txuas rau Pi
Kuv siv qhov program hu ua putty thiab SSH rau hauv Pi. Qee cov ntaub ntawv hais txog kev ua qhov no tuaj yeem pom ntawm Raspberry Pi lub vev xaib.
Ib qhov sib txawv yog qhov lawv muaj koj pom tus IP ntawm tus pi. Kuv tau pom nws yooj yim dua tsuas yog siv lub npe host los txuas uas yog raspberrypi.local
Nruab cov tsev qiv ntawv uas xav tau
Ua ntej peb xav tau pip yog li khiav cov lus txib no
sudo apt-tau nruab nruab sej-pip
Tam sim no peb tuaj yeem teeb tsa kev thov.
pip nruab thov
Tom ntej no peb yuav teeb tsa cov khoom xav tau los siv NeoPixels. Cov theem no yog ua los ntawm phau ntawv qhia hu ua NeoPixels ntawm Raspberry Pi los ntawm Adafruit lub vev xaib.
sudo apt-tau nruab tsim-qhov tseem ceeb nab hab sej-dev git scons swig
Tom qab ntawd peb khiav cov lus txib no
git clone
cd rpi_ws281x scons
Ces
cd python
sudo python setup.py nruab
Tam sim no cov tsev qiv ntawv xav tau yuav tsum raug teeb tsa.
Tau txais qhov program ntawm Pi
Kuv yuav pom zoo kom tau txais cov ntaub ntawv los ntawm GitHub chaw cia khoom raws li cov cai yuav hloov lossis kho tau qee lub sijhawm.
Koj tuaj yeem txiav thiab muab cov ntsiab lus tso rau hauv cov ntawv tshiab lossis siv WinSCP los hloov cov ntaub ntawv.
Yog tias txiav thiab muab tshuaj txhuam koj yuav xav ua cov ntawv tshiab siv cov lus txib no
sudo nano cloud.py
Tom qab ntawd muab tshuaj txhuam rau hauv cov ntsiab lus ntawm cloud.py
Thaum koj nyob ntawd koj yuav xav hloov qee qhov txiaj ntsig. Yog tias koj siv qhov sib txawv ntawm NeoPixels lossis GPIO tus pin
Yog tias NeoPixels tus nqi siv sib txawv hloov LED_COUNT. Ib yam yog tias GPIO tus pin siv sib txawv hloov LED_PIN
Tsis tas li ntawm kab 72 koj xav tau qhov hloov chaw, tshwj tsis yog koj xav tau kev kwv yees rau sheboygan.
Khiav cov cai
Thaum koj tau txais koj qhov kev hloov pauv koj tuaj yeem sim tawm qhov chaws.
sudo nab hab sej cloud.py
Huab yuav tsum teeb tam sim no thiab nyob rau hauv lub qhov rai qhov rai koj yuav tsum pom nws tso tawm dab tsi hnub no siab thiab qis yog nrog rau hnub tom ntej siab thiab qis.
Teem kom pib khiav thaum pib
Txhawm rau teeb tsa pib pib Kuv ua raws phau ntawv qhia no los ntawm Raspberry Pi lub vev xaib
Nov yog kab kab ntawv kuv ntxiv rau rc.local cov ntaub ntawv.
nab hab sej /home/pi/cloud.py &
Kauj Ruam 9: Ua tiav Kev Sib Ntsib
Kuv siv tus cim ntsuas thiab sim nrhiav qhov chaw zoo tshaj qhov kuv ua tau. Tom qab ntawd kuv txuas cov saw saw hlau thiab tom qab ntawd ob lub log tsheb roj hmab.
Txhawm rau txuas tus Pi Kuv tau rov qab mus rau kuv tus phooj ywg kub yaj rab phom thiab muab dab dab kub kua nplaum tso rau tom qab ntawm Pi thiab txuas nws rau sab nraum qab vaj huam sib luag.
Kuv siv tus ntsia hlau los tsim qhov chaw hauv cov khoom siv.
Tom qab ntawd kuv khoov cov khoom siv kom tuav lub phaj rov qab.
Ua kom tiav cov huab me
Cov huab me me xav tau lub khwb thiab ob lub pob tw.
Kauj Ruam 10: 3d Luam Ntawv
Kuv kuj tau suav nrog cov ntaub ntawv STL rau yog tias koj tsis nkag mus rau ntoo CNC tshuab. Autodesk Fusion 360 cov ntaub ntawv tsim qauv kuj tseem suav nrog. Txoj kev ntawd koj tuaj yeem hloov kho tus qauv kom zoo rau kev luam ntawv.
Kauj Ruam 11: Kev Xav Thaum Kawg
Txoj haujlwm no tawm los zoo heev. Kuv nyiam qhov zoo ntawm cov ntoo qhib piv rau MDF hauv lwm qhov haujlwm kuv tau ua. Kuv yuav nyiam ua qhov no nrog esp8266 pawg thawj coj tab sis kuv cov txuj ci nrog Arduino IDE thiab JSON tsis zoo ib yam li Pi.
Qee qhov ntxiv yav tom ntej rau txoj haujlwm no yuav yog 7 ntu qhia tom qab lub diffuser yog li nws tuaj yeem qhia qhov ntsuas kub tam sim no ib yam.
Kuv kuj tau muab cov ntaub ntawv tso rau GitHub thiab ntxiv cov cai rau yog tias koj muaj Pimoroni Blinkt, Pimoroni Unicorn PHAT lossis Raspberry PI Sense Hat
Tus nqi zog loj hauv Internet ntawm Kev Sib Tw Xyoo 2017
Khiav Tawm Hauv Qhov Tsis Sib Tw Sib Tw
Qhov khoom plig thib ob hauv Kev Sib Tw Teeb 2017
Pom zoo:
Art Deco Huab Cua Huab Cua Qhia: 9 Kauj Ruam (nrog Duab)
Art Deco Huab Cua Huab Cua Zaub Zaub: Nyob Zoo Cov Phooj Ywg, hauv Phau Ntawv Qhia no peb yuav pom kub los tsim qhov Huab Cua Huab Cua Zaub Zaub no. Nws siv Wemos D1 mini board nrog rau 1.8 "Xim TFT npo los tso saib huab cua. Kuv kuj tau tsim thiab 3d luam tawm ib lub thawv rau
Huab Cua Huab Cua Beacon: 4 Cov Kauj Ruam (nrog Duab)
Huab Cua Kev Tshaj Tawm Beacon: Hauv qhov haujlwm no kuv tab tom nthuav qhia tus qauv los ntawm lub teeb ceeb toom huab cua hauv cheeb tsam uas kuv tau siv 3D luam ntawv, kab txaij LED, lub hwj chim thiab Arduino pawg thawj coj nrog wifi txuas txuas txhawm rau nkag mus saib huab cua ntawm hnub tom ntej. Lub hom phiaj tseem ceeb ntawm
PyonAir - Qhib Qhov Chaw Huab Cua Huab Cua Pollution: 10 Cov Kauj Ruam (nrog Duab)
PyonAir - Qhib Qhov Chaw Huab Cua Pollution: PyonAir yog tus nqi qis rau kev saib xyuas cov pa phem hauv cheeb tsam - tshwj xeeb, muaj teeb meem me me. Raws li nyob ib puag ncig Pycom LoPy4 lub rooj tsavxwm thiab Grove-sib xws kho vajtse, lub kaw lus tuaj yeem xa cov ntaub ntawv hla LoRa thiab WiFi. Kuv lees paub qhov no
Huab Cua Huab Cua - Koj Lub Vev Xaib Zoo Kom Hnav: 6 Cov Kauj Ruam (nrog Duab)
Npuas Cua Huv - Koj Lub Vev Xaib Zoo rau Hnav: Hauv Cov Lus Qhia no Kuv yuav piav qhia yuav ua li cas koj tuaj yeem tsim lub tshuab ua pa rau hauv koj cov khaub ncaws uas yuav ua rau koj muaj kuab huv thiab lim huab cua ua pa. Ob lub kiv cua radial tau muab tso rau hauv lub tsho loj siv cov kev cai luam tawm 3d uas yog
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Huab Cua Huab Cua: 7 Cov Kauj Ruam (nrog Duab)
HRV (Lub Tsev Huab Cua Hloov Chaw) Arduino Tus Tswj Nrog Air Economizer: HRV Arduino Tus Tswj Nrog Air Economizer Yog li kuv keeb kwm nrog txoj haujlwm no yog kuv nyob hauv Minnesota thiab kuv lub rooj tsav xwm hluav taws xob kib ntawm kuv LifeBreath 155Max HRV. Kuv tsis xav them $ 200 rau qhov tshiab Kuv ib txwm xav tau qee yam nrog kev lag luam huab cua kev ua txhaum