Show All Items

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

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

Show All Items

((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

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

Show All Items

:

.

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

  • Control Arduino Using Bluetooth (Bilingual Lesson)(Arabic/English)

    bluetooth_LED_Lesson.ino

  • Control Arduino Using Bluetooth (Bilingual Lesson)(Arabic/English)

    code.txt

Step 4: Downloading Phone App

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

Show All Items

:

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

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

Show All Items

:

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ā€¦

arduino – Control Arduino Using Bluetooth (Bilingual Lesson)(Arabic/English), in category: technology