Cov txheej txheem:

Arduino UNO Nrog OLED Ultrasonic Range Finder thiab Visuino: 7 Kauj Ruam
Arduino UNO Nrog OLED Ultrasonic Range Finder thiab Visuino: 7 Kauj Ruam

Video: Arduino UNO Nrog OLED Ultrasonic Range Finder thiab Visuino: 7 Kauj Ruam

Video: Arduino UNO Nrog OLED Ultrasonic Range Finder thiab Visuino: 7 Kauj Ruam
Video: Калибруем китайские весы BEKA Calibration (градуировать; калибровать; тарировать) 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav siv Arduino UNO, OLED Lcd, Ultrasonic range finder module, thiab Visuino los tso saib ultrasonic ntau ntawm Lcd thiab teeb tsa qhov txwv nrug nrog liab LED. 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
  • Arduino UAS
  • Ultrasonic Range Finder
  • OLED Lcd
  • Liab LED
  • Cov qhob cij
  • Jumper xov hlau
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas GND los ntawm Maduino UNO rau tus pin breadboard (gnd)
  • Txuas 5V tus pin los ntawm Maduino UNO mus rau lub khob cij pin (zoo)
  • Txuas SCL los ntawm Maduino UNO mus rau OLED LCD tus pin (SCL)
  • Txuas SDA los ntawm Maduino UNO mus rau OLED LCD tus pin (SDA)
  • Txuas OLED LCD tus pin (VCC) mus rau tus pin breadboard (zoo)
  • Txuas OLED LCD tus pin (GND) rau tus pin breadboard (GND)
  • Txuas Ultrasonic module tus pin (VCC) rau breadboard tus pin (zoo)
  • Txuas Ultrasonic module tus pin (GND) rau breadboard tus pin (GND)
  • Txuas Ultrasonic module tus pin (ECHO) rau Maduino UNO tus pin digital (3)
  • Txuas Ultrasonic module tus pin (TRIG) rau Maduino UNO tus pin digital (2)

  • Txuas tus lej digital (13) los ntawm Maduino UNO rau LED tus pin (zoo)
  • Txuas LED tus pin (tsis zoo) rau tus pin breadboard (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 kuj 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 Ultrasonic Ranger tivthaiv
  • Ntxiv Sib Piv Ntau Yam thiab teeb tsa hauv cov khoom MAX: 9 << Ntxiv Zaub OLED tivthaiv, ob npaug nias rau nws thiab dragr "ntawv teb" mus rau sab laug, hauv qab cov khoom teeb tsa loj: 2

Kauj Ruam 5: Hauv Visuino: Txuas Cov Khoom Siv

Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
  • Txuas Arduino digital out pin [3] rau UltrasonicRanger1 tus pin [Echo]
  • Txuas Arduino Serial [0] tawm tus pin [Tawm] rau DisplayOled1 tus pin [Hauv]
  • DisplayOled1 tus pin [Tawm I2c] rau Arduino I2C tus pin [hauv]
  • Txuas UltrasonicRanger1 tus pin [Tawm] los Sib piv Range1 tus pin [Hauv] thiab rau DisplayOled1 Cov Ntsiab Lus.
  • Txuas UltrasonicRanger1 tus pin [Ping] rau Arduino Digital tus pin [2] thiab rau DisplayOled1 tus pin [Hloov tshiab]
  • Txuas Sib Piv Range1 tus pin [Tawm] rau Arduino Digital tus pin [13]

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

Ua si
Ua si

Yog tias koj siv zog Arduino UNO module, OLED Lcd yuav pib qhia tus lej tus nqi rau qhov kev ncua deb ntawm ib qho teeb meem. Yog tias koj tso ib qho kev khuam siab ze rau ntawm tus qauv ultrasonic tus nqi yuav hloov thiab LED yuav nyem.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm 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: