Easy, Safe, Bluetooth Controlled Room Lamp

by canklot in Circuits > Arduino

3536 Views, 68 Favorites, 0 Comments

Easy, Safe, Bluetooth Controlled Room Lamp

Fotoğraf0026.jpg

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

Fotoğraf0022.jpg
Fotoğraf0030.jpg

Necessary Things:

1-)Breadboard

2-)arduino nano

3-)servo motor

4-)Battery

5-)Glue gun

6-)Bluettoh module

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);

}

}

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

Fınısh

Fotoğraf0028.jpg
Fotoğraf0027.jpg
Fotoğraf0029.jpg

Download bluetooth monitor app and send to correct number

if you want you can build your app