Cov txheej txheem:

Txuas Maduino UNO rau Servo Motor: 7 Cov Kauj Ruam
Txuas Maduino UNO rau Servo Motor: 7 Cov Kauj Ruam

Video: Txuas Maduino UNO rau Servo Motor: 7 Cov Kauj Ruam

Video: Txuas Maduino UNO rau Servo Motor: 7 Cov Kauj Ruam
Video: Наука о данных с Python! Анализ типов файлов от Avro до Stata 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav siv Arduino UNO, servo motor thiab Visuino tig lub servo motor. 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

Txhua tus qauv yog los ntawm txiag txiag. Lawv muaj cov qauv zoo tshaj plaws uas yog Lub Teeb-xyoo ua ntej kev sib tw, nrog rau tus nqi pheej yig tshaj plaws.

Arduino UAS

Jumper xov hlau

Servo tsav

Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit

Txuas Maduino UNO tus pin (gnd) rau Servo lub cev xim av xaim

Txuas Maduino UNO tus pin (5V) rau Servo lub cev liab hlau

Txuas Maduino UNO tus pin Digital (2) rau Servo lub cev liab daj

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 Cov Lus 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: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  • Ntxiv SineAnalogGenerator tivthaiv thiab teeb tsa zaus rau 0.5
  • Ntxiv Servo tivthaiv

Kauj Ruam 5: Hauv Visuino: Txuas Cov Khoom Siv

Hauv Visuino: Txuas Cov Khoom Siv
Hauv Visuino: Txuas Cov Khoom Siv

Txuas Arduino digital tawm tus pin [2] rau Servo1 tus pin [Tawm]

Txuas SineAnalogGenerator1 tus pin [tawm] rau Servo1 tus pin [Hauv]

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
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 7: Ua si

Yog tias koj siv zog Maduino UNO module, servo motor yuav pib tig sab xis thiab sab laug.

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: