Non-I2C LCD (16x2) Arduino

by LoganPaxton in Circuits > Arduino

62 Views, 0 Favorites, 0 Comments

Non-I2C LCD (16x2) Arduino

Screenshot 2024-10-03 9.39.23 PM.png

Welcome back to another Instructable. Today, I will be showing you how to correctly wire and code your LCD.

Supplies

For this tutorial, you will need the following.

  1. LCD (16x2): https://s.click.aliexpress.com/e/_DkBPmvn (x1)
  2. Arduino Uno R3: https://a.co/d/0lki3hk (x1)
  3. Jumper Wires: https://s.click.aliexpress.com/e/_DEv98Cd (x12)

Wiring

Screenshot 2024-10-04 10.51.34 AM.png

For this step, you might want to use the picture above. But some of the pins are self-explanatory.

Note: The resistor on the LED anode is 68 Ω, 100 Ω will work too.

Coding

Screenshot 2024-10-04 10.55.04 AM.png

Now, it is time to code our LCD. This shouldn't be too hard, since we are still using Adafruit's LiquidCrystal library. Below, I have linked a file containing our code, but you can copy and paste it from here.

Note: You're pins may not be the same as mine, if you wired it differently, I will provide a key to the pins below.

RS=Register-Select, EN=Enable, D4=DB4 (Rest of the D4, D5, is self explainatory)

#include <LiquidCrystal.h>

const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; // Replace with your pins
LiquidCrystal lcd (rs, en, d4, d5, d6, d7);

void setup() {
lcd.begin(16, 2);
lcd.print("Hello, World!");
}

void loop() {
// No loop code
}


There you have it! Your very own, non-I2C LCD! If you liked this instructable, please favorite it!

Downloads