Cov txheej txheem:

PiTanq - Neeg Hlau -tank Nrog Raspberry Pi thiab Python Kawm AI: 10 Cov Kauj Ruam
PiTanq - Neeg Hlau -tank Nrog Raspberry Pi thiab Python Kawm AI: 10 Cov Kauj Ruam

Video: PiTanq - Neeg Hlau -tank Nrog Raspberry Pi thiab Python Kawm AI: 10 Cov Kauj Ruam

Video: PiTanq - Neeg Hlau -tank Nrog Raspberry Pi thiab Python Kawm AI: 10 Cov Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
PiTanq - Robot -tank Nrog Raspberry Pi thiab Python los kawm AI
PiTanq - Robot -tank Nrog Raspberry Pi thiab Python los kawm AI

Pitanq yog neeg hlau-tank nrog lub koob yees duab siv los ntawm Raspberry Pi. Nws lub hom phiaj yog los pab kawm paub kev txawj ntse ntawm kev tsav tsheb tus kheej. AI ntawm lub tank tau thim rov qab los ntawm OpenCV thiab Tensoflow ua tshwj xeeb rau Raspbian Jessie.

Raws li lub zog ruaj khov txhuas chassis PiTanq yog qhov zoo rau kev siv sab nraum zoov.

Muaj qhov qhib qhov nab hab sej web-service nthuav tawm REST interface los tswj cov neeg hlau.

Ib daim ntawv thov Android kuj tau muab.

Muaj qee yam ntxiv ntxiv: yias-thiab-qaij lub koob yees duab sawv ntsug (tseem tswj hwm los ntawm xov tooj) thiab ultrasonic sensor.

Tsis lees paub. Qhov no tsis yog phau ntawv qhia tag nrho, tsuas yog tus qauv. Daim ntawv qhia tag nrho yog nyob ntawm GitHub.

Kauj Ruam 1: Cov Npe Khoom

Raspberry Pi

Lub Koob Yees Duab

Hwj chim Converter

Tsav Tsheb

PWM Controller

2x18650 Roj teeb

Chassis

Yias-thiab-qaij sawv

Tsis lees paub. Daim ntawv teev npe tsis tiav. Muaj ntau yam khoom me me, zoo li xov hlau, ntsia hlau, daim hlau acrylic. Koj tuaj yeem tau txais cov ntaub ntawv ntau ntxiv lossis yuav tag nrho pob ntawm PiTanq lub vev xaib

Kauj Ruam 2: Tsim Tank Chassis

Tsim Tank Chassis
Tsim Tank Chassis

Kauj Ruam 3: Txuas Cov Hluav Taws Xob rau Phaj

Txuas Cov Hluav Taws Xob rau Phaj
Txuas Cov Hluav Taws Xob rau Phaj

Kauj Ruam 4: Txuas Lub Koob Yees Duab thiab Lub Koob Yees Duab nrug deb rau Rooj Tswjhwm Saib

Txuas lub Koob Yees Duab thiab Kev Ntsuas nrug mus rau Pawg Thawj Coj
Txuas lub Koob Yees Duab thiab Kev Ntsuas nrug mus rau Pawg Thawj Coj

Kauj Ruam 5: Txuas lub Rooj Tswjhwm Saib Lub Koob Yees Duab kom sawv thiab sawv ntsug rau Chassis

Txuas lub Rooj Tswjhwm Saib Lub Koob Yees Duab kom sawv ntsug thiab sawv ntsug rau Chassis
Txuas lub Rooj Tswjhwm Saib Lub Koob Yees Duab kom sawv ntsug thiab sawv ntsug rau Chassis

Kauj Ruam 6: Txuas Lub Roj Teeb rau Chassis

Txuas lub roj teeb rau Chassis
Txuas lub roj teeb rau Chassis

Kauj Ruam 7: Txuas Phaj Hluav Taws Xob rau Chassis thiab Hlau Txhua Yam

Txuas Cov Hluav Taws Xob Phaj rau Chassis thiab Hlau Txhua Yam
Txuas Cov Hluav Taws Xob Phaj rau Chassis thiab Hlau Txhua Yam

Kauj ruam 8: Teeb Software

  1. Nruab Raspbian Jessie
  2. Nruab OpenCV
  3. Nruab Tensorflow
  4. Nruab MJPG-Streamer
  5. Tau txais cov kev pabcuam tswj hwm los ntawm GitHub

Cov cai no tau sau rau ntawm nab thiab muab REST interface los tswj lub tank.

Raws li piv txwv ntawm kev siv AI muaj:

- nrhiav miv nrog Haar cascades los ntawm OpenCV

- ntsuas qhov ntsuas nrog OpenCV-DNN

- duab cais nrog Tensorflow

REST interface yog:

  • Tau txais /ping
  • Tau txais /version
  • GET /npe
  • GET /nrug
  • POST /fwd /rau
  • POST /fwd /tawm
  • POST /rov qab /rau
  • POST /rov qab /tawm
  • POST /laug /rau
  • POST /laug /tawm
  • POST /txoj cai /on
  • POST /txoj cai /tawm
  • POST /duab /ua
  • Tau txais /duab /: phid
  • Tau txais /duab /npe
  • POST /cam /nce
  • POST /cam /nqis
  • POST /cam /txoj cai
  • POST /cam /sab laug
  • POST/ntes/haar/: phid
  • POST/ntes/dnn/: phid
  • POST/cais/tf/: phid

Kauj Ruam 9: Teeb Kev Sib Txuas

Muaj txoj hauv kev tsis muaj lub taub hau teeb tsa Wi-nkaus txuas rau Raspberry Pi.

Ntxig daim npav microSD nrog Raspbian rau hauv lub computer.

Tsim cov ntawv xa ntawv wpa_supplicant.conf nrog cov ntsiab lus:

ctrl_interface = DIR =/var/run/wpa_supplicant GROUP = netdevupdate_config = 1 lub teb chaws = Asmeskas

network = {ssid = "koj-wifi-network" psk = "koj-wifi-password" key_mgmt = WPA-PSK}

Tsis tas li nws yuav raug nquahu kom tsim cov ntaub ntawv tsis muaj npe hu ua "ssh". Nws yuav tso cai rau nkag mus rau RPI (tsis txhob hnov qab hloov tus password tsis raug).

Kauj ruam 10: Tau Android App

Tau Android App
Tau Android App
Tau Android App
Tau Android App

Nruab Android app los ntawm Google Ua Si

Nrog lub app nws muaj peev xwm tsav lub tank, txav lub koob yees duab, saib cov vis dis aus, thaij duab, ntes cov khoom ntawm daim duab.

Pom zoo: