TheTNR
Published © GPL3+

Night Lamp Using Arduino & Epoxy Resin

A stylish night light that will decorate your desks. We called it "LIGHTHOUSE UNDER THE SEA."

IntermediateFull instructions provided1,247
Night Lamp Using Arduino & Epoxy Resin

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Linear Regulator (7805)
Linear Regulator (7805)
×1
Resistor 330 ohm
Resistor 330 ohm
×3
LED (generic)
LED (generic)
×3
9V battery (generic)
9V battery (generic)
×1
Slide Switch
Slide Switch
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Android APK for your phone

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
3D Printer (generic)
3D Printer (generic)

Story

Read more

Schematics

Electronic Circuit Schema

15 usixloyhq6

Technical design

Schematic wi6wpr1yh3

Code

Arduino Code

Arduino
int data;
int led1=5;
int led2=3;
int led3=6;
void setup()
{
pinMode(led1,OUTPUT);
pinMode(led2,OUTPUT);
pinMode(led3,OUTPUT);
Serial.begin(9600);   //Seri iletiimi balatr
}
void loop()
{
if(Serial.available()) // Eer Bluetooth balants varsa kodalar altrr
{
int data = Serial.read();
delay(100);
if(data=='A')
digitalWrite(led1,1);
if(data=='a')
digitalWrite(led1,0);
if(data=='B')
digitalWrite(led2,1);
if(data=='b')
digitalWrite(led2,0);
if(data=='C')
digitalWrite(led3,1);
if(data=='c')
digitalWrite(led3,0);
delay(100);
}
}

Credits

TheTNR

TheTNR

5 projects • 60 followers
A teacher at high school. I am an electronics teacher.

Comments