Cov txheej txheem:

Yooj Yim Zaus Tus Zauv Siv Arduino: 6 Kauj Ruam
Yooj Yim Zaus Tus Zauv Siv Arduino: 6 Kauj Ruam

Video: Yooj Yim Zaus Tus Zauv Siv Arduino: 6 Kauj Ruam

Video: Yooj Yim Zaus Tus Zauv Siv Arduino: 6 Kauj Ruam
Video: HMOOB TUS CWJ PWM XAV NOJ YOOJ YIM.Pi Networks 2024, Hlis ntuj nqeg
Anonim

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas Txheeb Ze Zuj Zus yooj yim siv Arduino.

Saib cov yees duab!

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
  • OLED LCD Zaub
  • Jumper xov hlau
  • Qee qhov kev tsim hluav taws xob ntau zaus, nws tuaj yeem yog lwm Arduino tab sis hauv peb qhov xwm txheej peb yuav siv tus qauv pheej yig 555.
  • Arduino Uno lossis lwm lub Rooj Tswjhwm Saib Arduino
  • Visuino software: Rub tawm ntawm no

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
  • Txuas 555 module pin [VCC] rau Arduino tus pin [5V]
  • Txuas 555 module pin [GND] rau Arduino tus pin [GND]
  • Txuas 555 module pin [OUT] rau Arduino cuam tshuam tus pin [2]
  • Txuas OLED Display pin [VCC] rau Arduino tus pin [5V]
  • Txuas OLED Display pin [GND] rau Arduino tus pin [GND]
  • Txuas OLED Display pin [SDA] rau Arduino tus pin [SDA]
  • Txuas OLED Display pin [SCL] rau Arduino tus pin [SCL]
  • Nco tseg yog tias koj yuav siv lwm qhov ntawm qhov zaus kom ntseeg tau tias koj txuas (sib qhia) GND nrog arduino GND.

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

Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Rub tawm Dawb version lossis sau npe rau Kev Sim Dawb.

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 Ntxiv, Teeb & Txuas Txuas

hauv Visuino Ntxiv, Teeb & Txuas Cov Khoom Siv
hauv Visuino Ntxiv, Teeb & Txuas Cov Khoom Siv
hauv Visuino Ntxiv, Teeb & Txuas Txuas
hauv Visuino Ntxiv, Teeb & Txuas Txuas
hauv Visuino Ntxiv, Teeb & Txuas Cov Khoom Siv
hauv Visuino Ntxiv, Teeb & Txuas Cov Khoom Siv

Ntxiv "Zaus Meter" tivthaiv

Ntxiv "OLED" zaub tivthaiv

Ob npaug nias rau ntawm "DisplayOLED1"

  • Hauv cov ntsiab lus qhov rai rub "Kos Cov Ntawv" rau sab laug
  • Hauv cov khoom qhov rai teeb tsa me me rau 2 thiab ntawv rau: Zaus
  • Hauv cov ntsiab lus qhov rai rub "Ntawv" rau sab laug
  • Hauv cov khoom vaj khoom tsev teeb tsa qhov loj me rau 2 thiab Y txog 30
  • Kaw lub Elements window
  • Txuas "DisplayOLED1" tus pin I2C Tawm rau Arduino board tus pin I2C Hauv
  • Txuas Arduino digital pin [2] rau "FrequencyMeter1" tus pin Hauv
  • Txuas "FrequencyMeter1" tus pin Tawm rau DisplayOLED1> Text Field1 tus pin moos
  • Txuas "FrequencyMeter1" tus pin tawm mus rau DisplayOLED1> Text Field1 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

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 6: Ua si

Yog tias koj ua lub zog Arduino UNO module, OLED Display yuav pib qhia qhov zaus hauv Hz uas 555 module tsim tawm.

Nrog 555 tus qauv koj tuaj yeem kho qhov zaus los ntawm kev hloov cov plaub hau.

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

Pom zoo: