Cov txheej txheem:
- Kauj Ruam 1: Tus Pin Configuration thiab Function:
- Kauj Ruam 2: Cov Cheeb Tsam Yuav Tsum Tau:
- Kauj Ruam 3: Teeb tsa Txoj Haujlwm:
- Kauj ruam 4: Code:
- Kauj ruam 5: Android App:
Video: Teeb tsa Bluetooth HC-05 Nrog Arduino: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Hauv txoj haujlwm no, peb yuav ntiav HC05 Bluetooth module nrog Arduino xa xov los ntawm smartphone mus rau Arduino chav tsev thiab tso tawm ntawm lub computer.
Txog HC-05 Bluetooth module:
HC-05 module yog ib qho yooj yim siv Bluetooth SPP (Serial Port Protocol) module, tsim los rau pob tshab wireless txuas txuas txuas teeb tsa. Serial chaw nres nkoj Bluetooth module tau ua tiav Bluetooth V2.0+EDR (Txhim Kho Cov Ntaub Ntawv Tus Nqi) 3Mbps Kev Hloov Kho nrog ua tiav 2.4GHz xov tooj cua transceiver thiab baseband. Nws siv CSR Bluecore 04-Sab nraud ib leeg nti Bluetooth tshuab nrog CMOS thev naus laus zis thiab nrog AFH (Kev Hloov Kho Zaus Dua Dhau Qhov Tshwj Xeeb). Nws muaj hneev taw me me li 12.7mmx27mm. Vam tias nws yuav yooj yim rau koj qhov kev tsim qauv/kev txhim kho mus los.
Kauj Ruam 1: Tus Pin Configuration thiab Function:
Nqe lus piav qhia
Xeev - Kom paub lub xeev kev sib txuas. (Paired los yog disconnected)
Rx - Tau Txais Tus Pin ntawm tus qauv kom tau txais Cov Ntaub Ntawv.
Tx - Xa tus Pin ntawm tus qauv rau xa cov ntaub ntawv.
5v - Tus pin zog
GND - Tus pin hauv av
EN/Qhov tseem ceeb - Pab lossis lov tes taw tus qauv.
Kauj Ruam 2: Cov Cheeb Tsam Yuav Tsum Tau:
- Pawg tswj hwm Arduino 1
- HC05 Bluetooth module 1
- Jumper xov hlau 6
- Daim ntawv qhia zaub mov 1
Koj tuaj yeem yuav cov khoom no, uas yog TESTED rau qhov zoo, los ntawm elegocart.
Kauj Ruam 3: Teeb tsa Txoj Haujlwm:
Kauj ruam 4: Code:
#suav nrog SoftwareSerial EEBlue (10, 11); // RX | UA TX void setup () {Serial.begin (9600); EEBlue.begin (9600); // Default Baud rau comm, nws yuav txawv rau koj li Module. Serial.println ("Lub qhov rooj bluetooth tau qhib. / N Txuas mus rau HC-05 los ntawm lwm yam khoom siv bluetooth nrog 1234 ua tus yuam sij ua ke!"); } void loop () {// Pub cov ntaub ntawv los ntawm bluetooth rau Terminal. yog (EEBlue.available ()) Serial.write (EEBlue.read ()); // Pub tag nrho cov ntaub ntawv los ntawm lub sijhawm mus rau bluetooth yog (Serial.available ()) EEBlue.write (Serial.read ()); }
Kauj ruam 5: Android App:
Ntawm Play Store muaj ntau cov apps txuas rau Bluetooth module HC05 rau lub xov tooj Android, koj tuaj yeem siv ib qho ntawm lawv. Kuv siv Bluetooth Terminal app.
Pom zoo:
DIY LED Teeb - Niaj Hnub Teeb Meem Teeb Nrog Cov Chaw Taws Teeb: 8 Kauj Ruam (nrog Duab)
DIY LED Teeb - Niaj Hnub Teeb Mood Teeb Nrog Chaw Taws Teeb: Hauv kab lus no kuv yuav mus hla cov txheej txheem Kuv tau siv los tsim qhov no zoo heev pyramid zoo li tus LED Mood Teeb.Kuv siv maple rau cov qauv tseem ceeb thiab qee qhov mahogany txhav ntxiv rau lub zog. Rau lub teeb Kuv siv RGB LED teeb uas tuaj nyob hauv 16 ko taw
Los ntawm lub teeb nyem mus rau Tsab ntawv tsa suab Sensor nrog ESP8266 thiab MQTT: 5 Cov Kauj Ruam (nrog Duab)
Los ntawm Lub Teeb Nyeem rau Tsab Ntawv Pom Zoo Nrog ESP8266 thiab MQTT: Hauv kab ntawv no, kuv yuav nthuav qhia cov khoom hauv qab no: LEDs xav tau qhov txwv tam sim no circuithow kom ua lub teeb nyem ua lub teeb pom kev los ntawm lub roj teeb nqa tau, thiab dimming LEDs los ntawm ESP8266 ntawm MQTT thiab piav qhia luv luv txog yuav ua li cas th
Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb Sensor: 5 Kauj Ruam
Tsab ntawv tsa suab qhib lub teeb hloov nrog lub teeb pom kev zoo: Lub suab qhib lub teeb hloov muaj ntau daim ntawv thov hauv tsev thiab hauv chaw ua haujlwm. Qhov no, txawm li cas los xij, tau ntxiv qhov zoo ntawm kev suav nrog lub teeb pom kev zoo, yog li ntawd, lub teeb no tsuas tuaj yeem ua rau thaum tsaus ntuj
LED Teeb Teeb Duab Cwjmem: Cov Cuab Yeej rau Teeb Teeb Doodles: 6 Kauj Ruam (nrog Duab)
LED Teeb Teeb Lub Cwjmem: Cov Cuab Yeej rau Teeb Doodles: Kuv tus poj niam Lori yog tus neeg siv tsis tu ncua thiab kuv tau ua si nrog kev yees duab ntev ntev rau ntau xyoo. Kev tshoov siab los ntawm PikaPika pab pawg teeb pom kev zoo thiab yooj yim ntawm cov koob yees duab digital peb tau siv lub teeb duab kos duab kom pom tias peb tuaj yeem ua dab tsi
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa: 7 Kauj Ruam (nrog Duab)
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa Tswm Tswm: Tsa Kuv Lub Caij Ntuj No Lub caij ntuj no kuv tus hluas nkauj muaj teeb meem sawv thaum sawv ntxov thiab zoo li raug kev txom nyem los ntawm SAD (Lub Caij Caij Nyoog Muaj Teeb Meem). Kuv txawm pom tias nyuaj npaum li cas kom sawv thaum lub caij ntuj no vim lub hnub tsis tuaj