I tried to display something simpler before going on to what my project needs but even after following a simple code, my LCD still won't display anything. I think the potentiometer and the wire connections are all alright since they display the "blocks," but when I upload the code, it still doesn't do anything. Here's the simple code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(A0,A1,A2,A3,A4,A5);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0,0);
lcd.print("A: Oct B: Binary");
lcd.setCursor(0,1);
lcd.print("C:Hex D:Decimal");
}
this is what the LCD looks like before and after uploading the code, nothing changes:
I can't exactly follow it because the pins that the LCD takes up on the arduino is used for the keypad. Forgive me, this is really not my course. I'm a computer science student, we just got assigned this project randomly.
Show us a pic of your complete setup and a schematic. Scribble your schematic on a piece of paper if you need to.
Perform continuity on all connections with an ohm meter. Verify none of your jumpers have failed. They do fail. Breadboard internal contacts fail as well. You may have a bad connection somewhere.
The code you posted does not set up the pins as outputs. Does the LCD library do that for you?
EDIT;
Okay, I just rewatched the video I used to test my display. No need to configure the pins.
Watch this video to learn both ways to interface: parallel and serial. No real need to get the serial adapter just for experimenting. It does save a lot of I/O pins if you are using it in a project though.
Try to get some of the example sketches to work before rolling your own.
Can I suggest you forget about your project and connect the LCD up as per the library's "Hello World" example and run that?
Post a copy of the library's code.
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
Just the power supply, UNO and LCD connections as by the example code.
This is to establish that you can basically communicate with your LCD in its basic from.