Cov txheej txheem:

Lub Suab Tswj Cov Ntsej Muag Ntse: 3 Cov Kauj Ruam (nrog Duab)
Lub Suab Tswj Cov Ntsej Muag Ntse: 3 Cov Kauj Ruam (nrog Duab)

Video: Lub Suab Tswj Cov Ntsej Muag Ntse: 3 Cov Kauj Ruam (nrog Duab)

Video: Lub Suab Tswj Cov Ntsej Muag Ntse: 3 Cov Kauj Ruam (nrog Duab)
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Lub Suab Tswj Cov Ntsej Muag Ntsej Muag
Lub Suab Tswj Cov Ntsej Muag Ntsej Muag

Puas yog koj yog tus neeg uas tsis zoo nrog kev tswj tus yuam sij thiab ib txwm yuav tsum sim txhua tus yuam sij rau txhua lwm qhov xauv?

Zoo tsis txhob txhawj, tsuas yog lob me ntsis kev txhawb siab thiab koj cov cuab yeej tsim los hloov kho koj tus kheej lub suab tswj hwm tus tuav lub ntsej muag ntse. Vim tias tsis muaj teeb meem me me lossis loj uas tsis tuaj yeem daws tau thiab tsis muaj tus tsim khoom uas tsis tuaj yeem daws nws.

Txhua yam koj yuav tsum ua yog, tsuas yog nug koj lub smartphone txog lub xauv koj xav qhib. Koj lub xov tooj yuav sib txuas lus nrog tus tuav lub ntse thiab LED sib xws yuav teeb tawm los qhia txog tus yuam sij tseeb uas yog rau qhov xauv tshwj xeeb.

Tus tuav tus yuam sij ntse no tseem tuaj yeem siv hauv tsev txhab nyiaj, tsev kho mob, tsev qiv ntawv, chaw ua haujlwm tswj hwm thiab lwm yam.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

1. Arduino Uno/Nano2. USB 2.0 Cable Hom A/B (rau UNO) thiab Cable/USB 2.0 A rau USB 2.0 Mini B (rau nano) 3. HC05 bluetooth module4. LEDs (3) 5. 3 resistors ntawm tus nqi 100 ohms6. 9v roj teeb thiab nws txuas 7. Breadboard/Lub Hom Phiaj Zoo Xoom PCB Luam Luam Circuit Board8. Jumper xov hlau

Sib nrug los ntawm tag nrho cov no, koj tseem yuav xav tau cov hlau txuas, cov hlau txuas thiab cov kua nplaum.

Qhov ntawd zoo nkauj txhua yam.

Kauj Ruam 2: Kev Sib Txuas Kho Vajtse

Kho vajtse sib txuas
Kho vajtse sib txuas
Kho vajtse sib txuas
Kho vajtse sib txuas
Kho vajtse sib txuas
Kho vajtse sib txuas

Kuv pib los ntawm kev tsim lub hauv paus/qhov (socket) rau Arduino Uno ntawm xoom board raws li pom hauv thawj daim duab kom peb tuaj yeem tshem tau yooj yim lossis txuas lub rooj tsavxwm raws li peb xav tau. Tom qab ntawd kuv txuas HC05 bluetooth module rau arduino.

1. Txuas Rx tus pin ntawm bluetooth module rau Tx pin ntawm arduino2. Txuas Tx tus pin ntawm bluetooth module rau Rx tus pin ntawm arduino3. Txuas Vcc ntawm tus qauv rau +5v ntawm board4. Thaum kawg txuas GND ntawm tus qauv rau GND OF Uno board

Cov kauj ruam tom ntej yog ua kom LED sib txuas. Ntev dua ntawm LED yog lub davhlau ya nyob twg zoo thiab lwm qhov yog lub davhlau ya nyob twg tsis zoo. Solder +ve davhlau ya nyob twg ntawm LED mus rau ib sab ntawm tus tiv thaiv thiab txuas lwm sab rau digital pin 11 ntawm arduino. Ib yam li txuas lub dav hlau zoo ntawm lwm ob lub LEDs rau cov neeg tawm tsam thiab lwm sab ntawm cov tiv thaiv rau tus pin 12 thiab 13 feem. Txuas qhov tsis zoo ntawm txhua lub LEDs rau GND tus pin.

Qhov ntawd yog nws! Peb tau ua tiav nrog kho vajtse nws.!

Kauj ruam 3: Upload Code

Rub tawm Txoj Cai
Rub tawm Txoj Cai

Rub tawm lub app "Arduino Bluetooth Controller"

Los ntawm cov khoom siv xaiv HC05. Txhawm rau txuas koj lub xov tooj rau bluetooth module thawj zaug, koj yuav tsum nkag mus rau 0000 lossis 1234 ua tus lej cim.

Kauj ruam kawg yog txhawm rau muab cov cai muab rau ntawm arduino thiab peb ua haujlwm tiav.

Txaus siab rau….!

Pom zoo: