Cov txheej txheem:

YUAV UA LI CAS SIV VIBRATION SENSOR- VISUINO TUTORIAL NROG ARDUINO: 6 Kauj Ruam
YUAV UA LI CAS SIV VIBRATION SENSOR- VISUINO TUTORIAL NROG ARDUINO: 6 Kauj Ruam

Video: YUAV UA LI CAS SIV VIBRATION SENSOR- VISUINO TUTORIAL NROG ARDUINO: 6 Kauj Ruam

Video: YUAV UA LI CAS SIV VIBRATION SENSOR- VISUINO TUTORIAL NROG ARDUINO: 6 Kauj Ruam
Video: Часы G Shock до 100 долларов-15 лучших часов Casio G Shock до 100 дол... 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav siv Kev ntsuas kev co, coj, buzzer, resistor, Arduino Uno thiab Visuino kom ua lub suab nrov nrov thaum pom kev co.

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
  • Arduino UNO (tuaj yeem yog lwm yam Arduino)
  • Breadboard (los yog daim thaiv thaiv daim phiaj)
  • Liab LED (lossis lwm yam xim)
  • Rub-up resistor (50k ohm)
  • Kev co kev co
  • Buzzer
  • 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 GND los ntawm Arduino mus rau lub khob cij

  • Txuas GND rau Buzzer tus pin (-)
  • Txuas Arduino Digital tus pin (7) rau Buzzer tus pin (+)
  • Txuas Arduino Digital tus pin (13) rau LED tus pin (+)
  • Txuas LED tus pin (-) rau GND
  • Txuas Arduino tus pin (5V) kom rub tawm tus tiv thaiv
  • Txuas kev co kev co (tus pin1) kom rub tawm tus tiv thaiv
  • Txuas kev co kev co (tus pin2) rau Arduino Analog tus pin (A0)

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 tiav ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program ESP 8266! Visuino: https://www.visuino.com kuj 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: Ntxiv thiab Txuas Pulse Generator, Logic Gates, Rov Ua Haujlwm thiab LED Cheeb Tsam

Ntxiv thiab Txuas Pulse Generator, Logic Gates, Rov Ua Haujlwm thiab LED Cheeb Tsam
Ntxiv thiab Txuas Pulse Generator, Logic Gates, Rov Ua Haujlwm thiab LED Cheeb Tsam
  • Ntxiv Pulse Generator, teeb tsa zaus rau 1000 (nws yuav pib hloov mus rau 1E3)
  • Ntxiv RepeatDigital tivthaiv teeb tsa suav rau 10
  • Ntxiv Logic rooj vag THIAB tivthaiv
  • Ntxiv LED tivthaiv

Kauj Ruam 5: Hauv Visuino: Txuas Cov Khoom Siv

Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv
  • Txuas RepeatDigital1 tiv thaiv tus pin [Hauv] rau Arduino Analog Out pin [0]
  • Txuas RepeatDigital1 tiv thaiv tus pin [Tawm] rau And1 tiv thaiv tus pin [0]
  • Txuas And1 tiv thaiv tus pin [tawm] rau Arduino tus lej digital [7]
  • Txuas PulseGenerator1 tivthaiv tus pin [tawm] rau And1 tivthaiv tus pin [1]
  • Txuas Led1 tiv thaiv tus pin [Hauv] rau And1 tiv thaiv tus pin [Tawm]
  • Txuas Led1 tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [13]

Kauj ruam 6: Ua si

Yog tias koj siv zog Arduino UNO module, Buzzer yuav BEEP thiab LED yuav ntsais yog tias koj tshee lub tswb ntsuas.

Nrog koj zoo siab! Koj tau ua tiav koj Txoj Haujlwm Kev Ruaj Ntseg nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau qhov Qhia Qhia no. Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino:

Pom zoo: