Cov txheej txheem:

Visuino Yuav Siv Li Cas Inductive Proximity Sensor: 7 Kauj Ruam
Visuino Yuav Siv Li Cas Inductive Proximity Sensor: 7 Kauj Ruam

Video: Visuino Yuav Siv Li Cas Inductive Proximity Sensor: 7 Kauj Ruam

Video: Visuino Yuav Siv Li Cas Inductive Proximity Sensor: 7 Kauj Ruam
Video: Yuav ua li cas thiaj khiav dim lub ntiajteb no 2024, Hlis ntuj nqeg
Anonim

Hauv qhov kev qhia no peb yuav siv Inductive Proximity Sensor thiab LED txuas nrog Arduino UNO thiab Visuino txhawm rau txheeb xyuas hlau sib thooj.

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
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  1. Arduino UNO (lossis lwm yam Arduino)
  2. LED
  3. Inductive Proximity Sensor Hloov
  4. Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  1. Txuas LED tsis zoo (luv) rau Arduino tus pin (GND)
  2. Txuas LED qhov zoo (ntev) rau Arduino tus pin (13)
  3. Txuas Inductive Proximity Sensor - Hlau dub rau Arduino analog pin (A0)
  4. Txuas Inductive Proximity Sensor - Xiav xaim rau Arduino tus pin (GND)
  5. Txuas Inductive Proximity Sensor - Hlau xim av rau Arduino tus pin (5V)

Kauj Ruam 3: VISUINO Tshwj Xeeb Tsab

VISUINO Tshwj Xeeb Tsab
VISUINO Tshwj Xeeb Tsab

Txhua yam koj yuav tsum tau ua yog rub thiab tso cov khoom sib txuas thiab Txuas lawv ua ke. Visuino yuav tsim txoj cai ua haujlwm rau koj yog li koj tsis tas yuav nkim sijhawm los tsim cov cai. Nws yuav ua txhua txoj haujlwm nyuaj rau koj sai thiab yooj yim! Visuino zoo tshaj plaws rau txhua txoj haujlwm, koj tuaj yeem tsim cov phiaj xwm nyuaj nyob rau lub sijhawm!

Rub tawm Qhov Tseeb Muaj Zog Visuino Software

Kauj Ruam 4: 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 5: Hauv Visuino Ntxiv Cheebtsam thiab Txuas

Hauv Visuino Ntxiv Cheebtsam thiab Txuas
Hauv Visuino Ntxiv Cheebtsam thiab Txuas
  1. Ntxiv "Digital (Boolean) Inverter (Tsis)" tivthaiv
  2. Txuas Arduino tus pin Tawm Analog [0] rau Inverter1 tiv thaiv tus pin [hauv]
  3. Txuas Inverter1 tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [13]

Kauj Ruam 6: 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 7: Ua si

Yog tias koj ua lub zog Arduino UNO module, LED yuav qhib rau thaum koj tso cov hlau nyob ze qhov sib thooj thiab tig tawm thaum koj tso cov hlau tseg.

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

Pom zoo: