Connect LCD Directly to Your Arduino Mega

Introduction: Connect LCD Directly to Your Arduino Mega

About: Joined Instructables in 2016. I am an Engineer likes to do DIY stuffs, electronics and software.

Since I am a lazy DIY enthusiast I made a lazy way to connect my lcd 16*2 into my arduino mega

I hope it will be useful for those like me :)

Step 1: Components

arduino mega

lcd 16*2

Step 2: Code :

Step 3: LCD CONTRAST ADJUST

I have connected 1k resistor between lcd pin 1 &3

you can also put your desired value

Step 4: Connection

connect lcd to mega

lcd pin 16 -24th pin of mega and followed by other pins in the same row

Step 5: Burn It

upload the code and enjoy connection less LCD

I have already put some text to show you

Happy DIY....

Microcontroller Contest

Participated in the
Microcontroller Contest

Be the First to Share

    Recommendations

    • Big and Small Contest

      Big and Small Contest
    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge
    • For the Home Contest

      For the Home Contest

    Comments

    0
    PanW4
    PanW4

    Tip 4 years ago on Step 2

    LCD doesn't work correctly when pins 26 to 32 aren't set LOW. I suggest adding the following code (this worked for me :) )

    pinMode(26,OUTPUT);
    pinMode(28,OUTPUT);
    pinMode(30,OUTPUT);
    pinMode(32,OUTPUT);

    digitalWrite(26,LOW);
    digitalWrite(28,LOW);
    digitalWrite(30,LOW);
    digitalWrite(32,LOW);