LCD problem
danielreis
Posts: 16
Hi guys,
I'm with a problem in a project that uses LCD
First, I tried it in a Basic Stamp and everything worked fine.
Now, using the propeller and the OBJ: "LCD_16x2_4Bit", some strange things happens.
If I load the program into the EEPROM, some random characters appears at the screen, so I turn the propeller off and on again, and the correct characters appear at the screen.
In this project, I'm using a push button to switch between the menu options, and even if I reset the propeller, so that the correct characters are shown, when I press the push button to go to another menu option, again some random characters appear at the screen.
The connection that I'm using for the LCD and Propeller is the one explained in the "LCD_16x2_4Bit" OBJ
Does someone know what is happening?
Thanks,
Daniel Reis
I'm with a problem in a project that uses LCD
First, I tried it in a Basic Stamp and everything worked fine.
Now, using the propeller and the OBJ: "LCD_16x2_4Bit", some strange things happens.
If I load the program into the EEPROM, some random characters appears at the screen, so I turn the propeller off and on again, and the correct characters appear at the screen.
In this project, I'm using a push button to switch between the menu options, and even if I reset the propeller, so that the correct characters are shown, when I press the push button to go to another menu option, again some random characters appear at the screen.
The connection that I'm using for the LCD and Propeller is the one explained in the "LCD_16x2_4Bit" OBJ
Does someone know what is happening?
Thanks,
Daniel Reis
Comments
I'm running it at 5V, but without resistors. I attached the schematics that I'm using, that is from the "LCD_16x2_4Bit" (obex.parallax.com/objects/106/).
For tests, I'm using the 2x16 ParallelLCD from Parallax (www.parallax.com/StoreSearchResults/tabid/768/txtSearch/lcd/List/0/SortField/4/ProductID/49/Default.aspx), but my project uses a 2x8 LCD, that works in the same way, so it doesn't matter by the moment. I just need to do the 2x16 LCD work.
As the 2x16 ParallelLCD doesn't have backlight, pins 15 and 16 of the propeller are free.
Also, I'm using a potentiometer to adjust the contrast.
Thanks,
Daniel Reis
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
I downloaded your OBJ "jm_lcd4_ez" (obex.parallax.com/objects/474/) and tested it.
With your demo, it works fine, even if i reset the propeller.
When I try my program, everything works fine, and I can switch between the menu options perfectly, until reset the propeller. If I reset or turn it off and on, nothing appears at the screen.
I'm using the schematics shown at your code, with 2.2k resistors in DB4 to DB7
I will post here the start of my code:
[code]
CON
'ClkFreq: 80 Mhz
_XINFREQ = 5_000_000 'necess