Cov txheej txheem:
- Kauj Ruam 1: Yam Koj Xav Tau
- Kauj Ruam 2: Teeb Arduino Lub Tswv Yim rau ESP 32
- Kauj ruam 3: Tau txais Bluetooth App
- Kauj Ruam 4: Coding Tshooj
- Kauj Ruam 5: Xeem Bluetooth ntawm Esp32
Video: ESP32 Bluetooth Tutorial - Yuav Siv Li Cas Inbuilt Bluetooth ntawm ESP32: 5 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nyob zoo cov phooj ywg Txij li ESP32 Pawg Thawj Coj los nrog WiFi & Bluetooth ob qho tib si tab sis rau peb Cov Haujlwm Feem ntau peb feem ntau siv tsuas yog Wifi, peb tsis siv Bluetooth. Cov phiaj xwm yooj yim Bluetooth yog qhov ua tau zoo dua ntawm ESP32 los siv.
Kauj Ruam 1: Yam Koj Xav Tau
Yog li rau txoj haujlwm no koj tsuas yog xav tau: ESP32 (TXHUA YAM): Thiab cable rau Program nws.
Kauj Ruam 2: Teeb Arduino Lub Tswv Yim rau ESP 32
Nco ntsoov tias koj muaj Arduino IDE hauv koj lub PC thiab koj tau teeb tsa ESP32 Boards hauv koj Arduino IDE, thiab yog tias nws tsis yog qhov xwm txheej thov ua raws cov lus qhia hauv qab no ntawm kuv kom nruab nws.: https://www.instructables.com/id/Getting-Started-W …
Kauj ruam 3: Tau txais Bluetooth App
Ua ntej peb mus txuas ntxiv kom ntseeg tau tias koj muaj daim ntawv thov Bluetooth txuas hauv koj lub xov tooj ntawm tes rau BLUETOOTH kev sib txuas lus nrog txhua lub cuab yeej BLUETOOTH hauv peb rooj plaub ESP32.
Kauj Ruam 4: Coding Tshooj
Qhib koj arduino ide.go rau File> Piv txwv> BluetoothSerial> SerialtoSerialBT. Or luam cov cai hauv qab no: #include "BluetoothSerial.h" #if! Txhais tau tias (CONFIG_BT_ENABLED) || ! txhais (CONFIG_BLUEDROID_ENABLED)#tsis txaus ntseeg Bluetooth tsis tau qhib! Thov khiav 'ua menuconfig` rau thiab qhib nws#endifBluetoothSerial SerialBT; tsis muaj teeb tsa () {Serial.begin (115200); SerialBT.begin ("ESP32test"); // Bluetooth ntaus ntawv lub npe Serial.println ("Lub cuab yeej pib, tam sim no koj tuaj yeem txuas nws nrog bluetooth!");} Lub voj void () {yog (Serial.available ()) {SerialBT.write (Serial.read ()); } yog (SerialBT.available ()) {Serial.write (SerialBT.read ()); } ncua (20);} Txoj cai tau yooj yim heev thiab zoo ib yam li BLUETOOTH code peb feem ntau siv nrog arduino uno & hc05Code piav qhia: Hauv qab kab no suav nrog BluetoothSerial lub tsev qiv ntawv.#suav nrog "BluetoothSerial.h" 3 kab muab hauv qab no ua rau Bluetooth# yog! txhais (CONFIG_BT_ENABLED) || ! txhais (CONFIG_BLUEDROID_ENABLED)#tsis txaus ntseeg Bluetooth tsis tau qhib! Thov khiav `ua menuconfig` rau thiab ua kom nws#endifThen, piv txwv ntawm BLUETOOTH yog tsim BluetoothSerial SerialBT; Hauv teeb (), kev sib txuas lus txuas tau pib ntawm baud tus nqi ntawm 115200. Serial.begin (115200); Pib lub Bluetooth ntaus ntawv txuas thiab dhau raws li kev sib cav ntawm Bluetooth Device lub npe. Los ntawm lub neej ntawd nws hu ua ESP32test tab sis koj tuaj yeem hloov nws thiab muab nws lub npe tshwj xeeb. SerialBT.begin ("ESP32test"); // Bluetooth device nameIn the loop (), xa thiab tau txais cov ntaub ntawv ntawm Bluetooth Serial Hauv kab hauv qab no ntawm cov cai nws yuav tshuaj xyuas yog tias muaj cov ntaub ntawv muaj nyob ntawm cov saib xyuas yog tias yog ces nws yuav xa cov ntaub ntawv mus rau BLUETOOTH ntaus ntawv (piv txwv li: peb lub xov tooj smartphone) siv esp32's Bluetooth.if (Serial.available ()) {SerialBT.write (Serial.read ());} SerialBT.write () xa cov ntaub ntawv siv bluetooth serial. Serial.read () rov qab cov ntaub ntawv tau txais hauv Qhov chaw nyob hauv qab no ib feem ntawm cov cai yuav tshuaj xyuas yog tias muaj cov ntaub ntawv los ntawm Bluetooth yog tias nws yog tom qab ntawd nws yuav luam tawm ntawm cov ntawv xov xwm.if (SerialBT.available ()) {Serial.write (SerialBT.read ());) Yog li ntawd yog txhua qhov kev piav qhia yooj yim ntawm txoj cai. Yog li tam sim no koj tuaj yeem xa cov cai rau koj li ESP32.
Kauj Ruam 5: Xeem Bluetooth ntawm Esp32
Tom qab rub tawm cov cai qhib saib hauv koj Arduino IDE & tom qab ntawd txuas lub Bluetooth (esp32) los ntawm koj lub xov tooj. Thiab hauv cov cuab yeej ntu ntawm app koj tuaj yeem txuas rau ESP32 thiab tom qab ntawd koj yuav tau txais cov lus "txuas rau ESP32". vib nas this nws yuav txuas nrog thiab koj yuav pom cov lus ESP32 txuas nrog. Tom qab ntawd yog tias koj ntaus nyob zoo los ntawm app tom qab ntawd hauv koj li kev saib xyuas ntawm Koj li Arduino IDE koj tuaj yeem pom cov lus nyob zoo & yog tias koj ntaus koj li cas los ntawm koj tus lej saib xyuas koj tuaj yeem pom cov lus ntawd hauv Koj li App. Yog li no koj tuaj yeem tsim kev sib txuas Bluetooth nrog ESP32 thiab koj tuaj yeem siv yog tias muaj xwm txheej los ua cov haujlwm sib txawv rau cov lus sib txawv uas koj tau xa mus rau esp32 los ntawm koj lub xov tooj. Yog li muaj kev lom zem siv ESP32 Bluetooth hauv koj cov phiaj xwm.
Pom zoo:
Cov Hais Lus Ua Los Ntawm Cov Khoom Siv Rov Los thiab Rov Siv Dua: 6 Cov Kauj Ruam
Cov Hais Lus Ua Los Ntawm Cov Khoom Siv Rov Los thiab Rov Los Siv Rov Los: " Suab paj nruag yog cov lus thoob ntiaj teb ntawm tib neeg. Thiab qhov zoo tshaj plaws-lawv tsis tau them kuv ib dime. Txhua yam nyob rau hauv no pr
Tib Neeg-Khoos Phis Tawj Kev Sib Txuas: Ua Haujlwm Gripper (ua los ntawm Kirigami) los ntawm Lub Cev Kev Siv Siv EMG: 7 Cov Kauj Ruam
Tib Neeg-Khoos Phis Tawj Kev Sib Txuas: Ua haujlwm Gripper (ua los ntawm Kirigami) los ntawm Kev Siv Lub Cev Siv EMG.: Yog li qhov no yog kuv thawj zaug sim ntawm tib neeg-khoos phis tawj interface.Kuv ntes cov leeg ua kom pom ntawm kuv lub dab teg txav siv EMG sensor, ua tiav los ntawm nab hab sej thiab arduino thiab ua haujlwm ua origami raws li tus tuav
Kev tswj hwm tus kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Li Tachometer: 5 Cov Kauj Ruam (nrog Duab)
Kev Tswj Tus Kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Lub Tachometer: Muaj ib txwm xav tau rau kev siv tshuab txheej txheem, ua nws yooj yim/tsis txaus ntseeg. cov txheej txheem rau dej/siv dej rau peb daim av me me.Qhov teeb meem ntawm tsis muaj kab khoom siv tam sim no
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw
Hloov Cov Khoom Siv Hluav Taws Xob ntawm Cov Khoom Siv Hluav Taws Xob Pheej Yig: 3 Cov Kauj Ruam
Hloov pauv qhov hluav taws xob ntawm Kev Siv Hluav Taws Xob Pheej Yig: Cov lus qhia no qhia yuav hloov pauv li cas hauv lub zog hluav taws xob me me kom chnage qhov hluav taws xob tso tawm kom haum rau koj cov kev xav tau. Rau DIY qhov project kuv xav tau qhov ruaj khov ntawm qhov tseeb 7V dc thiab txog 100 mA. Saib ib ncig ntawm kuv cov khoom sau Kuv pom ib