Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
slow_rider
PostPosted: Jul 04, 2012 - 12:09 PM
Resident


Joined: Feb 16, 2007
Posts: 698
Location: Israel

I have an ATMEGA328 running from internal RC, 2x16 LCD connected in 4 bit mode using peter fleury's library. The LCD works fine for about 10 seconds and than it will show nothing or blocks on the 1st line only.

If I disconnect the power and reconnect quickly, it won't load again. If I'll wait for a few minutes it will work again for 10 second or so and the same thing will happen...

I checked the voltage on the LCD / AVR / another IC in the circuit. All are dead 5V so they are not shorting to power rails.

Also, when plugging in the JTAG connector when the board is working will cause the LCD to display blocks in the upper line and nothing in the bottom line.
 
 View user's profile Send private message  
Reply with quote Back to top
chartman
PostPosted: Jul 04, 2012 - 02:14 PM
Resident


Joined: May 01, 2003
Posts: 577


Not a lot to go on... but is there a capacitor somewhere it shouldn't be on the LCD circuit? Or perhaps an error in the contrast voltage circuit ?
 
 View user's profile Send private message  
Reply with quote Back to top
jayjay1974
PostPosted: Jul 04, 2012 - 02:17 PM
Raving lunatic


Joined: Oct 30, 2002
Posts: 5720
Location: The Netherlands

Seems the connection is fragile. Glitches on E maybe?
 
 View user's profile Send private message  
Reply with quote Back to top
slow_rider
PostPosted: Jul 04, 2012 - 02:28 PM
Resident


Joined: Feb 16, 2007
Posts: 698
Location: Israel

I'll pull out the scope and observe the enable line... might be a good idea!
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Jul 04, 2012 - 03:11 PM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18545
Location: Lund, Sweden

I'd start with measuring what the current consumption of the whole shebang is, sit down with a cuppa' and think over if the current consupmtion is reasonable.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
DocJC
PostPosted: Jul 04, 2012 - 07:37 PM
Raving lunatic


Joined: Dec 11, 2007
Posts: 6848
Location: Cleveland, OH

And test it without the backlight on.

JC
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
donblake
PostPosted: Jul 04, 2012 - 10:06 PM
Posting Freak


Joined: Jan 03, 2004
Posts: 1637
Location: Apalachin, NY, USA

slow_rider wrote:
The LCD works fine for about 10 seconds and than it will show nothing or blocks on the 1st line only.
This sounds like the reset state of LCD. Something is probably causing it to be reset.

In addition to the suggestions already posted here, I'd put a scope on the +5V line at the LCD.

Don
 
 View user's profile Send private message  
Reply with quote Back to top
slow_rider
PostPosted: Jul 05, 2012 - 12:01 AM
Resident


Joined: Feb 16, 2007
Posts: 698
Location: Israel

So I pulled out the scope and everything looked fine but the power supply. I am using a switching module from Murata that clearly stated no need for a capacitor after it. I could see some ripple and if I could see it that's not good. I've installed a 100uF cap and 1uF at the MCU and other ICs and LCD supplies. Believe it or not it did the trick.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits