<?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>Steve's Junk &#187; pic</title>
	<atom:link href="http://smackaay.com/tag/pic/feed/" rel="self" type="application/rss+xml" />
	<link>http://smackaay.com</link>
	<description>A showcase of Steven Mackaay's stuff</description>
	<lastBuildDate>Mon, 21 Jun 2010 05:01:23 +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>Temperature and ambient light tracking</title>
		<link>http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/</link>
		<comments>http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 03:57:43 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[7014d]]></category>
		<category><![CDATA[light]]></category>
		<category><![CDATA[lux]]></category>
		<category><![CDATA[pic]]></category>
		<category><![CDATA[pic16f684]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=391</guid>
		<description><![CDATA[So, since I&#8217;m really bored I decided to build a device that tracks ambient temperature and light levels. While this may not seem very interesting, I suspect the relationship between the two, while not directly linked, will be interesting especially &#8230; <a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So, since I&#8217;m really bored I decided to build a device that tracks ambient temperature and light levels. While this may not seem very interesting, I suspect the relationship between the two, while not directly linked, will be interesting especially when placed outside. Well, I suppose I&#8217;ll put a few pictures up and outline some of the stages I went through to get it to this point.</p>
<p>1. Prototyping. <center><br />
<div id="attachment_395" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/dscn7841/" rel="attachment wp-att-395"><img src="http://smackaay.com/wp-content/uploads/2009/01/dscn7841-400x300.jpg" alt="The initial version of the sensor, using older stuff from viscometer project." title="Breadboarded" width="400" height="300" class="size-medium wp-image-395" /></a><p class="wp-caption-text">The initial version of the sensor, using older stuff from viscometer project.</p></div></center><br />
This didn&#8217;t take long. I already had a board with a single supply opamp (JRC 7014D) on it that was already set up for the LM335Z temperature sensor. I used a bread board, as can be seen in the picture, and used a messy bunch of wires coming from the PICKIT2 to the MCU. I chose a PIC16F684 for this job since it has some analog channels and it doesn&#8217;t have too many pins.<br />
<br />
2. Checking it out. In order to see if the Voltage range will allow for freezing temperatures and room temperature, I had to test it with some snow.</p>
<p><center><br />
<div id="attachment_392" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/dscn7837/" rel="attachment wp-att-392"><img src="http://smackaay.com/wp-content/uploads/2009/01/dscn7837-400x300.jpg" alt="Cup o&#039; snow to check and see if the Opamp is biased correctly" title="Cup o&#039; snow" width="400" height="300" class="size-medium wp-image-392" /></a><p class="wp-caption-text">Cup o' snow to check and see if the Opamp is biased correctly</p></div><br />
<div id="attachment_394" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/dscn7839/" rel="attachment wp-att-394"><img src="http://smackaay.com/wp-content/uploads/2009/01/dscn7839-400x300.jpg" alt="Temperature check with the IR gage" title="Temperature check" width="400" height="300" class="size-medium wp-image-394" /></a><p class="wp-caption-text">Temperature check with the IR gage</p></div><br />
</center></p>
<p>The voltages swung just fine with a bit of extra range. I have about 50C to work with in range, good enough.</p>
<p>3. Making the board. For this I used a board from measurexplorer. I have tons of these but haven&#8217;t had much luck using them. The only ones that have worked well for me are the ones with 3 holes per pad. Anyways, here are some pictures.<br />
<center><div id="attachment_396" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/dscn7842/" rel="attachment wp-att-396"><img src="http://smackaay.com/wp-content/uploads/2009/01/dscn7842-400x300.jpg" alt="Start of prototyping the board" title="Proto board" width="400" height="300" class="size-medium wp-image-396" /></a><p class="wp-caption-text">Start of prototyping the board</p></div>[caption id="attachment_397" align="aligncenter" width="400" caption="Finished Sensor board with both light sensing and temperature sensing"]<a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/dscn7843/" rel="attachment wp-att-397"><img src="http://smackaay.com/wp-content/uploads/2009/01/dscn7843-400x300.jpg" alt="Finished Sensor board with both light sensing and temperature sensing" title="Finished Sensor board" width="400" height="300" class="size-medium wp-image-397" /></a>[/caption]</center></p>
<p>Anyways, This board took me a couple hours to make but it works well and required no rework, thankfully. You can see both the LM335X (TO-92) and the CDS for sensing the light. This board interfaces to an RS232 board that I&#8217;ve made and that I use for some of my other projects.</p>
<p>4. Getting &#8216;er running. While the unit itself is already programmed in terms of the MCU. it needs some adjusting for voltage on the pot and that&#8217;s about it. now to affix it to something so it doesn&#8217;t move around.<br />
<center><br />
<div id="attachment_399" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/dscn7845/" rel="attachment wp-att-399"><img src="http://smackaay.com/wp-content/uploads/2009/01/dscn7845-400x300.jpg" alt="RS232 and Sensors glued to a board" title="RS232 and Sensors" width="400" height="300" class="size-medium wp-image-399" /></a><p class="wp-caption-text">RS232 and Sensors glued to a board</p></div>[caption id="attachment_400" align="aligncenter" width="400" caption="Tracking it on the computer"]<a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/dscn7847/" rel="attachment wp-att-400"><img src="http://smackaay.com/wp-content/uploads/2009/01/dscn7847-400x300.jpg" alt="Tracking it on the computer" title="Tracking it on the computer" width="400" height="300" class="size-medium wp-image-400" /></a>[/caption]</center></p>
<p>As you can see, I simply used hot glue to affix both the RS232 board and the sensor board to the block of wood. Its a temporary arrangement while I come up with a good enclosure for outside. I brought my old laptop out into service for this project, works well just for collecting data.</p>
<p>Anyways, here are some images of some collected data.<br />
<center><br />
<div id="attachment_421" class="wp-caption aligncenter" style="width: 399px"><a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/livingroom/" rel="attachment wp-att-421"><img src="http://smackaay.com/wp-content/uploads/2009/01/livingroom-389x300.png" alt="Living room temperatures (click to see description)" title="Livng room temps" width="389" height="300" class="size-medium wp-image-421" /></a><p class="wp-caption-text">Living room temperatures (click to see description)</p></div><br />
<div id="attachment_422" class="wp-caption aligncenter" style="width: 399px"><a href="http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/basementtemp/" rel="attachment wp-att-422"><img src="http://smackaay.com/wp-content/uploads/2009/01/basementtemp-389x300.png" alt="Basement (click to see description)" title="Basement temperature" width="389" height="300" class="size-medium wp-image-422" /></a><p class="wp-caption-text">Basement (click to see description)</p></div></center></p>
<p>Well, so far so good. Now I&#8217;ll make the enclosure for outside and improve the sampling. hopefully I can leave it out all spring/summer and see the patterns.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2009/01/17/temperature-and-ambient-light-tracking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Viscometer and Graphing</title>
		<link>http://smackaay.com/2008/11/14/viscometer-and-graphing/</link>
		<comments>http://smackaay.com/2008/11/14/viscometer-and-graphing/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 20:11:56 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[adc]]></category>
		<category><![CDATA[pic]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[smackaay]]></category>
		<category><![CDATA[Stormer viscometer]]></category>
		<category><![CDATA[viscometer]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=245</guid>
		<description><![CDATA[Now that I&#8217;ve got the new board working, I&#8217;ve been programming all of the pertinant functions back into the chip. This time I&#8217;ve redesigned them to be a little more modular and useful in the long term. As was mentioned &#8230; <a href="http://smackaay.com/2008/11/14/viscometer-and-graphing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Now that I&#8217;ve got the new board working, I&#8217;ve been programming all of the pertinant functions back into the chip. This time I&#8217;ve redesigned them to be a little more modular and useful in the long term. As was mentioned in the post a while back, I made a new board and I&#8217;ve come to realise that the RS-485 Port is wrong. It has 2 connectors when it requires 3. A-B-Ground. Sigh!</p>
<p>Anyways, I&#8217;ve been running tests with the viscometer and everything is working great so far. I&#8217;ve got the temperature sensors working and the conditioning of them with OP-amps has worked like a charm. Though I find that the read value from the ADC is pretty jumpy.</p>
<p>Anyways, as reference, here some photos.<br />
<center><br />
<div id="attachment_247" class="wp-caption alignnone" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2008/11/dscn7223.jpg"><img class="size-medium wp-image-247" title="The Whole Deal" src="http://smackaay.com/wp-content/uploads/2008/11/dscn7223-400x300.jpg" alt="The Whole Deal" width="400" height="300" /></a><p class="wp-caption-text">The Whole Deal</p></div></p>
<p><div id="attachment_246" class="wp-caption alignnone" style="width: 235px"><a href="http://smackaay.com/wp-content/uploads/2008/11/dscn7220.jpg"><img class="size-medium wp-image-246" title="Temp Conditioner" src="http://smackaay.com/wp-content/uploads/2008/11/dscn7220-225x300.jpg" alt="Temp Conditioner" width="225" height="300" /></a><p class="wp-caption-text">Temp Conditioner</p></div><br />
</center><br />
Also, the linearity test went well. Better than I initially expected.<br />
<center><br />
<div id="attachment_248" class="wp-caption alignnone" style="width: 401px"><a href="http://smackaay.com/wp-content/uploads/2008/11/linearity.gif"><img class="size-medium wp-image-248" title="Motor Linearity" src="http://smackaay.com/wp-content/uploads/2008/11/linearity-391x300.gif" alt="Motor Linearity" width="391" height="300" /></a><p class="wp-caption-text">Motor Linearity</p></div><br />
</center><br />
One can notice that there are some burps along the graph but for the most part, it&#8217;s fairly linear as far as I&#8217;m concerned.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2008/11/14/viscometer-and-graphing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
