Cov txheej txheem:

[DIY] Kab laug sab Neeg Hlau - PART II - Kev Tswj Chaw Taws Teeb: 5 Kauj Ruam
[DIY] Kab laug sab Neeg Hlau - PART II - Kev Tswj Chaw Taws Teeb: 5 Kauj Ruam

Video: [DIY] Kab laug sab Neeg Hlau - PART II - Kev Tswj Chaw Taws Teeb: 5 Kauj Ruam

Video: [DIY] Kab laug sab Neeg Hlau - PART II - Kev Tswj Chaw Taws Teeb: 5 Kauj Ruam
Video: Tik Tok || Tseem Nco Koj Thiab Kuv P15 2024, Kaum ib hlis
Anonim
[DIY] Kab laug sab Neeg Hlau - PART II - Kev Tswj Chaw Taws Teeb
[DIY] Kab laug sab Neeg Hlau - PART II - Kev Tswj Chaw Taws Teeb
[DIY] Kab laug sab Neeg Hlau - PART II - Kev Tswj Chaw Taws Teeb
[DIY] Kab laug sab Neeg Hlau - PART II - Kev Tswj Chaw Taws Teeb

Yog tias koj pom kuv tus qauv nthuav, koj tuaj yeem ua pub dawb:

Muaj ib feem 2 ntawm kuv qhov Spider robot project - yuav ua li cas tswj chaw taws teeb los ntawm bluetooth.

Nov yog ntu 1-https://www.instructables.com/id/DIY-Spider-RobotQu… yog tias koj txaus siab rau tus neeg hlau no.

Nws yog txoj hauv kev yooj yim los xa cov lus txib rau tus neeg hlau kab laug sab no los ntawm kev sib txuas lus.

Kauj Ruam 1: Xyuas kom tseeb tias Bluetooth Module Tau Zoo Txuas mus rau Mainboard

Xyuas kom tseeb tias Bluetooth Module tau txuas tau zoo rau Mainboard
Xyuas kom tseeb tias Bluetooth Module tau txuas tau zoo rau Mainboard
Xyuas kom tseeb tias Bluetooth Module tau txuas tau zoo rau ntawm Mainboard
Xyuas kom tseeb tias Bluetooth Module tau txuas tau zoo rau ntawm Mainboard
Xyuas kom tseeb tias Bluetooth Module tau txuas tau zoo rau ntawm Mainboard
Xyuas kom tseeb tias Bluetooth Module tau txuas tau zoo rau ntawm Mainboard

Xa mus rau kauj ruam 2 ntawm kuv qhov Kab laug sab txoj haujlwm phiaj xwm, thov xyuas kom HC-06 tus qauv txuas nrog lub hauv paus loj.

www.instructables.com/id/DIY-Spider-RobotQu…

LED ntawm HC-06 yuav ua rau lub teeb ci thaum lub zog qhib, nws tseem tos kev txuas.

HC-06 yog qhov nrov bluetooth module rau arduino.

Kauj Ruam 2: Tshaj Tawm Txoj Cai rau Spider Robot

Tshaj Tawm Txoj Cai rau Spider Robot
Tshaj Tawm Txoj Cai rau Spider Robot

1. nruab "Arduino-serialcommand-master.zip" lub tsev qiv ntawv, xa mus rau ntawm no kom paub meej txheej txheem

2. rov tsim kho "spider_open_v3.ino" thiab xa mus rau Kab laug sab Neeg Hlau

Nco tseg:

Thov nco ntsoov teeb tsa koj li HC-06, ntawm no yog tus nqi pib:

9600 baud tus nqi, N, 8, 1. Tus lej 1234

**************

Yog tias koj xav hloov tus nqi baud, xa mus rau daim ntawv txuas "DatenblattHC-05_BT-Modul.pdf" kom ntxaws.

***************

Kuv tau hloov pauv tus nqi baud rau 57600, koj yuav tsum hloov tus lej mus rau 9600 yog tias koj siv lub chaw teeb tsa ua ntej.

void teeb tsa () {

//Serial.begin(57600);

Serial.begin (9600); <=== siv qhov chaw teeb tsa ua ntej

Kauj Ruam 3: Txuas Spider Robot Nrog PC/Macbook

Txuas Spider Robot Nrog PC/Macbook
Txuas Spider Robot Nrog PC/Macbook
Txuas Spider Robot Nrog PC/Macbook
Txuas Spider Robot Nrog PC/Macbook
Txuas Spider Robot Nrog PC/Macbook
Txuas Spider Robot Nrog PC/Macbook

1. Ua cov txheej txheem ua ntej txuas rau Kab laug sab Neeg Hlau nrog PC/Macbook/Xov Tooj. Cov lej cim 1234

2. Tua Arduino IDE cov cuab yeej, thiab teeb tsa qhov chaw nres nkoj rau HC-06 ntaus ntawv hauv Cov cuab yeej ntawv qhia zaub mov

3. nyem lub cim ntawm Serial Monitor

4. thiab, txheeb xyuas qhov teeb tsa ntawm chaw nres nkoj txuas

tom qab ntawd peb tuaj yeem tawm tswv yim hais kom tsav Spider Robot txav mus.

Piv txwv li, "w 0 1" txhais tau tias neeg hlau sawv, thiab "w 1 5" tab tom tsav neeg hlau mus tom ntej 5 kauj ruam.

Nov yog cov lus txib teeb tsa.

// hais kom ua 0-6, // w 0 1: sawv ntsug

// w 0 0: sit

// w 1 x: rau pem hauv ntej x kauj ruam

// w 2 x: rov qab x kauj ruam

// w 3 x: txoj cai tig x kauj ruam

// w 4 x: sab laug tig x kauj ruam

// w 5 x: tes tuav x zaug

// w 6 x: tes yoj x zaug

Kauj Ruam 4: Txuas Tus Kab laug sab Neeg Hlau Nrog Android Xov Tooj

Txuas Spider Robot Nrog Android Xov Tooj
Txuas Spider Robot Nrog Android Xov Tooj
Txuas Spider Robot Nrog Android Xov Tooj
Txuas Spider Robot Nrog Android Xov Tooj
Txuas Spider Robot Nrog Android Xov Tooj
Txuas Spider Robot Nrog Android Xov Tooj

Lwm txoj hauv kev yog txuas nrog lub xov tooj Android, nws muaj kev lom zem ntau dua li PC/Mac.

Ib qho App zoo yuav qhia rau koj - Bluetooth SPP cov cuab yeej pro, koj tuaj yeem nruab nws los ntawm Google Ua Si.

"Hom keyboard" yog siv tau yooj yim rau menyuam yaus.

Thiab "CMD kab hom" yog siv rau kev debug lossis kev txhim kho.

Kauj Ruam 5: Tsim Kev Tswj Chaw Taws Teeb Tiag?

Tsim Kev Tswj Chaw Taws Teeb Tiag?
Tsim Kev Tswj Chaw Taws Teeb Tiag?

Kuv tseem ua haujlwm ntawm txoj haujlwm no thiab yuav tso nws rau yav tom ntej.

Nov yog tsab ntawv hauv kuv qhov blog rau siv.

regishsu.blogspot.tw/2015/09/robot-quadrupe…

Pom zoo: