<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: LCD error after a while.  Any ideas?</title>
		<link>http://forums.leaflabs.com/topic.php?id=10453</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:26:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=10453" rel="self" type="application/rss+xml" />

		<item>
			<title>JCNZL on "LCD error after a while.  Any ideas?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10453#post-24324</link>
			<pubDate>Mon, 08 Apr 2013 16:14:33 +0000</pubDate>
			<dc:creator>JCNZL</dc:creator>
			<guid isPermaLink="false">24324@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Code is an example for arduino&#60;br /&#62;
just connected it up exactly how its shown in most tutorials 9 RS, EN, DB4, DB5, DB7, DB7 )&#60;/p&#62;
&#60;p&#62;Your ideas make good sense.&#60;br /&#62;
i think it was possible a loose breadboard connection was to blame.&#60;/p&#62;
&#60;p&#62;mini was powered by usb&#60;br /&#62;
lcd powered by usb power also ( 5v, not the 3.3 from the mini )&#60;/p&#62;
&#60;p&#62;i though that it could be handy to add a lcd.begin command to reinitialize the lcd into the loop IF people find this thread and are having the same issue, and cant fix it.&#60;/p&#62;
&#60;p&#62;it will mean that the lcd will fix its self - might take a bit of extra time and be a pain in the bum tho&#60;/p&#62;
&#60;p&#62;or add a button, that is coded to re initialize the lcd ( maybe an interupt process? )&#60;/p&#62;
&#60;p&#62;Thanks again for the help
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "LCD error after a while.  Any ideas?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10453#post-23997</link>
			<pubDate>Sat, 30 Mar 2013 07:33:43 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">23997@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;JCNZL - That sounds like there may be a problem with the communication between the mini and the LCD.&#60;/p&#62;
&#60;p&#62;Would you please give us some more information?&#60;/p&#62;
&#60;p&#62;Is this the original Arduino code, or a port of that code to Maple?&#60;br /&#62;
Remember that the mini is significantly faster than an Arduino, and so the LCD may be able to keep up with the Arduino, but not the mini.&#60;/p&#62;
&#60;p&#62;What is the part number of the LCD?&#60;br /&#62;
What is the communication mechanism between the Maple and the LCD? Is it a UART, SPI, ...?&#60;/p&#62;
&#60;p&#62;Have you tried putting a small delay into loop, e.g.:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;void loop() {

    lcd.setCursor(0, 1);
    delayMicroseconds(100);
    lcd.print(millis()/1000);
    delayMicroseconds(100);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This might give enough time for the LCD to do its stuff.&#60;/p&#62;
&#60;p&#62;It is possible that there is a bug in 'print', and slowing it down changes the effect.&#60;br /&#62;
Also try:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;void loop() {

    lcd.setCursor(0, 1);
    lcd.print(&#38;quot;A&#38;quot;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;which should do print calls faster, and so might stimulate the bug faster.&#60;br /&#62;
You might also try &#60;code&#62;lcd.print(&#38;quot;ABCDEFGHIJKLMNOPQRST&#38;quot;);&#60;/code&#62; for a similar reason (yes that is deliberately more than 16 characters).&#60;/p&#62;
&#60;p&#62;Often random things can also be electrical or maybe temperature related.&#60;/p&#62;
&#60;p&#62;Is the mini plugged into USB or is it using power into Vin? If it's on external power, what voltage?&#60;br /&#62;
Is the LCD being powered from the mini?&#60;br /&#62;
Is there anything else drawing power from the mini?&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;WARNING&#60;/strong&#62;: I haven't compiled or tested any of that code.&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of LeafLabs staff.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JCNZL on "LCD error after a while.  Any ideas?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10453#post-23996</link>
			<pubDate>Sat, 30 Mar 2013 04:56:06 +0000</pubDate>
			<dc:creator>JCNZL</dc:creator>
			<guid isPermaLink="false">23996@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Guys&#60;br /&#62;
Wondering if anyone has any idea what could be causing this problem.&#60;/p&#62;
&#60;p&#62;I have a Character LCD Screen ( 16x2 ) that is running off a maple mini.&#60;br /&#62;
It works fine, for an unspecified ammount of time. ( sometimes 10 mins, sometimes 2 mins, and sometimes an hour )&#60;/p&#62;
&#60;p&#62;When the error occurs, all the characters go crazy.  They display some letters, some numbers, some random shapes.  Some ascii symbols etc.&#60;/p&#62;
&#60;p&#62;If i press the reset button, the LCD returns working perfectly fine ( until the next glitch )&#60;/p&#62;
&#60;p&#62;I have tried this with a few different sketches, including the one below&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;/p&#62;
&#60;p&#62;#include &#38;lt;LiquidCrystal.h&#38;gt;&#60;/p&#62;
&#60;p&#62;LiquidCrystal lcd(7, 8, 9, 10, 11, 12);&#60;/p&#62;
&#60;p&#62;void setup() {&#60;/p&#62;
&#60;p&#62;  lcd.begin(16, 2);&#60;/p&#62;
&#60;p&#62;  lcd.print(&#34;Hello, Mars!&#34;);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void loop() {&#60;/p&#62;
&#60;p&#62;  lcd.setCursor(0, 1);&#60;br /&#62;
  lcd.print(millis()/1000);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Notes:&#60;br /&#62;
The LCD and this code work fine running off an Arduino&#60;br /&#62;
I have tried this code on 2 different Maple Minis - both produce the same error.&#60;/p&#62;
&#60;p&#62;I really want to be able to use the maple mini for my project, but at the moment, this is a bit of a deal breaker :(&#60;/p&#62;
&#60;p&#62;Any help would be greatly appreciated
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
