Cov txheej txheem:

Visuino Tsim Kev Tshawb Fawb Kev Tshawb Fawb Siv Arduino: 8 Cov Kauj Ruam
Visuino Tsim Kev Tshawb Fawb Kev Tshawb Fawb Siv Arduino: 8 Cov Kauj Ruam

Video: Visuino Tsim Kev Tshawb Fawb Kev Tshawb Fawb Siv Arduino: 8 Cov Kauj Ruam

Video: Visuino Tsim Kev Tshawb Fawb Kev Tshawb Fawb Siv Arduino: 8 Cov Kauj Ruam
Video: 🤞8 YAM COV NEEG TXAWJ NTSE ZAM TSIS UA YOG DAB TSI?🚫 2024, Hlis ntuj nqeg
Anonim
Image
Image
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi

Hauv qhov kev qhia no peb yuav siv XYC-WB-DC Microwave Radar Motion Sensor txuas nrog Arduino UNO thiab Visuino txhawm rau txheeb xyuas ib qho kev txav chaw nyob ib puag ncig 5m suav nrog phab ntsa nyias.

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
  1. Arduino UNO (lossis lwm yam Arduino)
  2. XYC-WB-DC 5.8GHz Microwave Radar Motion Sensor
  3. Jumper xov hlau
  4. Zaub OLED (Yeem Xaiv)
  5. LED
  6. Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

LED:

  • Txuas LED Tus lej Zoo rau Arduino tus lej digital [13]
  • Txuas LED Tsis zoo tus pin rau Arduino tus lej tsis zoo [GND]

XYC-WB-DC SENSOR:

  • Txuas XYC-WB-DC tus pin [O] rau Arduino tus pin [7]
  • Txuas XYC-WB-DC tus pin [-] rau Arduino tus lej tsis zoo [GND]
  • Txuas XYC-WB-DC tus pin [+] rau Arduino tus pin zoo [3.3V]

OLED Zaub:

  • Txuas OLED tus pin [SDA] rau Arduino tus pin [SDA]
  • Txuas OLED tus pin [SCL] rau Arduino tus pin [SCL]
  • Txuas OLED tus pin [VCC] rau Arduino tus pin zoo [5v]
  • Txuas OLED tus pin [GND] rau Arduino tus lej tsis zoo [GND]

Kauj ruam 3:

Duab
Duab
Duab
Duab

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

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam

Ntxiv OLED "SSD1306/SH1106 OLED Display (I2C)" tivthaiv thiab ob npaug nias, hauv "Elements" dialog:

  1. luag "Sau Screen" keeb mus rau sab laug thiab hauv cov khoom qhov rai teeb xim "tmcBlack"
  2. luag "Text Field" keeb kwm mus rau sab laug thiab hauv cov khoom qhov rai teeb tsa qhov loj me: "1", ntawv: "Tshawb nrhiav pom"

Ntxiv "Ncua Sijhawm" tivthaiv thiab hauv cov khoom qhov rai teeb tsa lub sijhawm: "2000000"

Kauj Ruam 6: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
  1. Txuas Arduino digital out pin [7] rau Arduino Digital pin [13]
  2. Txuas Arduino digital out pin [7] rau "DisplayOled1" tivthaiv> Kos Text1 tus pin [Moos]
  3. Txuas Arduino digital out pin [7] rau "Delay1" tiv thaiv tus pin [Pib]
  4. Txuas "Delay1" tiv thaiv tus pin [Tawm] rau "DisplayOled1" tivthaiv> Kos Screen1 tus pin [Moos]
  5. Txuas "DisplayOLED1" tus pin [Tawm] rau Arduino I2C tus pin [Hauv]

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

Yog tias koj ua lub zog Arduino UNO tus qauv, Cov Zaub yuav pib qhia pom "Kev txav mus los" thiab LED yuav ci rau txhua qhov txav tau pom hauv lub vojvoog ntawm +-5m nyob ib ncig ntawm lub radar sensor.

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: