Cov txheej txheem:
- Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Kauj Ruam 2: Pib Visuino, thiab Xaiv Arduino UNO Board Type
- Kauj Ruam 3: Hauv Visuino Ntxiv Cheebtsam
- Kauj Ruam 4: Hauv Visuino Teeb Cov Khoom
- Kauj Ruam 5: Hauv Visuino Connect Components
- Kauj Ruam 6: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
- Kauj ruam 7: Ua si
Video: Otto DIY Neeg Hlau Taug Kev - Yooj Yim & Yooj Yim Ua Tutorial: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
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
- 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.
- Visuino program: Rub tawm Visuino
Kauj Ruam 2: 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
Ntxiv Cheebtsam:
- Ntxiv 2X "Analoge Value" tivthaiv
- Ntxiv 2X "Faib Analog Los Ntawm Tus Nqi" tivthaiv
- Ntxiv 2X "Sine Analog Generator" tivthaiv
- Ntxiv 2X "Servo" tivthaiv
Kauj Ruam 4: Hauv Visuino Teeb Cov Khoom
- Xaiv "AnalogValue1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau 20
- Xaiv "AnalogValue2" tivthaiv thiab hauv cov khoom windowset "Tus nqi" txog 20
- Xaiv "DivideByValue1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau 180
- Xaiv "DivideByValue2" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau 180
- Xaiv "SineAnalogGenerator1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Phase" rau 0.65 thiab "Zaus" rau 1 thiab "Offset" txog 0.5
- Xaiv "SineAnalogGenerator2" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Phase" rau 0.5 thiab "Zaus" rau 1 thiab "Offset" txog 0.5
- 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
- Xaiv "Servo2" thiab teeb lub npe rau "FR1" << Qhov no txhais tau tias yog Txoj Cai Ncaj Ncees
- Xaiv "Servo3" thiab teeb lub npe rau "LL1" << Qhov no txhais tau tias txhais ceg sab laug
- Xaiv "Servo4" thiab teeb lub npe rau "FL1" << Qhov no txhais tau tias txhais taw sab laug
Kauj Ruam 5: Hauv Visuino Connect Components
- Txuas "AnalogValue1" tiv thaiv tus pin [Tawm] rau "DivideByValue1" tiv thaiv tus pin [Hauv]
- Txuas "AnalogValue2" tiv thaiv tus pin [Tawm] rau "DivideByValue2" tiv thaiv tus pin [Hauv]
- Txuas "DivideByValue1" tiv thaiv tus pin [Tawm] rau "SineAnalogGenerator1" tus pin [Amplitude]
- Txuas "DivideByValue2" tiv thaiv tus pin [Tawm] rau "SineAnalogGenerator2" tus pin [Amplitude]
- Txuas "SineAnalogGenerator1" tus pin [Tawm] rau "LR1" tivthaiv tus pin [Hauv] thiab "LL1" tivthaiv tus pin [Hauv]
- Txuas "SineAnalogGenerator2" tus pin [Tawm] rau "FR1" tiv thaiv tus pin [Hauv] thiab "FL1" tiv thaiv tus pin [Hauv]
- Txuas "LR1" tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [3]
- Txuas "FR1" tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [5]
- Txuas "LL1" tiv thaiv tus pin [Tawm] rau Arduino Digital tus pin [2]
- 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
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:
Cov Ntxuam Taug Kev Taug Kev: 5 Cov Kauj Ruam
Cov Ntxuam Taug Kev Taug Kev: Singapore yog lub teb chaws ntub thiab kom peb tus kheej txias peb siv cov kiv cua lossis cua txias. Txawm li cas los xij, peb tsis siv lub zog muaj txiaj ntsig tshaj plaws teeb tsa qee zaum peb teeb tsa hom txias dhau lossis teeb lub kiv cua kom siab ces npaj mus hnav lub tsho uas tsis yog
Phau Ntawv Qhia Taug Kev Txhim Kho Kev Mobility ntawm Cov Neeg Tsis Pom Kev: 6 Kauj Ruam
Phau Ntawv Qhia Taug Kev Txhim Kho Kev Mobility ntawm Cov Neeg Tsis Pom Kev: Lub hom phiaj ntawm kev qhia yog los tsim phau ntawv qhia kev taug kev uas tuaj yeem siv tau los ntawm cov neeg xiam oob khab, tshwj xeeb yog cov neeg tsis pom kev. Cov lus qhia npaj siab yuav tshuaj xyuas seb phau ntawv qhia kev taug kev tuaj yeem siv tau zoo li cas, yog li tsim qauv xav tau
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Ntsuas Neeg Hlau / 3 Log Neeg Hlau / STEM Neeg Hlau: 8 Kauj Ruam
Ntsuas Cov Neeg Hlau / 3 Log Neeg Hlau / STEM Neeg Hlau: Peb tau tsim ua ke sib npaug thiab 3 lub log neeg hlau rau kev kawm siv hauv tsev kawm ntawv thiab tom qab kawm ntawv cov haujlwm. Tus neeg hlau yog ua raws Arduino Uno, tus tiv thaiv kev tiv thaiv (txhua qhov kev tsim kho cov ntsiab lus muab), Li -Ion roj teeb pob (txhua qhov tsim tawm
Neeg Taug Kev Neeg Hlau: 7 Kauj Ruam
Neeg Taug Kev Neeg Hlau: Kuv tau ua dab tsi? ● Tus bot uas tuaj yeem raug cob qhia kom taug kev (txav mus tom ntej) ntawm qhov chaw sib txawv. Tus bot piav qhia txog tus tsiaj yooj yim nrog 4 'hauv caug-qis' ob txhais ceg uas tawm tsam kom txav mus rau tom ntej. Nws paub tias nws tuaj yeem taw txhua ceg ntawm 3 txoj hauv kev nkaus xwb. Tam sim no