<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Wireless meter for my PV system</title>
	<atom:link href="http://osaether.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://osaether.wordpress.com</link>
	<description>Osaether&#039;s Blog</description>
	<lastBuildDate>Tue, 20 Oct 2009 17:28:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='osaether.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Wireless meter for my PV system</title>
		<link>http://osaether.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://osaether.wordpress.com/osd.xml" title="Wireless meter for my PV system" />
	<atom:link rel='hub' href='http://osaether.wordpress.com/?pushpress=hub'/>
		<item>
		<title>PV System Rewired</title>
		<link>http://osaether.wordpress.com/2009/10/20/pv-system-rewired/</link>
		<comments>http://osaether.wordpress.com/2009/10/20/pv-system-rewired/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 17:28:17 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=225</guid>
		<description><![CDATA[In August I ordered a Midnite Solar Mini-DC Disconnect and last month I finally got time to install it into my PV system. The Mini-DC is a small breaker panel/enclosure specifically targeted PV systems like mine. The enclosure has one 250A breaker and &#8230; <a href="http://osaether.wordpress.com/2009/10/20/pv-system-rewired/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=225&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In August I ordered a <a href="http://www.mavericksolar.net/midnite/mini-dc/mini-dc.htm">Midnite Solar Mini-DC Disconnect </a>and last month I finally got time to install it into my PV system. The Mini-DC is a small breaker panel/enclosure specifically targeted PV systems like mine. The enclosure has one 250A breaker and room for five small, DIN-rail breakers as well as mounting holes for the shunt(s). Below is an image of the rewired system and a close up of the Mini-DC.</p>
<div id="attachment_227" class="wp-caption aligncenter" style="width: 510px"><a href="http://osaether.files.wordpress.com/2009/10/mini-dc1.jpg"><img class="size-full wp-image-227" title="Rewired PV system" src="http://osaether.files.wordpress.com/2009/10/mini-dc1.jpg?w=500&#038;h=333" alt="Rewired PV system" width="500" height="333" /></a><p class="wp-caption-text">Rewired PV system</p></div>
<div id="attachment_228" class="wp-caption aligncenter" style="width: 510px"><a href="http://osaether.files.wordpress.com/2009/10/mini-dc4.jpg"><img class="size-full wp-image-228" title="Close up of Mini-DC internals showing the two shunts" src="http://osaether.files.wordpress.com/2009/10/mini-dc4.jpg?w=500&#038;h=333" alt="Close up of Mini-DC internals showing the two shunts" width="500" height="333" /></a><p class="wp-caption-text">Close up of Mini-DC internals showing the two shunts</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/225/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=225&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/10/20/pv-system-rewired/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/10/mini-dc1.jpg" medium="image">
			<media:title type="html">Rewired PV system</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/10/mini-dc4.jpg" medium="image">
			<media:title type="html">Close up of Mini-DC internals showing the two shunts</media:title>
		</media:content>
	</item>
		<item>
		<title>The Pentametric has arrived</title>
		<link>http://osaether.wordpress.com/2009/07/16/the-pentametric-has-arrived/</link>
		<comments>http://osaether.wordpress.com/2009/07/16/the-pentametric-has-arrived/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 15:18:57 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Renewable energy]]></category>
		<category><![CDATA[Solar energy]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=186</guid>
		<description><![CDATA[The Bogart Pentametric arrived in the mail yesterday and I connected it to a 12V power supply in my study. Connecting it was straight forward following the wiring diagram printed on the cover of the input unit. The connectors are &#8230; <a href="http://osaether.wordpress.com/2009/07/16/the-pentametric-has-arrived/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=186&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Bogart Pentametric arrived in the mail yesterday and I connected it to a 12V power supply in my study. Connecting it was straight forward following the wiring diagram printed on the cover of the input unit. The connectors are of high quality. After applying power I hooked it to the serial port of my PC using a standard serial cable. Using the PMComm software from the Bogart Engineering web site configuring the unit was very easy. Below is a picture of the setup. In the middle in the bottom is the Pentametric input unit and serial interface connected to the Atmel Xplain board. The Xplain board is connected to an nRF24LE1 evaluation board (left) through SPI and this board sends a radio packet with the measured data every second. To the right is the nRF24LE1 receiver board showing the battery voltage, 13.8V. The battery in this setup is a laboratory type power supply.</p>
<div id="attachment_188" class="wp-caption aligncenter" style="width: 510px"><a href="http://osaether.files.wordpress.com/2009/07/pentametric.jpg"><img class="size-full wp-image-188" title="pentametric" src="http://osaether.files.wordpress.com/2009/07/pentametric.jpg?w=500&#038;h=333" alt="Pentametric input unit and computer interface (lower middle)" width="500" height="333" /></a><p class="wp-caption-text">Pentametric input unit and computer interface (lower middle)</p></div>
<p>Instructions for communicating with Pentametric via the serial interface can be found in this document: <a href="http://www.bogartengineering.com/PentaMetricRS232SerialSpecWeb.pdf">How to access data via the RS232 port from the PentaMetric battery monitor</a>.</p>
<p>I will post the full source code here after it is finished but here is a preview of the &#8220;short read&#8221; command:</p>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">bool pentametric_short_read(unsigned char a, unsigned char n, unsigned char *msg)</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">{</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">unsigned char crc, i;</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">putchar(usart_data_, 0&#215;81);</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">putchar(usart_data_, a);</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">putchar(usart_data_, n);</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">crc = 0&#215;81 + a + n;</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">putchar(usart_data_, ~crc);</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">crc = 0;</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">for(i=0;i&lt;n;i++)</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">{</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">msg[i] = getchar(usart_data_);</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">crc += msg[i];</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">}</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">crc += getchar(usart_data_);</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">if (crc != 0xff)</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">return false;</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">return true;</div>
<div id="_mcePaste" style="position:absolute;width:1px;height:1px;top:482px;left:-10000px;">}</div>
<pre class="MsoNormal" style="font-size:10pt;">bool pentametric_short_read(uint8_t a, uint8_t n, uint8_t *msg)
{
    uint8_t crc, i;

    putchar(usart_data_, 0x81);
    putchar(usart_data_, a);
    putchar(usart_data_, n);
    crc = 0x81 + a + n;
    putchar(usart_data_, ~crc);
    crc = 0;
    for(i=0;i&lt;n;i++)
    {
        msg[i] = getchar(usart_data_);
        crc += msg[i];
    }
    crc += getchar(usart_data_);
    if (crc != 0xff)
        return false;
    return true;
}</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=186&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/07/16/the-pentametric-has-arrived/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/07/pentametric.jpg" medium="image">
			<media:title type="html">pentametric</media:title>
		</media:content>
	</item>
		<item>
		<title>Atmel xmega and the Xplain evaluation and demonstration kit</title>
		<link>http://osaether.wordpress.com/2009/07/07/atmel-xmega-and-the-xplain-evaluation-and-demonstration-kit/</link>
		<comments>http://osaether.wordpress.com/2009/07/07/atmel-xmega-and-the-xplain-evaluation-and-demonstration-kit/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 08:21:59 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Renewable energy]]></category>
		<category><![CDATA[Solar energy]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=136</guid>
		<description><![CDATA[As written in the previous post I am going to use the Pentametric Battery Monitor to measure the current in/out of the batteries. This means that I need to move the control of my monitor system from nRF24LE1 to a &#8230; <a href="http://osaether.wordpress.com/2009/07/07/atmel-xmega-and-the-xplain-evaluation-and-demonstration-kit/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=136&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As written in the previous post I am going to use the <a href="http://www.bogartengineering.com/pentametric.htm">Pentametric Battery Monitor</a> to measure the current in/out of the batteries. This means that I need to move the control of my monitor system from nRF24LE1 to a more powerful board with more than one serial port. I have thought about this and have made up my mind to use an <a href="http://www.atmel.com/products/AVR/default_xmega.asp">xmega</a>  micro controller from <a href="http://www.atmel.com">Atmel</a>. Mainly because I have used the <a href="http://www.atmel.com/products/AVR/">AVR micro controllers</a> in several projects in the past and that the <a href="http://www.atmel.com/products/AVR/default_xmega.asp">xmega</a> have many serial ports (<a href="http://en.wikipedia.org/wiki/USART">USART</a>s). The <a href="http://www.atmel.com/dyn/products/product_card.asp?PN=ATxmega128A1">ATxmega128A1</a> found on the <a href="http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4506">xplain</a> evaluation and demonstration kit has eight (!) USARTs. Pictured here is the xplain board connected to an nRFgo board via <a href="http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus">SPI</a>:</p>
<div id="attachment_142" class="wp-caption aligncenter" style="width: 510px"><a href="http://osaether.files.wordpress.com/2009/07/xplain.jpg"><img class="size-full wp-image-142 " title="xplain" src="http://osaether.files.wordpress.com/2009/07/xplain.jpg?w=500&#038;h=333" alt="Xplain and nRFgo motherboards" width="500" height="333" /></a><p class="wp-caption-text">Xplain and nRFgo boards</p></div>
<div class="mceTemp">Below is a basic diagram of the new system. On the USART on xmega side I will use <a href="http://www.maxim-ic.com/quick_view2.cfm/qv_pk/1068">MAX3232 RS232 Transceivers</a> and on the SunSaver (SS) MPPT side I will use the <a href="http://www.morningstarcorp.com/en/pc-meterbus-adapter">Morningstar PC Meterbus Adapter</a> that converts the SS RS485 bus to RS232. The Pentametric use a similar converter, the <a href="http://stores.mavericksolar.com/-strse-346/Bogart-PM-dsh-100-dsh-C-Pentametric-Computer/Detail.bok">Bogart PM-100-C</a>.</div>
<div class="mceTemp">
<div id="attachment_156" class="wp-caption alignnone" style="width: 440px"><img class="size-full wp-image-156" title="xmega" src="http://osaether.files.wordpress.com/2009/07/xmega2.png?w=500" alt="Basic block diagram of new system"   /><p class="wp-caption-text">Basic block diagram of new system</p></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=136&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/07/07/atmel-xmega-and-the-xplain-evaluation-and-demonstration-kit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/07/xplain.jpg" medium="image">
			<media:title type="html">xplain</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/07/xmega2.png" medium="image">
			<media:title type="html">xmega</media:title>
		</media:content>
	</item>
		<item>
		<title>Wireless transmitter prototype board</title>
		<link>http://osaether.wordpress.com/2009/07/03/wireless-transmitter-prototype-board/</link>
		<comments>http://osaether.wordpress.com/2009/07/03/wireless-transmitter-prototype-board/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 13:19:26 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Renewable energy]]></category>
		<category><![CDATA[Solar energy]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=129</guid>
		<description><![CDATA[Here is a picture of the new prototype board mounted in my tool shed. The nRF24LE1 module is the same but I have moved it from the nRFgo motherboard to a prototyping board. I have also added a LM317 voltage &#8230; <a href="http://osaether.wordpress.com/2009/07/03/wireless-transmitter-prototype-board/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=129&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is a picture of the new prototype board mounted in my tool shed. The nRF24LE1 module is the same but I have moved it from the nRFgo motherboard to a prototyping board. I have also added a LM317 voltage regulator and an RS232 driver.</p>
<div id="attachment_130" class="wp-caption aligncenter" style="width: 510px"><a href="http://osaether.files.wordpress.com/2009/07/img_1157.jpg"><img class="size-full wp-image-130 " title="IMG_1157" src="http://osaether.files.wordpress.com/2009/07/img_1157.jpg?w=500&#038;h=333" alt="nRF24LE1 module" width="500" height="333" /></a><p class="wp-caption-text">nRF24LE1 module</p></div>
<p>I have also made up my mind to order the <a href="http://www.bogartengineering.com/pentametric.htm" target="_blank">Pentametric Battery Monitor</a> from <a href="http://www.bogartengineering.com/">Bogart Engineering</a> and use it for current measurement instead of the circuit described below. The Pentametric has a computer interface that can be used to read out all data captured. This means I also need a micro controller with more than one serial port. More on that later.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/129/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=129&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/07/03/wireless-transmitter-prototype-board/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/07/img_1157.jpg" medium="image">
			<media:title type="html">IMG_1157</media:title>
		</media:content>
	</item>
		<item>
		<title>What&#8217;s All This MPPT Stuff, Anyhow?</title>
		<link>http://osaether.wordpress.com/2009/04/19/whats-all-this-mppt-stuff-anyway/</link>
		<comments>http://osaether.wordpress.com/2009/04/19/whats-all-this-mppt-stuff-anyway/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 16:02:38 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Renewable energy]]></category>
		<category><![CDATA[Solar energy]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=116</guid>
		<description><![CDATA[I have put my project on hold while waiting for the SSOP-20 adapter for the PGIA mentioned below. This adapter makes it much easier to solder these tiny IC&#8217;s to a prototyping board. SSOP-20 PCB Adapter I ordered the adapter &#8230; <a href="http://osaether.wordpress.com/2009/04/19/whats-all-this-mppt-stuff-anyway/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=116&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have put my project on hold while waiting for the SSOP-20 adapter for the PGIA mentioned below. This adapter makes it much easier to solder these tiny IC&#8217;s to a prototyping board.</p>
<div class="mceTemp">
<dl class="wp-caption alignnone">
<dt class="wp-caption-dt"><img class="size-full wp-image-118" title="SSOP-20 PCB Adapter" src="http://osaether.files.wordpress.com/2009/04/ssop20s.jpg?w=500" alt="SSOP-20 PCB Adapter"   /></dt>
<dd class="wp-caption-dd">SSOP-20 PCB Adapter</dd>
</dl>
<p>I ordered the adapter from <a href="http://www.micro4you.com" target="_self">micro4you </a>but similar adapters are available from other sources.</div>
<div class="mceTemp"> </div>
<div class="mceTemp">Now to the subject of this posting; MPPT. MPPT stands for Maximum Power Point Tracking and is a (as used in solar charge controllers) method or algorithm to get the maximum available power from the photovoltaic (PV) modules. In principle this is easy but is very tricky to implement in practice. Below are some articles I have found on the subject.</div>
<div class="mceTemp"> </div>
<div class="mceTemp">Document from Blue Sky Energy:  <a href="http://www.blueskyenergyinc.com/uploads/pdf/BSE_What_is_MPPT.pdf" target="_blank">What is Maximum Power Point Tracking (MPPT) and How Does it Work?</a></div>
<div class="mceTemp"> </div>
<div class="mceTemp">Article by Stephen Woodward in Electronic Design: <a href="http://electronicdesign.com/Articles/Print.cfm?ArticleID=6262" target="_blank">Maximum-power-point-tracking solar battery charger</a></div>
<div class="mceTemp"> </div>
<div class="mceTemp">PhD thesis by Dezső Séra (abstract only available on-line): <a href="http://www.iet.aau.dk/News/pdf/2009/opsl-des.pdf">Real-time Modelling, Diagnostics and Optimised MPPT for Residential PV systems</a></div>
<div class="mceTemp"> </div>
<div class="mceTemp">Various articles by Dezső Séra on his home page: <a href="http://www.iet.aau.dk/~des/personal.htm" target="_blank">Homepage for Dezső Séra</a></div>
<div class="mceTemp"> </div>
<div class="mceTemp">M.Sc thesis by Hannes Knopf: <a href="http://solar-guppy.com/forum/download/mppt_thesis_Hannes_knopf.pdf" target="_blank">ANALYSIS, SIMULATION, AND EVALUATION OF MAXIMUM POWER POINT TRACKING (MPPT) METHODS FOR A SOLAR POWERED VEHICLE</a></div>
<div class="mceTemp">DIY: <a href="http://www.drgw.net/workshop/MPPT/mppt.html">MPPT</a></div>
<div class="mceTemp">Discussion forums:</div>
<div class="mceTemp"><a href="http://www.solarfreaks.com/" target="_blank">Solar Freaks</a></div>
<div class="mceTemp"><a href="http://www.solar-guppy.com" target="_blank">Solar Guppy</a></div>
<div class="mceTemp"><a href="http://www.fieldlines.com/" target="_blank">Forcefield</a></div>
<div class="mceTemp"><a href="http://www.outbackpower.com/forum/?page_id=forum" target="_blank">OutBack Power Systems User Forum</a></div>
<div class="mceTemp"><a href="http://www.xantrex.com/forum/default.asp" target="_blank">Xantrex Forums</a></div>
<div class="mceTemp">I hope <a href="http://www.national.com/rap/" target="_blank">Bob Pease</a> did not mind that I used his very informative articles as an inspiration for the title of this post.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=116&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/04/19/whats-all-this-mppt-stuff-anyway/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/04/ssop20s.jpg" medium="image">
			<media:title type="html">SSOP-20 PCB Adapter</media:title>
		</media:content>
	</item>
		<item>
		<title>Not quite there yet</title>
		<link>http://osaether.wordpress.com/2009/04/05/not-quite-there-yet/</link>
		<comments>http://osaether.wordpress.com/2009/04/05/not-quite-there-yet/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 18:23:46 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Renewable energy]]></category>
		<category><![CDATA[Solar energy]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=102</guid>
		<description><![CDATA[I visited my cabin last weekend to try out the Modbus functions below on the SunSaver MPPT. I also had implemented a test-version of the RF protocol so I could check the radio range. I have my solar system in a &#8230; <a href="http://osaether.wordpress.com/2009/04/05/not-quite-there-yet/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=102&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I visited my cabin last weekend to try out the Modbus functions below on the SunSaver MPPT. I also had implemented a test-version of the RF protocol so I could check the radio range. I have my solar system in a tool shed about 10 meters from my cabin. This combined with about two meters of snow should be more than challenging enough for the tiny PCB antenna on the nRF24LE1 modules.</p>
<p>Surely enough, the radio did not like these conditions. I had to place the receiver in a window facing the tool shed and the transmitter in the door opening on my tool shed to be within range. Luckily I had two other modules with SMA connectors and matching 2.4GHz antennas that I could use. With these modules the radios functioned flawlessly.</p>
<p>Below is a picture of the transmitter (with PCB antenna) in the tool shed. The SunSaver MPPT is on the wall to the left. The box on the wall, in the middle is the <a href="http://www.bogartengineering.com/trimetric.htm" target="_blank">Bogart Engineering Trimetric</a> and the big blue box partly in the right of the picture is a <a href="http://www.victronenergy.com/inverters-chargers/" target="_blank">Victron Energy Inverter/Charger</a>. On the floor are two SunXtender AGM batteries with the nRFgo evaluation board on top of the battery to the right.</p>
<p><img class="alignnone size-full wp-image-105" title="nrfgo2" src="http://osaether.files.wordpress.com/2009/04/nrfgo2.jpg?w=500&#038;h=750" alt="nrfgo2" width="500" height="750" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=102&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/04/05/not-quite-there-yet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/04/nrfgo2.jpg" medium="image">
			<media:title type="html">nrfgo2</media:title>
		</media:content>
	</item>
		<item>
		<title>RF packet format</title>
		<link>http://osaether.wordpress.com/2009/03/22/6-rf-packet-format/</link>
		<comments>http://osaether.wordpress.com/2009/03/22/6-rf-packet-format/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 17:19:15 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Renewable energy]]></category>
		<category><![CDATA[Solar energy]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=93</guid>
		<description><![CDATA[The 2.4GHz radio in the nRF24LE1 is very easy get on air quickly but it gets really fun when using the Gazell library included in the nRFgo SDK. The only thing we have to do is to edit some default &#8230; <a href="http://osaether.wordpress.com/2009/03/22/6-rf-packet-format/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=93&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The 2.4GHz radio in the nRF24LE1 is very easy get on air quickly but it gets really fun when using the Gazell library included in the nRFgo SDK. The only thing we have to do is to edit some default values in a header file and add the source files to our project. Most of the default values can be left unchanged and I changed three of them; I reduced the bit rate from 2mbps to 250kbps, increased the payload length to 32 bytes and the RX period to 10ms.</p>
<p>Even if we do not need the full 32 bytes payload length at once, I will use this length from start so I do not need to increase it later. I will also add a packet type to the beginning of each packet such that I can add other packet types later. For example the SunSaver MPPT store 32 days of historical data that can be read out through the Modbus. Maybe I will add this in a future version of the firmware. The figure below shows the suggested format for RF packet type 1.</p>
<div id="attachment_94" class="wp-caption alignnone" style="width: 406px"><img class="size-full wp-image-94" title="pkttype" src="http://osaether.files.wordpress.com/2009/03/pkttype.png?w=500" alt="RF packet type 1 format"   /><p class="wp-caption-text">RF packet type 1 format</p></div>
<div class="mceTemp">Here:</div>
<div class="mceTemp">PID is a packet identifier that increments for each packet sent. This makes it easier for the receiver to keep track of any lost packets (more on this later).</div>
<div class="mceTemp">VB is the battery voltage reported by the SS MPPT</div>
<div class="mceTemp">VP is the solar array voltage reported by the SS MPPT</div>
<div class="mceTemp">VL is the load voltage reported by the SS MPPT</div>
<div class="mceTemp">VI is the inverter voltage (not used yet)</div>
<div class="mceTemp">IL is the load current reported by the SS MPPT</div>
<div class="mceTemp">IC is the charge current reported by the SS MPPT</div>
<div class="mceTemp">IS is the shunt current measured by the ADC discussed below</div>
<div class="mceTemp">II is the inverter current (not used yet)</div>
<div class="mceTemp">TA is the ambient temperature reported by the SS MPPT</div>
<div class="mceTemp">TB is the battery temperature  reported by the SS MPPT</div>
<div class="mceTemp">TI is the inverter temperature (not used yet)</div>
<div class="mceTemp">All currents and voltages are split into high byte and low byte (e.g. VBH and VBL). If they are read from he SunSaver MPPT they are sent in the format read. The blank boxes are for future expansion.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/93/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/93/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/93/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=93&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/03/22/6-rf-packet-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/03/pkttype.png" medium="image">
			<media:title type="html">pkttype</media:title>
		</media:content>
	</item>
		<item>
		<title>More about prescaling</title>
		<link>http://osaether.wordpress.com/2009/03/21/5-more-about-prescaling/</link>
		<comments>http://osaether.wordpress.com/2009/03/21/5-more-about-prescaling/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 16:45:38 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Renewable energy]]></category>
		<category><![CDATA[Solar energy]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=87</guid>
		<description><![CDATA[I have been rethinking the range of my analog input again. It would have been nice to have a better resolution on the lowest input voltages (currents) so I will redesign the input stage onemore time. My goal is 10uV (10mA). &#8230; <a href="http://osaether.wordpress.com/2009/03/21/5-more-about-prescaling/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=87&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been rethinking the range of my analog input again. It would have been nice to have a better resolution on the lowest input voltages (currents) so I will redesign the input stage onemore time. My goal is 10uV (10mA).</p>
<p>I have also spent a few days programming and trying out the ADC in the nRF24LE1 and the resolution is closer to 10 bits than 12 bits. This together with the requirement of measuring 10mA calls for a prescaler with variable gain. Two or three gain settings would suffice.</p>
<p>I have ordered samples of a programmable gain amplifier (PGIA) from Linear Technology and if I receive them I will use this amp instead of making  my own. Here are details about the PGIA: <a href="http://www.linear.com/pc/productDetail.jsp?navId=H0,C1,C1154,C1009,C1027,P2446"><span style="color:#000000;">LTC6915 &#8211; Zero Drift, Precision Instrumentation Amplifier with Digitally Programmable Gain</span></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=87&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/03/21/5-more-about-prescaling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>
	</item>
		<item>
		<title>Prescaling the voltage from the shunt</title>
		<link>http://osaether.wordpress.com/2009/03/17/4-prescaling-the-voltage-from-the-shunt/</link>
		<comments>http://osaether.wordpress.com/2009/03/17/4-prescaling-the-voltage-from-the-shunt/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 09:33:35 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Renewable energy]]></category>
		<category><![CDATA[Solar energy]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=61</guid>
		<description><![CDATA[I have changed my mind about the range of the voltage across the Trimetric shunt. As I said below it is very unlikely that I will ever charge the batteries at 100A so I reduce this requirement to 50A (my &#8230; <a href="http://osaether.wordpress.com/2009/03/17/4-prescaling-the-voltage-from-the-shunt/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=61&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have changed my mind about the range of the voltage across the Trimetric shunt. As I said below it is very unlikely that I will ever charge the batteries at 100A so I reduce this requirement to 50A (my Victron charger has a limit of 50A as well). On the other hand I sometimes use power tools that for short periods use more than 1200W so I increase the other limit to 110A. This means we will get an input voltage from -110mV to +50mV.</p>
<p>As mentioned below I will use a non-inverting summation amplifier to offset the input voltage to the 0V to 1.2V required by the nRF24LE1:</p>
<div class="mceTemp">
<div id="attachment_65" class="wp-caption alignnone" style="width: 427px"><img class="size-full wp-image-65" title="mppt-ad1" src="http://osaether.files.wordpress.com/2009/03/mppt-ad1.png?w=500" alt="Non-inverting summing amplifier."   /><p class="wp-caption-text">Non-inverting summing amplifier.</p></div>
</div>
<p>The output voltage for this amplifier is given by this equation:</p>
<p>Vo = (1+R4/R3)(Vi R2+Vr R1)/(R1+R2)</p>
<p>Where Vr is a reference voltage that we will choose such that the voltage at the input is 0V when Vi is -110mV. If we set R1=R2 then Vr=110mV. Using these values and the fact that we want full scale (Vo=1.2V) on the ADC input when the input voltage is 50mV we get</p>
<p>R4/R3 = 14</p>
<p>The only task left then is to choose impedance level because there are an infinite number of resistor values that fits these equations. There are numerous articles on the net on this issue so I will not go into great detail here other than saying that in similar designs in the past, values from 10KΩ to 100KΩ ± has worked for me. Therefore I will start with these values: R1=R2=20KΩ, R3=10KΩ and R4=140KΩ.</p>
<p>To generate Vr I will use a simple voltage divider on the 3.3V supply voltage and run the divided voltage to a spare ADC input on the RF24LE1. Again there are an infinite number of resistor values to choose from and the voltage will be more stable with a low impedance level than with a high. On the other hand we are on a limited budget current-wise here so I will set a current limit on the divider to 1mA (3.3KΩ).</p>
<div id="attachment_69" class="wp-caption alignnone" style="width: 170px"><img class="size-full wp-image-69" title="mppt-vr" src="http://osaether.files.wordpress.com/2009/03/mppt-vr.png?w=500" alt="Voltage divider"   /><p class="wp-caption-text">Voltage divider</p></div>
<p>With the standard resistor values R5=3.3KΩ and R6=120Ω we get Vr=116mV which is close enough. The exact value is not important since we will sample Vr together with Vo and use both in the equation to calculate Vi.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=61&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/03/17/4-prescaling-the-voltage-from-the-shunt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/03/mppt-ad1.png" medium="image">
			<media:title type="html">mppt-ad1</media:title>
		</media:content>

		<media:content url="http://osaether.files.wordpress.com/2009/03/mppt-vr.png" medium="image">
			<media:title type="html">mppt-vr</media:title>
		</media:content>
	</item>
		<item>
		<title>Reading the SunSaver MPPT Input Registers</title>
		<link>http://osaether.wordpress.com/2009/03/15/reading-the-sunsaver-mppt-input-registers/</link>
		<comments>http://osaether.wordpress.com/2009/03/15/reading-the-sunsaver-mppt-input-registers/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 17:38:53 +0000</pubDate>
		<dc:creator>osaether</dc:creator>
				<category><![CDATA[Renewable energy]]></category>
		<category><![CDATA[Solar energy]]></category>

		<guid isPermaLink="false">http://osaether.wordpress.com/?p=35</guid>
		<description><![CDATA[  The SunSaver uses the Modbus in RTU mode to communicate with any external (master) device as detailed in the SunSaver MPPT MODBUS Document. In the first version of the wireless remote meter I will only use the data in the Input &#8230; <a href="http://osaether.wordpress.com/2009/03/15/reading-the-sunsaver-mppt-input-registers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=35&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:x-small;font-family:Arial;"><span style="font-size:10pt;font-family:Arial;">The SunSaver uses the Modbus in RTU mode to communicate with any external (master) device as detailed in the <a title="SunSaver MPPT MODBUS Document" href="http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf" target="_blank">SunSaver MPPT MODBUS Document</a>. In the first version of the wireless remote meter I will only use the data in the Input Registers of the SunSaver. Detailed examples of the message format with CRC values can be found in the <a title="Modbus Specification" href="http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf" target="_blank">Modbus Specification</a>. C-language source code for the CRC calculation can be found at the end of the <a title="Modbus Serial Line Protocol and Implementation Guide" href="http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf" target="_blank">Modbus Serial Line Protocol and Implementation Guide</a>. Using the information in these documents and the uart library from the nRFgo Software Development Kit (SDK) a function to read the Input Registers of the SunSaver can be written easily:</span></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<pre class="MsoNormal" style="font-size:10pt;">#define SS_MODBUS_ADDR 0x01

static void modbus_send_msg(uint8_t n, uint8_t *msg)
{
  uint8_t i;
  uint16_t crc;
  crc = crc16(msg, n);
  msg[n] = crc &amp; 0xff;
  msg[n+1] = crc &gt;&gt; 8;
  for (i=0;i&lt;(n+2);i++)
    hal_uart_putchar(msg[i]);
}

bool ss_mppt_read_input_registers(uint8_t a, uint8_t n, uint16_t xdata *buf)
{
  uint8_t xdata msg[256];
  uint8_t i;
  uint16_t reg;
  msg[0] = SS_MODBUS_ADDR;// Default SunSaver MPPT Modbus Address
  msg[1] = 0x04; // Read Input Registers
  msg[2] = 0; // MSB of register address
  msg[3] = a; // Register address
  msg[4] = 0; // MSB of number of registers to read
  msg[5] = n; // Number of registers to read
  modbus_send_msg(6, msg);
  if (hal_uart_getchar() != SS_MODBUS_ADDR)
    return false;
  if (hal_uart_getchar() != 0x04)
    return false;
  if (hal_uart_getchar() != (2*n))
    return false;
  for (i=0;i&lt;n;i++)
  {
    reg = hal_uart_getchar();
    reg &lt;&lt;= 8;
    reg |= hal_uart_getchar();
    buf[i] = reg;
  }
  // Ignore CRC:
  hal_uart_getchar();
  hal_uart_getchar();
  return true;
}</pre>
<pre class="MsoNormal" style="margin:0;"> </pre>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:x-small;font-family:Arial;"><span style="font-size:10pt;font-family:Arial;"><span style="font-size:10pt;font-family:Arial;">Please note that only minimal error checking is done on the response from the SunSaver; the inter-character delay as per the Modbus spec. is not checked and the CRC is ignored. A check on these will be implemented in a future version of the firmware.</span></span></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:x-small;font-family:Arial;"><span style="font-size:10pt;font-family:Arial;"><span style="font-size:10pt;font-family:Arial;">Also note that the code above uses keywords specific to the Keil C51 compiler. I will try to port the code to the free SDCC compiler after the code is finished.</span></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/osaether.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/osaether.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/osaether.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/osaether.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/osaether.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/osaether.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/osaether.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/osaether.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/osaether.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/osaether.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/osaether.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/osaether.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/osaether.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/osaether.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=osaether.wordpress.com&amp;blog=6948410&amp;post=35&amp;subd=osaether&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://osaether.wordpress.com/2009/03/15/reading-the-sunsaver-mppt-input-registers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e963137a50a15d64f503021b6703767e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">osaether</media:title>
		</media:content>
	</item>
	</channel>
</rss>
