Cov txheej txheem:

Yuav Ua Li Cas Tswj Bluetooth (HC-05) Nrog Arduino: 5 Kauj Ruam
Yuav Ua Li Cas Tswj Bluetooth (HC-05) Nrog Arduino: 5 Kauj Ruam

Video: Yuav Ua Li Cas Tswj Bluetooth (HC-05) Nrog Arduino: 5 Kauj Ruam

Video: Yuav Ua Li Cas Tswj Bluetooth (HC-05) Nrog Arduino: 5 Kauj Ruam
Video: How I Made this Electric Car that can go Anywhere 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Tswj Bluetooth (HC-05) Nrog Arduino
Yuav Ua Li Cas Tswj Bluetooth (HC-05) Nrog Arduino

Nyob zoo kuv cov phooj ywg hauv zaj lus qhia no peb yuav kawm paub tswj lub tshuab dc nrog peb lub xov tooj smartphone lossis ntsiav tshuaj. Ua kom tiav qhov no peb yuav siv L298N lub cev muaj zog tswj thiab Bluetooth module (HC-05).

Yog li cia pib

Kauj Ruam 1: Cov Khoom/Yam Uas Koj Xav Tau

Khoom/Yam Koj Xav Tau
Khoom/Yam Koj Xav Tau

Kho vajtse

1. Bluetooth Module HC-05

2. Arduino

3. DC Tsav (6V)

4. L298n Tsav Tswj

5. Jumper xov hlau txiv neej rau txiv neej

6. Jumper xov hlau txiv neej rau poj niam

7. Cov Khoom Siv Hluav Taws Xob 9V

8. Smartphone lossis ntsiav tshuaj

Software

Arduino IDE Cov

Txuas:

1.

2.

3.

4.

5.

6.

7.

Kauj Ruam 2: Txuas Daim Duab/Kev Sib Txuas

Cov kab duab kab/Kev Sib Txuas
Cov kab duab kab/Kev Sib Txuas

Kauj ruam 3: Code

Code
Code

Txoj cai tau tsim los ua tib zoo txhawm rau nkag siab los ntawm txhua tus. Hauv daim duab kuv piav qhia qhov kuv tau sau. Yog tias koj ntsib teeb meem thov sau koj cov lus hauv qab no thiab kuv yuav teb koj sai li sai tau.

NCO TSEG

HC-05 siv kev sib txuas lus txuas. Yog li pib kev sib txuas lus txuas los ntawm kev siv lub luag haujlwm "Serial.begin ()". Teem tus nqi baud li 9600. Ua ntej rub tawm daim duab kos rau koj lub rooj tsav xwm arduino, nco ntsoov tshem tawm ntawm tus pin 0 thiab 1 ntawm arduino lub jumper xov hlau lossis lwm yam nws yuav tsis tso nws mus rau pawg thawj coj. Qhov no tshwm sim vim tias PC thiab Arduino siv tib txoj kev sib txuas lus thaum rub cov duab kos. Tom qab rub tawm daim duab, txuas cov xov hlau jumper rau koj lub rooj tsavxwm.

Kauj ruam 4: Android App

Txog qhov haujlwm no kuv siv daim ntawv thov no. Koj tuaj yeem rub nws los ntawm no

play.google.com/store/apps/details?id=brau…

Koj yuav tsum ua khub HC-05 bluetooth module nrog koj lub smartphone lossis ntsiav tshuaj thiab tom qab ntawd koj lub cuab yeej (ntsiav tshuaj lossis txawb) nrog app txhawm rau ua haujlwm. Tsis txhob txhawj nws yog ib qho yooj yim heev.

Kauj ruam 5: Yog Nws

Txoj haujlwm tiav lawm. Kuv vam tias koj nyiam nws. Yog tias koj ntsib teeb meem thov sau koj cov lus hauv qab no thiab kuv yuav teb koj sai li sai tau.

Pom zoo: