Introduction: Connect LCD Directly to Your Arduino Mega
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....

Participated in the
Microcontroller Contest
Comments
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);