Easy, Safe, Bluetooth Controlled Room Lamp
by canklot in Circuits > Arduino
3536 Views, 68 Favorites, 0 Comments
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


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



Download bluetooth monitor app and send to correct number
if you want you can build your app