Cov txheej txheem:

Arduino OLED Cov Ntawv Qhia zaub mov Nrog Kev Xaiv los Xaiv: 8 Cov Kauj Ruam
Arduino OLED Cov Ntawv Qhia zaub mov Nrog Kev Xaiv los Xaiv: 8 Cov Kauj Ruam

Video: Arduino OLED Cov Ntawv Qhia zaub mov Nrog Kev Xaiv los Xaiv: 8 Cov Kauj Ruam

Video: Arduino OLED Cov Ntawv Qhia zaub mov Nrog Kev Xaiv los Xaiv: 8 Cov Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Kaum ib hlis
Anonim

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas ua cov ntawv qhia zaub mov nrog xaiv xaiv siv OLED Zaub thiab Visuino.

Saib cov yees duab.

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 (lossis lwm yam Arduino)
  • Jumper xov hlau
  • OLED Zaub
  • Cov qhob cij
  • 1K ohm tiv thaiv
  • Khawm
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas OLED zaub tus pin [VCC] rau arduino tus pin [5V]
  • Txuas OLED zaub tus pin [GND] rau arduino tus pin [GND]
  • Txuas OLED zaub tus pin [SDA] rau arduino tus pin [SDA]
  • Txuas OLED zaub tus pin [SCL] rau arduino tus pin [SCL]
  • Txuas Arduino 5V rau ib sab ntawm tus tiv thaiv
  • Txuas lwm sab ntawm tus tiv thaiv rau khawm
  • Txuas lwm sab ntawm lub pob rau Arduino tus lej digital [8] thiab hauv av

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 Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! 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 ADD Cheebtsam

Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
  • Ntxiv "Counter" tivthaiv
  • Ntxiv "Integer Array" tivthaiv
  • Ntxiv "Integer Multi Source" tivthaiv
  • Ntxiv "SSD1306/SH1106 OLED Display (I2C)" tivthaiv

Kauj Ruam 5: Hauv Visuino Teeb Cov Khoom

Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
  • Xaiv "Counter1" tivthaiv thiab hauv cov khoom vaj khoom tsev teeb tsa 'Max'> 'Tus nqi' rau 2 thiab 'Min>' Tus nqi 'rau 0
  • Ob npaug nias rau "Array1" thiab hauv Elements window rub 3x 'Tus Nqi' mus rau sab laug Xaiv Yam khoom [1] thiab hauv cov khoom qhov rai teeb tsa tus nqi rau 20 Xaiv Cov Khoom [2] thiab hauv cov khoom qhov rai teeb tsa tus nqi rau 40
  • Xaiv "IntegerMultiSource1" tivthaiv thiab nyob rau hauv lub qhov rai khoom teeb tsa 'Output Pins' rau 4
  • Nyem ob npaug rau "DisplayOLED1" thiab hauv cov ntsiab lus qhov rai -drag 3X "Kos Cov Ntawv" rau sab laug Xaiv 'Kos Text1' thiab hauv cov khoom qhov rai teeb xim rau tmcInvert, loj rau 2, ntawv rau 'Ntawv qhia zaub mov -1'Select' Kos cov ntawv 2 'thiab hauv cov khoom qhov rai teeb xim rau tmcInvert, loj rau 2, ntawv mus rau' Ntawv qhia zaub mov -2 ', Y rau 20 Xaiv' Kos Duab 3 'thiab hauv cov khoom qhov rai teeb xim rau tmcInvert, loj rau 2, ntawv rau' Ntawv qhia zaub mov-3 ', Y rau 40-luag "Kos duab plaub" rau sab laug thiab teeb xim rau tmcWhite thiab sau xim rau tmcWhite, siab txog 20, Dav mus rau 128, xaiv Y thiab nyem rau ntawm Pin cim thiab xaiv' Integer SinkPin'-drag "Sau Screen "rau sab laug

Kauj Ruam 6: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas Arduino digital pin [8] rau "counter1" tiv thaiv tus pin [Hauv]
  • Txuas "Counter1" tiv thaiv tus pin [tawm] rau "Array1" tus pin [Index]
  • Txuas "Array1" tiv thaiv tus pin [tawm] rau "IntegerMultiSource1" tus pin [Hauv]
  • Txuas "IntegerMultiSource1" tus pin [0] rau DisplayOLED1> Sau Screen1 tus pin [moos]
  • Txuas "IntegerMultiSource1" tus pin [1] rau DisplayOLED1> Kos duab plaub fab 1 tus pin [Y]
  • Txuas "IntegerMultiSource1" tus pin [2] rau DisplayOLED1> Kos Rectangle1 tus pin [Clock]
  • Txuas "IntegerMultiSource1" tus pin [3] rau DisplayOLED1> Kos Text1 tus pin [Moos]
  • Txuas "IntegerMultiSource1" tus pin [3] rau DisplayOLED1> Kos Text2 tus pin [Moos]
  • Txuas "IntegerMultiSource1" tus pin [3] rau DisplayOLED1> Kos Text3 tus pin [Moos]
  • Txuas "DisplayOLED1" tus pin I2C [Tawm] rau Arduino board I2c tus pin [Hauv]

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

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

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 8: Ua si

Yog tias koj ua lub zog Arduino UNO module, thiab OLED cov zaub yuav tsum pib tso tawm cov ntawv qhia zaub mov, koj tuaj yeem taug kev los ntawm cov ntawv qhia zaub mov los ntawm nias lub pob.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no thiab qhib nws hauv Visuino:

Pom zoo: