MENU

Fun & Interesting

Using Bluetooth module HC-06 with Arduino (Part 1)

Omar Al-Rabghi 54 1 week ago
Video Not Working? Fix It Now

This is part 1 of a series on using Bluetooth with Arduino. Using HC-05 & HC-06 Bluetooth modules to establish wireless Bluetooth connection with Arduino UNO. Three sketches were presented. One sketch to show how to create a software serial port and make a setup for HC-06 module. The setup or (AT command mode) include changing the module name, PIN number (i.e. password) and baud rate. The second sketch or program use only pin 0 (RX) and pin 1 (TX) (i.e. serial ports) for either sketch uploading or Bluetooth connection. The third program shows the use of a terminal emulator which is Putty.exe in this case. Depending on Arduino program contents user through Bluetooth connection can perform different tasks such as turning led on or off. Links 1-https://www.youtube.com/watch?v=ykgt4v7_4y4 2-https://www.youtube.com/watch?v=ZdvKh3c_yoQ 3-https://www.youtube.com/watch?v=nkBtGI5g1a0 4-https://www.youtube.com/watch?v=mh-XZvl9mnA 5-https://github.com/mluqmanbukhori/Circuit.Wizard.Electrical.Simulation 6-https://www.putty.org/ 7-https://freeware.the-meiers.org/ هذا هو الجزء الأول في استخدام البلوتوث (Bluetooth) مع الاردوينو. هناك قطعتين او وحدتين مشهورتين يتم استخدامهما لعمل التوصيل من خلال البلوتوث و هما (HC-05 & HC-06). في هذا الفيديو تم استخدام الوحدة (HC-06) في ثلاث امثلة بسيطة. في البرنامج الأول تم استخدام المكتبة (SoftwareSerial.h) لعمل مخرج تسلسلي ثانوي (Bluetooth Serial). في البرنامج الثاني تم استخدام المخرج التسلسلي الموجود اصلا على لوحة الاردوينو (على الطرفين صفر و واحد) و ذلك لرفع برنامج الاردوينو على لوحة الاردوينو، ثم يتم استخدام نفس المخرج التسلسلي لشبك الموديول (HC-06) مع الاردوينو و التحكم في تشغيل لمبة (LED). في البرنامج الثالث تم استخدام البرنامج (Putty.exe) و ذلك لعمل شاشة طرفية (Terminal emulator) من خلالها يمكن التحكم في الاوامر المرسلة الى الاردوينو و تنفيذها

Comment