Cov txheej txheem:

Kuv yuav program kuv Arduino Bluetooth li cas?
Kuv yuav program kuv Arduino Bluetooth li cas?

Video: Kuv yuav program kuv Arduino Bluetooth li cas?

Video: Kuv yuav program kuv Arduino Bluetooth li cas?
Video: How I Made this Electric Car that can go Anywhere 2024, Tej zaum
Anonim

Arduino Programming Nrog Bluetooth

  1. Kauj ruam 1: Programming HC 05 Bluetooth Module. Cov ntaub ntawv.
  2. Kauj ruam 2: Txuas HC 05 Nrog Arduino . Tam sim no txuas Arduino nrog HC05.
  3. Kauj ruam 3: Txuas HC 05 Nrog Laptop. Tam sim no nrhiav koj Bluetooth ntaus ntawv nrog koj lub laptop thiab ua ke nws.
  4. Kauj ruam 4: Serial Monitor.

Kuj paub yog, Kuv yuav txuas kuv Arduino rau Bluetooth li cas?

Peb xav tau ib daim duab yooj yim uas yuav ua raws li hauv qab no:

  1. Tsim kom muaj kev sib txuas ntawm Arduino thiab Bluetooth module.
  2. Mloog rau cov tswv yim ntawm qhov chaw nres nkoj serial thiab ua nws.
  3. Tig lub LED ntawm tus pin 13 rau, yog tias nws nyeem 1 (ib qho) raws li serialinput.
  4. Tig lub LED ntawm tus pin 13 tawm, yog tias nws nyeem 0 (zero) raws li serialinput.

Kuj Paub, Bluetooth module Arduino yog dab tsi? Lub Android app yog tsim los xa cov ntaub ntawv serial mus rau Arduino Bluetooth module thaum ib lub pob nias ntawm lub app. Cov Arduino Bluetooth module ntawm lwm kawg tau txais cov ntaub ntawv thiab xa mus rau lub Arduino los ntawm TX tus pin Bluetooth module (txuas rau RX tus pin ntawm Arduino ).

Xav txog qhov no, puas yog Arduino muaj Bluetooth?

Txuas nrog lwm cov khoom siv los ntawm Bluetooth tshuab ua tsis noj ntau thiab nws yog qhov yooj yim tiag tiag. TheBlueSMiRF los ntawm Sparkfun (Amazon) yog ib qho ntawm Arduino sib haum Bluetooth modules uas muaj ib transceiveron nws. Qhov no txhais tau tias cov Bluetooth module tuaj yeem xa andreceive cov ntaub ntawv txog li 100 meters (328ft).

Kuv yuav txuas kuv lub xov tooj rau Arduino li cas?

Tswj Arduino ntawm HM-10 BLE module, los ntawm mobileapp ntawm koj lub smartphone

  1. Kauj ruam 1: Yam koj yuav xav tau. Koj yuav xav tau:
  2. Kauj Ruam 2: Txuas lub voj voog. Tsuas yog txuas raws li hauv qab no:
  3. Kauj ruam 3: Upload Arduino Sketch.
  4. Kauj ruam 4: Download tau Evothings Studio.
  5. Kauj ruam 5: Tsim lub Mobile App.

Pom zoo: