Cov txheej txheem:

RIG CELL LITE INTRO: Nrog ADAFRUIT SSD1306 THIAB JOYSTICK: 3 Kauj Ruam
RIG CELL LITE INTRO: Nrog ADAFRUIT SSD1306 THIAB JOYSTICK: 3 Kauj Ruam

Video: RIG CELL LITE INTRO: Nrog ADAFRUIT SSD1306 THIAB JOYSTICK: 3 Kauj Ruam

Video: RIG CELL LITE INTRO: Nrog ADAFRUIT SSD1306 THIAB JOYSTICK: 3 Kauj Ruam
Video: Night 2024, Hlis ntuj nqeg
Anonim
Image
Image

Lub vijtsam no tswj los ntawm microcontroller SSD1306 siv I2C npav thiab tuaj yeem sib tham nrog feem ntau ntawm microcontroller muaj nyob rau niaj hnub no. tab sis rau hnub no, peb yuav sim lub vijtsam no nrog peb rockin 'RIG CELL LITE microcontroller. Koj tuaj yeem pom lub vijtsam OLED no ntawm Adafruit lossis Sparkfun piv txwv. Qee qhov nws muag online tseem pom tias pheej yig heev. Cov ntxaij vab tshaus no muaj qhov ua tau zoo tab sis me me, tsim nyog los ua lub npe lossis lub xov tooj ntawm tes. Adafruit thiab Sparkfun tau tsim cov tsev qiv ntawv uas ua rau nws yooj yim los tso saib cov ntawv, duab thiab txawm tias ua cov duab raws cov duab geometric yooj yim heev.

Qhov Yuav Tsum Tau Ua Koj yuav xav tau cov hauv qab no:

  • 1 x Breadboard
  • 1x Rig Cell Lite
  • 1 x Joystick
  • 1x Oled SSD1306
  • Cov xov hlau raws li xav tau

Kauj Ruam 1: Teem CIRCUIT (HARDWARE)

ZOO TSHAJ OLED nrog CURSOR JOYSTICK CODE
ZOO TSHAJ OLED nrog CURSOR JOYSTICK CODE

Hauv qhov kev qhia no, peb siv oled ssd1306 zaub screen nrog lub joystick. Nov yog qee qhov txuas uas koj tuaj yeem pom RIG CELL LITE

rau kev sib txuas lus ntawm RIG CELL LITE thiab oled screen, peb siv I2C tus pin los ntawm lub vijtsam rau peb RIG. SCL thiab SDA tus pin ntawm RIG nyob ntawm tus pin A5 thiab A4 feem.

tsim lub Circuit Court raws li qhia hauv daim duab saum toj no.

Kauj Ruam 2: QHOV ZOO TSHAJ OLED nrog CURSOR JOYSTICK CODE

Ua ntej peb tuaj yeem pib peb tus lej, ua ntej peb siv lub tsev qiv ntawv adafruit rau lub vijtsam oled. Yog li, rub tawm ob daim ntawv zip no thiab nruab rau ntawm peb cov software arduino IDE.

github.com/adafruit/Adafruit_SSD1306

thiab

github.com/adafruit/Adafruit-GFX-Library

tom qab kev teeb tsa tau rub tawm, rub tawm 2 cov ntaub ntawv uas kuv tau muab hauv qab no uas yog oled_display _with_cursor_joystick.ino thiab Adafruit_SSD1306.cpp, lossis koj tseem tuaj yeem rub tawm los ntawm ob daim ntawv no

tom qab koj tau teeb tsa lub tsev qiv ntawv raug cai, tam sim no koj yuav hloov Adafruit_SDD1306.cpp cov ntaub ntawv nrog tus tshiab uas kuv tau muab rau hauv cov lus qhia hauv lub vev xaib no

tom qab txhua yam zoo, xa cov cai ntawm koj li RIG: D

Kauj Ruam 3: RESULTS: D

Tom qab ua tiav upload cov oled_display _with_cursor_joystick.ino ntawm RIG CELL LITE, cov coj yuav tig rau thiab yuav muaj tus cursor muaj nyob nruab nrab ntawm lub vijtsam. nws yuav txav tom qab kev txav ntawm joystick. muaj kev lom zem!: D

Yog tias nws tsis yog, xyuas kom koj tau teeb tsa lub Circuit kom raug thiab txheeb xyuas thiab muab cov lej tso rau hauv koj lub rooj tsavxwm, lossis saib ntu kev daws teeb meem.

Pom zoo: