How I Made Smartphone Bluetooth Controlled PWM Light for My Kids

About: DIY my way through life. For me, Instructales is a way of living.

In this instructable I'm gonna show you how I made this simple Bluetooth Smartphone controlled PWM LED light for my kids. This is a simple but beautiful Arduino project to make.

I've used this awesome application ArduDroid from Mr. Hazim Bitar.

I really want to express my thanks to Mr. Hazim for this great app he has made available for us to control Arduino using Smartphone without writing a single line of code.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Components

Here are the compoments I used in my simple circuit.

Arduino UNO get it from eBay , Banggood

HC-06 Bluetooth Module get it from eBay , Banggood

LED

Arduino Cable

Some Jumper Wires

Step 2: Circuit

The circuit is so simple. I connected the LED to Arduino PIN number 10. You can connect it to that PIN or to any other PIN that can generate Analog PWM signal.

Note: PWM PINS are marked with the ~ sign.

Then I connected the Bluetooth module to the Arduino UNO as follows

HC-06 Bluetooth module Arduino UNO

GND <-------> GND

VCC <-------> VCC

RX <-------> TX

TX <-------> RX

Note that you better not connect the Bluetooth Module to Arduino Board when Arduino is connected to the PC. This is because Arduino is connected to the PC on the same serial port on which Bluetooth Module is connected by default. And that can cause some weirdness in Arduino response during code uploading.

We can overcome this problem in future projects by changing the PINS on which Bluetooth is connected to Arduino UNO using Arduino function called SoftSerial().

But here we'll only connect Bluetooth Module after we upload the code and then connect the PC as a USB power source.

Step 3: Upload Arduino Code

I just copied the code and then pasted it into Arduino IDE.

You can find the code at the application's website

http://www.techbitar.com/uploads/2/0/3/1/20316977/ardudroid.ino

Step 4: Run the App and Control Your Arduino

You can find that useful app from techbitar.com

http://www.techbitar.com/ardudroid-simple-bluetooth-control-for-arduino-and-android.html

or from Google Play

https://play.google.com/store/apps/details?id=com.techbitar.android.Andruino

Then you need to connect your Smartphone with the Bluetooth Module. You can do so by pressing the Connect to Bluetooth Button on the App.

Then choose your Bluetooth Module from the Bluetooth devices.

Once you have connected Bluetooth Module with the Smartphone you note that Bluetooth Module has its LED steady instead of flashing while not connected.

Now you can control LEDs from your Smartphone as follows:

The PIN 13 Red LED on the Arduino Board can be controlled ON/OFF using the PIN 13 Button on the App.

The LED you connected to PIN 10 can be controlled ON/OFF using the PIN 10 Button on the App.

The LED you connected to PIN 10 can be controlled Dimming using the PIN 10 Slider on the App.

Thank you for reading. Stay tuned for more projects.

Epilog X Contest

Participated in the
Epilog X Contest

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions