Easy, Safe, Bluetooth Controlled Room Lamp

3,392

68

7

Introduction: Easy, Safe, Bluetooth Controlled Room Lamp

Some peoples afraid of high voltage. Some peoples don't want to change their lamp. So here is a basic and safe Bluetooth controlled lamp with SERVO

Step 1:

Necessary Things:

1-)Breadboard

2-)arduino nano

3-)servo motor

4-)Battery

5-)Glue gun

6-)Bluettoh module

Step 2: Code

#include

#include

Servo myservo;

int bluetoothTx = 10;

int bluetoothRx = 11;

SoftwareSerial bluetooth(bluetoothTx, bluetoothRx);

void setup()

{

myservo.attach(9);

Serial.begin(9600);

bluetooth.begin(9600);

}

void loop()

{

if(bluetooth.available()> 0 )

{

int servopos = bluetooth.read();

Serial.println(servopos);

myservo.write(servopos);

}

}

Step 3: Build

tx pin to 10

rx pin to 11

servo to 9

battery + to vcn

battery- to gnd

bluetooth 5v to 5v; gnd to gnd

servo 5v to 5v; gnd to gnd

Step 4: Fınısh

Download bluetooth monitor app and send to correct number

if you want you can build your app

Lamps and Lighting Contest 2016

Participated in the
Lamps and Lighting Contest 2016

LED Contest

Participated in the
LED Contest

Be the First to Share

    Recommendations

    • Make it Glow Contest

      Make it Glow Contest
    • First Time Author Contest

      First Time Author Contest
    • PCB Challenge

      PCB Challenge

    7 Discussions

    0
    DavidO198
    DavidO198

    4 years ago

    How to build app ???

    0
    canklot
    canklot

    Reply 4 years ago

    For now you can download "bluetooth Terminal" app and connect your device and send correct numbers (how much degre need to turn) like 180 or 10.

    İf you want a app you can build it in mitapp inventor

    0
    canklot
    canklot

    Reply 4 years ago

    Here is a guide about app and servo https://www.instructables.com/id/How-to-control-servo-motor-from-android-app/

    0
    Being Engineers
    Being Engineers

    4 years ago

    Nicely done. :)

    Suggestions: Try to use a better camera from next time onwards and be a bit more descriptive when writing the steps. It will be helpful for everyone, especially those who are new to this circuit.

    I have also made this. Check it out.

    https://www.instructables.com/id/How-to-Make-Bluetooth-Controlled-Lamp/

    0
    canklot
    canklot

    Reply 4 years ago

    İts my first instructable. Thanks for advice. I will try :D