Cov txheej txheem:

Visuino Yuav Ua Li Cas Siv Lub Pob Khawm Raws Li Kev Nkag Mus Los Tswj Tej Yam Zoo Li LED: 6 Kauj Ruam
Visuino Yuav Ua Li Cas Siv Lub Pob Khawm Raws Li Kev Nkag Mus Los Tswj Tej Yam Zoo Li LED: 6 Kauj Ruam

Video: Visuino Yuav Ua Li Cas Siv Lub Pob Khawm Raws Li Kev Nkag Mus Los Tswj Tej Yam Zoo Li LED: 6 Kauj Ruam

Video: Visuino Yuav Ua Li Cas Siv Lub Pob Khawm Raws Li Kev Nkag Mus Los Tswj Tej Yam Zoo Li LED: 6 Kauj Ruam
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas tig lub LED ON thiab OFF siv lub pob yooj yim thiab Visuino.

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
  1. Arduino UNO (lossis lwm yam Arduino)
  2. Jumper xov hlau
  3. Khawm
  4. LED
  5. Resistor 1k ohm (lossis qee yam zoo sib xws)
  6. Cov qhob cij
  7. Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  1. Txuas Arduino Pin 5V rau lub khob cij zoo (tus kab liab)
  2. Txuas Arduino Pin GND rau breadboard tsis zoo tus pin (kab xiav)
  3. Txuas Arduino Digital tus pin 13 rau LED tus pin zoo
  4. Txuas LED tus lej tsis zoo rau Breadboard tus lej tsis zoo (kab xiav)
  5. Txuas khawm thawj tus pin rau breadboard tus lej zoo (kab liab)
  6. Txuas khawm thib ob tus pin rau arduino digital pin 7
  7. Txuas khawm thib ob tus pin rau resistor
  8. Txuas resistor rau breadboard tsis zoo tus pin (kab xiav)

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 Ntxiv Cheebtsam thiab Txuas Lawv

Hauv Visuino Ntxiv Cheebtsam thiab Txuas Rau Lawv
Hauv Visuino Ntxiv Cheebtsam thiab Txuas Rau Lawv
  1. Ntxiv "Ntug Ntug" tivthaiv
  2. Ntxiv "(T) Flip-Flop" tivthaiv
  3. Txuas Arduino Digital Out pin [7] rau "DetectEdge1" tiv thaiv tus pin [Hauv]
  4. Txuas "DetectEdge1" tiv thaiv tus pin [Tawm] rau "TFlipFlop1" tiv thaiv tus pin [Clock]
  5. Txuas "TFlipFlop1" tiv thaiv tus pin [Tawm] rau Arduino Digital IN tus pin [13]

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 siv zog Arduino UNO module, koj yuav tuaj yeem tig lub LED ON lossis OFF los ntawm nias lub pob.

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. Koj tuaj yeem rub tawm thiab qhib nws hauv Visuino:

Pom zoo: