Cov txheej txheem:

Visuino I2C BMP280 Siab, Kub+OLED: 7 Kauj Ruam
Visuino I2C BMP280 Siab, Kub+OLED: 7 Kauj Ruam

Video: Visuino I2C BMP280 Siab, Kub+OLED: 7 Kauj Ruam

Video: Visuino I2C BMP280 Siab, Kub+OLED: 7 Kauj Ruam
Video: Visuino I2C BMP280 Pressure, Temperature Sensor with OLED lcd. 2024, Kaum ib hlis
Anonim
Image
Image
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi

Hauv qhov kev qhia no peb yuav siv I2C BMP280 siab, ntsuas kub, OLED lcd, Arduino UNO ntsuas kev ntsuas thiab ntsuas kub thiab tso tawm cov txiaj ntsig ntawm LCD. Saib daim vis dis aus.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Arduino UNO (tuaj yeem yog lwm yam Arduino)
  • Jumper xov hlau
  • OLED lcd
  • I2C BMP280 sensor
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas Arduino tus pin (SCL) rau BMP280 tus pin (SCL)
  • Txuas Arduino tus pin (SDA) rau BMP280 tus pin (SDA)
  • Txuas Arduino tus pin (SCL) rau OLED LCD tus pin (SCL)
  • Txuas Arduino tus pin (SDA) rau OLED LCD tus pin (SDA)
  • Txuas Arduino tus pin (5V) rau OLED LCD tus pin (VCC)
  • Txuas Arduino tus pin (3.3V) rau BMP280 tus pin (VCC)
  • Txuas Arduino tus pin (GND) rau OLED LCD tus pin (GND)
  • Txuas Arduino tus pin (GND) rau BMP280 tus pin (GND)

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Cov Lus Qhia no teeb tsa Arduino IDE rau program ESP 8266! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  • Ntxiv Kev Ntsuas Kub BME 280 I2C tivthaiv
  • Ntxiv 2x MapRange tivthaiv
  • Ntxiv DISPLAY OLED LCD I2C
  • Nyem ob npaug ntawm OLED LCD tivthaiv thiab hauv cov kho:
  1. Xaiv "Text Field", rub nws mus rau sab laug thiab hauv Properties window set: x txog 60 thiab y rau 5
  2. Xaiv "Text Field", rub nws mus rau sab laug thiab hauv Properties window teeb tsa: x txog 50 thiab y txog 20
  3. Xaiv "Kos Cov Ntawv", rub nws mus rau sab laug thiab hauv Properties window teeb tsa: x rau 0 thiab y txog 5 thiab teeb cov ntawv rau: "Siab:"
  4. Xaiv "Kos Cov Ntawv", rub nws mus rau sab laug thiab hauv Properties window teeb tsa: x rau 0 thiab y txog 20 thiab teeb cov ntawv rau: "Temp:"

Kauj Ruam 5: Hauv Visuino: Txuas Cov Khoom Siv

Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
  • Txuas Arduino I2C tus pin [hauv] rau PressureTemperatureHumidity1 I2C tus pin [tawm]
  • Txuas Arduino I2C tus pin [hauv] rau DisplayOLED1 I2C tus pin [tawm]
  • Txuas Arduino Serial [0] tus pin [tawm] rau DisplayOLED1 tus pin [hauv]
  • Txuas SiabTemperatureHumidity1 tus pin siab (Pa) rau MapRange1 tus pin [hauv]
  • Txuas SiabTemperatureHumidity1 tus pin Kub rau MapRange2 tus pin [hauv]
  • Txuas MapRange1 rau DisplayOLED1 tus pin [Elements Text Field1]
  • Txuas MapRange2 rau DisplayOLED1 tus pin [Elements Text Field2]

Kauj Ruam 6: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE

Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)

Kauj ruam 7: Ua si

Yog tias koj ua lub zog Arduino Uno module, Lcd yuav pib qhia cov ntaub ntawv hais txog qhov ntsuas thiab ntsuas kub tam sim no.

Nrog koj zoo siab! Koj tau ua tiav koj li I2C BMP280 sensor project nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau qhov Qhia Qhia no.

Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino:

Pom zoo: