<?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>justDIY Project Log &#187; Display</title>
	<atom:link href="http://projects.dimension-x.net/archives/category/project/display/feed" rel="self" type="application/rss+xml" />
	<link>http://projects.dimension-x.net</link>
	<description>Thoughts, ideas, projects, pictures.</description>
	<lastBuildDate>Fri, 18 Sep 2009 19:09:39 +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>LED Cube</title>
		<link>http://projects.dimension-x.net/archives/114</link>
		<comments>http://projects.dimension-x.net/archives/114#comments</comments>
		<pubDate>Sun, 30 Dec 2007 20:51:36 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Display]]></category>
		<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/114</guid>
		<description><![CDATA[I was trying come up with something impressive to write about, after having the blog dormant since July. I tossed around a lot of different ideas&#8230; Although I haven&#8217;t been writing, I&#8217;ve been dabbling in a number of different projects. None of them are really in a state I&#8217;m ready to write about. That brings [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying come up with something impressive to write about, after having the blog dormant since July.  I tossed around a lot of different ideas&#8230; Although I haven&#8217;t been writing, I&#8217;ve been dabbling in a number of different projects.  None of them are really in a state I&#8217;m ready to write about.  That brings me to something I saw a few months ago on MAKE:.  Bre and associates had constructed a simple <a href="http://blog.makezine.com/archive/2007/09/make_a_pocket_led_cube_we.html">3x3x3 led cube</a>, re-purposing a POV toy to drive the leds.</p>
<p>I figured this would be a good easy project I could finish in a day, so I drilled out a piece of pine board and set to soldering up some 3mm leds.  I wasn&#8217;t very careful, so the little matrices look kind of ugly, but it all works and you can&#8217;t see the wires in the dark!</p>
<p><img src="/pictures/ledcube/3x3x3_start_sm.jpg" alt="3x3 led matrix building" /></p>
<p>It didn&#8217;t take very long to toss three of these nine led matrices together.  Assembling them into a twenty-seven led cube was a bit trickier.  I used some gator clips to hold parts of the cube while I soldered it.  Eventually I finished all the connections and had a passable cube with fairly even spacing.</p>
<p><img src="/pictures/ledcube/3x3x3_finished_sm.jpg" alt="3x3x3 led cube finished" /></p>
<p>Assembling the matrix is a pretty straight forward task.  All you really do is tie all the cathodes together.  Each matrix will become one row in the finished cube.  Electrically, the cube is built as a 3&#215;9 array, three rows and nine columns.  You could probably build it the other way around, anode rows and cathode columns, but it is easier to sink a large current than source it.  I think the MAKE: software only lights one led at a time, since they&#8217;re relying on the microcontroller to both source and sink current.  My design is a bit different.  The mcu sources current to each anode column, and N channel fets sink current for the entire row.  The N channel is easily able to sink a few amps, so the cube can light an entire row at once without having to multiplex the individual leds.</p>
<p><a href="/pictures/ledcube/3x3x3_control_sch.png"><img src="/pictures/ledcube/3x3x3_control_sch_sm.png" alt="" /></a></p>
<p>In order to keep the PCB layout simple, the connections are spread all over the place in terms of the registers inside the pic.  It would have been cleaner to organize eight of the nine columns as a single 8bit register on the pic, leaving only one bit left over to deal with.  Instead, I&#8217;ve created symbols for each column, and set them individually from 9bit numbers.</p>
<p><img src="/pictures/ledcube/3x3x3_control_layout.png" alt="" /></p>
<p>Each anode column is current limited by a 75 ohm resistor.  The value chosen was rather arbitrary, since the leds have such a low duty cycle, a lower value would have afforded me more brightness when the cube is battery powered.  I can tweak the brightness a bit in the software, changing the scan rate the rows are multiplexed at.</p>
<p><img src="/pictures/ledcube/3x3x3_control_top_sm.jpg" alt="" /></p>
<p>That&#8217;s pretty much it.  I&#8217;ve found there&#8217;s not a lot you can do with only 3x3x3 and 1 color, but it&#8217;s still kind of fun.  Trying to think in three dimensions while drawing the animation frames is kind of tricky.  I started with excel, but that wasn&#8217;t very useful &#8211; I spent more time copy and pasting formulas than I did &#8216;drawing&#8217;.  Luckily my buddy Dan helped me out with that.  He whipped up an <a href="/cube/index.php" target="_new">awesome little php script</a> that lets you draw animations 27 leds at a time, and it formats the resulting numbers so I can copy and paste them right into the code.  </p>
<p>There&#8217;s a few videos of the cube doing various things on my <a href="http://www.youtube.com/justDIY">Youtube Channel</a>.  Here is perhaps the most interesting one so far.</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/BqsCc2MNsTo&#038;ap=%2526fmt%3D18&#038;rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/BqsCc2MNsTo&#038;ap=%2526fmt%3D18&#038;rel=0" type="application/x-shockwave-flash" wmode="transparent" width="480" height="385"></embed></object></p>
<p>Thanks for reading, and Happy New Year!</p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=114&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/114/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>LED Clock; Firmware taking shape</title>
		<link>http://projects.dimension-x.net/archives/108</link>
		<comments>http://projects.dimension-x.net/archives/108#comments</comments>
		<pubDate>Tue, 05 Jun 2007 19:52:20 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Display]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/108</guid>
		<description><![CDATA[The firmware for my LED Sign / Clock project is taking shape.  I&#8217;ve worked out my initial wishlist of features, and put together a basic menu structure.  I figured a menu is the  easiest way to access a lot of options, while only relying on two buttons. The basic menu consists of options for setting [...]]]></description>
			<content:encoded><![CDATA[<p>The firmware for my LED Sign / Clock project is taking shape.  I&#8217;ve worked out my initial wishlist of features, and put together a basic menu structure.  I figured a menu is the  easiest way to access a lot of options, while only relying on two buttons.</p>
<p>The basic menu consists of options for setting the time and date; minute, hour, day, date, month, year.   The basic options are pretty self explanatory.  I have also planned some more advanced options:</p>
<p>1. Adjustable display brightness &#8211; Varying the duty cycle and refresh rate of the matrix can effect its brightness.  I need to make a simple scale for these variances to allow for two or three brightness levels.</p>
<p>2. Adjustable scrolling speed &#8211; The program draws the same information several hundred times per &#8216;scroll&#8217;, changing this counter affects how fast the display appears to scroll.</p>
<p>3. Selectable time format &#8211; User can choose between 12 hour AM/PM time and 24 hours &#8216;Military&#8217; formats</p>
<p>4. Message Mode &#8211; User can enable / disable scrolling messages as well as display a single message, a random message or messages in sequence.</p>
<p>Other than that, the code is still pretty basic.  I&#8217;ve completed a bunch of internal fixes, like the scrolling code now handles messages of variable lengths. up to sixteen characters.  I&#8217;ve also created i2c eeprom reading routines to extract menu prompts and other text strings I&#8217;ve stored in the eeprom to save flash space on the chip.</p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=108&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/108/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LED Sign has a purpose!</title>
		<link>http://projects.dimension-x.net/archives/105</link>
		<comments>http://projects.dimension-x.net/archives/105#comments</comments>
		<pubDate>Tue, 29 May 2007 14:56:33 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Display]]></category>
		<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Prototyping]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/105</guid>
		<description><![CDATA[The single character LED sign I had been playing with now has a purpose! Shortly after discarding several ideas of having it as a serial display for PC/Server status, or hooking it up to the internet and a webcam, I came up with an actual useful purpose. The sign can be a clock! I have [...]]]></description>
			<content:encoded><![CDATA[<p>The single character LED sign I had been playing with now has a purpose!  Shortly after discarding several ideas of having it as a serial display for PC/Server status, or hooking it up to the internet and a webcam, I came up with an actual useful purpose.  The sign can be a clock!  I have two &#8216;modes&#8217; planned; traditional numbers and binary.  All geeks love binary clocks, but most of us are lazy and would rather read regular &#8216;ol numbers.</p>
<p>To facilitate the role as an clock, I had to redesign the circuit quite a bit.  Two new ICs were added, allowing the LED Sign to keep time, and providing some much needed storage.</p>
<p><a href="/pictures/ledsign/ledclock1b_sch.png"><img src="/pictures/ledsign/ledclock1b_sch_sm.png" alt="led matrix sign clock rtc microcontroller schematic" /></a></p>
<p>The first of the new ICs is a Real Time Clock.  Because I&#8217;m cheap, I chose the M41T80 from ST Micro.  It&#8217;s an inexpensive clock, similar to the Dallas DS1307 but lacking a few minor features.  First, the clock has no power-on reset detection.  It just starts up as soon as power is supplied. The Dall 1307 has a stop bit which gets set if the clock experiences a POR, so the firmware can test if the clock needs to be initialized or not.  The T80 datasheet mentions some registers may get set to default values on power up, so I&#8217;ll have to read it a few more times to see if there is a way I can check for a POR.  Second, the T80 has no support for a separate backup battery.  Instead, ST recommends you place a diode in series with the clock, and use a large capacitor to provide backup power.  Last, there is no automatic leap year / leap second correction, oh well!</p>
<p>The second IC is a 16 kilobit serial eeprom, similar to the Microchip 24C16, I chose one from Catalyst semiconductor due to lower costs.  The eeprom is arranged as eight banks of 256 bytes each.  The chip contains a 16 byte write-buffer, I&#8217;m not sure if it can cross a bank boundary or not, I&#8217;ll program my firmware assuming it can not.  The eeprom will be storing character strings related to operation of the LED Sign as a clock, as well as user programmed messages and possibly simple graphics.</p>
<p>I&#8217;ve also added some micro switches for adjusting the clock and changing settings, also a 32.768kHz crystal was added to providing the timing source for the RTC.</p>
<p><img src="/pictures/ledsign/ledclock1b_layout_sm.png" alt="pcb layout led sign clock" /></p>
<p>At this point, the layout of the printed circuit board has become pretty complex.  I tried making one of these at home, but didn&#8217;t have the patience to exactly align the top and bottom layers of my press and peel sandwich.  So, I decided to try a pcb prototyping house.  There are a lot of board houses to choose from, many of which cost an arm and a leg.  All of the domestic board houses are ruled out, I&#8217;m sure they do a fine job, but they cost too darn much.  I settled on Spark Fun&#8217;s BatchPCB service.  They&#8217;re not the cheapest board house out there, but their cost is fair.  They include a lot of features most other board houses charge extra for, like double sided silkscreen and solder mask, 8 mil pitch and spacing, 20 mil holes, etc.  I placed my order on the 6th, and had the PCBs by the 22nd.  All the time in between, by mind set to wandering, and I made some POV toys.  Once the pcbs showed up, I incurred another delay.  Turns out I hadn&#8217;t ordered my RTC chips yet!  So, another few days wait brought goodies from Mouser (man they are quick, and inexpensive!)</p>
<p><img src="/pictures/ledsign/real_pcb_top_sm.jpg" alt="batchpcb led clock circuit board" /></p>
<p>The boards from batchpcb look awesome.  Nice bright green solder mask, tinned pads and holes, smooth clean edges.  This is the &#8216;top&#8217; side of my led sign.  There are a few passives on this side, along with the two new ICs.  This side is covered by the LED matrix once the board is fully assembled.  Don&#8217;t mind the flux smeared everywhere &#8211; I did clean it off before soldering the matrix down.</p>
<p><img src="/pictures/ledsign/real_pcb_bot_sm.jpg" alt="led clock circuit board" /></p>
<p>The bottom of the board contains the PIC processor, mosfet column drivers, a crystal for the clock and some microswitches.  Pin headers for power and programming the microcontroller have also been installed.  The module is a bit thick at this point, thanks to the socketed IC and the pin headers.  On the finished version, I&#8217;ll solder the IC straight to the circuit board, and probably use wires instead of a header to supply power.</p>
<p><img src="/pictures/ledsign/real_pcb_done_sm.jpg" alt="led sign clock done" /></p>
<p>The firmware is in the early stages right now, so my next post on this subject will try to cover whatever features I&#8217;ve decided on.  Right now I know I want a few things:</p>
<p>1. Scroll the time<br />
2. Occasionally scroll the date<br />
3. Occasionally scroll short messages, either randomly or programmaticlly<br />
4. Support some sort of software brightness control</li>
<p>I&#8217;ve made some revisions to the design since I had these boards fabricated.  One big oops I made was forgetting the pull-up resistors for the i2c bus!  Luckily there&#8217;s plenty of room on the board, and both i2c lines ran near the Vcc rail.  So a little quick scraping action to peel back the solder mask and presto, new lands for 0603 sides resistors.  I&#8217;ve also added a diode and big capacitor for the RTC&#8217;s backup power.</p>
<p>I hope to work on the firmware more this week, so I should have more details about how the clock works next time!</p>
<p>EDIT: Added a quick video of the time scrolling<br />
<object width="480" height="395"><param name="movie" value="http://www.youtube.com/v/lNZs893TThs"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/lNZs893TThs" type="application/x-shockwave-flash" wmode="transparent" width="480" height="395"></embed></object></p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=105&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/105/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>POV Toy</title>
		<link>http://projects.dimension-x.net/archives/104</link>
		<comments>http://projects.dimension-x.net/archives/104#comments</comments>
		<pubDate>Tue, 22 May 2007 04:23:01 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Display]]></category>
		<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/104</guid>
		<description><![CDATA[I recently had the urge to create some &#8220;eye candy&#8221;; Thinking along the lines of my LED Sign (it&#8217;s not dead, just waiting on parts!), I chose to create a similar effect, using only a single line of leds, instead of a 5&#215;7 array. Persistence of Vision is some sort of effect, either psychological or [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the urge to create some &#8220;eye candy&#8221;; Thinking along the lines of my LED Sign (it&#8217;s not dead, just waiting on parts!), I chose to create a similar effect, using only a single line of leds, instead of a 5&#215;7 array.</p>
<p>Persistence of Vision is some sort of effect, either psychological or biological in nature, that allows our eyes and brain to &#8216;see&#8217; motion and patterns in a sequence of rapidly stills (hence a movie projection).  This effect can be exploited using basic digital electronics to create a virtual LED sign, which the viewer will &#8216;see&#8217; when the pov toy is put in motion.</p>
<p>Commercial POV toys are usually some sort of led matrix attached to a spinning contraption, and display either a fixed or scrolling message.  Those are fine, but the technical aspects of motorizing the display make it beyond the scope of a simple project.  Therefore, my project relies entirely on elbow grease &#8211; swing the wand and watch the messages appear.</p>
<p>Revision one of my POV toy is compact.  It measures approximately 2.25&#8243; length wise by 1.1&#8243; width wise.  The circuit consists of an inexpensive Microchip PIC 12F683 microcontroller, and a 74HC595 serial shift register.  The display consists of eight 3mm leds, I chose blue for the first unit, but I&#8217;ll probably make a few more with different colors, I especially want to see green and amber &#8211; those leds don&#8217;t see a lot of action in the world of consumer electronics.<br />
<a href="/pictures/pov/pov_rev1_sch.png"><br />
<img src="/pictures/pov/pov_rev1_sch_sm.png" alt="pov led microcontroller shift register schematic" /></a></p>
<p>The circuit is very simple.  A tiny microcontroller provides the brains, a simple and inexpensive shift register provides the brawn, and a switch and hall effect sensor provide some control.  My first unit has no hall sensor, so power is controlled with the push button switch.  When &#8220;off&#8221;, the pic is in a ultra-low power sleep state.  Come to think of it, I could have put the shift register into a tri-state mode when &#8220;off&#8221;, but for now, it holds its gates at Vdd, which provides no bias across the leds, so there shouldn&#8217;t be much current going anywhere.  The hall effect sensor will eventually control the power to the display, as well as provide some synchronization.  Right now when swinging the wand, the message is legible in one direction, and backward in the next.  I plan to try putting a small round magnet in a tube, and gluing it behind the hall sensor.  When swung in one direction, the magnet will be forced over the sensor by g-force.  When the wand is swung back, the magnet will be forced away from the sensor.  This should let the microcontroller know not only to blank the leds during the &#8216;backward&#8217; swing, but also how much time it has to render the entire message, speeding up the display for a quick swing, or slowing it for a long swing.</p>
<p><img src="/pictures/pov/pov_rev1_sm.jpg" alt="" /></p>
<p>The circuit board is a single layer layout with two jumpers.  I went with as many SMT components as I could afford, since I hate drilling holes in my home-made circuit boards.  Power is currently provided by a 3.7 volt 1600mAh lithium ion cell.</p>
<p><img src="/pictures/pov/pov_hello_sm.jpg" alt="" /></p>
<p>I tried making some video of the unit in operation, but my camera wouldn&#8217;t play ball.  Next weekend I may have more time to fiddle with photography and try to get some &#8216;action shots&#8217;.</p>
<p>Although version one has been a great success, and was easy, I was unsatisfied.  The eye candy just isn&#8217;t sweet enough.  Version two takes the flash factor up a notch, with RGB leds.  I&#8217;m working on a &#8216;full color&#8217; POV wand toy.  Version 2.0 has been built, but it has some flaws &#8211; and is the subject of my next blog entry.  Here is a video of &#8220;2.0&#8243; running a test pattern on its 24 led array.</p>
<p><object width="480" height="395"><param name="movie" value="http://www.youtube.com/v/BRrbMSodPBg"></param><embed src="http://www.youtube.com/v/BRrbMSodPBg" type="application/x-shockwave-flash" width="480" height="395"></embed></object></p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=104&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/104/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LED Sign; Now With Scrolling!</title>
		<link>http://projects.dimension-x.net/archives/103</link>
		<comments>http://projects.dimension-x.net/archives/103#comments</comments>
		<pubDate>Fri, 13 Apr 2007 18:56:39 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Display]]></category>
		<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/103</guid>
		<description><![CDATA[This morning I hammered out a quick and dirty method to scroll a message on my single character LED sign. The scrolling is based around a few subroutines. A text message of 12 characters is passed to the scroll subroutine, along with the number of loops to make. The scrolling routine breaks the text message [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I hammered out a quick and dirty method to scroll a message on my single character LED sign.  The scrolling is based around a few subroutines.  A text message of 12 characters is passed to the scroll subroutine, along with the number of loops to make.  The scrolling routine breaks the text message down into individual bytes, and loads up a static 60 byte message buffer  based on data from the font table.  Each &#8220;scroll&#8221; iteration causes the program to copy data from the message buffer into a 5 byte display buffer.  The message buffer address is offset by one byte each iteration.  Since one byte equals one column on the display, this action cause the display to appear to scroll.  Another sub routine watches the address pointer, and wraps it around to the beginning when appropriate.</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/fcU7r1nltUg"></param><embed src="http://www.youtube.com/v/fcU7r1nltUg" type="application/x-shockwave-flash" width="425" height="350"></embed></object></p>
<img src="http://projects.dimension-x.net/?ak_action=api_record_view&id=103&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/103/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
