Cov txheej txheem:

Tamaguino Hloov Kho Nrog Loj OLED: 4 Kauj Ruam
Tamaguino Hloov Kho Nrog Loj OLED: 4 Kauj Ruam

Video: Tamaguino Hloov Kho Nrog Loj OLED: 4 Kauj Ruam

Video: Tamaguino Hloov Kho Nrog Loj OLED: 4 Kauj Ruam
Video: Musicians talk about Buckethead 2024, Kaum ib hlis
Anonim
Tamaguino Hloov Kho Nrog Loj OLED
Tamaguino Hloov Kho Nrog Loj OLED

Nyob zoo!

Hnub no peb yuav hloov Tamaguino nrog qhov ci tshiab loj loj 2.7 OLED zaub, ua siab zoo muab los ntawm DFRobot!

Raws li koj tau paub dhau los, Tamaguino yog ib qho ntawm kuv thawj qhov haujlwm Arduino thiab kuv thawj qhov kev ua si tsim los khiav ntawm lub microcontroller. Nws yog clone ntawm Tamagotchi tus tsiaj virtual, uas tau nrov heev hauv 90's, thiab tau txais koob meej hauv ob peb xyoos dhau los ib yam nkaus!

Thawj version ntawm Tamaguino siv paub zoo 0.96 I2C OLED uas muaj dav thiab siv los ntawm ntau cov khoom siv hluav taws xob nyiam.

Tamaguino muaj nws tus kheej lub vev xaib:

Muaj koj tuaj yeem pom cov ntaub ntawv ntxaws ntxaws thiab kos duab, qhov chaws thiab cov tsev qiv ntawv cuam tshuam nrog, 3D cov ntaub ntawv luam tawm thiab ntau ntxiv. Nws tau xa mus rau Arduboy ib yam nkaus!;)

Tam sim no koj paub keeb kwm luv luv ntawm Tamaguino, cia ua rau nws ci ntawm qhov tshiab loj OLED no!

Kauj Ruam 1: Qhov Yuav Tsum Tau

Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau

Txhawm rau tsim txoj haujlwm no ntawm daim ntawv qhia zaub mov koj yuav xav tau cov hauv qab no:

  • Arduino UNO lossis zoo sib xws
  • daim ntawv qhia zaub mov
  • 2.7 "OLED 128x64 Display Module los ntawm DFRobot
  • jumper cov xov hlau
  • 3 cov nyees khawm
  • piezo buzzer / hais lus

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv

Outermost OLED pins tau sau nrog 1 thiab 20, yog li kos ob zaug yog tias txhua qhov txuas tau muab rau tus pin kom raug

Thov ua raws phau ntawv qhia no rau kev sib txuas:

  • OLED PIN 1 (GND) -> ARDUINO GND
  • OLED PIN 2 (VCC) -> ARDUINO 5V (yuav tsum ua haujlwm ntawm 3v3 ib yam nkaus)
  • OLED PIN 4 (DC) -> ARDUINO PIN 8
  • OLED PIN 7 (SCK) -> ARDUINO PIN 13
  • OLED PIN 8 (MOSI) -> ARDUINO PIN 11
  • OLED PIN 15 (CS) -> ARDUINO PIN 10
  • OLED PIN 16 (RST) -> ARDUINO PIN 9

Khawm thiab buzzer / hais lus:

  • Khawm 1 -> ARDUINO PIN 5
  • Khawm 2 -> ARDUINO PIN 6
  • Khawm 3 -> ARDUINO PIN 7
  • BUZZER + -> ARDUINO PIN 4
  • BUZZER - -> GND

khawm thib ob pins mus rau GND

Peb tsis tas yuav siv cov tshuaj tiv thaiv rau cov nyees khawm, vim hais tias sib xws Arduino pins siv rau khawm cov tswv yim tau pib nrog sab hauv rub tawm cov neeg tawm tsam hauv cov cai.

Kauj Ruam 3: Xa Cov Cai

Xa cov Code
Xa cov Code

Cov peev txheej tuaj yeem pom ntawm no:

github.com/alojzjakob/Tamaguino

rau qhov kev tsim no koj yuav xav tau cov ntawv tshwj xeeb no:

github.com/alojzjakob/Tamaguino/tree/maste…

Nws yog qhov hloov kho ntawm thawj cov cai kom sib xws nrog lub vijtsam no.

Yog tias koj tab tom tsim Tamaguino ua ntej, thov nco ntsoov tias cov nyees khawm thiab buzzer tau teeb tsa sib txawv ntawm qhov no piv rau SSD1306 (I2C) version. Nws yuav tsum tau rov teeb tsa kom peb tuaj yeem siv SPI mob siab rau ntawm Arduino.

Koj tseem yuav xav tau lub tsev qiv ntawv no los ntawm Adafruit rau SSD1325:

github.com/adafruit/Adafruit_SSD1325_Libra…

Tam sim no koj muaj txhua yam npaj txhij, ntsaws tus lej thiab tsev qiv ntawv rau hauv Arduino IDE thiab xa mus rau lub rooj tsavxwm.

Kauj ruam 4: Txheej txheem cej luam

Hauv cov vis dis aus saum toj no koj tuaj yeem ua raws kuv ib qib zuj zus thiab tsim koj tus tsiaj Tamaguino!

Pom zoo: