Cov txheej txheem:

Wireless ceeb toom Board (Bluetooth): 5 Cov kauj ruam (nrog duab)
Wireless ceeb toom Board (Bluetooth): 5 Cov kauj ruam (nrog duab)

Video: Wireless ceeb toom Board (Bluetooth): 5 Cov kauj ruam (nrog duab)

Video: Wireless ceeb toom Board (Bluetooth): 5 Cov kauj ruam (nrog duab)
Video: Night 2024, Hlis ntuj nqeg
Anonim
Wireless ceeb toom Board (Bluetooth)
Wireless ceeb toom Board (Bluetooth)

Hauv lub ntiaj teb niaj hnub no uas txhua yam yog digitalized, vim li cas tsis pom zoo Pawg Thawj Coj tau txais qhov tshiab.

Yog li, cia ua Bluetooth tswj daim ntawv ceeb toom uas yooj yim heev.

Qhov teeb tsa no tuaj yeem siv rau hauv qhov chaw ntawm daim ntawv ceeb toom zoo li qub hauv tsev kawm qib siab/tsev haujlwm, Tsev Kho Mob/chaw kho mob kom qhia tus lej tus neeg mob tus lej thiab koj yuav siv nws li cas (TSIS TXHOB DISTURB qhia !!!)

NB: Thov nyeem tag nrho tsab xov xwm ua ntej nws yuav siv 2-3 feeb los nyeem nws. Txwv tsis pub kuv yuav tsis muaj lub luag haujlwm rau kev puas tsuaj ntawm cov twj

Kauj Ruam 1: Cov Cheeb Tsam Xav Tau

Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau

Feem ntau yuav tsum muaj 3 ntu:

  • Arduino UNO/nano/mini
  • Bluetooth module (HC-05)
  • LCD 16 x 2

Cov khoom siv muaj peev xwm kwv yees tau ntau yam (uas yuav tswj hwm qhov sib txawv ntawm LCD), dhia/xov hlau.

Tsuas yog cov no yog yam peb yuav xav tau rau txoj haujlwm no.

Kauj Ruam 2: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court
Daim duab Circuit Court

Saum toj no daim duab qhia kab lus hais txhua yam rau lub hom phiaj ntawm txoj haujlwm no.

Cov lej LCD tau txuas nrog Arduino tus pin 12, 11, 5, 4, 3, 2 raws li tau qhia hauv daim duab qhia chaw tam sim no peb muaj ntau dua li ib nrab txoj kev cim. Txuas lub potentiometer mus rau tus pin qhia ntawm LCD los tswj qhov sib piv.

Tam sim no los txog bluetooth module thiab uas yuav muaj nws Rx, Tx pin txuas nrog Tx, Rx tus pin ntawm Arduino feem. Roj teeb lossis lub zog hloov pauv ntawm 5-6V xav tau.

Yog li, cov ntaub ntawv xa mus rau bluetooth module siv lub xov tooj lossis ib qho khoom siv bluetooth tau siv los ntawm bluetooth lub davhlau ya nyob twg apps tau nqa mus rau Arduino thiab rov qab tshwm rau ntawm LCD.

Kauj Ruam 3: Txoj Cai (Arduino)

Txoj Cai (Arduino)
Txoj Cai (Arduino)

Arduino IDE muaj cov duab LCD tsuas yog kev hloov kho yog ntxiv cov bluetooth serial input nrog qee qhov yog- yog lwm nqe lus thiab thaum lub voj.

Yog li cov cai tau sau nyob rau hauv ib yam uas koj tuaj yeem pom tsuas yog dhau los ntawm txoj cai ib zaug.

  • # - pom cov zaub LCD
  • * - teeb tus cursor rau kab thib ob xws li (0, 1)
  • % - scroll sab laug zaub
  • ! - nres qhov scrolling

Tam sim no tso kev hloov pauv tshiab rau hauv qhov no tuaj yeem yooj yim ua cov zaub scroll txoj cai, tej zaum yuav ua rau cov ntawv thaws hauv lub vijtsam kom mus rau sab laug thiab sab xis nrog thaum lub voj thiab ncua kev ua haujlwm.

CODE:

Kauj Ruam 4: Kev Tswj Xyuas Mobile App

Tswj Mobile App
Tswj Mobile App

Kuv tau siv app los ntawm google play store hu ua "Custom bluetooth app".

  1. Mus rau SETUP
  2. NQE MENU DOTS
  3. Xaiv XAIV NTAWV TSO CAI
  4. SELECT SERIAL OUT
  5. Txuag los ntawm MENU
  6. Txuas mus rau HC-05 BLUETOOTH MODULE

TXHUA qhov lom zem thaum khaws tag nrho cov teeb tsa sab nraum lub qhov rooj thiab tsuas yog hloov cov ntaub ntawv uas tshwm ntawm qhov screen siv mobile app.

Qhov ntawd tuaj yeem siv rau hauv qhov kev xav sib txawv.

Kauj ruam 5: Ntawm no yog…

Tsuas yog hloov kho tshiab kom nws muaj txiaj ntsig ntau nrog lub tswv yim.

Txaus siab rau laziness !!

Yog tias koj nyiam qhov kev qhia qhia paub lwm IoT, bluetooth lub tsev siv tshuab, lwm cov lus qhia los ntawm kuv.

Pom zoo: