Introduction: Customizable Lcd With Casing.

Hi, this is all the steps I took to make a custom lcd screen with a custom casing.

Supplies

1x arduino

1x usb tybe b printer cable

1x i2c lcd screen

4x F- M wires

1x 9v battery

1x 9v to ac adapter.

access to a 3d printer.


Step 1: Connecting the Lcd to the Arduino

  1. Take the 4 wires and connect the male end to slots SCL, SDA, 5V, GND on the arduino
  2. Take the female end and match SCL to SCL, SDA to SDA, 5V to VCC, GND to GND on the lcd

Step 2: Coding the Arduino

  1. Take the usb type b printer cable and connect the Arduino to your computer.
  2. Now open Arduino IDE.
  3. Make sure you have the correct port for your Arduino selected.
  4. Download the correct liquid crystal library you will need to code the Arduino from this link.
  5. Upload the library into Arduino IDE by looking in the top left and clicking sketch>include library> add.zip folder.
  6. Add the .zip library you just downloaded.
  7. Now that the library is in Arduino you can add your code

#include <LiquidCrystal_I2C.h>


int totalColumns = 16;

int totalRows = 2;


LiquidCrystal_I2C lcd(0x27, totalColumns, totalRows);  


String staticMessage = "Dr. White's Room";

String scrollingMessage = "Welcome to the Ingeuity Space";


void scrollMessage(int row, String message, int delayTime, int totalColumns) {

  for (int i=0; i < totalColumns; i++) {

    message = " " + message;  

  }

  message = message + " ";

  for (int position = 0; position < message.length(); position++) {

    lcd.setCursor(0, row);

    lcd.print(message.substring(position, position + totalColumns));

    delay(delayTime);

  }

}


void setup(){

  lcd.init();                    

  lcd.backlight();

}


void loop(){

  lcd.setCursor(0, 0);

  lcd.print(staticMessage);

  scrollMessage(1, scrollingMessage, 250, totalColumns);

}

8.Now look where it says "string staticMessage" and "string scrollingMessage" followed by my text.

9.You can insert your sentences, the static message being still and the scrolling message will scroll

10.Last click the arrow in the top left and let it upload.

11.Click the checkmark to verify your code and it should now display on the lcd.



Step 3: 3D Printed Casing

  1. Now open your 3d designing software of choice.
  2. Design a box with these dimensions
  3. length = 9 cm
  4. width = 6 cm
  5. height = 5 cm
  6. Make a cutout in one side of the box with these dimensions
  7. length = 7.2 cm
  8. width = 2.5 cm
  9. Make another cutout for the dimenions of your cord.
  10. Make a lid for the box by making a rectangle with dimensions
  11. length = 9cm
  12. width = 6 cm
  13. Add a smaller rectangle on the bottom of the previous one that has the dimensions of the inside of your box depending on how thick you make your walls.
  14. Subtract the girth from each side from your dimensions of 9x6 cm
  15. This will make a lid that slides into the inside and its flush on the sides
  16. Now take your model and slice it in the software your printer prefers.
  17. Upload the sliced file to your 3d printer and begin the print.



Step 4: Assemble!

Now assemble your printed case with the Arduino and screen and enjoy your new Custom LCD Screen!