Monday, November 16, 2015

HOW TO MAKE ARDUINO NANO NIGHT LIGHT

                      To make the Arduino Nano Night Lamp Follow these steps
 Arduino Nano

Step 1: What are the Requirement’s

Ø  Empty Bottle
Ø  Scissor
Ø  Vellum paper , Glue Gun , Double sided tape
Ø  9 Volt Battery (Minimum 5Volt to Arduino Nano)
Ø  Breadboard (Min 400 point)
Ø  Assorted Male-Male Jumper Wire
Ø  4.7KΩ Resistor
Ø  Piranha LED
Ø  Solid core hook up wire
.

Step 2: Drill a hole in the bottom of your bottle
 Drill

 The hole should be the size of LDR .so that it would be placed through this hole.

Step 3: Print Design on Vellum Paper

  
Place the printed vellum paper into the bottle

Step 4: Cut two pieces of Solid Core Hookup Wire

  
 breadboard




These wire is soldered to the LDR & the length of the wire should be according to the night lamp and connected to the breadboard.

Step 5: Solder the wires to the LDR...


 LDR


After soldering the wire to the each leg of LDR respectively.we have to passed it through the hole which is drilled in the step 2.
Use heat shrink or electrical tape to protect it by short circuiting.
  

Step 6: Solder Piranha LED legs



 


    




We need to extend their legs to sit it on breadboard by soldering the small pieces of wire.
We have to done some marking to remember the polarity & orientation of led.

Step 7: Make the Circuit...

    



Step 8: Load the Arduino Sketch...



This code is only for Arduino nano.Upload it into the Arduino IDE.
int ldrPin = A0;
unsigned int ldrValue = 0;
void setup ()
{ pinMode(12, OUTPUT); Serial.begin(9600);
}
void loop()
{
ldrValue = analogRead(ldrPin);
if (ldrValue<200) digitalWrite(12, HIGH);
else digitalWrite(12,LOW);
}

Step 9: Test your circuit






  When LDR senses dark the led will light and if the LDR senses partially dark then led will glow according to the intensity of light.

Step 10: Attach battery to back of Breadboard.

   




Step 11: Place circuit onto the lid.





   
 Use a drop of glue stick to secure the circuit inside of the inverted lid. This is the bottom of your lamp and the bottle will attach to become the 'lamp shade'.
The face of led will be set according to the light we want

Step 12: Passed the LDR through the Drilled Hole



  

Step 13: Ready to Glow At Night

  








No comments:

Post a Comment