Cov txheej txheem:

Tsim ArduinOLED: 4 Cov Kauj Ruam
Tsim ArduinOLED: 4 Cov Kauj Ruam

Video: Tsim ArduinOLED: 4 Cov Kauj Ruam

Video: Tsim ArduinOLED: 4 Cov Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Tsim ArduinOLED
Tsim ArduinOLED

ArduinOLED yog lub platform rau cov khoom siv hluav taws xob thiab lwm yam haujlwm. Nws suav nrog lub vijtsam OLED, tus joystick, qee lub nyees khawm, lub suab nrov, thiab tus nab kuab txuas cov ntsiab lus los cuam tshuam nrog ntau lwm yam khoom siv. Mus ntsib https://johanv.xyz/ArduinOLED yog xav paub ntxiv.

Phau ntawv qhia no qhia yuav ua li cas xaj thiab sib sau ib qho ntawm cov laug cam no koj tus kheej. Txhawm rau teeb tsa software, mus ntsib

Kauj Ruam 1: Txiav txim Cov Luam Luam Circuit Board (PCBs)

Txiav txim Cov Luam Luam Circuit Board (PCBs)
Txiav txim Cov Luam Luam Circuit Board (PCBs)
Txiav txim Cov Luam Luam Circuit Board (PCBs)
Txiav txim Cov Luam Luam Circuit Board (PCBs)
Txiav txim Cov Luam Luam Circuit Board (PCBs)
Txiav txim Cov Luam Luam Circuit Board (PCBs)

Kuv tsim cov laug cam ntawm EasyEDA:

easyeda.com/jjvan/OLED_Arduino-55422f17ec8…

Pawg thawj coj hu ua "ArduinOLED v6" yog qhov kuv tau xaj. Nws muaj qee qhov yuam kev:

  • Txhua lub diodes rov qab tshwj tsis yog lub zog diode.
  • SDA thiab SCL rub tawm cov neeg tawm tsam tau cuam tshuam nrog hauv av tsis yog 5V, yog li kuv yuav tsum tau muab tshuaj txhuam 1K ohm radial lead resistors rau cov kais txuas txuas.

Kuv kho tag nrho cov teeb meem no hauv pawg thawj coj hu ua "ArduinOLED v8"

  • Tag nrho cov diodes tam sim no raug.
  • SDA thiab SCL tam sim no muaj 1K nto mount rub-up resistors.
  • Cov SPI pins muaj nyob rau ntawm cov yeeb yaj kiab ntawm sab laug.
  • NCO TSEG: Txij li cov koob tau rov kho dua, koj yuav tsum hloov kho ArduinOLED lub tsev qiv ntawv kom tuaj yeem nyeem cov nyees khawm. Xav paub ntau ntxiv txog qhov no hauv qib kawg ntawm qhov kev qhia no.

Txhawm rau xaj cov laug cam, tsim ib tus as khauj ntawm EasyEDA, ua raws qhov txuas saum toj no, thiab nyem "Qhib hauv Tus Thawj Coj" tom ntej ntawm lub rooj tsavxwm koj xav xaj. Tom qab ntawv nyem rau "Cov Khoom Tsim" (sau rau hauv cov duab saum toj no), uas yuav qhib lub tab tshiab nrog kev xaiv xaj. Hloov "PCB Quantity" mus rau 10, txij li 5 thiab 10 raug nqi ib yam, thiab nyem "Txuag rau Lub Laub".

Sau koj qhov chaw nyob kom tau txais tus nqi thauj khoom. Hauv Asmeskas, nws feem ntau yog $ 18, yog li yog tias koj xav xaj ntau hom phiaj, muab tso rau hauv tib qho kev xaj kom koj tsuas yog yuav tsum tau them nyiaj rau xa khoom ib zaug.

Tsis txhob xa daim ntawv xaj PCB tsis tau, vim tias koj tuaj yeem txo tus nqi thauj khoom los ntawm kev xaj qee yam khoom nrog PCBs.

Kauj Ruam 2: Txheeb Cov Cheeb Tsam

Txuas nrog yog daim ntawv nthuav qhia ntawm txhua qhov khoom siv thiab qhov twg kuv yuav lawv. Txhua lub Cheebtsam los ntawm "LCSC" tuaj yeem ua ke nrog EasyEDA PCB xaj. Thaum lub sijhawm tshuaj xyuas, hauv qab kev xaiv xa khoom, xaiv "Kuv xav ua ke PCB xaj kom xa nkoj ua ke." Tom qab ntawv, tom qab koj xa daim ntawv xaj rau LCSC, rov qab thiab xa daim ntawv xaj rau cov laug cam los ntawm EasyEDA.

Kauj Ruam 3: Sib Sau Ua Ke

Qee cov ntawv sau thaum siv cov khoom siv rau PCBs:

  • Nco ntsoov kaw lub pins ntawm Arduino Pro Mini uas tawm sab nraum qab ntawm lub rooj tsavxwm txij li lawv yuav tsoo lub 9V lub roj teeb tuav.
  • Kuj kaw lub diodes, cov nyees khawm, thiab lub suab nrov uas nyob hauv qab 9V lub roj teeb tuav
  • Tuav lub roj teeb nrog zaum kawg.
  • Thaum siv lub joystick, koj yuav tsum tshem lub kaum sab xis thiab hloov nws nrog ib lub taub hau ncaj lossis qee cov pins uas tshuav los ntawm diodes.
  • Kuv siv 1x4 tus poj niam lub taub hau thaum txuas lub vijtsam OLED yog li kuv tuaj yeem tshem nws yog tias kuv xav tau. Koj kuj tseem tuaj yeem siv lub vijtsam ncaj qha mus rau ntawm lub rooj tsavxwm.

Kauj ruam 4: Programming ArduinOLED

Txhawm rau program ArduinOLED, ua raws cov lus qhia no:

www.instructables.com/id/ArduinOLED/

Yog tias koj xaj "ArudinOLED v8" uas tau sau nrog "v2.0" nyob tom qab (tus lej nyob tom qab sawv cev rau "software version" rau kev sib xws hauv tsev qiv ntawv), koj yuav tsum hloov ob peb kab hauv ArduinOLED lub tsev qiv ntawv.

Qhib cov ntaub ntawv ntawm:

[sketchbook folder] /ArduinOLED/ArduinOLED.cpp

LOS YOG

[sketchbook folder] /ArduinOLED-master/ArduinOLED.cpp

Nrhiav cov kab no nyob ze rau saum:

Cov zis col0 (HIGH);

Cov zis col1 (HIGH); Cov zis col2 (HIGH);

Thiab hloov lawv mus rau qhov no:

Cov zis col0 (HIGH);

Cov zis col1 (HIGH); Cov zis col2 (HIGH); Thawj Hloov D10D9 D11D6 D12D

Qhov no yuav hloov pauv qhov pins uas siv rau lub khawm matrix kom pom qhov hloov pauv ntawm "ArduinOLED v8" board. Nws kuj tseem ua rau SPI cov pins muaj nyob rau ntawm tus nab kuab txuas txuas ntawm sab laug.

Qhia rau kuv paub yog tias koj muaj lus nug lossis xav paub meej txog ib qho ntawm cov kauj ruam no. Hmoov zoo!

Pom zoo: