I-One-stop Electronic Manufacturing Services, ikusiza ukuthi uzuze kalula imikhiqizo yakho ye-elekthronikhi evela ku-PCB ne-PCBA

I-HC-05 HC-06 I-Bluetooth kuya kumojuli ye-Serial Adapter Group CSR Master-Slave 51 MCU entsha yoqobo

Incazelo emfushane:

Isethi yemiyalo ye-AT

Imojula yokuxhumana ye-Bluetooth eshumekiwe ye-HC-05 (ngemuva kwalokhu ebizwa ngokuthi imojuli) inezindlela ezimbili zokusebenza: umsebenzi wokuphendula umyalo

Imodi kanye nemodi yokuxhumeka okuzenzakalelayo, kumojula yemodi yokuxhuma okuzenzakalelayo ingahlukaniswa ngo-Master (Master), Isigqila (Isigqila)

Kanye neLoopback (Loopback) izindima zemisebenzi emithathu. Uma imojuli ikumodi yokuxhuma okuzenzakalelayo, izosethwa ngokuzenzakalelayo ngokuya ngokusetha kwangaphambili

Imodi yokuxhumana yokudlulisa idatha; Uma imojuli ikumodi yokuphendula yomyalo, yonke imiyalo elandelayo ye-AT ingenziwa

Thumela imiyalo ehlukahlukene ye-AT kumojuli, setha imingcele yokulawula yemojuli noma imiyalo yokulawula yokukhipha. Izikhonkwane zangaphandle ngemojula yokulawula

(PIO11) ileveli yokufaka, engathola ukuguqulwa okuguquguqukayo kwesimo sokusebenza semojuli.


Imininingwane Yomkhiqizo

Omaka bomkhiqizo

Incazelo yephinikhodi esetshenziswe kumojuli ye-serial:
1. I-PIO8 ixhunywe ku-LED ukukhombisa isimo sokusebenza semojuli. Ngemuva kokuthi imojuli ivuliwe, isikhawu sokucwayiza sihlukile ezifundeni ezahlukene.
2. I-PIO9 ixhuma ku-LED, okubonisa ukuthi imojuli ixhunywe ngempumelelo, futhi i-LED izohlala ikhanya ngemva kokuba imbobo ye-Bluetooth ye-serial ifaniswe futhi ixhunywe ngempumelelo.
3, unyawo lokushintsha isimo semojuli ye-PIO11, izinga eliphezulu -> Isimo sokusebenza sempendulo ye-AT, izinga eliphansi noma elimisiwe -> Umsebenzi we-Bluetooth
Yenza isimo.
4. Kukhona isifunda sokusetha kabusha kumojula, futhi ukusetha kabusha kuqedwa ngemva kokunika amandla kabusha.
Izinyathelo zokusetha imojuli eyinhloko:
1, i-PIO11 isethwe phezulu.
2. Faka amandla kumojula bese ufaka isimo sokuphendula somyalo we-AT.
3. I-Hyperterminal noma elinye ithuluzi le-serial port, setha izinga le-baud 38400, i-data bit 8, i-stop bit 1, ayikho isheke bit,
Akukho ukulawula ukugeleza.
4, imbobo yomkhiqizo ukuthumela uhlamvu oluthi “AT+ROLE=1\r\n”, ubuyisele ngempumelelo okuthi “KULUNGILE\r\n”, lapho \r\n kokuphakelayo komugqa wokubuyisela.
I-5, i-PIO isethelwe phansi, ivule amandla futhi, imojula iyimojula eyinhloko, sesha ngokuzenzakalelayo imodyuli yesigqila, sungula uxhumano.

4


  • Okwedlule:
  • Olandelayo:

  • Bhala umyalezo wakho lapha futhi usithumelele wona