Cov txheej txheem:

Saib Xyuas Huab Cua Nrog Arduino MKR ENV Shield: 6 Kauj Ruam
Saib Xyuas Huab Cua Nrog Arduino MKR ENV Shield: 6 Kauj Ruam

Video: Saib Xyuas Huab Cua Nrog Arduino MKR ENV Shield: 6 Kauj Ruam

Video: Saib Xyuas Huab Cua Nrog Arduino MKR ENV Shield: 6 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Kaum ib hlis
Anonim
Saib Xyuas Huab Cua Nrog Arduino MKR ENV Shield
Saib Xyuas Huab Cua Nrog Arduino MKR ENV Shield

Peb tau txais qee yam tshiab ntawm MKR ENV daim thaiv qee hnub dhau los. Cov ntaub thaiv npog no muaj ntau qhov ntsuas (ntsuas kub, huab cua siab, av noo, UV….) Ntawm lub nkoj - sau zoo los tsim qhov chaw yooj yim huab cua ua ke nrog peb cov khoom siv ArduiTouch MKR. Peb tau siv Arduino MKR 1010 nrog WiFi ua lub hauv paus tseem ceeb kom tau txais qee cov ntaub ntawv huab cua rau qhov kev kwv yees yooj yim los ntawm openweather map.org. Thaum kawg qhov tso saib ntawm ArduiTouch yuav qhia kev kwv yees yooj yim thiab ntsuas kub sab nraud ua ke nrog ntsuas ntsuas sab hauv tsev, huab cua siab thiab av noo.

Kauj Ruam 1: Cov Cuab Yeej thiab Cov Khoom

Cov Cuab Yeej thiab Cov Khoom
Cov Cuab Yeej thiab Cov Khoom
Cov Cuab Yeej thiab Cov Khoom
Cov Cuab Yeej thiab Cov Khoom
Cov Cuab Yeej thiab Cov Khoom
Cov Cuab Yeej thiab Cov Khoom

Cov ntaub ntawv:

  • Arduino MKR1000 lossis 1010
  • Arduino MKR ENV Shield
  • ArduiTouch MKR cov khoom siv

Cov Cuab Yeej:

  • cam khwb cia hlau
  • nyias hlau xaim
  • Koob qhov ntswg pliers
  • sab txiav pliers
  • nruab nrab hla qhov ntswj taub hau

Software:

Arduino IDE Cov

Kauj Ruam 2: Sib dhos ntawm ArduiTouch MKR Cov Khoom

Sib dhos ntawm ArduiTouch MKR Cov Khoom
Sib dhos ntawm ArduiTouch MKR Cov Khoom

Thov ua raws li cov lus qhia los ua ke.

Kauj Ruam 3: Mount Arduino MKR Board thiab ENV Shield

Mount Arduino MKR Board thiab ENV Shield
Mount Arduino MKR Board thiab ENV Shield

Tom qab sib dhos ntawm ArduiTouch Kit nws tus kheej koj yuav tsum ntsaws Arduino MKR 1010 thiab MKR ENV Shield nyob tom qab ntawm PCB

Kauj Ruam 4: Txhim Kho Tsev Qiv Ntxiv

Nruab ib lub tsev qiv ntawv hauv qab no los ntawm Arduino Library Manager:

AdafruitGFX Library

AdafruitILI9341 Lub Tsev Qiv Ntawv

Arduino JSON Library 5.x

Koj tseem tuaj yeem rub tawm lub tsev qiv ntawv ncaj qha raws li ZIP cov ntaub ntawv thiab uncompress lub nplaub tshev hauv qab kojrarduinosketchfolder/qiv ntawv/

Tom qab txhim kho Adafruit cov tsev qiv ntawv, rov pib dua Arduino IDE.

Kauj ruam 5: Customization ntawm Firmware

Koj tuaj yeem rub tawm cov firmware los ntawm peb lub vev xaib

Qee qhov kev hloov pauv hauv qhov chaws tau xav tau rau kev hloov kho: WiFi: Thov sau tus SSID thiab tus lej nkag mus hauv kab 63 thiab 64

char* ssid = "yourssid"; // SSID ntawm lub zos network

char* password = "yourpassword"; // Lo lus zais ntawm network

Account rau OpenWeatherMap: Txhawm rau tau txais cov ntaub ntawv tom qab los ntawm lub platform OpenWeatherMap koj yuav xav tau tus kheej tus account. Nkag mus rau qhov no kom tau txais tus lej API:

Nkag mus rau koj tus lej API hauv kab 71:

Txoj hlua APIKEY = "your_api_key";

Koj qhov chaw nyob: Mus rau https://openweathermap.org/appid thiab tshawb nrhiav qhov chaw nyob. Mus los ntawm cov txiaj ntsig teeb tsa thiab xaiv qhov nkag mus ze rau qhov chaw tiag tiag uas koj xav qhia cov ntaub ntawv rau. Nws yuav yog URL zoo li https://openweathermap.org/appid Tus lej ntawm qhov kawg yog qhov koj muab rau qhov hauv qab no. Sau tus lej ntawm koj qhov chaw nyob hauv kab 72

Txoj hlua CityID = "your_city_id";

Sijhawm: Thov xaiv koj lub sijhawm nyob hauv kab 73

int TimeZone = 1;

Kauj Ruam 6: Zaum Kawg Ua Ke thiab Tshaj Tawm

Kev Sau Zaum Kawg thiab Tshaj Tawm
Kev Sau Zaum Kawg thiab Tshaj Tawm

Thov qhib cov qauv no hauv Arduino IDE. Compile thiab upload nws.

Pom zoo: