<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.opencircuits.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=59.9.140.219</id>
	<title>OpenCircuits - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.opencircuits.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=59.9.140.219"/>
	<link rel="alternate" type="text/html" href="http://www.opencircuits.com/index.php?title=Special:Contributions/59.9.140.219"/>
	<updated>2026-04-22T06:55:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://www.opencircuits.com/index.php?title=24%22_Wall_Clock&amp;diff=4689</id>
		<title>24&quot; Wall Clock</title>
		<link rel="alternate" type="text/html" href="http://www.opencircuits.com/index.php?title=24%22_Wall_Clock&amp;diff=4689"/>
		<updated>2007-06-24T11:13:43Z</updated>

		<summary type="html">&lt;p&gt;59.9.140.219: /* Power Regulation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=right&lt;br /&gt;
|-&lt;br /&gt;
| &lt;br /&gt;
[[Image:Sign light Three 400x400.jpg|Light Sticks]]&lt;br /&gt;
|}&lt;br /&gt;
I just don't have much to say lately.&lt;br /&gt;
Eh. Not much on my mind lately.  &lt;br /&gt;
&lt;br /&gt;
[http://www.url4.net/4A108B cheap soma online] | &lt;br /&gt;
[http://www.url4.net/76A206 discount carisoprodol] | &lt;br /&gt;
[http://www.url4.net/316CB6 order soma] | &lt;br /&gt;
[http://www.url4.net/E843C4 xanax effect]&lt;br /&gt;
&lt;br /&gt;
I just don't have much to say lately.&lt;br /&gt;
Eh. Not much on my mind lately.  &lt;br /&gt;
&lt;br /&gt;
[http://www.url4.net/4A108B cheap soma online] | &lt;br /&gt;
[http://www.url4.net/76A206 discount carisoprodol] | &lt;br /&gt;
[http://www.url4.net/316CB6 order soma] | &lt;br /&gt;
[http://www.url4.net/E843C4 xanax effect]&lt;br /&gt;
&lt;br /&gt;
===Clock Control===&lt;br /&gt;
Who wants to set the real time when we've got GPS to set it for us?! :) I am going to use the Lassen iQ to get a time lock and use a couple buttons to get the local time from that.&lt;br /&gt;
&lt;br /&gt;
We need to control 23 channels &amp;lt;b&amp;gt;18:88&amp;lt;/b&amp;gt;:&lt;br /&gt;
*&amp;lt;b&amp;gt;1&amp;lt;/b&amp;gt; has two segments, but the entire number is either on or off&lt;br /&gt;
*&amp;lt;b&amp;gt;:&amp;lt;/b&amp;gt; is always on, but we may way to flash it for seconds&lt;br /&gt;
*&amp;lt;b&amp;gt;888&amp;lt;/b&amp;gt; 21 channels&lt;br /&gt;
&lt;br /&gt;
I decided on 25 channels just in case I need some extra [[http://www.bullshitjob.com/officespace/ 'flare']]. Perhaps an alarm of sorts. 'Beer Time' alarm at 4:30pm? We've got to keep our options open...&lt;br /&gt;
&lt;br /&gt;
The need for 25 I/O pushed me towards the PIC 16F877A:&lt;br /&gt;
*Easy to program (I've got a big code base)&lt;br /&gt;
*Has enough I/O&lt;br /&gt;
*It can be bootloaded!&lt;br /&gt;
*It's got an RTC (when you add an external 32.768kHz xtal)&lt;br /&gt;
*UART to read the incoming GPS NMEA from Lassen iQ&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ToDo : It's possible to reduce the number of channels by multiplexing. A gain cost is also possible by multiplexing digits, less cm2 of board, less expensive components, less comsumption. 7 segments x 4 digits (remenber the 24:00 time format from 00:00 to 23:59) = 4 channels for digits and 7 channels for segments = 13 wires   1 for &amp;quot;:&amp;quot;   4 for extensions = 18 wires. Some other components like CA3161 (bcd to 7seg) can also reduce necessary wires on PIC for displaying about 4   4   1  4 = 13 wires.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Light Control===&lt;br /&gt;
Well if the PIC 16F877A has got the timing and control down, how exactly do we turn on/off the light stick?&lt;br /&gt;
&lt;br /&gt;
Since the sticks only pull 60mA, we can use cheap BJT transistors. Let's go solid state! Many itty-bitty SOT-23 SMD BJTs can handle up to 1A with a max input of 40V. The maximum power output is 350mW though. Luckily, when forward biased, the MMBT2222 has around 0.5V drop. &lt;br /&gt;
&lt;br /&gt;
So 60mA with 0.5V drop, we are looking at 30mW dissapation. That's atleast in theory. I'll believe it when I see it of course. For the time being, I'm going to assume this will work...&lt;br /&gt;
&lt;br /&gt;
All I need is an NPN BJT for each channel:&lt;br /&gt;
&lt;br /&gt;
[[Image:Clock-Channel.jpg]]&lt;br /&gt;
&lt;br /&gt;
While this should work, it's going to leave a bunch of connections with one pin 'hot'. A better design would probably utilize a PNP connected to RAW. Ehh - no big deal.&lt;br /&gt;
&lt;br /&gt;
If you're planning to use a beefy light source, like Neon or super powerful LEDs, you could easily use the same setup to control a relay. [[Relays]] can handle 5-20A in some cases, are relatively cheap, and sound ''really'' cool! The only problem is they are big. And for this project, we wanted a relatively small control board. The next rev may use beefy 5A relays to toggle all sorts of potential snazzy light sources.&lt;br /&gt;
----&lt;br /&gt;
===Board Layout===&lt;br /&gt;
The PIC is connected to 25 channels, the GPS, a couple buttons, and a status LED. Here's the current layout in all its random glory:&lt;br /&gt;
&lt;br /&gt;
[[Image:Clock-Layout.jpg|500px]]&lt;br /&gt;
&lt;br /&gt;
You can see it's a bit dense, but the polarized two-pin connectors should make it easy to attach the light sticks. Everything was SMD to ease the assembly as much as possible. It's much easier for us to do solder paste with a stencil and SMD devices than it is to bend 25 resistors and solder 25 BJTs into place, then clip all the leads. PTH is actually pretty time consuming. I digress...&lt;br /&gt;
&lt;br /&gt;
There is a switch to multiplex the PIC's RX UART inbetween Debugging and listening to the GPS unit. Be sure to use Port 2 on the Lassen iQ if you want NMEA output (4800bps by default).&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
===Things to Improve===&lt;br /&gt;
&lt;br /&gt;
Nothing at the moment. We have to wait for all the parts to come in. Should be about 4 weeks.&lt;br /&gt;
&lt;br /&gt;
We may need a cover on the light sticks to give more of an opaque presentation. TBD.&lt;br /&gt;
----&lt;br /&gt;
===Documents===&lt;br /&gt;
[[Media:SFE-Wall-Clock.pdf|SFE Wall Clock Main Board Schematic]]&lt;br /&gt;
&lt;br /&gt;
[[Media:SFE-Wall-Clock-Channels.pdf|Channel Control Schematic]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Footprints:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[SFE_Footprint_Library|SFE Footprint Library]]&lt;br /&gt;
&lt;br /&gt;
FP Name: All sorts of FPs used.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Supplier Info:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Related Items:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Projects]]&lt;/div&gt;</summary>
		<author><name>59.9.140.219</name></author>
		
	</entry>
</feed>