Hi all,
After some recommendations from people here I got an LCD display and tried to program it. My program (attached below) is designed to write "Hello World!" to the top left corner of the display. It works in a simulator but not in real life -my 2x16 LCD display displays just one line (top) of black boxes, while the bottom line remains completely blank.
This is with the contrast voltage (pin 3) connected to 0V. I also tried a potential divider (as I don't own a variable resistor) with the two resistors equal (contrast voltage 2.85V, supply is 5V) but the entire display stays blank in this case.
The datasheet for the LCD display is **broken link removed**.
On power-on, the top line of the display fills "slowly" with boxes (it takes about 0.5sec - the boxes "fade in"), then nothing else happens. As part of the testing I increased the delay in the "artificial_delay" procedure (from 20 to 250, so up to about 375ms) to see if the display needed more time to switch on, but this doesn't seem to do anything.
I'd be grateful for any help, even if it is "your display is broken"
ahydra
After some recommendations from people here I got an LCD display and tried to program it. My program (attached below) is designed to write "Hello World!" to the top left corner of the display. It works in a simulator but not in real life -my 2x16 LCD display displays just one line (top) of black boxes, while the bottom line remains completely blank.
This is with the contrast voltage (pin 3) connected to 0V. I also tried a potential divider (as I don't own a variable resistor) with the two resistors equal (contrast voltage 2.85V, supply is 5V) but the entire display stays blank in this case.
The datasheet for the LCD display is **broken link removed**.
On power-on, the top line of the display fills "slowly" with boxes (it takes about 0.5sec - the boxes "fade in"), then nothing else happens. As part of the testing I increased the delay in the "artificial_delay" procedure (from 20 to 250, so up to about 375ms) to see if the display needed more time to switch on, but this doesn't seem to do anything.
I'd be grateful for any help, even if it is "your display is broken"
ahydra