Cov txheej txheem:

VISUINO Rolling Dice Siv 0.96 Ntiag 4 Pin OLED Module: 7 Kauj Ruam
VISUINO Rolling Dice Siv 0.96 Ntiag 4 Pin OLED Module: 7 Kauj Ruam

Video: VISUINO Rolling Dice Siv 0.96 Ntiag 4 Pin OLED Module: 7 Kauj Ruam

Video: VISUINO Rolling Dice Siv 0.96 Ntiag 4 Pin OLED Module: 7 Kauj Ruam
Video: VISUINO Rolling Dice using 0.96 inch 4 pin OLED Module 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav siv OLED Lcd thiab Visuino los ua Rolling Dice thaum peb thawb lub pob ntawm peb lub khob cij.

Saib daim vis dis aus.

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

Rau qhov kev qhia no koj yuav xav tau:

  • Arduino ib
  • Breadboard (los yog daim thaiv thaiv daim phiaj)
  • OLED Lcd
  • Jumper xov hlau
  • Liab LED (lossis lwm yam xim)
  • Khawm
  • Rub-up resistor (50k ohm)
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit

Cov kev sib txuas yog yooj yim zoo nkauj, saib cov duab saum toj no nrog cov phiaj xwm hluav taws xob.

  • Txuas cov ntawv txuas rau tus pin zoo rau Arduino 5V tus pin thiab txuas lub khob cij tsis zoo tus pin rau Arduino GND tus pin.
  • Txuas tus pin zoo ntawm LED mus rau Arduino tus pin 13 thiab lwm qhov rau GND tus pin ntawm lub khob cij.
  • Txuas tus resistor tus pin rau breadboard tus pin zoo thiab lwm tus resistor tus pin rau khawm tus pin. Tam sim no txuas lwm tus khawm khawm rau Arduino A0 tus pin.
  • Txuas OLED lcd tus lej zoo rau tus pin tus pin zoo thiab OLED lcd tsis zoo (gnd) tus pin rau breadboard tsis zoo tus pin.
  • Txuas OLED lcd SCL tus pin rau Arduino SCL tus pin
  • Txuas OLED lcd SDA tus pin rau Arduino SDA tus pin

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 Cov Lus Qhia no teeb tsa Arduino IDE rau program ESP 8266!

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 lub rooj sib tham tshwm, xaiv "Arduino Uno" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino: Ntxiv thiab Txuas Pulse Generator, Logic Gate thiab Random Generator Component

Hauv Visuino: Ntxiv thiab Txuas Pulse Generator, Logic Gate thiab Random Generator Component
Hauv Visuino: Ntxiv thiab Txuas Pulse Generator, Logic Gate thiab Random Generator Component
Hauv Visuino: Ntxiv thiab Txuas Pulse Generator, Logic Gate thiab Random Generator Component
Hauv Visuino: Ntxiv thiab Txuas Pulse Generator, Logic Gate thiab Random Generator Component
  • Ntxiv Pulse Generator, teeb zaus rau 100 (nws yuav pib hloov mus rau 1E2) saib pic2
  • Ntxiv Logic rooj vag THIAB
  • Ntxiv Random Integer Generator, teeb tsa Max: 6 thiab Min: 1 thiab Noob: 9999999

Kauj Ruam 5: Hauv Visuino: Ntxiv OLED Lcd Cheebtsam

Hauv Visuino: Ntxiv OLED Lcd Cheebtsam
Hauv Visuino: Ntxiv OLED Lcd Cheebtsam
Hauv Visuino: Ntxiv OLED Lcd Cheebtsam
Hauv Visuino: Ntxiv OLED Lcd Cheebtsam
Hauv Visuino: Ntxiv OLED Lcd Cheebtsam
Hauv Visuino: Ntxiv OLED Lcd Cheebtsam
Hauv Visuino: Ntxiv OLED Lcd Cheebtsam
Hauv Visuino: Ntxiv OLED Lcd Cheebtsam
  • Ntxiv OLED Lcd tivthaiv (daim duab 1)
  • Ob npaug nias rau OLED Lcd tivthaiv, lub qhov rooj sib tham yuav qhib
  • Ntawm sab xis xaiv "ntawv teb" thiab rub nws mus rau sab laug (daim duab 2)
  • hauv qhov rai "khoom" teeb tsa loj: 9, dav: 6, x: 30 (duab 3)
  • Hauv lub qhov rai sib tham ntawm sab xis xaiv "Sau qhov screen" thiab rub nws mus rau sab laug (daim duab 2)
  • hauv qhov rai "khoom" teeb xim: tmcBlack (daim duab 4)

Kauj Ruam 6: Hauv Visuino: Txuas Cov Khoom Siv

Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
  • Txuas Pulse Generator tus pin Tawm mus rau lub logic qhov rooj tivthaiv tus pin [1]
  • Txuas Logic Gate pin [0] rau Arduino Analog pin [A0]
  • Txuas Logic Rooj vag Pin Tawm rau Arduino tus pin Digital [13]
  • Txuas Logic Gate pin Tawm rau Random Integer Generator tus pin moos
  • Random Integer Generator tus pin tawm rau Zaub OLED - Cov Ntawv Text Field1 Pin [Hauv]
  • Txuas Zaub OLED Pin [A Hauv] rau Arduino Pin Serial [Tawm]
  • Txuas Zaub OLED Pin [Tawm] rau Arduino Pin I2C [Hauv]
  • Txuas Cov Zaub OLED - Cov Ntawv Sau Screen1 Pin [Clock] rau Arduino Pin [A0]
  • Txuas Arduino Serial Pin [Hauv] rau Arduino Pin [A0]

Kauj ruam 7: Ua si

Yog tias koj siv zog Arduino Uno module, Oled Lcd yuav pib qhia cov lej tsis raug thaum koj nias lub pob.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm Rolling Dice nrog Visuino. Also txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no. Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino:

Pom zoo: