Cov txheej txheem:

Raspberry Pi - Minikame: 10 Kauj Ruam
Raspberry Pi - Minikame: 10 Kauj Ruam

Video: Raspberry Pi - Minikame: 10 Kauj Ruam

Video: Raspberry Pi - Minikame: 10 Kauj Ruam
Video: 10 самых АТМОСФЕРНЫХ мест Дагестана. БОЛЬШОЙ ВЫПУСК #Дагестан #ПутешествиеПоДагестану 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi - Minikame
Raspberry Pi - Minikame
Raspberry Pi - Minikame
Raspberry Pi - Minikame
Raspberry Pi - Minikame
Raspberry Pi - Minikame
Raspberry Pi - Minikame
Raspberry Pi - Minikame

Ib qho Quadruped yooj yim tswj los ntawm koj lub xov tooj (IOS thiab Android). Ua haujlwm ntawm Raspberry Pi thiab Android.

Yam Yuav Tsum Tau Ua:

  1. Xov tooj
  2. Raspberry Pi
  3. Arduino Nano nrog Shield
  4. 3D Luam qhov

Ua tiav Txoj Cai:

Txhua cov ntaub ntawv stl:

Kauj Ruam 1: Luam Ntawv 3D

Luam tawm txhua ntu hauv qab no:

  • 1 x body_base.stl
  • 1 x body_top.stl
  • 2 x ceg
  • 2x hwb
  • 1 x body_shafts.stl

Koj kuj tseem tuaj yeem pom tag nrho cov ntaub ntawv ntawm Nplooj Dab Neeg

Kauj ruam 2: Software

Software
Software
Software
Software
Software
Software
Software
Software

Nruab qhov software hauv qab no ntawm koj Pi:

  1. Pib los ntawm kev teeb tsa Debian ntawm Pi
  2. Download tau Raspbian.
  3. Unzip cov ntaub ntawv
  4. Sau daim duab duab rau koj daim npav microSD
  5. Muab daim npav microSD tso rau hauv koj Pi thiab khau raj
  6. Qhib chromium browser ntawm koj Pi
  7. Mus rau qhov txuas hauv qab no: Arduino
  8. Rub tawm thiab teeb tsa software rau Linux ARM

Kauj Ruam 3: Ua Ntej Ua Ntej Ua Ntej Software thiab Kho Khoom Siv

Pre-Assembly Software thiab Hardware Check
Pre-Assembly Software thiab Hardware Check

Txheeb Xyuas Kev Sib Txuas Lus (yeem)

1. Tshaj tawm "PiArduinoCommunicationTest.ino" uas yog hauv "RaspberryPi-Minikame/Pre-Assembly Checks/Serial Communication Check/" rau koj Arduino Board.

Qhib lub davhlau ya nyob twg tshiab ntawm koj Raspberry Pi thiab ua raws li hauv qab no:

sudo apt-tau hloov tshiab

sudo apt-tau hloov tshiab

git clone

cd RaspberryPi-Minikame/Pre Assembly Checks/Serial Communication Check/

sudo nab hab sej pi_duino.py

Qhib Serial Monitor ntawm Arduino IDE thiab kos rau "nyob zoo" thiab "nyob zoo" uas tau luam tawm

2. Txheeb xyuas tus neeg rau zaub mov (xaiv tau)

Nyob rau tib lub davhlau ya nyob twg raws li ua ntej ua raws li hauv qab no:

cd ua..

cd Server Txheeb xyuas sudo python weblamp.py

Tam sim no, Yog tias koj ntsaws qhov URL ntawm qhov browser, koj yuav tsum pom nplooj weblamp tswj. Koj qhov URL yuav yog IP chaw nyob ntawm koj tus raspberry pi. Piv txwv: 192.168.0.36

Homing tag nrho Servos (YUAV TSUM ua) Tus lej koj cov servos thiab xa cov cai hauv qab no rau Arduino rau koj lub tsev. Nco ntsoov: Txhua qhov kev pabcuam tau teeb tsa rau lwm qhov chaw nyob hauv tsev. Yog li txhua tus muaj qhov siv sib txawv thiab tsis tuaj yeem sib xyaw ua ke tom qab. Txuas mus rau HomingServos.ino Code

Kauj Ruam 4: Kev teeb tsa Servos ntawm Lub Hauv Paus

Kauj Ruam 5: Sib dhos ntawm Ob txhais ceg

Kauj Ruam 6: Koom nrog ceg thiab lub hauv paus

Kauj Ruam 7: Txuas kab

Txuas Raspberry Pi rau Arduino siv USB cable

Txuas rau Servos siv cov lej hauv qab no:

FL_HIP = (4);

FL_FOOT = (5);

FR_HIP = (6);

FR_FOOT = (7);

BL_HIP = (8);

BL_FOOT = (9);

BR_HIP = (10);

BR_FOOT = (11);

Kauj ruam 8: Server

Ua cov hauv qab no hauv koj lub davhlau ya nyob twg kom tau txais koj lub server thiab ua haujlwm. Txog tam sim no, koj yuav tsum tau ua cov ntaub ntawv server sej txhua lub sijhawm koj pi reboots. V2 ntawm RaspberryPi-Minikame yuav tsum tshem qhov ntawd

cd RaspberryPi-Minikame

cd Neeg rau zaub mov sudo python quad.py

Kauj Ruam 9: Arduino Code

Tshaj tawm cov cai hauv qab no rau koj Arduino thiab nco ntsoov qhib Serial Monitor los siv koj li Quadruped.

Nrhiav nws ntawm no: Arduino

Kauj ruam 10: Raspi Quadruped App

Koj tuaj yeem hloov kho lub app rau koj tus kheej siv cov ntaub ntawv hauv App Folder lossis siv lub neej ntawd muab apk. Xwb, koj tseem tuaj yeem siv cov ntaub ntawv rau IOS app, clone nws hauv Xcode thiab khiav thiab teeb tsa nws hauv koj lub xov tooj

Pom zoo: