Cov txheej txheem:

Yuav Siv BMP180 Nrog SkiiiD: 9 Kauj Ruam
Yuav Siv BMP180 Nrog SkiiiD: 9 Kauj Ruam

Video: Yuav Siv BMP180 Nrog SkiiiD: 9 Kauj Ruam

Video: Yuav Siv BMP180 Nrog SkiiiD: 9 Kauj Ruam
Video: 051 Tuabneeg Yuav Siv Tug Nplaig 2024, Kaum ib hlis
Anonim
Image
Image

Kev qhia los txhim kho BMP180 ntawm "skiiiD."

Kauj ruam 1: Tua tawm SkiiiD

Xaiv Arduino UNO
Xaiv Arduino UNO

Tua tawm skiiiD thiab xaiv khawm tshiab

Kauj Ruam 2: Xaiv Arduino UNO

Xaiv ① Arduino Uno thiab tom qab ntawd nyem ② OK khawm

*Nov yog Tutorial, thiab peb siv Arduino UNO. Lwm cov laug cam (Mega, Nano) muaj cov txheej txheem tib yam.

Kauj Ruam 3: Ntxiv Cheeb Tsam

Ntxiv Cheeb Tsam
Ntxiv Cheeb Tsam

Nyem '+' (Ntxiv Cheeb Tsam khawm) txhawm rau tshawb nrhiav thiab xaiv cov khoom siv.

Kauj Ruam 4: Tshawb lossis Nrhiav Ib Cheeb Tsam

Nrhiav lossis Nrhiav Ib Cheeb Tsam
Nrhiav lossis Nrhiav Ib Cheeb Tsam

① Ntaus 'BMP' ntawm qhov tshawb nrhiav lossis nrhiav BMP180 ntawm cov npe.

Kauj Ruam 5: Xaiv BMP180

Xaiv BMP180
Xaiv BMP180

② Xaiv BMP180 Module

Kauj Ruam 6: Tus Pin Qhia thiab Kho

Pin Qhia thiab Kho
Pin Qhia thiab Kho

tom qab ntawd koj tuaj yeem pom ③ tus lej cim. (Koj tuaj yeem teeb tsa nws.)

*Cov qauv no muaj 4 tus pin txuas

skiiiD Editor txiav txim siab qhia tus pin teeb *teeb tsa muaj

[Default Pin Indication for BMP180 Module] thaum Arduino UNO

5v: 3.3v ua

GND: NCO

TSO: A5

SDA: AW 4

Tom qab teeb tsa tus pin, nyem ADD khawm ntawm sab xis hauv qab

Kauj Ruam 7: Txheeb Ntxiv Module

Txheeb ntxiv Module
Txheeb ntxiv Module

⑤ Ntxiv Module tau tshwm sim ntawm lub vaj huam sib luag sab xis

Kauj Ruam 8: SkiiiD Code ntawm BMP180 Module

SkiiiD Code ntawm BMP180 Module
SkiiiD Code ntawm BMP180 Module

skiiiD Code yog kev paub ua haujlwm raws cov lej. Qhov no yog ua raws skiiiD cov tsev qiv ntawv

getPressure () Txoj kev uas tso cai txheeb xyuas qhov tseeb tam sim no lossis qhov txheeb ze siab.

Yog tias teeb hom ua 0, rov qab txheeb ze tus nqi.

Yog tias teeb hom li 1, rov qab txheeb ze tus nqi.

Lub neej ntawd hom yog 0."

getTemperature ()

Txoj hauv kev uas tso cai txheeb xyuas tam sim no Celsius, Fahrenheit, lossis Kub tsis txaus.

Yog tias teeb hom 0, rov qab tus nqi kub Celsius.

Yog tias teeb hom li 1, rov qab Fahrenheit tus nqi kub.

Yog tias teeb hom li 2, rov qab qhov kub tsis txaus.

Lub neej ntawd hom yog 0."

tau txais Altitude ()

Txoj hauv kev uas tso cai hloov pauv qhov siab mus rau qhov ntsuas lossis ntsuas chav.

Yog tias teeb hom ua 0, rov qab tus nqi siab mus rau 'meter'.

Yog tias teeb hom li 1, rov qab tus nqi siab dua rau taw.

Lub neej ntawd hom yog 0."

Kauj Ruam 9: Tiv tauj thiab tawm tswv yim

Peb tab tom ua haujlwm ntawm cov tsev qiv ntawv thiab cov laug cam. Xav tias dawb siv nws thiab tawm tswv yim rau peb, thov. Hauv qab no yog kev sib cuag

email: [email protected]

hauv twitter:

Youtube:

Cov lus pom zoo ib yam!

Pom zoo: