Cov txheej txheem:

Yooj Yim Hauv Tsev Automation Siv Bluetooth, Android Smartphone thiab Arduino.: 8 Kauj Ruam (nrog Duab)
Yooj Yim Hauv Tsev Automation Siv Bluetooth, Android Smartphone thiab Arduino.: 8 Kauj Ruam (nrog Duab)

Video: Yooj Yim Hauv Tsev Automation Siv Bluetooth, Android Smartphone thiab Arduino.: 8 Kauj Ruam (nrog Duab)

Video: Yooj Yim Hauv Tsev Automation Siv Bluetooth, Android Smartphone thiab Arduino.: 8 Kauj Ruam (nrog Duab)
Video: How to share computer peer to peer Qhia share ຂໍ້ມູນ hauv computer 2024, Kaum ib hlis
Anonim
Yooj Yim Hauv Tsev Automation Siv Bluetooth, Android Smartphone thiab Arduino
Yooj Yim Hauv Tsev Automation Siv Bluetooth, Android Smartphone thiab Arduino
Yooj Yim Hauv Tsev Automation Siv Bluetooth, Android Smartphone thiab Arduino
Yooj Yim Hauv Tsev Automation Siv Bluetooth, Android Smartphone thiab Arduino

Nyob zoo txhua tus,

Txoj haujlwm no yog txhua yam hais txog kev tsim cov cuab yeej siv tsev yooj yim tshaj plaws uas siv arduino thiab bluetooth module. Qhov no yog qhov yooj yim heev los tsim thiab nws tuaj yeem tsim nyob hauv ob peb teev. Hauv kuv cov ntawv uas kuv tau piav qhia ntawm no, kuv tuaj yeem tswj tau txog 4 yam khoom siv hauv tsev siv kuv lub xov tooj Android. Cia peb saib cov npe khoom thiab cov cuab yeej uas koj xav tau.

Kauj Ruam 1: Cov Ntaub Ntawv thiab Cov Cuab Yeej Yuav Tsum Tau

Cov Ntaub Ntawv thiab Cov Cuab Yeej Yuav Tsum Tau
Cov Ntaub Ntawv thiab Cov Cuab Yeej Yuav Tsum Tau
  • 1. Arduino Pro Mini (Txuas mus rau lub khw)
  • 2. HC 05 Bluetooth module (Txuas mus rau lub khw)
  • 3. 5V 4 Channel Relay Module (Txuas mus rau lub khw)
  • 4. 5V fais fab mov.
  • 5. Txiv neej thiab Poj niam lub taub hau
  • 6. Perfboard (kuv pom zoo kom ua PCB, tab sis yog tias koj xav ua nws txoj hauv kev yooj yim ntawm perfboard zoo dua)

Cov Npe Ntawm Cov Cuab Yeej

  • 1. Cov khoom siv Soldering
  • 2. Phom phom
  • 3. Android Smartphone
  • 4. Ntsia Hlau
  • 5. Cov hlua hluav taws xob thiab lwm yam:

Qhov ntawd yog txhua yam peb xav tau …

Kauj ruam 2: Txoj Cai

Rub tawm Arduino IDE los ntawm no.

Txoj cai no siv softwareserial.h los teeb tsa rx thiab tx pins hauv Arduino. Cov rx thiab tx pins no txuas nrog tx thiab rx pins ntawm HC 05 Bluetooth module feem.

Lub bluetooth module tau txais cov ntaub ntawv los ntawm cov khoom siv hauv Android uas ua ke thiab ua rau muaj kev sib txuas nrog kev hwm rau cov ntaub ntawv tau txais.

Piv txwv li, hauv kuv tus lej yog tias cov ntaub ntawv tau txais yog tus cim "A", kev xa tawm 1 yuav ua rau ON thiab yog tias cov ntaub ntawv tau txais yog tus ua cim "B", kev xa tawm 1 yuav raug kaw.

Ib yam li txhua qhov kev xa tawm tuaj yeem tig ON/OFF siv cov lus txib bluetooth. Xa cov cai rau cov lus ntxaws ntxaws.

EEPROM

EEPROM yog cov ntawv luv rau Kev Siv Hluav Taws Xob Erasable Programmable Nyeem Tsuas Nco, uas tau siv ntawm no los khaws cov xwm txheej ntawm kev xa tawm (ON/OFF), yog li thaum lub zog tsis ua haujlwm thaum tus tswj rov pib dua, txhua qhov txuas uas tau khaws cia ON yuav rov qab los rau lawv txoj haujlwm ON tom qab lub zog tau los. Yog li thaum twg los xij uas qhib kev sib hloov, qhov hloov pauv tau khaws cia hauv qhov chaw nyob hauv EEPROM hloov nws tus nqi rau 1 thiab thaum twg los xij nws tau muab tshem tawm tib qhov kev hloov pauv mus rau 0. Txhua qhov kev xa tawm nws muaj nws tus kheej sib txawv uas tau muab khaws cia nws cov xwm txheej hauv EEPROM. Yog li thaum pib ntawm txoj cai thawj qhov uas peb tau ua yog pib ua ntej raws li qhov muaj txiaj ntsig khaws cia hauv EEPROM.

Yog tias koj siv Arduino Pro mini koj yuav xav tau USB rau TTL hloov pauv kom pov tseg cov cai rau hauv Arduino.

Kauj ruam 3: Android Daim Ntawv Thov

Android Daim Ntawv Thov
Android Daim Ntawv Thov
Android Daim Ntawv Thov
Android Daim Ntawv Thov

Raws li tau hais los saud, tus tswj hwm micro ua rau txhua qhov xa tawm raws li cov ntaub ntawv nws tau txais los ntawm Bluetooth Module los ntawm Android ntaus ntawv. Yog li peb xav tau daim ntawv thov Android xa cov ntaub ntawv no mus rau HC 05.

Kuv tau ua daim ntawv thov tshwj xeeb siv MIT App tus tsim khoom. Kuv tau txuas qhov 'block layout' ntawm kuv daim ntawv thov ua PDF ntawm no rau kev siv rau cov uas yuav ua lawv tus kheej app siv App Inventor.

MIT App Tus Tsim Tawm

Yog tias koj tsis xav thab thab ua lub app, koj tuaj yeem rub tawm qhov npaj siv App (Tsuas yog sib xws nrog cov cai kuv tau txuas saum toj no) los ntawm qhov txuas hauv qab no.

Kauj ruam 4: Cov lus qhia rau Android App

Cov lus qhia rau Android App
Cov lus qhia rau Android App
Cov lus qhia rau Android App
Cov lus qhia rau Android App
Cov lus qhia rau Android App
Cov lus qhia rau Android App

Koj yuav tsum ua khub HC-05 Bluetooth module rau koj lub cuab yeej Android ua ntej koj tuaj yeem siv nws hauv app.

Kauj Ruam 1: Qhib koj lub cuab yeej teeb tsa bluetooth thiab tshawb nrhiav cov cuab yeej tshiab, xyuas kom cov coj ntawm HC05 module ntsais muag tas li (Hom Pairing).

Kauj Ruam 2: Xaiv HC 05 (lossis koj yuav pom qhov chaw nyob xaus nrog "C" raws li qhia hauv daim duab.)

Kauj ruam 3: Ntaus tus PIN "1234" thiab nias OK.

Kauj Ruam 4: Qhib "Wiz Smart Home" app thiab nyem lub pob bluetooth rau saum lub vijtsam.

Kauj ruam 5: Xaiv "HC 05" los ntawm cov npe.

Kauj Ruam 6: Siv cov hloov pauv kom tig rau/OFF cov xa tawm 1, 2, 3, 4.

Kauj Ruam 7: Nyem tus Xib Hwb kom tig tag nrho cov kev xa tawm ON/OFF hauv ib zaug.

Kauj ruam 5: Circuit Court

Circuit Court
Circuit Court
  • Pin 11 ntawm Arduino rau TX Pin ntawm HC-05 Module.
  • Pin 10 ntawm Arduino rau RX Pin ntawm HC-05 Module.
  • GND ntawm HC-05 rau GND hauv Arduino.
  • Vcc ntawm HC-05 rau Vcc (5v) hauv Arduino.
  • Vcc ntawm Relay Module rau Vcc (5v) hauv Arduino.
  • GND ntawm Relay Module rau GND hauv Arduino.
  • Pin 2 ntawm Arduino rau R1 ntawm Relay Module.
  • Pin 4 ntawm Arduino rau R2 ntawm Relay Module.
  • Pin 6 ntawm Arduino rau R3 ntawm Relay Module.
  • Pin 8 ntawm Arduino rau R4 ntawm Relay Module.
  • Muab 5-v fais fab mov rau lub hwj chim ntawm Arduino.
  • Tus Pin 12 thiab 13 yog tus Pins rau Lub Hwj Chim qhia thiab Bluetooth Qhov Qhia Taw Qhia LEDs feem

Qhov ntawd yog nws rau lub cuab yeej.

Txhawm rau txhawm rau tswj lub ntsiab, txuas "Qhib Qhib" cov neeg sib txuas ntawm txhua qhov kev sib txuas hla cov kev hloov pauv ntawm cov khoom siv hauv tsev uas koj xav kom tswj hwm (lossis) voj lub xov hlau nyob los ntawm kev sib cuag ntawm "TSIS" ntawm txhua qhov txuas thiab txuas cov thawj coj ntawm cov cuab yeej siv mus rau lwm qhov kev sib cuag ntawm "TSIS" ntawm lawv cov khoom sib txuas.

Kauj Ruam 6: PCB Tsim

PCB Tsim
PCB Tsim
PCB Tsim
PCB Tsim

Qhov no yog ib qho yooj yim Circuit Court. Koj tuaj yeem muab nws tso rau ntawm lub qhov txhab tsis muaj sijhawm, tab sis yog tias koj tseem xav ua PCB, kuv tab tom txuas PCB Tsim uas kuv tau ua los siv Proteus 8 Pro. Kuv cov ntawv kuj tseem muaj cov kab hluav taws xob tswj raws li qhia hauv daim duab.

Kauj Ruam 7: Sib sau ua ke

Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke

Kuv siv lub khoos phis tawj qub SMPS los ua rooj plaub rau kuv lub cuab yeej. Nws yuav zoo dua los tsim cov ntaub ntawv raws li koj xav tau siv Fusion 360 lossis lwm yam 3D tsim software thiab luam tawm 3D tsim los muab koj txoj haujlwm zoo saib txias. Kuv tau luam qee daim ntawv lo thiab muab lo rau ntawm SMPS lub thawv kom puv qhov zoo ntawm nws. Kuv drilled qee qhov hauv nws thiab kho nws ntawm phab ntsa ntawm ib sab ntawm lub rooj hloov khoom. Qhov xov hlau tau muab zais siv lub raj yas me me coj mus rau hauv lub rooj hloov khoom.

Kauj Ruam 8: Qhov tshwm sim

Image
Image
Kev Sib Tw Bluetooth
Kev Sib Tw Bluetooth

Cov vis dis aus tshaj tawm ntawm no qhia txog kev ua haujlwm ntawm lub cuab yeej thaum koj siv nws thawj zaug. Koj tsuas yog yuav tsum tau ntaus lub cuab yeej ib zaug! Tom qab ntawd, tsuas yog qhib Bluetooth, txuas thiab mus wireless!

Vam tias koj nyiam nyeem cov lus qhia no. Yog tias koj muaj lus nug, thov hu rau ntawm no lossis xa ntawv tuaj rau [email protected]. Kuv yuav zoo siab los pab koj.

Ua Tsaug … !!!:)

Kev Sib Tw Bluetooth
Kev Sib Tw Bluetooth

Khiav Tawm Hauv Kev Sib Tw Bluetooth

Pom zoo: