<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Broken City Lab &#187; wires</title>
	<atom:link href="http://www.brokencitylab.org/tags/wires/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brokencitylab.org</link>
	<description>Broken City Lab is a creative research group based out of Windsor, Ontario.</description>
	<lastBuildDate>Mon, 06 Sep 2010 21:06:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Getting Things to Talk: Arduino + LCDs</title>
		<link>http://www.brokencitylab.org/blog/getting-things-to-talk-arduino-lcds/</link>
		<comments>http://www.brokencitylab.org/blog/getting-things-to-talk-arduino-lcds/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 21:56:11 +0000</pubDate>
		<dc:creator>Justin Langlois</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[BCL]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[soldering]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[wires]]></category>

		<guid isPermaLink="false">http://www.brokencitylab.org/?p=6597</guid>
		<description><![CDATA[I spent the better part of the day on Saturday doing some more basic research into connecting an Arduino and LCD for this ongoing project. For the most part, it&#8217;s pretty basic and following the wiring diagrams and tutorials online is fine. I ran into a problem with getting text on two lines, which I&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6480.jpg"><img title="IMG_6480" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6480.jpg" alt="IMG 6480 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>I spent the better part of the day on Saturday doing some more basic research into connecting an Arduino and LCD for <a href="http://www.brokencitylab.org/blog/starting-new-projects-researching-the-basics-of-arduino-lcds/" target="_blank">this ongoing project</a>. For the most part, it&#8217;s pretty basic and following the wiring diagrams and tutorials online is fine.</p>
<p>I ran into a problem with getting text on two lines, which I&#8217;ll detail below. Next on the to do list is to order a different LCD, maybe a 4&#215;20 display and maybe something even smaller and then do some work on the text processing part of this whole thing.</p>
<p>Overall, it was a good start and I&#8217;m anxious for later this week when I&#8217;ll have a block of time to continue with the next steps in this early research.</p>
<p><span id="more-6597"></span></p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6304.jpg"><img class="alignnone size-full wp-image-6619" title="IMG_6304" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6304.jpg" alt="IMG 6304 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>First thing after pulling this stuff out again, I followed the wiring diagrams and I connected the data wires, leaving the power and ground until the end.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/Screen-shot-2010-01-08-at-11.25.48-AM.jpg"><img class="alignnone size-full wp-image-6617" title="Screen-shot-2010-01-08-at-11.25.48-AM" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/Screen-shot-2010-01-08-at-11.25.48-AM.jpg" alt="Screen shot 2010 01 08 at 11.25.48 AM Getting Things to Talk: Arduino + LCDs" width="520" height="624" /></a></p>
<p>An initial sketch. Really, really basic &#8220;hello, world!&#8221; program. However, this was before I installed the newest version of Arduino, which is why that error came up.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6437.jpg"><img class="alignnone size-full wp-image-6616" title="IMG_6437" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6437.jpg" alt="IMG 6437 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>Installing version 0017 helped and I finished connecting the LCD.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6438.jpg"><img class="alignnone size-full wp-image-6615" title="IMG_6438" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6438.jpg" alt="IMG 6438 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>It&#8217;s not ideal, but quick and dirty. Also, it seems like there are better screens out there in terms of connections.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6439.jpg"><img class="alignnone size-full wp-image-6614" title="IMG_6439" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6439.jpg" alt="IMG 6439 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>The arduino side of things.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6441.jpg"><img class="alignnone size-full wp-image-6613" title="IMG_6441" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6441.jpg" alt="IMG 6441 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>I figured that it would be better to not be so tightly tethered to the Arduino, so I used the breadboard.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6442.jpg"><img class="alignnone size-full wp-image-6612" title="IMG_6442" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6442.jpg" alt="IMG 6442 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>Trying to make connections a little cleaner.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6449.jpg"><img class="alignnone size-full wp-image-6611" title="IMG_6449" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6449.jpg" alt="IMG 6449 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>My first program, working!</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6454.jpg"><img class="alignnone size-full wp-image-6610" title="IMG_6454" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6454.jpg" alt="IMG 6454 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>All the wires, still a mess, but I was just too anxious to get something on the screen.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6457.jpg"><img class="alignnone size-full wp-image-6609" title="IMG_6457" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6457.jpg" alt="IMG 6457 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>BROKEN CITY LAB!</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6459.jpg"><img class="alignnone size-full wp-image-6608" title="IMG_6459" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6459.jpg" alt="IMG 6459 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>Then I worked on another program that would flash different texts.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6464.jpg"><img class="alignnone size-full wp-image-6607" title="IMG_6464" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6464.jpg" alt="IMG 6464 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>This one switched between BCL and make things happen!</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6466.jpg"><img class="alignnone size-full wp-image-6606" title="IMG_6466" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6466.jpg" alt="IMG 6466 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>Here&#8217;s the code, trying also to change the position of the cursor, which didn&#8217;t work as anticipated because I didn&#8217;t initialize the screen with lcd.begin().</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6469.jpg"><img class="alignnone size-full wp-image-6605" title="IMG_6469" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6469.jpg" alt="IMG 6469 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>I switched the wiring around to try to figure out how to get text on two lines.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6473.jpg"><img class="alignnone size-full wp-image-6603" title="IMG_6473" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6473.jpg" alt="IMG 6473 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>I also connected the backlighting.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6472.jpg"><img title="IMG_6472" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6472.jpg" alt="IMG 6472 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>Lots of confusion, I just couldn&#8217;t get two lines to work, so I went back to one line. I had momentarily wondered why I couldn&#8217;t get any decent contrast on the screen when trying to use two lines and the lcd.begin() line in my code.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6475.jpg"><img class="alignnone size-full wp-image-6602" title="IMG_6475" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6475.jpg" alt="IMG 6475 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>I wondered if it was just my poor connections, so I tried a bit of soldering, but it didn&#8217;t help.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6476.jpg"><img class="alignnone size-full wp-image-6601" title="IMG_6476" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6476.jpg" alt="IMG 6476 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>I went back to the drawing board, trying different wiring set up again.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6477.jpg"><img class="alignnone size-full wp-image-6600" title="IMG_6477" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6477.jpg" alt="IMG 6477 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>Still not the effect I wanted.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6481.jpg"><img class="alignnone size-full wp-image-6622" title="IMG_6481" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6481.jpg" alt="IMG 6481 Getting Things to Talk: Arduino + LCDs" width="520" height="347" /></a></p>
<p>I can&#8217;t seem to get the correct contrast when using the lcd.begin() line, that is to say that at a very severe angle it&#8217;s possible to read the screen, but under normal viewing it&#8217;s no where near what it should be (as pictured above). I didn&#8217;t post a picture of that because it basically just looks like the backlight is on with nothing on the screen itself. I couldn&#8217;t find an answer online, so I&#8217;m going to try this again with a different LCD. Although it could be a number of other things, this seems to be the simplest way to move forward. All these screens are based on the Hitachi HD44780 LCD, so it shouldn&#8217;t be an issue, but I&#8217;m not sue what else could be causing the problem at the moment&#8230; As frustrating as it can be sometimes, I think troubleshooting is where I learn the most.</p>
<p>Here&#8217;s a bit of an annotated bibliography :</p>
<p><a href="http://www.arduinoprojects.com/node/13" target="_blank">http://www.arduinoprojects.com/node/13</a> (for whatever reason, this was the most successful wiring setup, though I have my suspicions that I messed up the contrast at some point due to my shoddy and impermanent wiring)</p>
<p><a href="http://arduino.cc/en/uploads/Tutorial/lcd_schem.png" target="_blank">http://arduino.cc/en/uploads/Tutorial/lcd_schem.png</a> (a diagram for the wiring setup recommended on the Arduino site)</p>
<p><a href="http://www.jamie.net/tag/arduino/" target="_blank">http://www.jamie.net/tag/arduino/</a> (a quick example of using the 4-bit LCD library, I haven&#8217;t tried it)</p>
<p><a href="http://dawes.wordpress.com/2009/12/23/twitter-to-lcd/" target="_blank">http://dawes.wordpress.com/2009/12/23/twitter-to-lcd/</a> (interesting project connecting twitter and Arduino)</p>
<p><a href="http://blog.tinyenormous.com/2008/12/02/arduino-based-rss-reader-with-lcd/" target="_blank">http://blog.tinyenormous.com/2008/12/02/arduino-based-rss-reader-with-lcd/</a> (lots of interesting projects, hooking up Arduino + Twitter and Gmail + Arduino using Python)</p>
<p><a href="http://www.alfonsomartone.itb.it/kwztcq.html" target="_blank">http://www.alfonsomartone.itb.it/kwztcq.html</a> (some helpful troubleshooting stuff)</p>
<p><a href="http://www.arduino.cc/en/Reference/AnalogWrite" target="_blank">http://www.arduino.cc/en/Reference/AnalogWrite</a> (analog write, I used this to correct the contrast problem I had)</p>
<p><a href="http://arduino.cc/en/Reference/LiquidCrystal" target="_blank">http://arduino.cc/en/Reference/LiquidCrystal</a> (LCD library for Arduino)</p>
<p><a href="http://canadacouncil.ca"><img class="CC" title="CCFA-bar" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/CCFA-bar.gif" alt="CCFA bar Getting Things to Talk: Arduino + LCDs" width="520" height="56" /></a></p>

<div class="sociable">

<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.brokencitylab.org%2Fblog%2Fgetting-things-to-talk-arduino-lcds%2F&amp;t=Getting%20Things%20to%20Talk%3A%20Arduino%20%2B%20LCDs" title="Facebook"><img src="http://www.brokencitylab.org/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Getting%20Things%20to%20Talk%3A%20Arduino%20%2B%20LCDs%20-%20http%3A%2F%2Fwww.brokencitylab.org%2Fblog%2Fgetting-things-to-talk-arduino-lcds%2F" title="Twitter"><img src="http://www.brokencitylab.org/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.brokencitylab.org%2Fblog%2Fgetting-things-to-talk-arduino-lcds%2F&amp;title=Getting%20Things%20to%20Talk%3A%20Arduino%20%2B%20LCDs&amp;notes=%0D%0A%0D%0AI%20spent%20the%20better%20part%20of%20the%20day%20on%20Saturday%20doing%20some%20more%20basic%20research%20into%20connecting%20an%20Arduino%20and%20LCD%20for%20this%20ongoing%20project.%20For%20the%20most%20part%2C%20it%27s%20pretty%20basic%20and%20following%20the%20wiring%20diagrams%20and%20tutorials%20online%20is%20fine.%0D%0A%0D%0AI%20r" title="del.icio.us"><img src="http://www.brokencitylab.org/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.brokencitylab.org/blog/getting-things-to-talk-arduino-lcds/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
