Cov txheej txheem:

Arduino Bluetooth Tswj LED: 3 Kauj Ruam
Arduino Bluetooth Tswj LED: 3 Kauj Ruam

Video: Arduino Bluetooth Tswj LED: 3 Kauj Ruam

Video: Arduino Bluetooth Tswj LED: 3 Kauj Ruam
Video: Cc Change #technology #mobilerepair #device #soldering #desoldering 2024, Lub Xya hli ntuj
Anonim
Arduino Bluetooth Tswj LED
Arduino Bluetooth Tswj LED

Cov lus qhia no qhia koj yuav ua li cas tswj hwm LED siv Bluetooth los ntawm daim ntawv thov ntawm lub cuab yeej Android. Cov ntaub ntawv xav tau: Arduino Uno Board, LED, Android device, Arduino Bluetooth application, Arduino Bluetooth module.

Kauj Ruam 1: Txuas LED rau Arduino thiab Bluetooth

Txuas LED rau Arduino thiab Bluetooth
Txuas LED rau Arduino thiab Bluetooth

Ua ntej tshaj, teeb tsa lub rooj sib tham nrog LED uas koj xav tswj. Txuas RX (Pin 0) ntawm Arduino rau TX ntawm Bluetooth module. Tom qab ntawd, TX (Pin 1) ntawm Arduino rau RX ntawm Bluetooth module. Tom qab ntawd 5V rau VCC los ntawm Arduino mus rau Bluetooth module. Thaum kawg, GND rau GND ntawm Arduino thiab Bluetooth module. Tom qab ntawd, txuas qhov tsis zoo ntawm LED mus rau GND ntawm Arduino thiab sab zoo rau tus pin 13 nrog tus tiv thaiv (220Ω - 1KΩ).

Kauj ruam 2: Rub tawm Bluetooth Daim Ntawv Thov thiab teeb tsa nws

Rub tawm Bluetooth Daim Ntawv Thov thiab Teeb Nws
Rub tawm Bluetooth Daim Ntawv Thov thiab Teeb Nws
Rub tawm Bluetooth Daim Ntawv Thov thiab Teeb Nws
Rub tawm Bluetooth Daim Ntawv Thov thiab Teeb Nws

Tom ntej no, rub tawm "Arduino Bluetooth Controller" daim ntawv thov tawm ntawm Google Play store ntawm Android ntaus ntawv. Tom qab kev teeb tsa lub app no, qhib nws thiab ua raws txhua cov lus qhia hauv app. Tom qab ntawd Bluetooth tau teeb tsa thiab koj tsuas yog xav tau txuas rau Bluetooth module (HC-06) los ntawm kev nkag tus password 1234 lossis 0000 thaum txuas.

Pom zoo: