Introduction: Control Arduino Using Bluetooth (Bilingual Lesson)(Arabic/English)

يتيح لك هذا الدرس التحكم بتشغيل ضوء الليد عن طريق الجوال بنظام الاندرويد و يشرح كيفية عمل لوح التحكم الاردوينو مع قطعة البلوتوث

This lesson will allow you to control an LED using an Android phone along with explaining how the Arduino interact with the Bluetooth module

Step 1: Required Parts

القطع المطلوبة

· اردوينو ((Arduino Uno R3

· كيبل (Type A to B USB)

· قطعة بلوتوث (JY-MCU Arduino Bluetooth Module)

· جوال بنظام أندرويد ( Android Phone )

· اسلاك(jumper wires)

· لوح كهربائي للتجارب (Breadboard)

· مقاومة بقيمة 220 Ω ( 220 ohm Resistor )

· أي لون من ضوء الليد ( any color LED )

Step 2: Wiring

توصيل القطع:

الشكل التالي يوضح لك كيفية توصيل القطع مع الاردوينو. فقط تتبع الاسلاك المرسومة بحذر و تأكد منها في الجداول المرفقة

Follow the attached picture connections carefully. Please verify your connections with the table below.

توصيل قطعة البلوتوث:

Connections between Arduino and Bluetooth Module:

Arduino -------- Bluetooth module

قطعة البلوتوث -------- الاردوينو

5V ----------- VCC

GND -------- GND

Pin 6 ---------- TX

Pin 7 -----------RX

توصيل ضوء الليد:

Connections between Arduino and LED:

منفذ رقم تسعة في الاردوينو => الطرف الاول من المقاومة

Pin 9 in Arduino => one side of the Resistor

الطرف الثاني من المقاومة => الطرف الموجب في الليد : هو الطرف الاطول في القطعة

Other side of the Resistor => Positive Side of LED (long leg)

الطرف السالب في الليد => منفذ الارض في الاردوينو

Negative side of LED => GND in Arduino

Step 3: Programming...

Uploading program to Arduino:

فقط حمل البرنامج المرفق او انسخ الكود الى برنامج الاردوينو

Just download the program or copy the code into an Arduino sketch

شرح البرنامج:

Explaining the code:

يوجد شرح بسيط بداخل الكود عن ما يفعله كل سطر في الكود المرفق بالعربية والانجليزية

Almost every line inside the code has comments along with it

Step 4: Downloading Phone App

تحميل تطبيق الجوال:

Downloading Phone App:

بامكانك تحميل اي تطبيق يوجد به خاصية فتح منفذ البلوتوث للتواصل

You can download any Bluetooth Serial App you are comfortable using.

:في هذا الدرس أستخدمت التطبيق

In this lesson I used this App:

“Terminal for Bluetooth”

By NEXT PROTOTYPES

للتحميل الرجاء اتباع التعليمات التالية:

To download please follow these instructions:

Go to Google Play =>

Search “Bluetooth Serial” =>

Download “Terminal for Bluetooth” by NEXT PROTOTYPES

Step 5: Using the App

التحكم بالمشروع:

1. ادخل على التطبيق Terminal for Bluetooth

2. اضغط على شكل المكبر للبحث عن قطعة البلوتوث

3. ابحث عن البلوتوث المتواجد في مجال الجوال

4. اتصل بالقطعة التي ستظهر بأسم (HC-06 او null )

5. اتصل بها وضع الرقم السري الاساسي 1234 او 1111 او 0000 على حسب بيانات المصنع

6. بعد الاتصال، ارسل حرف y

7. سترا ضوء الليد يعمل

8. لإطفاء الليد ، ارسل حرف n

Controlling the project:

1. Open the Terminal for Bluetooth APP

2. Press on the Search icon on top

3. Search for the Bluetooth in the range

4. Connect to your chip ( the name will appear either HC-06 or null )

5. Enter factory password mainly 1234 or 1111 or 0000

6. After connections, Send Letter y to lit LED

7. Send n to turn off LED

Step 6: Future Projects:

مشاريع مستقبلية باستخدام هذه التقنية:

· عن طريق أضافة الريلاي بأمكانك التحكم بالبلوتوث بإنارة المنزل،بالكراج، او بتشغيل اي جهاز متصل بكهرباء البيت 110 او 220 فولت

· عن طريق اضافة قطعة الاشعة تحت الحمراء بإمكانك التحكم بالمكيفات و اجهزة التلفاز ببلوتوث الجوال

· وايضا الكثير من المشاريع المميزة

Future projects using this lesson:

· By adding a Relay, you can control any AC device like your room lights, garage door, or any 110 V or 220V Household equipment

· By adding IR transmitter, you can control your TV and AC using your phone.

· And many more…

First Time Author Contest

Participated in the
First Time Author Contest