Hello everyone,
I am currently working on a university project where I have to build a Digital Alarm Clock. I started today and after 3 hours of programming I have stumbled upon the LCD display problem. I have connected the wires and written the code to display "Hello World" on the LCD screen. However, it is not displaying that. I am guessing it has something to do with the resistance in the potentiometer and the resistor which is connected to the display.
Here is the code :-
#include <LiquidCrystal.h>
int Celcius_Temp = 0;
int Fahrenheit_Temp = 0;
int RS_Pin = 12;
int Enable_Pin = 11;
int DB4_Pin = 5;
int DB5_Pin = 4;
int DB6_Pin = 3;
int DB7_Pin = 2;
LiquidCrystal lcd(RS_Pin, Enable_Pin, DB4_Pin, DB5_Pin, DB6_Pin, DB7_Pin);
void setup()
{
Serial.begin(9600);
lcd.begin(16,2);
lcd.print("Hello World!");
pinMode(A0,INPUT); //Pin for the temperature sensor
}
void loop()
{
//Celcius_Temp = ((analogRead(A0) * (5.0/1024)) - 0.5)/0.01;
//Fahrenheit_Temp = (Celcius_Temp * 9/5) + 32;
//Serial.println(Celcius_Temp);
delay(3000);
lcd.clear();
}
I have attached the circuit as well. Let me know what I did wrong. I have been pulling my hair out on this problem for a long time. Your help will be much appreciated.
Thank You
