Cov txheej txheem:

Ib Lub Computer Me Me thiab Pheej Yig Uas Tuaj Yeem Ua Haujlwm Qhov Twg: 5 Kauj Ruam
Ib Lub Computer Me Me thiab Pheej Yig Uas Tuaj Yeem Ua Haujlwm Qhov Twg: 5 Kauj Ruam

Video: Ib Lub Computer Me Me thiab Pheej Yig Uas Tuaj Yeem Ua Haujlwm Qhov Twg: 5 Kauj Ruam

Video: Ib Lub Computer Me Me thiab Pheej Yig Uas Tuaj Yeem Ua Haujlwm Qhov Twg: 5 Kauj Ruam
Video: 6 Nqi Lus Qhia Kev Ua neej ( leej twg mloog lub neej yuav zoo tuaj) 2024, Hlis ntuj nqeg
Anonim
Ib Lub Computer Me Me thiab Pheej Yig Uas Tuaj Yeem Ua Haujlwm Txhua Qhov Chaw
Ib Lub Computer Me Me thiab Pheej Yig Uas Tuaj Yeem Ua Haujlwm Txhua Qhov Chaw
Ib Lub Computer Me Me thiab Pheej Yig Uas Tuaj Yeem Ua Haujlwm Txhua Qhov Chaw
Ib Lub Computer Me Me thiab Pheej Yig Uas Tuaj Yeem Ua Haujlwm Txhua Qhov Chaw

Koj tuaj yeem tig CardKB rau hauv lub tshuab computer

Ua kom tiav lub tshuab computer rau CardKB siv ArduinoBaisc, CardKB, I2C OLED screen. Txij li BASIC siv ArduinoBasic (https://github.com/robinhedwards/ArduinoBASIC), nws txhawb nqa yuav luag txhua lub luag haujlwm ib txwm xws li ntab thiab hlua sib txawv, ntau qhov ntau, FOR-NEXT, GOSUB-RETURN, thiab lwm yam. Txuag thiab thauj khoom los ntawm EEPROM tau txais kev txhawb nqa. BASIC qhov kev zov me nyuam thiab kev hloov pauv siv txog 1k ntawm RAM, yog li nws yuav luag sib npaug rau thawj lub khoos phis tawj (Sinclair ZX81). Lwm 1k ntawm RAM yog siv rau cov keyboard thiab tshuaj ntsuam tsis, thiab muaj chav me me rau CPU pawg. Txij li arduino muaj 1k EEPROM, yog tias txoj haujlwm haum rau hauv ib puag ncig yooj yim, nws yuav haum rau hauv EEPROM.

Khoom siv

1) CardKB (https://en.aliexpress.com/item/32963872643.html)

2) I2C OLED (piv txwv li SSD1306 128x32 lossis 128x64)

3) mini breadboard

4) Lub thawv roj teeb

5) EEPROM (xws li 24LC256) (Xaiv)

Kauj ruam 1: Yam yuavtsum tau kawm uantej

Yam yuavtsum tau kawm uantej
Yam yuavtsum tau kawm uantej
Yam yuavtsum tau kawm uantej
Yam yuavtsum tau kawm uantej
Yam yuavtsum tau kawm uantej
Yam yuavtsum tau kawm uantej
  1. Siv CardKB Mini Keyboard. Thov xa mus rau https://en.aliexpress.com/item/32963872643.html kom paub meej.
  2. SSD1306 raws OLED screen txuas nrog I2C. 128x32 version ua haujlwm zoo-hloov qee cov ntsiab lus. ArduinoBasic siv SPI OLED, tab sis hnab tshos khoos phis tawj siv CardKB siv I2C OLED.
  3. (Tsis teb los tau) Siv EEPROM sab nraud (piv txwv li 24LC256) kom txuag tau ntau cov ntaub ntawv.

Sib dhos tau yooj yim heev. CardKB, OLED thiab EEPROM tuaj yeem txuas nrog I2C siv lub khob cij me me. Kuv muab daim duab ntawm CardKB cov ntaub ntawv xov xwm

Kauj Ruam 2: Txoj Haujlwm thiab Kev Sib Sau

Txoj Haujlwm thiab Kev Sau Ua Ke
Txoj Haujlwm thiab Kev Sau Ua Ke
Txoj Haujlwm thiab Kev Sau Ua Ke
Txoj Haujlwm thiab Kev Sau Ua Ke
Txoj Haujlwm thiab Kev Sau Ua Ke
Txoj Haujlwm thiab Kev Sau Ua Ke
  1. Rub tawm qhov program los ntawm no.
  2. Muab SSD1306ASCII tso rau hauv "\ Arduino / libraries" nplaub tshev.
  3. Adafruit NeoPixel lub tsev qiv ntawv xav tau.
  4. Xaiv "ATmega328p (3.3V, 8Mhz)" thaum suav sau. Yog tias tsis xaiv, NeoPixel LED yuav nyob twj ywm dawb.

  5. Xaiv "Export suav sau Binary" los tsim cov ntawv sau.

Kauj Ruam 3: Sau Txoj Haujlwm

Sau Txoj Haujlwm
Sau Txoj Haujlwm
Sau Txoj Haujlwm
Sau Txoj Haujlwm
Sau Txoj Haujlwm
Sau Txoj Haujlwm

Sau binary suav ua ke siv cov cuab yeej xws li avrdude lossis avrdude-GUI thiab USB ISP.

Kuv tsim cov cuab yeej uas sau rau CardKB. Koj yuav tsum siv cov jumper pins hloov cov cuab yeej.

Tsis txhob rov sau CardKB fuse me ntsis

Kauj Ruam 4: Thov Kho SSD1306ASCII_I2C.h Raws Li Hauv Qab no

Thov Kho SSD1306ASCII_I2C.h Raws Li Hauv Qab no
Thov Kho SSD1306ASCII_I2C.h Raws Li Hauv Qab no

#txhais OLED_WIDTH 128

#define OLED_HEIGHT 32 #define OLED_COLMAX 21 #define OLED_ROWMAX 4

128×64>

#txhais OLED_WIDTH 128

#define OLED_HEIGHT 64 #define OLED_COLMAX 21 #define OLED_ROWMAX 8

Kauj ruam 5: Ua tiav

muaj kev lom zem:-)

Pom zoo: