New LCDs and Serial Ports and some Max/MSP for good measure
I haven’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’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.
Basically, I’ve been working on a couple parts of the project. I’ve been updating a Max/MSP/Jitter project that BCL 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 Arduino and LCD integration.
So first, some of the shots of the Max patch.
It’s a bit crude, but basically, the patch will ask for the number of letters per line and then scale the text size appropriately.
However, I couldn’t figure this out on my own. I made some notes on the relationship I was seeing, but I wasn’t sure how to translate that mathematically.
I figured the relationship was something like this.
So, I called my brother with a degree in engineering, and asked him for some help. He came through!
This is what he came up with initially: 625 * x^-1 … I adjusted it a bit to 925, as that number seemed to do better with more letters, which would more often be the case.
So, here’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’m continuing with playing with this Max patch is that it may provide an alternative to the Arduino+LCD combo if it doesn’t end up working the way I need it to.
So, after some frustration a little while ago, I picked up some new screens and everything is working as I had hoped. I’m still not sure why I was having troubles before with the contrast, and it’s frustrating that I couldn’t come to some resolution about it.
I had picked up a book on Processing and I’ve skimmed through it a couple of times in the past, but never when I actually had time to work in Processing on a project.
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’t get any warning flags when running the serial library in Processing, so I set out trying to test the actual communication.
Here’s another example, I can’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.
Next, Processing listed the available serial ports, using the first one in the array worked perfectly.
The result – hollar! – 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.
And here’s the Arduino patch that did that work!
Shortly thereafter though, upon trying to backtrack, simplify and just have the process start without having the Arduino client open, something wasn’t working. I couldn’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 through the Serial port. Somehow I wasn’t cluing in to envision it as an actual port that data would pass through. I’m not sure why I didn’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’t know that language. Looking at them now though, I understand better how it all works.
Arduino just needs to listen for something coming over the serial port and then ask the LCD to print that incoming message.
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’t cluing in that Arduino had to be setup to listen for those messages, which may have led to some of my confusion.
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 — I assume I’m not initializing it properly?
Upon further reading, my other thought is that the Serial port isn’t available to Processing, possibly it’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’ll have to look into this some more.
And, once again, the Arduino patch that makes this all work.
At any rate, things are moving along nicely. I’m doing some replicating of other people’s projects to familiarize myself with how to integrate an Arduino and LCD screen into something a bit more automated.
Next on the list, start having Processing cycling through text files. There’s a lot of examples of this using Python, but I’m going to look into Processing instead.
Annotated bibliography for the last couple of weeks:
http://www.ladyada.net/make/pumpkin/pumpkin.html (great idea for introducing a distributed urban surface sound project)
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?action=print;num=1181079252 (solar-powered Arduino help)
http://www.adafruit.com/index.php?main_page=product_info&cPath=35&products_id=172 (range finder)
http://www.adafruit.com/index.php?main_page=product_info&cPath=37&products_id=198 (the LCD screens I got)
http://clete2.com/2009/11/control-lcd-text-over-web-interface-arduino/ (controlling LCD over web)
http://www.arduino.cc/playground/Interfacing/Processing (Interfacing Processing and Arduino)
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1255733236 (Process + Serial + LCD to display Tweets)
http://itp.nyu.edu/physcomp/Labs/SerialOut (some tutorials on physical computing)
http://drewish.com/content/2009/06/simple_arduino_serial_communications (simple serial communications)
http://www.akeric.com/blog/?p=1015 (arduino / processing / python)
I would like to thank the Canada Council for the Arts for their generous support.




















![LED Sign Construction Tuesday night’s Broken City Lab Office Hours were successful, but as usual, all too short. Spending the majority of the time in Lebel’s wood shop, we started working on our LED sign, but still have a long ways to go with it. We cut plexiglass, drilled holes, and started soldering—I think we’ll continue next Monday [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2009/01/img_2074-150x150.jpg)
![New LCDs and Serial Ports and some Max/MSP for good measure I haven’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’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 [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/01/IMG_7066-150x150.jpg)
![SRSI, Day 8: Rethinking Parking Garages Yesterday was just lovely! Andrea Carvalho did a parking garage performance as part of her study of Non-Places, Kero set up his interactive installation, and a lot of familiar local friends rolled through The People’s Museum to contribute to the giant map. Andrea has been trying to perform in this space for a few days [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/06/IMG_0449-150x150.jpg)

![Mid-August: Maps, Writing & Cardboard We’ve been quiet on the blog, but not because we haven’t been busy. I’ve been working away at the final touches for the maps for Sites of Apology / Sites of Hope, which while taking longer than I had anticipated, was well worth it. The map looks great, we’ll be posting it on here soon [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/08/IMG_3153-150x150.jpg)
![How to Save a City The details: Friday, May 21 at 7pm, Art Gallery of Windsor. For the past five months, we’ve been working on a series of events aimed at unfolding the stories, experiences, images, geography, buildings, folkloric histories, people, and places that make Windsor the city that it is. Perhaps you’ve come out to one of our community events [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/05/BCL-STC-MAY-5x7-french-outlines-520-150x150.jpg)
![Creative Time Summit: Some Reflection with 4 Days of Distance There’s a lot to say about the Creative Time Summit: Revolutions in Public Practice 2, though I’m not really sure where to start. You should start by visiting the Creative Time Summit site and watching the presentations for yourself, then you should read the excellent recap essay by Gregory Sholette and the somewhat brief, but [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/10/IMG_3702-150x150.jpg)

![SRSI, Day 9 & 10: Berries and Pies! We had a lot of changes happen this weekend down on Pelissier Street. Eric Cheung’s Interior sod was uninstalled Saturday, Leesa Bringas’ Indian Road Postcard project launched, and Merry Ellen Scully Mosna’s pie-making was a big hit on Sunday. < Eric’s sod was picked up Saturday afternoon. He placed an ad on Kijiji for free [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/06/DSC_0967-150x150.jpg)
![Text On Ice We’ve spent the last couple of weeks developing this project, and somehow waited until the coldest night yet to install the first successful Text On Ice (You Changed Everything) project. I’ll post some more details on the (ongoing) process later this week, but wanted to get this image up first. This first iteration of the [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2008/12/img_8660-edit-150x150.jpg)
![Eric Boucher Micro-Residency Iteration 6/6 This past Saturday I did my portion of the BCL collab/micro-residency with the lovely and talented wunderkind, Mr.Eric Boucher. For the collab I had Eric interview my sister’s good friend, Sam. Aside from her notable charm, I think Sam was a good candidate for the project because she is a student who came from Sarnia [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2009/12/eric_sam_dec1209-150x150.jpg)
![How Walking Around Your City Can Lead to Something Great By some estimates (including the CBC), there were 100 people on the walk we took on Tuesday night, in the rain, throughout downtown Windsor. The attendance alone was inspiring, but what really made the experience so incredible for me was the energy that everyone brought. When we stopped and took a moment to briefly talk [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/12/IMG_4989-150x150.jpg)
![Getting Closer Every Week: Big Letters and New Titles We had another great Friday night meeting, even though Josh was sick, and even though we underestimated two things. First, we struggled again thinking through this second residency/conference idea, and the letters took way longer than anticipated to papier mâché. At any rate, with the autumn weather firmly setting in, it’s looking like we’ll be [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/10/IMG_3581-150x150.jpg)
![Let’s Be Friends Another iteration of our Text On Ice series, this time spelling out, “Let’s Be Friends” and mounted on a fence bordering the Forster Secondary School‘s field. Danielle and I made quick work, though as usual, our fingers froze long before we finished. It would have been easier to have someone else on the other side [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2009/01/img_1683-2-150x150.jpg)
![Tools in Forgetting the Border Part of our research for How to Forget the Border Completely is going to come from a lot of video. We’re not sure how many interviews we’ll do or exactly where we’ll be shooting, but we wanted to be prepared. I’ve had a Canon T2i for over a year now and it’s a very solid [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2011/01/IMG_8438-150x150.jpg)
![SRSI, Day 1: Cleaning up the Storefronts Day 1 of the Storefront Residencies for Social Innovation: we get the keys and begin massive clean up. Vinyl is being cut, walls will be painted, carpets are vacuumed, windows are washed, but still things to do. However, great things are ahead. Josh and Michelle at the very start of the day, before the cleaning [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/06/IMG_9785-150x150.jpg)
![SRSI, Day 25: Bookmobile & Friendly Services Monday saw the last new residents move in to the SRSI spaces; Lee Rodney’s Bookmobile Reading Room and Emily Colombo’s friendly services. To get footage for the SRSI documentary, Daragh followed Norman around, who was on his A game all day. Norman’s logs present a personal perspective on his security guard experiences. Lee Rodney arrived [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2010/07/IMG_1470-150x150.jpg)
![Calendars, Notes, Installations, Vinyl, Camouflage, Drywall, Tests, and Hearts Our rate of posting on here has slowed down considerably since the summer. We’re still busy, it’s just the pace of the work and projects now seems to span longer and longer time frames, and with so many ongoing and overlapping projects, it’s just a lot more challenging to find the time to keep track [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2012/11/wpid20294-IMG_1485-150x150.jpg)
![Visiting Detroit Danielle and I went over to Detroit yesterday to meet with Aaron Timlin (from the Contemporary Art Institute of Detroit) at the LadyBug Gallery to discuss some potential collaborative projects over the summer. After getting a quick tour of the gallery and some of the other studios and workspaces in the building (which we unfortunately didn’t get [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2009/02/img_2819-150x150.jpg)
![Researching Planters We’ve been working on paper planters for a while, but over the last couple of days I started experimenting with magnets as well. Ideally, these could work with having some rare earth magnets embedded in the paper. Still more research and development to be done, but I think it’s getting closer. The first step was [...]](http://d1ugx41kvdwavn.cloudfront.net/wp-content/uploads/2009/04/img_3950-150x150.jpg)