<?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>Sniffing CRayons</title>
	<atom:link href="http://sniffingcrayons.com/feed" rel="self" type="application/rss+xml" />
	<link>http://sniffingcrayons.com</link>
	<description>Electronic experiments &#38; tinkerations</description>
	<lastBuildDate>Mon, 14 Nov 2011 17:09:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>En garde! A fence post.</title>
		<link>http://sniffingcrayons.com/archives/99</link>
		<comments>http://sniffingcrayons.com/archives/99#comments</comments>
		<pubDate>Mon, 14 Nov 2011 17:00:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[off topic]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/?p=99</guid>
		<description><![CDATA[A year-and-a-half ago we bought a house. It&#8217;s been almost as long since I last posted. The house is new in a new neighbourhood &#038; came with a lovely back yard. The yard backs onto a small belt of &#8220;green&#8221; land about 30 feet wide that separates us from the houses behind. When we moved [...]]]></description>
			<content:encoded><![CDATA[<div align="center"><strong>A year-and-a-half ago we bought a house.</strong></div>
<p><a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1744.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1744-241x300.jpg" alt="" title="Our House" width="241" height="300" class="aligncenter size-medium wp-image-100" /></a><br />
<span id="more-99"></span><br />
It&#8217;s been almost as long since I last posted. The house is new in a new neighbourhood &#038; came with a lovely back yard. The yard backs onto a small belt of &#8220;green&#8221; land about 30 feet wide that separates us from the houses behind. When we moved in the yard was completely open to the surrounding area including the green belt and the neighbours&#8217; yards.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1183.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1183-300x225.jpg" alt="" title="Back Yard - snow early 2010" width="300" height="225" class="alignnone size-medium wp-image-101" /></a><br />
Since we wanted to get a dog before the end of the year &#038; also desired additional privacy and security, we decided it was time to plan a fence build. Being handy I couldn&#8217;t imagine paying someone else to do it, and seeing as we are not rolling in cash &#038; especially weren&#8217;t at the time, DIY was the smart economical choice as well.</p>
<p>The first problem was there were several very tall and very dead trees in the back of the yard. Two of them who shared some roots were right in the corner of our property on one corner &#8211; blocking the corner.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1803.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1803-300x225.jpg" alt="" title="Corner Stumps" width="300" height="225" class="alignnone size-medium wp-image-102" /></a><br />
If we left them they would have come down eventually in a wind storm. And they could&#8217;ve reached our house &#038; destroyed part of whatever fence we put up. Some enthusiastic family friends who enjoy that sort of thing made short work of the lumber.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1798.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1798-300x225.jpg" alt="" title="Pile o&#039; Firewood" width="300" height="225" class="alignnone size-medium wp-image-103" /></a><br />
In retrospect I probably should have gotten rid of the stumps in the lot corner, but at the time I felt the job was too big so we planned around them instead. Perhaps one day I&#8217;ll change that.</p>
<p>With that out of the way we had our canvas for the artistic work that is joining bits of wood together to produce something practical and visually appealing.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1836.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1836-300x225.jpg" alt="" title="Measure me this" width="300" height="225" class="alignnone size-medium wp-image-105" /></a><br />
After some measuring and sketching and standing around while the brain gears slowly turned, we had our plan and ordered some items.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1831.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1831-300x222.jpg" alt="" title="Parts" width="300" height="222" class="alignnone size-medium wp-image-106" /></a><br />
Then came the digging. This ended up taking the longest time for one simple, uncooperative reason: rocks. Our land is full of rocks of all shapes and sizes.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1870.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1870-300x225.jpg" alt="" title="The first hole" width="300" height="225" class="alignnone size-medium wp-image-104" /></a><br />
We started with one hole, as you do, and had friends and family come over on the weekend to help. We ended up with about 5 or 6 started holes that we would jump back and forth on as we got frustrated or made progress with the one we were working on. <a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1928.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1928-252x300.jpg" alt="" title="Dig dig chop chop" width="252" height="300" class="alignnone size-medium wp-image-107" /></a><br />
Sometimes the rocks were bigger than the holes we had to remove them from. Eventually we started getting posts set in concrete &#8211; the first time it started to hint that it was on its way to completion! </p>
<p>Still: more holes, more digging, more rocks. Some far too large for one person!<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1960.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_1960-300x225.jpg" alt="" title="Rock and Roll" width="300" height="225" class="alignnone size-medium wp-image-108" /></a><br />
There was simply no escaping them. After almost four weeks of digging and excavating all by hand, all by between 1 and 4 people depending on the day of the week, we got the digging done and set all the posts. <a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2024.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2024-300x225.jpg" alt="" title="Post-digging, post-setting posts." width="300" height="225" class="alignnone size-medium wp-image-109" /></a><br />
Before we knew it we had rails on and the boards were going up super fast. And a good thing too, because due to unforeseen circumstances the puppy we had chosen had to be picked up two weeks earlier than planned.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2050.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2050-300x225.jpg" alt="" title="Rails" width="300" height="225" class="alignnone size-medium wp-image-110" /></a><br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2049.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2049-300x225.jpg" alt="" title="Boards" width="300" height="225" class="alignnone size-medium wp-image-111" /></a><br />
In a flurry of activity I got all the boards up &#038; made temporary 3-foot high barricades to enclose the yard for the dog. One Friday night I put up boards until it was too dark to see and then got up before Saturday&#8217;s dawn broke to finish.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2056.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2056-225x300.jpg" alt="" title="Drilling" width="225" height="300" class="alignnone size-medium wp-image-112" /></a><br />
Yes, the boards are all screwed in. Not a nail in sight. I got done, changed my clothes, got in the car and drove two hours to pick up the new puppy. No rest for the wicked!</p>
<p>It didn&#8217;t help that the schedule change also meant we were dog-sitting an adult dog while family was away. We had a dog to mind, a puppy to nurture, two cats to visit &#038; feed and the fence to work on. It&#8217;s amazing that we got it as far as it did in that time, which was about a week. After that, however, we had a severe life distraction:<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2072.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2072-300x225.jpg" alt="" title="Tali" width="300" height="225" class="alignnone size-medium wp-image-113" /></a><br />
After we&#8217;d had puppy dearest for a month, I finally got around to finishing the holes for one side gate, setting those posts and trimming the tops of the other posts.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2421.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2421-300x225.jpg" alt="" title="Post-cap" width="300" height="225" class="alignnone size-medium wp-image-114" /></a><br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2424.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2424-300x225.jpg" alt="" title="Side gate one" width="300" height="225" class="alignnone size-medium wp-image-116" /></a><br />
You can see the wonky nature of the board placement &#8211; something I later adjusted. Two weeks after that I managed to find some time to build the gate itself.<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2581.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2011/11/IMG_2581-300x225.jpg" alt="" title="Gate one" width="300" height="225" class="alignnone size-medium wp-image-117" /></a></p>
<p>I&#8217;ll add an &#8220;it&#8217;s complete&#8221; picture this evening.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/99/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>StarTAC SED1530 LCD and Keypad hardware, Telit GC864 cellular</title>
		<link>http://sniffingcrayons.com/archives/82</link>
		<comments>http://sniffingcrayons.com/archives/82#comments</comments>
		<pubDate>Thu, 17 Jun 2010 19:22:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[projects]]></category>
		<category><![CDATA[retrotac]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/?p=82</guid>
		<description><![CDATA[Finally an update! Gotta slip one in before the end of June, so it&#8217;s not been a year between posts. Lots has happened since I last posted including a burglary at our rented town house which triggered us to look for another place to live. We ended up buying a house (!) and moving. Finally [...]]]></description>
			<content:encoded><![CDATA[<p>Finally an update! Gotta slip one in before the end of June, so it&#8217;s not been a year between posts.<br />
<a rel="lightbox" href="http://sniffingcrayons.com/wp-content/uploads/2010/06/LCDKeypad.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2010/06/LCDKeypad-300x249.jpg" alt="Keypad / LCD board for Motorola StarTAC 7797" title="LCDKeypad" width="300" height="249" class="alignleft size-medium wp-image-83" /></a><br />
Lots has happened since I last posted including a burglary at our rented town house which triggered us to look for another place to live. We ended up buying a house (!) and moving. Finally finally this month I have had a chance to organise my workspace and unpack some of my microchips.<br />
<span id="more-82"></span><br />
Last night I transplanted the male socket that connects the StarTAC&#8217;s keypad / LCD board to the mainboard over to a breakout board so I can begin trying to control the LCD myself by interfacing to the SED1530 controller chip. Ideally I could use the 2-wire SPI interface the chip has, but it is possible that Motorola used the parallel interface and hardwired it such.</p>
<p>Removing the socket from the StarTAC mainboard was relatively easy &#8211; the pins are not completely flat against the board so I was able to get one side of some tweezers up and underneath them and gently pry them off the board. In the image below you can see some of the traces came off with the pins, but that&#8217;s fine.<br />
<a rel="lightbox" href="http://sniffingcrayons.com/wp-content/uploads/2010/06/MainBreakout.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2010/06/MainBreakout-300x179.jpg" alt="StarTAC mainboard and LCD breakout" title="MainBreakout" width="300" height="179" class="alignright size-medium wp-image-84" /></a><br />
A while ago when wondering how I was going to be able to prototype the LCD, I realised that the pitch on the socket pins was 0.5mm &#8211; the same as the socket pitch for the Telit GC864 cellular module which I failed to post about and will mention further down. I bought a <a href="http://store.curiousinventor.com/prototyping-supplies/schmartboard-ez-soic-5mm-pitch-4-72-pins.html">SchmartBoard|ez SOIC .5mm Pitch</a> breakout board from Curious Inventor which as you can see in the picture will give me easy access to the LCD / keypad pins.</p>
<p>Many moons ago in a <a href="http://sniffingcrayons.com/archives/13">previous post</a> I declared that I was going to use the Telit GE863 cellular module for this project. My primary reason was that it was the only module Telit offered that was small enough to physically fit inside the StarTAC housing. The big problem with that module is that it&#8217;s pins are BGA &#8211; very hard for a hobbyist of my level to use and offers minimal flexibility in terms of avoiding screwups.</p>
<p><a rel="lightbox" href="http://sniffingcrayons.com/wp-content/uploads/2010/06/TelitGC864.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2010/06/TelitGC864-300x170.jpg" alt="Telit GC864" title="Telit GC864" width="300" height="170" class="alignleft size-medium wp-image-86" /></a>When I found the cash and the will, Telit had released several new modules including the GC864 which uses a nice 80-pin connector, with a separate antenna socket! Perfect all-round for hobby prototyping. I bought it, two circuit-board-antennas with the right type of connector plug and two mating 80-pin connectors.</p>
<p>Before the burglary last autumn, I was hard at work for a few weeks hooking up and testing the GC864. I found and bought the same SchmartBoard 0.5mm pitch breakout board linked above and soldered one of my connectors to it to get access to the GC864&#8242;s pins. With a lot of jumper wiring and a few hacks to compensate for my lack of female-to-female jumpers I got it working, controlled by serial over USB to my desktop PC. This mess was the result:<br />
<a rel="lightbox" href="http://sniffingcrayons.com/wp-content/uploads/2010/06/RetroTAC_pre-alpha2.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2010/06/RetroTAC_pre-alpha2-150x150.jpg" alt="" title="RetroTAC_pre-alpha2" width="150" height="150" class="alignnone size-thumbnail wp-image-90" /></a> <a rel="lightbox" href="http://sniffingcrayons.com/wp-content/uploads/2010/06/RetroTAC_pre-alpha.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2010/06/RetroTAC_pre-alpha-150x150.jpg" alt="" title="RetroTAC_pre-alpha" width="150" height="150" class="alignnone size-thumbnail wp-image-91" /></a><br />
Power was supplied by a StarTAC battery pack which is in bad condition and required constant charging to be useful. Still! I managed to send myself an SMS message and place and receive phonecalls, though I did not have a speaker or microphone connected so they were quite calls.</p>
<p>Exciting times are ahead! Continued work on the project is planned so I hope to post further results before 2011 <img src='http://sniffingcrayons.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Here&#8217;s one last picture, a StarTAC housing and Telit cellular module and an SD card for size comparisons:<br />
<a href="http://sniffingcrayons.com/wp-content/uploads/2010/06/retrotac_parts.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2010/06/retrotac_parts-247x300.jpg" alt="" title="retrotac_parts" width="247" height="300" class="aligncenter size-medium wp-image-94" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/82/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Joining the Arduino collective</title>
		<link>http://sniffingcrayons.com/archives/68</link>
		<comments>http://sniffingcrayons.com/archives/68#comments</comments>
		<pubDate>Tue, 30 Jun 2009 18:38:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[retrotac]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/?p=68</guid>
		<description><![CDATA[Keeping tabs on the &#8216;maker&#8217; community, Arduino as a development platform is certainly very popular. I initially dismissed it when I first started learning about microcontrollers as I was learning on the Atmel ATmega8, which the Arduinos of the time were based around, and figured that I wanted to learn at a &#8216;pure&#8217; level and [...]]]></description>
			<content:encoded><![CDATA[<p>Keeping tabs on the &#8216;maker&#8217; community, Arduino as a development platform is certainly very popular.<br />
<a rel="lightbox" alt="Arduino Duemilanove" href="http://sniffingcrayons.com/wp-content/uploads/2009/06/sf_arduinoduemilanove.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2009/06/sf_arduinoduemilanove_th.jpg"></a><br />
I initially dismissed it when I first started learning about microcontrollers as I was learning on the Atmel ATmega8, which the Arduinos of the time were based around, and figured that I wanted to learn at a &#8216;pure&#8217; level and not be confused by an additional abstraction layer.<br />
<span id="more-68"></span><br />
Now I am in a position where I feel that I <i>can</i> code in C directly for an ATmega MPU but that overall the coding process wears me down with syntax, compatibility issues and testing. Now I actually <i>want</i> some simplification to the process! It&#8217;s funny how we come full-circle.</p>
<p>Arduino is also more mature now as a platform &#8211; there are many hardware options to suit different designing requirements. Sparkfun&#8217;s Arduino Pro series appealed to me and got me thinking that maybe I could switch (or rather, upgrade) to an Arduino-based environment for my RetroTAC project. Since the hardware is ATmega and the coding is similar to C, it&#8217;s not a big leap or a start-from-scratch kinda thing &#8211; more of an evolution.</p>
<p>So last week I bought an Arduino Pro 3.3v/8MHz unit from Sparkfun and on the weekend I set about getting it going.<br />
<a rel="lightbox" alt="Arduino Pro 3.3v" href="http://sniffingcrayons.com/wp-content/uploads/2009/06/arduinopro3v3.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2009/06/arduinopro3v3_th.jpg"></a><br />
I soldered male headers to the port pins (later realising that Arduinos normally have female headers, but oh well!) and jumpered up my USB-to-TTL serial adapter to the programming port pins. For power I will be running the RetroTAC from a 3.7v Li-Ion battery so I soldered jumper wires to the empty shell of a StarTAC where the flat power jack comes out, and hooked it right into the BATT of the Arduino.</p>
<p>At first the Arduino software gave me an error:<br />
<code>avrdude: stk500_getsync(): not in sync: resp=0x00<br />
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51</code></p>
<p>Which I found was more than likely related to the programmer being unable to reset the Arduino hardware before attempting to upload my sketch.<br />
<img src="http://sniffingcrayons.com/wp-content/uploads/2009/06/arduinopro_tracebreak.jpg"><br />
There&#8217;s a break in the trace (intentionally, but who&#8217;s intention and for what purpose I don&#8217;t know) which doesn&#8217;t link the RST pin on the PROGRAM header. I wired the USB adapter&#8217;s reset line to RESET on the Arduino and had the Blink &#8216;Hello World&#8217; sketch running within minutes.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/68/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Motorola StarTAC SED1530 LCD driver IC</title>
		<link>http://sniffingcrayons.com/archives/54</link>
		<comments>http://sniffingcrayons.com/archives/54#comments</comments>
		<pubDate>Tue, 30 Jun 2009 17:54:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[retrotac]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/?p=54</guid>
		<description><![CDATA[A long time ago, when I discovered the 4D Systems line of OLED serial-controlled displays I was very impressed &#8211; an awesome screen with an easy to understand interface was just what I wanted to play with. Now that I&#8217;ve had one for a while &#8211; the uOLED-160-GMD1 &#8211; I find that I&#8217;m stuck in [...]]]></description>
			<content:encoded><![CDATA[<p>A long time ago, when I discovered the 4D Systems line of OLED serial-controlled displays I was very impressed &#8211; an awesome screen with an easy to understand interface was just what I wanted to play with.<br />
<a rel="lightbox" alt="4D Systems uOLED-160-GMD1" href="http://sniffingcrayons.com/wp-content/uploads/2009/06/uoled160gmd1.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2009/06/uoled160gmd1_th.jpg"></a><br />
Now that I&#8217;ve had one for a while &#8211; the uOLED-160-GMD1 &#8211; I find that I&#8217;m stuck in a swamp of indecision about how to try and display things on the screen. Options and choices turned out to be a real problem for me. I will still use it for something and the fact that I&#8217;ve switched to Arduino vs. just plain C code on an ATmega may make things more straightforward.<br />
<span id="more-54"></span><br />
Those troubles combined with working out how I was going to fit all the parts of the RetroTAC inside the StarTAC casing lead me to crack open one of my 7797 models (LCD dot matrix screen vs. the 3000 models&#8217; multiple 7-segment LED) to <s>feast on the goo inside</s> see what treasures lay within.</p>
<p>What I discovered was that the keypad, LCD and LCD controller are all on one board. It looks as if I could basically just &#8216;replace&#8217; the mainboard and keep the existing keypad board if I can work out how to interface to the LCD&#8217;s controller IC.<br />
<a rel="lightbox" alt="Motorola StarTAC 7797 LCD/keypad board" href="http://sniffingcrayons.com/wp-content/uploads/2009/06/sed1530board.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2009/06/sedboard_th.jpg"></a><br />
Handily, the IC is labelled clearly with its model number: SED1530DAA.</p>
<p>Some googling reveals several versions of the <a alt="Epson SED1530 datasheet" href="http://sniffingcrayons.com/wp-content/uploads/2009/06/sed1530.pdf">datasheet</a> for the SED1530, some more useful than others. Basically it is a &#8220;single-chip LCD driver for dot-matrix LCDs&#8221; by Epson, supporting parallel or serial (seems to be an input-only SPI bus) communication.</p>
<p>I&#8217;m in for a bit of work to interface to it, both physicaly and electronically, but if I succeed I&#8217;ll be able to write a driver to use the original screen hardware in my RetroTAC!</p>
<p>Any tips, theories, ideas or comments are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/54/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ATmega8 talking to uOLED-160-GMD1</title>
		<link>http://sniffingcrayons.com/archives/42</link>
		<comments>http://sniffingcrayons.com/archives/42#comments</comments>
		<pubDate>Fri, 06 Mar 2009 01:10:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[electronics]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/?p=42</guid>
		<description><![CDATA[With renewed enthusiasm I have progressed on the coding of my RetroTAC project. Today&#8217;s result: my little Atmel ATmega8 is telling the 4D Systems uOLED-160-GMD1 where to go! Or rather, what to say. Using the ATmega&#8217;s USART hardware serial port, controlled in software by some USART routines written by Mihai Galos, I wrote a subroutine [...]]]></description>
			<content:encoded><![CDATA[<p>With renewed enthusiasm I have progressed on the coding of my RetroTAC project.</p>
<p>Today&#8217;s result: my little Atmel ATmega8 is telling the 4D Systems uOLED-160-GMD1 where to go! Or rather, what to say.<br />
<a rel="lightbox" alt="Hello Interwebs!" href="http://sniffingcrayons.com/wp-content/uploads/2009/03/interwebs.jpg"><img src="http://sniffingcrayons.com/wp-content/uploads/2009/03/interwebs_th.jpg"></a><br />
<span id="more-42"></span><br />
Using the ATmega&#8217;s USART hardware serial port, controlled in software by <a href="http://www.mihaigalos.ro/work/Embedded/Simple/UART/readOn.html">some USART routines</a> written by Mihai Galos, I wrote a subroutine based on the OLED&#8217;s user manual entry for writing strings of ASCII text to the screen.</p>
<p><code>UOLED_fstring('s', 0x00, 0x00, 0x02, 0xFF, 0xFF, "Hello Interwebs");</code></p>
<p>The above is the line in the main code that sends the options to the subroutine. I&#8217;ve just realised while writing this that the first variable &#8216;s&#8217; is actually not necessary as the subroutine is specific for that command.</p>
<p><code>void UOLED_fstring( unsigned char cmd, unsigned char col, unsigned char row, unsigned char font, unsigned char msb, unsigned char lsb, unsigned char *c )<br />
{<br />
	USART_Transmit(cmd);<br />
	USART_Transmit(col);<br />
	USART_Transmit(row);<br />
	USART_Transmit(font);<br />
	USART_Transmit(msb);<br />
	USART_Transmit(lsb);<br />
	sendString_USART(c);<br />
	USART_Transmit(0x00);<br />
}</code></p>
<p>The above is the subroutine. As mentioned, the first line &#8216;cmd&#8217; is actually redundant and I will change it to always send ASCII &#8216;s&#8217; / 0&#215;73 which is the OLED&#8217;s command to print a string of formatted text.</p>
<p>Next up, I&#8217;ll expand this to display a short demo menu of options and code the keypad input to control the display &#8211; giving the basics of a User Interface.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/42/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uOLED progress</title>
		<link>http://sniffingcrayons.com/archives/14</link>
		<comments>http://sniffingcrayons.com/archives/14#comments</comments>
		<pubDate>Fri, 13 Jun 2008 14:07:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[retrotac]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/archives/14</guid>
		<description><![CDATA[Months ago I purchased 4D Systems&#8217; 1.7&#8243; uOLED from Sparkfun. As you can see it&#8217;s an amazing little piece of hardware. The resolution is 160&#215;128, 65K or 262K colours, and the interface is serial RS-232 making it easily wirable to a microcontroller or pretty much anything that can send serial commands. I struggled to get [...]]]></description>
			<content:encoded><![CDATA[<p>Months ago I purchased <a href="http://www.4dsystems.com.au">4D Systems&#8217;</a> 1.7&#8243; uOLED from Sparkfun. As you can see it&#8217;s an amazing little piece of hardware.<br />
<a rel="lightbox" alt="uOLED-160-GMD1" href="http://www.sniffingcrayons.com/_eprojects/retrotac/uOLED.jpg"><img src="http://www.sniffingcrayons.com/_eprojects/retrotac/uOLED.jpg" alt="uOLED" /></a><br />
The resolution is 160&#215;128, 65K or 262K colours, and the interface is serial RS-232 making it easily wirable to a microcontroller or pretty much anything that can send serial commands.<br />
<span id="more-14"></span><br />
I struggled to get it to function correctly, unable to predict its behaviour even when repeating the same actions &#8211; I was doing <em>something</em> wrong. I left it for a while and eventually ordered the &#8216;uUSB-CE5&#8242; USB to RS232 converter so I could update the firmware from a Windows PC.</p>
<p>The USB converter came last week (after the wrong part was sent in May. Sparkfun were quick to correct this and I appreciate their excellent service) so I flashed the uOLED to its latest firmware and set about trying to communicate with it with my ATmega8.</p>
<p>Once again no success after two nights of poking about and checking &#038; double-checking code, so I did some reading and got some ideas about why other people have had issues. Most of them relate to something wrong with the serial connection causing the auto-baud feature to not correctly &#8216;lock on&#8217; to the serial signal. You see, the uOLED serial interface can run at serial speeds between 300 to 256K baud. To configure it to a certain baud your micro must send it the ASCII character &#8220;U&#8221; (56 hex) after a minimum of 500ms (allowing the uOLED to &#8216;boot&#8217;).</p>
<p>Problems arise if the serial lines are not stable when the display begins checking for &#8220;U&#8221;.<br />
This was my problem &#8211; my serial lines were floating in the time before the microcontroller got controll of them, and the display was misinterpreting the garbage as a signal. I noted that a fellow who had wired a <a href="http://tinkerlog.com/2007/07/13/interfacing-an-avr-controller-to-a-gps-mobile-phone">Telit GSM module to an ATmega8</a> had tied his serial lines high (connected them to the + power rail) with 10kohm resistors. I tried the same thing, cleaned up my messy &#8220;it&#8217;s not working and I&#8217;m getting frustrated&#8221; code and immediately had solid, reliable control over my OLED display.</p>
<p>Success! Now some tedious work to write various lower-level routines for the screen. My motivation for that will come &#8211; I&#8217;m just really glad I managed to get the comms working.</p>
<p>Special thanks, if you happen to read this one day, to Alexander at Tinkerlog!</p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/14/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Telit website, datasheet updates</title>
		<link>http://sniffingcrayons.com/archives/13</link>
		<comments>http://sniffingcrayons.com/archives/13#comments</comments>
		<pubDate>Wed, 16 Jan 2008 21:52:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[retrotac]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/2008/01/16/telit-website-datasheet-updates/</guid>
		<description><![CDATA[Telit are the makers of a series of &#8220;m2m&#8221; (machine to machine) cell network interface modules. That is, little all-in-one modules that you can put in your own electronics project to give you cellphone capabilities. Thus there&#8217;s one in my plan for the RetroTAC. Telit GE863 Telit have recently updated their website and it is [...]]]></description>
			<content:encoded><![CDATA[<p>Telit are the makers of a series of &#8220;m2m&#8221; (machine to machine) cell network interface modules. That is, little all-in-one modules that you can put in your own electronics project to give you cellphone capabilities. Thus there&#8217;s one in my plan for the RetroTAC.</p>
<p><img src="http://www.sniffingcrayons.com/_eprojects/retrotac/ge863.jpg" alt="GE863" /><br />
Telit GE863</p>
<p>Telit have recently updated their website and it is a LOT easier to navigate now &#8211; well done!<br />
<span id="more-13"></span><br />
Also they have a few more datasheets and application notes up, including one for battery charging, audio and antenna notes.</p>
<p>For the module I am planning to use, the info is <a href="http://www.telit.com/en/products/gsm-gprs.php?p_id=12&#038;p_ac=show&#038;p=8">available on their website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/13/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RetroTAC</title>
		<link>http://sniffingcrayons.com/archives/23</link>
		<comments>http://sniffingcrayons.com/archives/23#comments</comments>
		<pubDate>Wed, 16 Jan 2008 02:07:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[retrotac]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/?p=23</guid>
		<description><![CDATA[RetroTAC Cellular Phone This project is all about replacing the guts of a classic 1990&#8242;s cell phone, the Motorola StarTAC, so that it works on modern GSM networks and can be used day-to-day. It is based around the Telit module GE863 which supports quad band GSM, serial interfacing and even has a SiRFIII GPS chip [...]]]></description>
			<content:encoded><![CDATA[<p><strong>RetroTAC Cellular Phone</strong><br />
This project is all about replacing the guts of a classic 1990&#8242;s cell phone, the Motorola StarTAC, so that it works on modern GSM networks and can be used day-to-day.</p>
<p><img src="http://www.sniffingcrayons.com/_eprojects/retrotac/whiteboard.jpg" alt="RetroTAC Brainstorm" /></p>
<p>It is based around the Telit module GE863 which supports quad band GSM, serial interfacing and even has a SiRFIII GPS chip inside. It will be hooked to the other primary component, an AVR ATmega microcontroller.</p>
<p>Coupled to the GE863 will be the original StarTAC&#8217;s microphone and earpiece, a GSM antenna and sim card holder. Coupled to the AVR will be the original keypad and a 4D Systems 1.7&#8243; OLED display.</p>
<p>Power will be provided by an aftermarket StarTAC Li-Ion 3.6v battery and either an original StarTAC charger or a modified one.</p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/23/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Again with the website</title>
		<link>http://sniffingcrayons.com/archives/12</link>
		<comments>http://sniffingcrayons.com/archives/12#comments</comments>
		<pubDate>Wed, 16 Jan 2008 00:16:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[off topic]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/2008/01/16/again-with-the-website/</guid>
		<description><![CDATA[Well it&#8217;s back &#8211; I reinstalled the WordPress blog after seeing this lovely Mac-like theme for it and I&#8217;m going to give it my best shot at using this site to publish whatever it is I publish. Electronics. It&#8217;s what I&#8217;m into these days and I think it&#8217;s a hobby that&#8217;ll stick. So I&#8217;m going [...]]]></description>
			<content:encoded><![CDATA[<p>Well it&#8217;s back &#8211; I reinstalled the WordPress blog after seeing this lovely Mac-like theme for it and I&#8217;m going to give it my best shot at using this site to publish whatever it is I publish.<br />
<span id="more-12"></span><br />
<strong>Electronics</strong>. It&#8217;s what I&#8217;m into these days and I think it&#8217;s a hobby that&#8217;ll stick. So I&#8217;m going to publish my projects and blog about updates on said projects.</p>
<p>I&#8217;ve so far put up the basic project page for my <a href="http://sniffingcrayons.com/retrotac/">retro-style mobile phone</a>, the RetroTAC. I&#8217;ll do more work on that soon and blog about my progress on the project so far.</p>
<p>To come there&#8217;s my gruntily-named &#8220;MaxxMonitorr&#8221; telemetry system for my Traxxas E-Maxx RC truck, as well as my digital timer photo capture circuit to link to my digital SLR camera. It has possibly been named the &#8220;Capture XTi&#8221;. Better ideas are welcome!</p>
<p>Here we go! DIY Gadgets!</p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/12/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Home Movies with a bit of Nerdism for good measure</title>
		<link>http://sniffingcrayons.com/archives/7</link>
		<comments>http://sniffingcrayons.com/archives/7#comments</comments>
		<pubDate>Wed, 09 May 2007 02:40:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[off topic]]></category>

		<guid isPermaLink="false">http://sniffingcrayons.com/?p=7</guid>
		<description><![CDATA[As a treat, instead of still pictures this month you get motion pictures! I made this movie with my brother and our friends in 2002. It is plot-thin, and was primarily made for fun, and to test my skills at video editing and post-production special effects. I cringe at several things when I watch it, [...]]]></description>
			<content:encoded><![CDATA[<p>As a treat, instead of still pictures this month you get motion pictures!</p>
<p>I made this movie with my brother and our friends in 2002. It is plot-thin, and was primarily made for fun, and to test my skills at video editing and post-production special effects. I cringe at several things when I watch it, but I think overall it&#8217;s a good effort.</p>
<p><script type="text/javascript" src="https://media.dreamhost.com/swfobject.js"></script></p>
<div id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<p><script type="text/javascript">
var so = new SWFObject('https://media.dreamhost.com/mediaplayer.swf','mpl','450','270','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('height','270');
so.addVariable('width','450');
so.addVariable('file','http://sniffingcrayons.com/_junk/audio/TheMatrox450x270.flv');
so.write('player');
</script></p>
<p>17Mb, 8min 40sec, Credits feature outtakes so watch to the end!</p>
]]></content:encoded>
			<wfw:commentRss>http://sniffingcrayons.com/archives/7/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 2.587 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-04 17:24:21 -->

