Cov txheej txheem:

Bitmap Animation ntawm SSD1331 OLED Display (SPI) Nrog Visuino: 8 Kauj Ruam
Bitmap Animation ntawm SSD1331 OLED Display (SPI) Nrog Visuino: 8 Kauj Ruam

Video: Bitmap Animation ntawm SSD1331 OLED Display (SPI) Nrog Visuino: 8 Kauj Ruam

Video: Bitmap Animation ntawm SSD1331 OLED Display (SPI) Nrog Visuino: 8 Kauj Ruam
Video: Steve Jobs Introducing The iPhone At MacWorld 2007 2024, Kaum ib hlis
Anonim

Hauv qhov kev qhia no peb yuav tso saib thiab txav ib puag ncig cov duab bitmap hauv daim ntawv yooj yim ntawm kev ua yeeb yaj kiab ntawm SSD1331 OLED Display (SPI) nrog 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
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Arduino UNO (lossis lwm yam Arduino)
  • SSD1331 OLED Zaub (SPI)
  • Cov qhob cij
  • Jumper xov hlau
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas Txuas tus pin [CS] rau Arduino tus lej digital [7]
  • Txuas Txuas tus pin [DC] rau Arduino tus lej digital [8]
  • Txuas Txuas tus pin [RES] rau Arduino tus lej digital [9]
  • Txuas Txuas tus pin [SDA] rau Arduino tus lej digital [11]
  • Txuas Txuas tus pin [SCL] rau Arduino tus lej digital [13]
  • Txuas Txuas tus pin [VCC] rau Arduino tus pin zoo [+5V]
  • Txuas Txuas tus pin [GND] rau Arduino av 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 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
  • Ntxiv "SSD1331 OLED Display (SPI)" tivthaiv
  • Ntxiv 2X "Sine Integer Generator"

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
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
  • Xaiv "SineIntegerGenerator1" thiab hauv cov khoom qhov rai teeb tsa Amplitude: 20, Zaus (Hz): 0.1, Offset: 20
  • Xaiv "SineIntegerGenerator2" thiab hauv cov khoom qhov rai teeb tsa Amplitude: 10, Zaus (Hz): 0.1, Offset: 10
  • Ob npaug nias rau ntawm "DisplayOLED1" thiab hauv lub qhov rai ntsiab "Rub Bitmap" mus rau sab laug, ntawm sab laug tom qab ntawd xaiv "Kos Bitmap1" thiab hauv lub qhov rai khoom xaiv "Bitmap" teb thiab nyem rau ntawm 3 dots. In lub "Bitmap Editor" nyem rau ntawm "Load" khawm thiab thauj cov bitmap (Koj tuaj yeem rub tawm qhov kev sim bitmap txuas ntawm no)
  • Hauv "Bitmap Editor" nyem rau ntawm "Load" khawm thiab thauj cov bitmap (Koj tuaj yeem rub tawm qhov kev sim bitmap txuas ntawm no)
  • Txhawm rau ua kom lub zog Bitmap txav mus, peb yuav tsum tswj hwm X thiab Y cov khoom. Txhawm rau ua qhov ntawd peb yuav ntxiv tus pin rau lawv: Hauv Tus Kws Tshuaj Ntsuam Xyuas xaiv lub "X" cov khoom Nyem rau ntawm "Pin" khawm ntawm xub ntiag ntawm lub cuab yeej, Los ntawm Cov Npe Sau Npe Xaiv "Integer SinkPin" Ua tib yam rau "Y" "khoom Kaw" Elements "dialog Koj yuav pom tus tshiab" X ", thiab" Y "pins ntxiv rau" Elements. Draw Bitmap1 "element

Kauj Ruam 6: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
  • Txuas "SineIntegerGenerator1" tus pin [Tawm] rau "DisplayOLED1"> "Kos Bitmap1" tus pin [X]
  • Txuas "SineIntegerGenerator2" tus pin [Tawm] rau "DisplayOLED1"> "Kos Bitmap1" tus pin [Clock]
  • Txuas "SineIntegerGenerator2" tus pin [Tawm] rau "DisplayOLED1"> "Kos Bitmap1" tus pin [Y]
  • Txuas "DisplayOLED1" tus pin [Pib dua] rau Arduino tus pin [9]
  • Txuas "DisplayOLED1" tus pin [Cov Lus Qhia Cov Ntaub Ntawv] rau Arduino tus lej digital [9]
  • Txuas "DisplayOLED1" tus pin [Tawm SPI] rau Arduino tus pin [SPI Hauv]
  • Txuas "DisplayOLED1" tus pin [Chip Xaiv] rau Arduino tus lej digital [7]

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 zaub koj yuav pom Bitmap txav mus ib puag ncig OLED zaub raws li pom hauv Video.

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: