Cov txheej txheem:

Chaw RPi Huab Cua thiab Lub Sijhawm Digital: 4 Kauj Ruam (nrog Duab)
Chaw RPi Huab Cua thiab Lub Sijhawm Digital: 4 Kauj Ruam (nrog Duab)

Video: Chaw RPi Huab Cua thiab Lub Sijhawm Digital: 4 Kauj Ruam (nrog Duab)

Video: Chaw RPi Huab Cua thiab Lub Sijhawm Digital: 4 Kauj Ruam (nrog Duab)
Video: Бинарные варианты брокерского сравнения 2018 | лучшие брокерские бинарные опции по всему миру... 2024, Kaum ib hlis
Anonim
Image
Image
RPi Weather Station thiab Digital Clock
RPi Weather Station thiab Digital Clock

Los ntawm Anders644PIMy Instagram Ua raws ntau los ntawm tus sau:

Minimalist Ntse Planter
Minimalist Ntse Planter
Minimalist Ntse Planter
Minimalist Ntse Planter
Digital RPi LED Ntsuas Kub
Digital RPi LED Ntsuas Kub
Digital RPi LED Ntsuas Kub
Digital RPi LED Ntsuas Kub
NodeMCU Alexa TV Tswj
NodeMCU Alexa TV Tswj
NodeMCU Alexa TV Tswj
NodeMCU Alexa TV Tswj

Txog: Nyob zoo, Kuv nyiam khoom siv hluav taws xob, luam ntawv 3d thiab sib qhia qhov kuv ua. Kuv feem ntau sim ua cov khoom muaj txiaj ntsig, tab sis qee zaum kuv kuj ua qee qhov tsuas yog lom zem thiab kawm qee yam tshiab. Thiab yog tias koj nyiam qhov koj pom, ua raws … Ntxiv Txog Anders644PI »

Nov yog txoj haujlwm sai thiab yooj yim los ua, thiab cov duab zoo los nthuav tawm. Nws qhia txog ob lub sijhawm, huab cua thiab kub. Thiab yog tias koj nyiam qhov koj pom, ua raws kuv ntawm Instagram thiab Twitter (@Anders644PI) kom ua raws li qhov kuv ua.

Txoj cai yog ua raws StuffWithKirby txoj cai muaj txiaj ntsig ntawm kev nyeem JSON huab cua cov ntaub ntawv hauv nab hab sej, thiab SteveAmor ntawm Github lub txias txias SenseHat digital moos chaws.

Koj yuav xav tau:

  • Raspberry Pi 3 (Txhua 40-pin Raspberry Pi yuav ua haujlwm)
  • Raspberry Pi SenseHat (lossis lwm yam khoom siv, los tso saib cov ntaub ntawv huab cua ntawm)
  • A 5V 2.4A Fais Fab Khoom rau Raspberry Pi
  • 8GB lossis siab dua Micro SD Card nrog qhov hloov tshiab kawg ntawm Raspian
  • Lub tshuab luam ntawv 3D thiab spools ntawm ib qho xim PLA (Tsis teb los tau)
  • Cov txheej no ntawm cov ntsia hlau thiab cov kev tsis pom kev (Yeem: Koj tsuas xav tau qhov no yog tias koj xav siv lub diffuser)

Kauj Ruam 1: Cov Ntaub Ntawv Huab Cua

Cov Ntaub Ntawv Huab Cua
Cov Ntaub Ntawv Huab Cua

Peb tau txais cov ntaub ntawv huab cua los ntawm OpenWeatherMap.org, tab sis koj tuaj yeem ntxiv cov lus xaus lossis nyiam rau Pi, thiab nyeem cov ntaub ntawv los ntawm qhov ncaj qha, yog tias koj xav tau tiag tiag.

  1. Pib los ntawm kev ua tus lej pub dawb ntawm OpenWeatherMap.org.
  2. Tom qab ntawd luam koj li api-key kom siv tom qab.
  3. Tam sim no rub tawm thiab qhib lub nroog.list.json cov ntaub ntawv, tshawb rau koj lub nroog, thiab tom qab ntawd luam lub nroog-id rau tom qab.

Kauj ruam 2: Teeb tsa Pi

Teeb tsa Pi
Teeb tsa Pi

1. Hauv lub davhlau ya nyob twg ntawm Pi (nrog kev sib txuas hauv internet) khiav cov lus txib no, kom tau txais Pi teeb tsa:

sudo apt-tau hloov tshiab & sudo apt-tau hloov tshiab

2. Tam sim no rub kuv li GitHub repo thiab kho cov ntawv:

git clone https://github.com/Anders644PI/RPi-SenseHat-Digital-Clock-and-Weather-Station.git cd RPi-SenseHat-Digital-Clock-and-Weather-Station nano RPi_Weather_Station.py

3. Hauv RPi_Weather_Station.py muab tshuaj txhuam rau hauv koj tus lej api thiab koj lub nroog-id. Koj tseem tuaj yeem hloov cov koog mus rau huab tais (fahrenheit), yog tias koj xav tau tshaj qhov ntsuas (qib).

4. Tam sim no khiav nws, thiab nws yuav tsum ua haujlwm zoo. Tab sis yog tias koj muaj teeb meem, thov qhia rau kuv hauv cov lus, thiab kuv yuav zoo siab los pab.

sudo nab hab sej RPi_Weather_Station.py

Kauj Ruam 3: 3D Luam Ntawv Accessories

3D Luam Accessories
3D Luam Accessories
3D Luam Accessories
3D Luam Accessories
3D Luam Accessories
3D Luam Accessories

Cov kauj ruam no yog nyob ntawm yeem, tam sim no koj twb muaj chaw nres tsheb huab cua zoo. Tab sis thaum kuv nkag tau rau lub tshuab luam ntawv 3D, kuv siv nws zoo dua.

1. Thawj qhov kev hloov kho tshiab yog diffuser rau SenseHat, uas tuaj yeem ntsia tau rau lub kaus mom nrog ob tus ntsia hlau thiab ob qhov kev sawv ntsug rau Pi. Kuv siv qee qhov ntsia hlau kuv tau tso ncig, tab sis qee qhov no yuav tsum ua haujlwm ib yam. Rub tawm cov ntawv ntawm no:

2. Qhov kev hloov kho thib ob yog ntsug ntsug rau Pi. Qhov no yuav tsum tsis muaj cov ntsia hlau, nws tsuas yog swb mus rau USB-chaw nres nkoj. Qhov no ua rau USB- thiab Ethernetports tsis ua haujlwm. Rub tawm cov ntawv ntawm no:

Kauj Ruam 4: Qhov tshwm sim

Qhov tshwm sim
Qhov tshwm sim

Nrog koj zoo siab, koj ua tiav !!! Tam sim no koj yuav tsum muaj chaw nres tsheb huab cua RPi zoo los zaum ntawm koj lub rooj, thiab qhia koj txog cov ntaub ntawv huab cua muaj txiaj ntsig.

Kuv xav pom qhov koj ua nrog txoj haujlwm no, yog li thov sau kuv ntawm @anders644pi, hauv Twitter lossis Instagram, yog tias koj ua. Thiab thov, yog tias koj nyiam txoj haujlwm no, pov npav rau kuv hauv Microcontroller Contest:

Pom zoo: