Smartphone Controlled Lamp | Arduino + MIT App Inventor

Smartphone Controlled Lamp | Arduino + MIT App Inventor © GPL3+

Make smartphone controlled lamp using Arduino Uno, bluetooth module HC-06, and create Android App with MIT App Inventor.

  • 10,459 views
  • 1 comment
  • 25 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

Apps and online services

About this project

Hi everyone! My next project is How to make smartphone controlled lamp using Arduino Uno, bluetooth module HC-06 and create Android App with MIT App Inventor.

Wiring is quite simple and you can easily make all connections. Creating an App will take about 15 minutes.

Step 1: Requirements

Parts Required:

  • Arduino Uno R3 Board
  • Bluetooth module HC-06
  • Relay module
  • Jumper wires
  • Breadboard

Step 2: Wiring and Connections

Make connections as in the wiring diagram image above.

Step 3: Upload the Code

Before uploading the code you have to disconnect Bluetooth module from Arduino Uno board (pins 0, 1).

Step 4: Creating Android App

For creating an App I used MIT App Inventor, then simply saved it to my smartphone and installed it.

Creating an App - watch my video - part II

Step 5: Connecting Bluetooth Module

To connect your smartphone to Arduino Bluetooth module HC-06 we have to enter PIN CODE 1234 or 0000.

Step 6: Finish

That it once you made all steps properly you are ready to control your lamp (or any device you want) via bluetooth!

Thank you all!

Code

BT_Lamp_v1.0.inoArduino
#define lamp_Channel  13   		

int command; 			      //Int to store app command state.
boolean lamp = false;

void setup() {  
   	  pinMode(lamp_Channel, OUTPUT);
      Serial.begin(9600); 
  } 
  
void loop(){
  
if (Serial.available() > 0) {
	command = Serial.read();
	

if (lamp) {digitalWrite(lamp_Channel, HIGH);}
else {digitalWrite(lamp_Channel, LOW);}

switch (command) {

case 'L':lamp = true;break;
case 'l':lamp = false;break;
}
}
}

Custom parts and enclosures

Android App
Android App created with MIT App Inventor
btlamp_sg95xEpmaq.apk

Schematics

Schematic diagram
Btlcx twzhsbauxm
Wiring diagram
Bt lamp bb lpp63bziwr
Wiring diagram (Fritzing)
bt_lamp_x2VkN8jWZw.fzz

Comments

Similar projects you might like

Create a People Counter Controlled by an Android App

Project tutorial by Kutluhan Aktar

  • 3,064 views
  • 2 comments
  • 7 respects

IoT Made Easy w/ UNO, ESP-01, ThingSpeak & MIT App Inventor

Project tutorial by MJRoBot

  • 17,869 views
  • 15 comments
  • 35 respects

Make an Enhanced R2-D2 to Be Controlled by an Android App

Project tutorial by Kutluhan Aktar

  • 1,280 views
  • 0 comments
  • 2 respects

SmartPhone Controlled RGB MOOD Light

Project tutorial by Prajjwal Nag

  • 3,925 views
  • 1 comment
  • 10 respects

Smartphone Controlled Arduino 4WD Robot Car

Project in progress by Andriy Baranov

  • 53,241 views
  • 43 comments
  • 98 respects
Add projectSign up / Login