banner



How To Replace Iphone 5 Lcd Screen

Introduction: Mood Lamp With LCD Screen

Thanks to Makers-sac's Exquisite Mood Lamp project ( Maker-sac's Exquisite Mood Lamp), I had an idea to add a new feature to this project, also this is a homework from my school teacher. This project is very easy to make for anyone. I hope you enjoy this project!

Step 1: Gathering the Requriments

  • Arduino Leonardo
  • USB cable (A to B type)
  • RGB LED
  • Potentiometer (3 units)
  • Resistor (100 omega)
  • LCD screen
  • Jumper wires
  • Bread Board
  • Acrylic paint (grey, black, white, and red)
  • Box that can fit in your Arduino board and Bread Board
  • Utility knife
  • Tracing paper
  • Glue
  • Paper Boards
  • Removable mounting putty

This is all of the equipment you need to build this. I've attached some pictures for your reference.

Step 2: Designing the Circuit

Do the circuit connections as shown in the figure. Easy peasy.

Step 3: Programming for the Lamp/screen

Download this file or copy the program below or copy this link in your Arduino app. Upload to your Arduino and this project is half done! Programming

int a,b,c;

#include #include

// For these LCD controls to work you MUST replace the standard LCD library from... // https://github.com/marcoschwartz/LiquidCrystal_I2... // Direct download https://github.com/marcoschwartz/LiquidCrystal_I2... // Your project will not compile until this is done. LiquidCrystal_I2C lcd_I2C_27(0x27,16,2); // set the LCD address for a 16 chars and 2 line display

void setup()

{

pinMode(A0,INPUT);

pinMode(A1,INPUT);

pinMode(A2,INPUT);

pinMode(5,OUTPUT);

pinMode(6,OUTPUT);

pinMode(9,OUTPUT); lcd_I2C_27.init (); // initialize the lcd lcd_I2C_27.backlight();

}

void loop()

{

a=analogRead(A0)/4.0156;

b=analogRead(A1)/4.0156;

c=analogRead(A2)/4.0156;

analogWrite(5,a);

analogWrite(6,b);

analogWrite(9,c); lcd_I2C_27.setCursor(0 , 0) ; // set the cursor, counting begins with 0 lcd_I2C_27.print( "Hello" ); // Print a message to the LCD.

}

P.S you can change the word the LCD screen show, I chose "Hello", as you can see above.

And you have to download the "library" for this program to work, here is How to install Arduino Libraries.

I recommend you to use a removable mounting putty to stick the potentiometers on the breadboard.

Step 4: Making the Container for Your Lamp

  1. Cut the layout of the box like the picture below: Cut the hole for your USB cable, a hole for your LCD jumper wires to come out, three holes for your Potentiometer on the left corner or wherever you put the Potentiometer.
  2. Color the box with acrylic color, either like me or you can choose your own color!
  3. Cut the tracing paper as the size of the right furnace, which should be cut in the first step
  4. Cut a paperboard that fits inside of our box. The purpose of it is to hold the Arduino near the top of the box so the light can go through the tracing paper.
  5. DONE!

P.S. Remember to NOT seal the box first, for you need to put your Arduino board and breadboard inside the box and it is easier to cut the holes while the bottom of the box is still opened. Also, if you want your Arduino Board and breadboard to be removable, remember to buy things like hook and loop tape or removable mounting putty to open and close your box freely!

I wanted it to look like a little stove, for the Potentiometers looks like the handle of the stove. Hope you like it too!

Step 5: Enjoy!

You've made it! You can turn the potentiometers to change the lightness and color. Enjoy!

Be the First to Share

Recommendations

  • Anything Goes Contest 2021

    Anything Goes Contest 2021

How To Replace Iphone 5 Lcd Screen

Source: https://www.instructables.com/Mood-Lamp-With-LCD-Screen/

Posted by: carlsonyebbeet79.blogspot.com

0 Response to "How To Replace Iphone 5 Lcd Screen"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel