<?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; electronics</title>
	<atom:link href="http://www.brokencitylab.org/tags/electronics/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>Wed, 28 Jul 2010 18:19:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>More Arduino + LCD + PHP fun</title>
		<link>http://www.brokencitylab.org/blog/more-arduino-lcd-php-fun/</link>
		<comments>http://www.brokencitylab.org/blog/more-arduino-lcd-php-fun/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 14:39:27 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[BCL]]></category>
		<category><![CDATA[diagrams]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[numbers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[research]]></category>

		<guid isPermaLink="false">http://www.brokencitylab.org/?p=7043</guid>
		<description><![CDATA[My work on this ongoing LCD Arduino project has been continuing over the last couple of weeks, I just haven&#8217;t had the time to update appropriately. So, I switched over my plan of attack from Processing to PHP. I figured this made sense for a couple reasons: first, I&#8217;m already very well-acquainted with PHP, I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7140.jpg"><img class="alignnone size-full wp-image-7147" title="IMG_7140" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7140.jpg" alt="" width="520" height="347" /></a></p>
<p>My work on this <a href="http://www.brokencitylab.org/blog/new-lcds-and-serial-ports-and-some-maxmsp-for-good-measure/" target="_blank">ongoing LCD Arduino project</a> has been continuing over the last couple of weeks, I just haven&#8217;t had the time to update appropriately.</p>
<p>So, I switched over my plan of attack from Processing to PHP. I figured this made sense for a couple reasons: first, I&#8217;m already very well-acquainted with PHP, I&#8217;ve written and hacked together a good amount of code in this language before and so I feel like I&#8217;ll spend a lot less time just figuring this out and more time actually doing; second, I don&#8217;t think I was really going to use Processing for its strengths, and instead, I was going to rely on its string functions, which pale in comparison to PHP.</p>
<p>I&#8217;ve made quite a lot of progress over the last week or so &#8212; all of which is detailed below. There are still some major problems I need to sort out, but for the most part things are about where I&#8217;d hoped them to be at this point.</p>
<p><span id="more-7043"></span></p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/Screen-shot-2010-02-04-at-2.47.25-PM.jpg"><img title="Screen-shot-2010-02-04-at-2.47.25-PM" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/Screen-shot-2010-02-04-at-2.47.25-PM.jpg" alt="" width="520" height="289" /></a></p>
<p>First off, I had to spend some time getting the server up and PHP and running on my MacBook Pro again. I had set this up a while back, probably before I upgraded to Leopard (and having since upgraded to Snow Leopard), some things needed some manual attention. I wish I had saved the links, but the gist of it was that I needed to change the user.conf file.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7140.jpg"></a><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/Screen-shot-2010-02-04-at-2.47.19-PM.jpg"><img title="Screen-shot-2010-02-04-at-2.47.19-PM" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/Screen-shot-2010-02-04-at-2.47.19-PM.jpg" alt="" width="520" height="281" /></a></p>
<p>I also started working with the PHP Serial class, which is awesome, there are a few versions out there, but the one I&#8217;m using came from Rizwan Kassim who made changes to the oft-circulated Rémy Sanchez version.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/Screen-shot-2010-02-04-at-2.47.19-PM.jpg"></a><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7142.jpg"><img class="alignnone size-full wp-image-7146" title="IMG_7142" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7142.jpg" alt="" width="520" height="347" /></a></p>
<p>So, I tweaked the example script to spit out the text that would appear on my LCD screen in my browser window.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7144.jpg"><img class="alignnone size-full wp-image-7145" title="IMG_7144" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7144.jpg" alt="" width="520" height="347" /></a></p>
<p>Here&#8217;s the script.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7140.jpg"><img title="IMG_7140" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7140.jpg" alt="" width="520" height="347" /></a></p>
<p>And the result.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7145.jpg"><img class="alignnone size-full wp-image-7144" title="IMG_7145" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7145.jpg" alt="" width="520" height="347" /></a></p>
<p>Then I moved onto a looped script.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7147.jpg"><img class="alignnone size-full wp-image-7143" title="IMG_7147" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7147.jpg" alt="" width="520" height="347" /></a></p>
<p>This worked fairly well.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7148.jpg"><img class="alignnone size-full wp-image-7142" title="IMG_7148" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7148.jpg" alt="" width="520" height="347" /></a></p>
<p>The script &#8230; wrapping the $serial -&gt; sendMessage($i) in a while statement.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7149.jpg"><img class="alignnone size-full wp-image-7141" title="IMG_7149" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7149.jpg" alt="" width="520" height="347" /></a></p>
<p>My diagram for what exactly I want this to do&#8230;</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7152.jpg"><img class="alignnone size-full wp-image-7140" title="IMG_7152" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7152.jpg" alt="" width="520" height="347" /></a></p>
<p>The counting numbers script was a bit wonky for reasons I&#8217;m not entirely clear about. Basically it would count up to a certain number, but then clear the screen and print the rest of the numbers. That is, if I wanted it to write up to 11, it would split the number sequence somewhere near 6 or 7, and then show the rest on a freshly cleared screen. I&#8217;m not sure why this was happening, but I wondered if the script was just moving too slowly (or too quickly) for the Arduino to catch it all at once.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7153.jpg"><img class="alignnone size-full wp-image-7139" title="IMG_7153" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7153.jpg" alt="" width="520" height="347" /></a></p>
<p>Then I spent a long time trying to figure out how to break up the text correctly. The thing is, I had hoped for this project to be able to take a text string and display it all at once on the LCD screen. However, the LCD screen and Arduino don&#8217;t know how to automatically display this as I might wish. There are some inherent difficulties in this &#8212; while PHP can find me letters or entire words and break them up accordingly, I&#8217;m not sure how to signal Arduino to tell the LCD to start a new line. You can see above, I had momentarily programmed the PHP script to display correctly in the browser, but it made me think that if I could just find the right catch character, I could get this to work as I imagined.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7157.jpg"><img class="alignnone size-full wp-image-7137" title="IMG_7157" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7157.jpg" alt="" width="520" height="347" /></a></p>
<p>The other thing that you&#8217;ll notice is that the Arduino sketch as I had written it at the moment, wasn&#8217;t right in its placement of characters on the LCD.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7158.jpg"><img class="alignnone size-full wp-image-7136" title="IMG_7158" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7158.jpg" alt="" width="520" height="347" /></a></p>
<p>As I understand it, these LCDs are meant to write to the 1st line, then the 3rd, then the 2nd, then the 4th.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7159.jpg"><img class="alignnone size-full wp-image-7135" title="IMG_7159" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7159.jpg" alt="" width="520" height="347" /></a></p>
<p>In this case, I had the Arduino sketch printing out one letter at a time &#8212; and I realized I actually liked this effect (simple I know), but I think it helps to communicate some level of this thing actually receiving new data.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/Screen-shot-2010-02-04-at-8.16.59-PM.jpg"><img title="Screen-shot-2010-02-04-at-8.16.59-PM" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/Screen-shot-2010-02-04-at-8.16.59-PM.jpg" alt="" width="520" height="424" /></a></p>
<p>One of the many Arduino sketches I was trying to piece together from other tutorials, etc. At some point I think I was trying to use command characters that I saw on Serial LCD tutorials &#8212; my LCD is parallel, so I have to imagine this is a big reason why it wasn&#8217;t working.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7163.jpg"><img class="alignnone size-full wp-image-7133" title="IMG_7163" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7163.jpg" alt="" width="520" height="347" /></a></p>
<p>So, back to the drawing board&#8230;</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7164.jpg"><img class="alignnone size-full wp-image-7132" title="IMG_7164" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7164.jpg" alt="" width="520" height="347" /></a></p>
<p>This time, I got it to work&#8230;</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7165.jpg"><img class="alignnone size-full wp-image-7131" title="IMG_7165" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7165.jpg" alt="" width="520" height="347" /></a></p>
<p>See the comma &#8212; it went to the 2nd line, like it was supposed to!</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7166.jpg"><img class="alignnone size-full wp-image-7130" title="IMG_7166" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7166.jpg" alt="" width="520" height="347" /></a></p>
<p>The string carried on, though it&#8217;s awkward with not being able to determine in PHP where the string should break for a new line and have that information sent on to Arduino.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/Screen-shot-2010-02-04-at-10.13.41-PM.jpg"><img title="Screen-shot-2010-02-04-at-10.13.41-PM" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/Screen-shot-2010-02-04-at-10.13.41-PM.jpg" alt="" width="520" height="699" /></a></p>
<p>Here&#8217;s a screenshot of the Arduino code I&#8217;d settled on. Those letter variables are a counter for each line, allowing me to have Arduino automatically wrap the entire string when it&#8217;s reached the end of each line properly so that the string continues onto the next line, rather than the 1-3, 2-4 thing I described above.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7167.jpg"><img class="alignnone size-full wp-image-7129" title="IMG_7167" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7167.jpg" alt="" width="520" height="347" /></a></p>
<p>So the string continues.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7172.jpg"><img class="alignnone size-full wp-image-7126" title="IMG_7172" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7172.jpg" alt="" width="520" height="347" /></a></p>
<p>And here&#8217;s the string completed. Really awkward line breaks in the string, as Arduino will print until its reached 20 characters on each line. You can see why I need to figure out how to translated information from something like wordwrap() in PHP to Arduino.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7175.jpg"><img title="IMG_7175" src="http://www.brokencitylab.org/wp-content/uploads/2010/02/IMG_7175.jpg" alt="" width="520" height="347" /></a></p>
<p>And again, here&#8217;s the code that finally made this work, all those counters&#8230;</p>
<p>The other part of this project that I started to work towards is the process through which I will receive text messages and put them into the system. Sending text messages from computers is easy, but receiving text messages in an email or something like that is much more difficult. However, I found</p>
<p><strong>Problems that remain at the moment:</strong></p>
<p>I&#8217;m still not sure why I need the Arduino Serial Monitor open for this to work. Unless it&#8217;s open, the PHP script won&#8217;t work and because it doesn&#8217;t work, it gets stuck with the Serial port open, it crashes the Arduino IDE and the LCD itself obviously has no output.</p>
<p>I still need to figure out how to signal a line break earlier than 20 characters when appropriate. I can get this information about a string and split it up in PHP, but I&#8217;m not sure how to pass that along to Arduino. I&#8217;m guessing using something like a case break type of loop would do it. <a href="http://www.ipipi.com/help/ipipi_in_out.htm" target="_blank">iPiPi</a> seems to provide the technology that I need, which is essentially a number that can receive text messages and automatically route them to an email. The service that I need is going to be fairly costly, given that I&#8217;d want a dedicated number or long code, but would be worth it to see this project work as I imagined it &#8230; that part of the project is a little while off anyways. But, I&#8217;m just happy that I found what I was looking for.</p>
<p>&#8211;</p>
<p><strong>Annotated bibliography for the last couple of weeks:</strong></p>
<p><a href="http://dorkbotpdx.org/blog/kmat/serial_lcd" target="_blank">http://dorkbotpdx.org/blog/kmat/serial_lcd</a> (serial &#8211;&gt; LCD &#8230; this is making more sense now, using case breaks to look for specific characters to insert a function, such as starting a new line)</p>
<p><a href="http://blog.datasingularity.com/?p=50" target="_blank">http://blog.datasingularity.com/?p=50</a> (control arduino through html)</p>
<p><a href="http://stackoverflow.com/questions/899098/arduino-serial-reading" target="_blank">http://stackoverflow.com/questions/899098/arduino-serial-reading</a> (arduino serial reading)</p>
<p><a href="http://www.ipipi.com/ContactUs.do" target="_blank">http://www.ipipi.com/ContactUs.do</a> (potential sms forwarding to email option)</p>
<p><a href="http://www.ipipi.com/help/ipipi_in_out.htm" target="_blank">http://www.ipipi.com/help/ipipi_in_out.htm</a> (this is what I would need to receive messages, not as simple as a number, but maybe the best way to avoid having to get another phone number, I should also ask about a potential shortcode)</p>
<p><a href="http://docs.upsidewireless.com/index.php?title=MO_HTTP" target="_blank">http://docs.upsidewireless.com/index.php?title=MO_HTTP</a> (notes on how to bring sms messages into an application using HTTP POST)</p>
<p><a href="http://www.upsidewireless.com/how_virtual_sms_works.htm" target="_blank">http://www.upsidewireless.com/how_virtual_sms_works.htm</a> (this is the kind of service I&#8217;ll need for this project &#8230; SMS messages forwarded to email or accessible through HTTP requests &#8230; with the possibility of getting a Windsor-based number AKA longcode)</p>
<p><a href="http://www.mydarkmaterials.co.uk/2008/11/interfacing-php-with-the-arduino/" target="_blank">http://www.mydarkmaterials.co.uk/2008/11/interfacing-php-with-the-arduino/</a> (this is an example of interfacing PHP Serial with Arduino, and I suspect old enough that many of the problems the author ran into aren&#8217;t there any longer &#8230; maybe it&#8217;s been silly of me to ignore PHP &#8230; I actually have a decent idea of what I&#8217;m doing there)</p>
<p><a href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/" target="_blank">http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/</a> (helpful to get PHP running properly on 10.6)</p>
<p><a href="http://opensourceprojects-torchris.blogspot.com/2009/09/arduino-pop3-email-checker.html" target="_blank">http://opensourceprojects-torchris.blogspot.com/2009/09/arduino-pop3-email-checker.html</a> (maybe or maybe not useful in some capacity, using arduino to check email)</p>
<p><a href="http://www.arduino.cc/playground/Learning/SparkFunSerLCD" target="_blank">http://www.arduino.cc/playground/Learning/SparkFunSerLCD</a> (serial commands)</p>
<p><a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?action=print;num=1192470251" target="_blank">http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?action=print;num=1192470251</a> (word wrapping in Arduino)</p>
<p><a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1252901403/4">http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1252901403/4</a> (word wrapping more)</p>
<p><strong>I would like to thank the Canada Council for the Arts for their generous support.</strong></p>
<p><a href="http://canadacouncil.ca"><img title="CCFA-bar" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/CCFA-bar.gif" alt="" width="520" height="56" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brokencitylab.org/blog/more-arduino-lcd-php-fun/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New LCDs and Serial Ports and some Max/MSP for good measure</title>
		<link>http://www.brokencitylab.org/blog/new-lcds-and-serial-ports-and-some-maxmsp-for-good-measure/</link>
		<comments>http://www.brokencitylab.org/blog/new-lcds-and-serial-ports-and-some-maxmsp-for-good-measure/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 23:36:02 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[BCL]]></category>
		<category><![CDATA[diagrams]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[LCDs]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[Max/MSP/Jitter]]></category>
		<category><![CDATA[research]]></category>

		<guid isPermaLink="false">http://www.brokencitylab.org/?p=7035</guid>
		<description><![CDATA[I haven&#8217;t posted on this project for a little while, partially because of the preparation for the ongoing Save the City project, and partially because the little time that I&#8217;ve had to work on this has only resulted in small increments. So, I figured I would wait until I had some more significant updates to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7066.jpg"><img title="IMG_7066" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7066.jpg" alt="" width="520" height="347" /></a></p>
<p>I haven&#8217;t posted on <a href="http://www.brokencitylab.org/blog/getting-things-to-talk-arduino-lcds/">this project</a> for a little while, partially because of the preparation for the ongoing <a href="http://www.brokencitylab.org/savethecity/" target="_blank">Save the City</a> project, and partially because the little time that I&#8217;ve had to work on this has only resulted in small increments. So, I figured I would wait until I had some more significant updates to make to post, and here they are.</p>
<p>Basically, I&#8217;ve been working on a couple parts of the project. I&#8217;ve been updating a <a href="http://cycling74.com" target="_blank">Max/MSP/Jitter</a> project that <strong>BCL</strong> had previously used for our projection performances to try to automate some of the scaling of text depending on what the input is, while also continuing with the <a href="http://arduino.cc" target="_blank">Arduino </a>and LCD integration.</p>
<p><span id="more-7035"></span></p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6732.jpg"><img class="alignnone size-full wp-image-7033" title="IMG_6732" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6732.jpg" alt="" width="520" height="347" /></a></p>
<p>So first, some of the shots of the Max patch.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6733.jpg"><img class="alignnone size-full wp-image-7032" title="IMG_6733" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6733.jpg" alt="" width="520" height="347" /></a></p>
<p>It&#8217;s a bit crude, but basically, the patch will ask for the number of letters per line and then scale the text size appropriately.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6727.jpg"><img title="IMG_6727" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6727.jpg" alt="" width="520" height="347" /></a></p>
<p>However, I couldn&#8217;t figure this out on my own. I made some notes on the relationship I was seeing, but I wasn&#8217;t sure how to translate that mathematically.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6737.jpg"><img class="alignnone size-full wp-image-7030" title="IMG_6737" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6737.jpg" alt="" width="520" height="347" /></a></p>
<p>I figured the relationship was something like this.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6739.jpg"><img class="alignnone size-full wp-image-7029" title="IMG_6739" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6739.jpg" alt="" width="520" height="347" /></a></p>
<p>So, I called my brother with a degree in engineering, and asked him for some help. He came through!</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6750.jpg"><img class="alignnone size-full wp-image-7028" title="IMG_6750" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6750.jpg" alt="" width="520" height="347" /></a></p>
<p>This is what he came up with initially: <strong>625 * x^-1</strong> &#8230; I adjusted it a bit to 925, as that number seemed to do better with more letters, which would more often be the case.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6751.jpg"><img class="alignnone size-full wp-image-7027" title="IMG_6751" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_6751.jpg" alt="" width="520" height="347" /></a></p>
<p>So, here&#8217;s the patch work, doing a good job at scaling 3 letters to the appropriate size to fill the majority of the window. The reason I&#8217;m continuing with playing with this Max patch is that it may provide an alternative to the Arduino+LCD combo if it doesn&#8217;t end up working the way I need it to.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7048.jpg"><img class="alignnone size-full wp-image-7026" title="IMG_7048" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7048.jpg" alt="" width="520" height="347" /></a></p>
<p>So, after some frustration a little while ago, I picked up some new screens and everything is working as I had hoped. I&#8217;m still not sure why I was having <a href="http://www.brokencitylab.org/blog/getting-things-to-talk-arduino-lcds/">troubles before</a> with the contrast, and it&#8217;s frustrating that I couldn&#8217;t come to some resolution about it.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7049.jpg"><img class="alignnone size-full wp-image-7025" title="IMG_7049" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7049.jpg" alt="" width="520" height="347" /></a></p>
<p>I had picked up a <a href="http://www.amazon.ca/Processing-Programming-Handbook-Designers-Artists/dp/0262182629/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1264634008&amp;sr=8-1" target="_blank">book on Processing</a> and I&#8217;ve skimmed through it a couple of times in the past, but never when I actually had time to work in <a href="http://processing.org" target="_blank">Processing</a> on a project.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7050.jpg"><img class="alignnone size-full wp-image-7024" title="IMG_7050" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7050.jpg" alt="" width="520" height="347" /></a></p>
<p>So, at first, I was just trying to figure out how to understand Arduino and Processing talking to one another. I ran some example patches and I didn&#8217;t get any warning flags when running the serial library in Processing, so I set out trying to test the actual communication.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7054.jpg"><img class="alignnone size-full wp-image-7023" title="IMG_7054" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7054.jpg" alt="" width="520" height="347" /></a></p>
<p>Here&#8217;s another example, I can&#8217;t quite remember what this resulted in specifically, and it may have been that I was just trying to run another basic test to ensure something was working as anticipated.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7056.jpg"><img class="alignnone size-full wp-image-7021" title="IMG_7056" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7056.jpg" alt="" width="520" height="347" /></a></p>
<p>Next, Processing listed the available serial ports, using the first one in the array worked perfectly.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7062.jpg"><img class="alignnone size-full wp-image-7019" title="IMG_7062" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7062.jpg" alt="" width="520" height="347" /></a></p>
<p>The result &#8211; hollar! &#8211; the first thing I sent to Arduino from Processing. It finally made sense to me: Arduino needed a sketch that will listen (or technically read) from the Serial port.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/Screen-shot-2010-01-25-at-12.17.20-PM.jpg"><img title="Screen-shot-2010-01-25-at-12.17.20-PM" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/Screen-shot-2010-01-25-at-12.17.20-PM.jpg" alt="" width="520" height="624" /></a></p>
<p>And here&#8217;s the Arduino patch that did that work!</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7064.jpg"><img class="alignnone size-full wp-image-7018" title="IMG_7064" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7064.jpg" alt="" width="520" height="347" /></a></p>
<p>Shortly thereafter though, upon trying to backtrack, simplify and just have the process start without having the Arduino client open, something wasn&#8217;t working. I couldn&#8217;t figure it out, so I tried to think back to how I had set it up in the first place. Conceptually, I had difficulty understanding how this serial port thing worked. Something finally clicked. Processing needs to send messages <em>through</em> the Serial port.  Somehow I wasn&#8217;t cluing in to envision it as an actual port that data would pass through. I&#8217;m not sure why I didn&#8217;t pick up on understanding the relationship between Arduino and the serial port for stuff like this earlier. Looking at the examples that used Python may have confused me I think, since I don&#8217;t know that language. Looking at them now though, I understand better how it all works.</p>
<p>Arduino just needs to listen for something coming over the serial port and then ask the LCD to print that incoming message.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7065.jpg"><img class="alignnone size-full wp-image-7017" title="IMG_7065" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7065.jpg" alt="" width="520" height="347" /></a></p>
<p>It also helped to finally test with the serial monitor from Arduino environment, which helped to illustrate immediately what was going on. I think I understood the basics of serial port communication (as in, a message can be sent over this), but I wasn&#8217;t cluing in that Arduino had to be setup to listen for those messages, which may have led to some of my confusion.</p>
<p>However, it seems as though I need to open up the serial monitor and send a message to Arduino before it will hear anything from Processing. I wonder why &#8212; I assume I&#8217;m not initializing it properly?</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7066.jpg"><img class="alignnone size-full wp-image-7016" title="IMG_7066" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7066.jpg" alt="" width="520" height="347" /></a></p>
<p>Upon further reading, my other thought is that the Serial port isn&#8217;t available to Processing, possibly it&#8217;s in use by something else, thereby preventing Processing from accessing it? The strange part, though, is that once I open the Serial Monitor in the Arduino environment / client, Processing can send messages without any problem. I&#8217;ll have to look into this some more.</p>
<p><a href="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7070.jpg"><img class="alignnone size-full wp-image-7014" title="IMG_7070" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_7070.jpg" alt="" width="520" height="347" /></a></p>
<p>And, once again, the Arduino patch that makes this all work.</p>
<p>At any rate, things are moving along nicely. I&#8217;m doing some replicating of other people&#8217;s projects to familiarize myself with how to integrate an Arduino and LCD screen into something a bit more automated.</p>
<p>Next on the list, start having Processing cycling through text files. There&#8217;s a lot of examples of this using Python, but I&#8217;m going to look into Processing instead.</p>
<p>Annotated bibliography for the last couple of weeks:</p>
<p><a href="http://www.ladyada.net/make/pumpkin/pumpkin.html" target="_blank">http://www.ladyada.net/make/pumpkin/pumpkin.html</a> (great idea for introducing a distributed urban surface sound project)</p>
<p><a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?action=print;num=1181079252" target="_blank">http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?action=print;num=1181079252</a> (solar-powered Arduino help)</p>
<p><a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=35&amp;products_id=172" target="_blank">http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=35&amp;products_id=172</a> (range finder)</p>
<p><a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=37&amp;products_id=198" target="_blank">http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=37&amp;products_id=198</a> (the LCD screens I got)</p>
<p><a href="http://clete2.com/2009/11/control-lcd-text-over-web-interface-arduino/" target="_blank">http://clete2.com/2009/11/control-lcd-text-over-web-interface-arduino/</a> (controlling LCD over web)</p>
<p><a href="http://www.arduino.cc/playground/Interfacing/Processing" target="_blank">http://www.arduino.cc/playground/Interfacing/Processing</a> (Interfacing Processing and Arduino)</p>
<p><a href="http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1255733236" target="_blank">http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1255733236</a> (Process + Serial + LCD to display Tweets)</p>
<p><a href="http://itp.nyu.edu/physcomp/Labs/SerialOut" target="_blank">http://itp.nyu.edu/physcomp/Labs/SerialOut</a> (some tutorials on physical computing)</p>
<p><a href="http://drewish.com/content/2009/06/simple_arduino_serial_communications" target="_blank">http://drewish.com/content/2009/06/simple_arduino_serial_communications</a> (simple serial communications)</p>
<p><a href="http://www.akeric.com/blog/?p=1015" target="_blank">http://www.akeric.com/blog/?p=1015</a> (arduino / processing / python)</p>
<p><strong>I would like to thank the Canada Council for the Arts for their generous support. </strong></p>
<p><a href="http://canadacouncil.ca"><img title="CCFA-bar" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/CCFA-bar.gif" alt="" width="520" height="56" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brokencitylab.org/blog/new-lcds-and-serial-ports-and-some-maxmsp-for-good-measure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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</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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" 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="" width="520" height="56" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brokencitylab.org/blog/getting-things-to-talk-arduino-lcds/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Starting New Projects: Researching the Basics of Arduino + LCDs</title>
		<link>http://www.brokencitylab.org/blog/starting-new-projects-researching-the-basics-of-arduino-lcds/</link>
		<comments>http://www.brokencitylab.org/blog/starting-new-projects-researching-the-basics-of-arduino-lcds/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 19:32:56 +0000</pubDate>
		<dc:creator>Justin</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[text]]></category>

		<guid isPermaLink="false">http://www.brokencitylab.org/?p=6502</guid>
		<description><![CDATA[As part of a Canada Council for the Arts Inter-Arts Research and Creation grant I received, I will be documenting my work on the project through here, as I anticipate it will cross over into other projects we work on and came out of past projects we&#8217;ve completed. This project comes out of Broken City [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-6503" title="IMG_1669-sm" src="http://www.brokencitylab.org/wp-content/uploads/2010/01/IMG_1669-sm.jpg" alt="" width="520" height="347" /></p>
<p>As part of a <a href="http://canadacouncil.ca" target="_blank">Canada Council for the Arts</a> <a href="http://canadacouncil.ca/interarts/" target="_blank">Inter-Arts</a> <em>Research and Creation</em> grant I received, I will be documenting my work on the project through here, as I anticipate it will cross over into other projects we work on and came out of past projects we&#8217;ve completed.</p>
<p>This project comes out of <strong>Broken City Lab</strong>&#8216;s previous work on <a href="http://www.brokencitylab.org/projects/#text-in-transit">Text In-Transit</a>, where I&#8217;m hoping to open up a continuing flow of those kinds of texts in relation to a public space like a bus, or bus stops, or the downtown terminal. It&#8217;s likely that we&#8217;ll be working with Transit Windsor again on this project as it moves along. The project will connect this kind of publicly-engaged work I&#8217;ve done with BCL with some of my digital work I&#8217;ve done in the past.</p>
<p>The project is going to involve a lot of experimenting with <a href="http://arduino.cc/" target="_blank">Arduino</a>-controlled LCD screens, and efforts towards capturing sms text messages, twitter updates, and emails and pushing them all into an LCD display. This will be the foundation of the project anyways.</p>
<p>I&#8217;m assuming this is going to involve a combination of interfacing Arduino with <a href="http://cycling74.com" target="_blank">Max</a> or <a href="http://processing.org" target="_blank">Processing</a> and using <a href="http://www.perl.org/" target="_blank">Perl</a> or maybe <a href="http://php.net/index.php" target="_blank">PHP</a> to do the text processing (depending on how involved it is), though it may end up taking another route altogether, but that&#8217;s what this time is for. I&#8217;ll be spending the next few months working through these aspects of the project, while also building towards an approximation of a public installation. I&#8217;ll spill more details as time goes on, and I&#8217;ll be documenting my progress, as I&#8217;ll undoubtedly need notes of my own, and why not keep them on here?</p>
<p>For now, I&#8217;ll be working through some basic tutorials, and eventually heading up to <a href="http://interaccess.org/" target="_blank">InterAcces</a> for some of their workshops.</p>
<p>I would like to thank the Canada Council for the Arts for their generous support in this project. I&#8217;ll be acknowledging their support with their logo on each post that I write while documenting this project.</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="" width="520" height="56" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.brokencitylab.org/blog/starting-new-projects-researching-the-basics-of-arduino-lcds/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
