Cov txheej txheem:

Yuav Ua Li Cas Tswj Lub Suab Neeg Hlau: 3 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Tswj Lub Suab Neeg Hlau: 3 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Tswj Lub Suab Neeg Hlau: 3 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Tswj Lub Suab Neeg Hlau: 3 Kauj Ruam (nrog Duab)
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Image
Image
Sau tag nrho Tshooj thiab Cov Cuab Yeej
Sau tag nrho Tshooj thiab Cov Cuab Yeej

Koj Puas Puas Xav Ua Haujlwm Txhua Yam ntawm Koj Lub Suab?

Tom qab ntawd koj nyob ntawm qhov chaw raug

koj tuaj yeem tswj hwm txhua yam los ntawm kev siv arduino, koj tsuas yog yuav tsum txuas cov khoom ntawd

thiab yuav tsum tshaj tawm hauv qhov program.

Kuv tau ua lub suab yooj yim tswj cov neeg hlau tab sis koj tuaj yeem txuas txhua yam rau bot, koj kuj tseem tuaj yeem ua qhov haujlwm hauv tsev tsis siv neeg tsuas yog siv lub rooj sib tham sib txuas

thiab hloov qee yam hauv txoj haujlwm (Kuv txhais tau tias koj yuav tsum tshaj tawm ntau yam hauv qhov kev zov me nyuam yog tias koj xav ua kom lub tsev nyob zoo)

Kauj Ruam 1: Sau tag nrho Tshooj thiab Cov Cuab Yeej

Sau tag nrho Tshooj thiab Cov Cuab Yeej
Sau tag nrho Tshooj thiab Cov Cuab Yeej
Sau tag nrho Tshooj thiab Cov Cuab Yeej
Sau tag nrho Tshooj thiab Cov Cuab Yeej

1 x Arduino Uno

1 x HC-05 bluetooth module

1 x L293D tsav tsheb

ob peb jumper xov hlau

thiab neeg hlau chasis

2 x LED

cov cuab yeej koj xav tau-

1.soldering hlau

2. tus pluaj

lossis koj tuaj yeem xaj los ntawm qhov txuas hauv qab no -

Jumper xov hlau-https://www.banggood.com/3-IN-1-120pcs-10cm-Male-…

arduino nano-https://www.banggood.com/ATmega328P-Nano-V3-Contr…

lossis koj tuaj yeem siv arduino uno-https://www.banggood.com/ATmega328P-Nano-V3-Contr…

HC-05-https://www.banggood.com/HC-06-Wireless-Bluetooth-…

soldering hlau-https://www.banggood.com/Mustool-MT223-60W-Adjusta…

Kauj Ruam 2: Kev Sib Txuas Ntawm Qhov

Kev Sib Txuas Ntawm Qhov
Kev Sib Txuas Ntawm Qhov
Kev Sib Txuas Ntawm Qhov
Kev Sib Txuas Ntawm Qhov
Kev Sib Txuas Ntawm Qhov
Kev Sib Txuas Ntawm Qhov
Kev Sib Txuas Ntawm Qhov
Kev Sib Txuas Ntawm Qhov

Txuas 4 jumper xov hlau rau HC-05 bluetooth module.

Txuas rau Tx tus pin ntawm bluetooth module rau Rx tus pin ntawm arduino

thiab Rx tus pin ntawm bluetooth module rau Tx pin ntawm arduino.

Txuas tus pin 6 thiab 7 ntawm arduino rau Sab laug lub cev (IN) tus pin ntawm L293D lub cev muaj zog tsav tsheb

thiab txuas tus pin 8 thiab 9 ntawm arduino ntawm Txoj cai lub cev muaj zog (IN) tus pin ntawm L293D lub cev muaj zog tsav tsheb.

Txuas sab laug lub cev (OUT) tus pin rau sab laug lub cev ntawm koj tus neeg hlau

thiab Txoj Cai Tsav Tsheb (Tawm) tus pin rau sab xis ntawm koj lub neeg hlau.

Txuas tus pin A0 thiab A1 rau anode ntawm ob lub LED thiab txuas cathode ntawm ob qho tib si rau Gnd tus pin ntawm arduino.

Yog tias koj xav ntxiv yam ntxiv ntawm koj tus neeg hlau, tom qab ntawd tsuas yog tshaj tawm tus pin hauv arduino code.

Kauj ruam 3: Programming Code

Programming Txoj Cai
Programming Txoj Cai
Programming Txoj Cai
Programming Txoj Cai

arduino code muab rau hauv qab no txuas -

lub suab tswj cov neeg hlau

thiab txuas rau daim ntawv thov raug siv yog-

daim ntawv thov tswj lub suab

koj tseem tuaj yeem ntxiv qee yam ntxiv ntawm koj tus neeg hlau xws li servo caj npab rau xaiv thiab tso, mp3 player rau ua suab thiab mic rau kaw suab, thiab lwm yam

Pom zoo: