Cov txheej txheem:

Yuav Ua Li Cas Siv Stepper Lub Cev Ua Li Qub Encoder thiab OLED Zaub rau Cov Kauj Ruam: 6 Cov Kauj Ruam
Yuav Ua Li Cas Siv Stepper Lub Cev Ua Li Qub Encoder thiab OLED Zaub rau Cov Kauj Ruam: 6 Cov Kauj Ruam

Video: Yuav Ua Li Cas Siv Stepper Lub Cev Ua Li Qub Encoder thiab OLED Zaub rau Cov Kauj Ruam: 6 Cov Kauj Ruam

Video: Yuav Ua Li Cas Siv Stepper Lub Cev Ua Li Qub Encoder thiab OLED Zaub rau Cov Kauj Ruam: 6 Cov Kauj Ruam
Video: QHIA QHOV TSEEB - KUB VAJ LOOG TSUA NEW MUSIC VIDEO 2022 2024, Hlis ntuj nqeg
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas taug qab cov kauj ruam lub cev muaj zog ntawm OLED Zaub. Saib daim vis dis aus.

Credit rau Thawj qhov kev qhia mus rau tus neeg siv youtube "sky4fly".

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
  • Arduino UNO (lossis lwm yam Arduino)
  • LED
  • LM358 dual ua haujlwm amplifier
  • 4X 4.7K ohm resistor
  • 2 X 120K ohm resistor
  • 300 ohm tiv thaiv
  • Bipolar Stepper lub cev muaj zog (4 xov hlau)
  • Jumper xov hlau
  • OLED Zaub
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

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 & Txuas Cheeb Tsam

Hauv Visuino ADD & Txuas Cov Khoom Siv
Hauv Visuino ADD & Txuas Cov Khoom Siv
Hauv Visuino ADD & Txuas Cov Khoom Siv
Hauv Visuino ADD & Txuas Cov Khoom Siv
Hauv Visuino ADD & Txuas Cov Khoom Siv
Hauv Visuino ADD & Txuas Cov Khoom Siv
  • Ntxiv "OLED zaub I2C" Ob npaug nias rau ntawm DisplayOLED1 tivthaiv -Hauv lub qhov rai qhib nthuav "Ntawv" thiab luag "Text Field" mus rau sab laug -Select "Text Field1" ntawm sab laug thiab hauv cov khoom qhov rai teeb tsa me me rau: 2
  • Ntxiv "Counter" tivthaiv thiab hauv cov khoom qhov rai teeb tsa Min> Tus nqi rau 0
  • Ntxiv 2X "Txheeb Ntug Ntug" tivthaiv
  • Txuas Arduino Digital [7] Tawm mus rau "DetectEdge1" tus pin [Hauv]
  • Txuas Arduino Digital [8] Tawm mus rau "DetectEdge2" tus pin [Hauv]
  • Txuas "DetectEdge1" tus pin [Tawm] thiab "DetectEdge2" tus pin [Tawm] rau "Counter1" tus pin [Hauv]
  • Txuas "Counter1" pin [Tawm] rau "DisplayOLED1"> Text Field1 tus pin [Hauv]
  • Txuas "DisplayOLED1" tus pin [Tawm] rau Arduino I2C tus pin [Hauv]

Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE

Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)

Kauj ruam 6: Ua si

Yog tias koj ua lub zog Arduino UNO tus qauv LED yuav ci, thiab yog tias koj hloov lub tshuab tsav lub zog txoj haujlwm tus lej ntawm cov theem yuav pom ntawm OLED zaub.

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: