Cov txheej txheem:

Otto DIY Neeg Hlau Taug Kev - Yooj Yim & Yooj Yim Ua Tutorial: 7 Kauj Ruam
Otto DIY Neeg Hlau Taug Kev - Yooj Yim & Yooj Yim Ua Tutorial: 7 Kauj Ruam

Video: Otto DIY Neeg Hlau Taug Kev - Yooj Yim & Yooj Yim Ua Tutorial: 7 Kauj Ruam

Video: Otto DIY Neeg Hlau Taug Kev - Yooj Yim & Yooj Yim Ua Tutorial: 7 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Image
Image

Hauv qhov kev qhia no peb yuav kawm paub yuav ua li cas yooj yim program Otto DIY Robot kom taug kev.

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
  1. Otto Robot koj tuaj yeem yuav nws ntawm no lossis saib cov lus qhia yuav tsim nws li cas hauv ob peb kauj ruam ntawm no.
  2. Visuino program: Rub tawm Visuino

Kauj Ruam 2: 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 Nano! 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 3: 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
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam

Ntxiv Cheebtsam:

  1. Ntxiv 2X "Analoge Value" tivthaiv
  2. Ntxiv 2X "Faib Analog Los Ntawm Tus Nqi" tivthaiv
  3. Ntxiv 2X "Sine Analog Generator" tivthaiv
  4. Ntxiv 2X "Servo" tivthaiv

Kauj Ruam 4: Hauv Visuino Teeb Cov Khoom

Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
Hauv Visuino Teeb Cov Txheej Txheem
  1. Xaiv "AnalogValue1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau 20
  2. Xaiv "AnalogValue2" tivthaiv thiab hauv cov khoom windowset "Tus nqi" txog 20
  3. Xaiv "DivideByValue1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau 180
  4. Xaiv "DivideByValue2" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau 180
  5. Xaiv "SineAnalogGenerator1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Phase" rau 0.65 thiab "Zaus" rau 1 thiab "Offset" txog 0.5
  6. Xaiv "SineAnalogGenerator2" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Phase" rau 0.5 thiab "Zaus" rau 1 thiab "Offset" txog 0.5
  7. Xaiv "Servo1" thiab teeb lub npe rau "LR1" << peb teeb tsa qhov no kom nkag siab yooj yim. Qhov no txhais tau tias Leg Right
  8. Xaiv "Servo2" thiab teeb lub npe rau "FR1" << Qhov no txhais tau tias yog Txoj Cai Ncaj Ncees
  9. Xaiv "Servo3" thiab teeb lub npe rau "LL1" << Qhov no txhais tau tias txhais ceg sab laug
  10. Xaiv "Servo4" thiab teeb lub npe rau "FL1" << Qhov no txhais tau tias txhais taw sab laug

Kauj Ruam 5: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
  1. Txuas "AnalogValue1" tiv thaiv tus pin [Tawm] rau "DivideByValue1" tiv thaiv tus pin [Hauv]
  2. Txuas "AnalogValue2" tiv thaiv tus pin [Tawm] rau "DivideByValue2" tiv thaiv tus pin [Hauv]
  3. Txuas "DivideByValue1" tiv thaiv tus pin [Tawm] rau "SineAnalogGenerator1" tus pin [Amplitude]
  4. Txuas "DivideByValue2" tiv thaiv tus pin [Tawm] rau "SineAnalogGenerator2" tus pin [Amplitude]
  5. Txuas "SineAnalogGenerator1" tus pin [Tawm] rau "LR1" tivthaiv tus pin [Hauv] thiab "LL1" tivthaiv tus pin [Hauv]
  6. Txuas "SineAnalogGenerator2" tus pin [Tawm] rau "FR1" tiv thaiv tus pin [Hauv] thiab "FL1" tiv thaiv tus pin [Hauv]
  7. Txuas "LR1" tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [3]
  8. Txuas "FR1" tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [5]
  9. Txuas "LL1" tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [2]
  10. Txuas "FL1" tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [4]

Nco tseg: Thov txheeb xyuas tias Arduino pins [2, 3, 4, 5] phim qhov sib txuas ntawm koj li Servo lub cev tiv thaiv kab mob rau (ceg thiab taw) thiab hloov lawv yog tias tsim nyog.

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
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 Cov Ntawv Qhia "Cov Cuab Yeej" thiab xaiv Pawg "Arduino Nano" (Daim duab 2)
  • Nyem rau ntawm Cov Ntawv Qhia "Cov Cuab Yeej" thiab xaiv Chaw Nres Nkoj
  • Nyem rau ntawm Cov Ntawv Qhia "Cov Cuab Yeej" thiab xaiv Chaw Nres Nkoj
  • nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim Duab 3) Nco tseg: Yog tias koj pom qee qhov teeb meem xa cov cai koj tuaj yeem nyem rau ntawm Cov Ntawv Qhia Khoom Siv> Txheej Txheem:..> ATMega328P (Old Bootloader)

Kauj ruam 7: Ua si

Yog tias koj siv lub zog Otto Robot, nws yuav pib taug kev.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm Otto 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: