<?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>Mad Scientist Hut Blog</title>
	<atom:link href="http://madscientisthut.com/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://madscientisthut.com/wordpress</link>
	<description>Just another Mad Scientist site</description>
	<lastBuildDate>Sat, 23 Mar 2013 00:45:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>A Very Nice Steam Engine Powered Carousel Project That Uses The Joule Thief</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/a-very-nice-steam-engine-powered-carousel-project-that-uses-the-joule-thief/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/a-very-nice-steam-engine-powered-carousel-project-that-uses-the-joule-thief/#comments</comments>
		<pubDate>Thu, 27 Sep 2012 02:51:57 +0000</pubDate>
		<dc:creator>Kirk</dc:creator>
				<category><![CDATA[Daily Blog]]></category>
		<category><![CDATA[Joule Thief]]></category>
		<category><![CDATA[energy harvest]]></category>
		<category><![CDATA[energy harvesting]]></category>
		<category><![CDATA[energy harvestor]]></category>
		<category><![CDATA[Joule Thief Circuit]]></category>
		<category><![CDATA[Joule Thief Kit]]></category>
		<category><![CDATA[Joule Thief PCB]]></category>
		<category><![CDATA[joules thief]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1477</guid>
		<description><![CDATA[<p>Jerry built this great little home made steam engine and the carousel that is powered from the steam engine.  He posted a video of it in operation on you tube. He runs the Carousel and a little generator from the steam engine, the generator is putting out ~900mV that is then boosted using a Mad Scientist Hut Joule Thief board that lights some LEDs that are around the Carousel. </p>
<p>Jerry repairs old vacuum tube radios. If you are in need of getting an old vacuum tube radio back in functioning condition just send me an e-mail at madscientist@madscientisthut.com I will be sure to forward your request to Jerry.</p>

<p>Here are some of the still shots of the carousel in development: ( To see a large format picture, click the picture on this page then on the next page click the image there and the next page will open a full size picture)</p>
<p></p>
<p></p>
<p></p>
<p class="wp-caption-text">Jerry&#8217;s Steam Powered Carousel with Generator and Joule <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/a-very-nice-steam-engine-powered-carousel-project-that-uses-the-joule-thief/">A Very Nice Steam Engine Powered Carousel Project That Uses The Joule Thief</a></span>]]></description>
				<content:encoded><![CDATA[<p>Jerry built this great little home made steam engine and the carousel that is powered from the steam engine.  He posted a video of it in operation on you tube. He runs the Carousel and a little generator from the steam engine, the generator is putting out ~900mV that is then boosted using a Mad Scientist Hut Joule Thief board that lights some LEDs that are around the Carousel. </p>
<p>Jerry repairs old vacuum tube radios. If you are in need of getting an old vacuum tube radio back in functioning condition just send me an e-mail at madscientist@madscientisthut.com I will be sure to forward your request to Jerry.</p>
<ol><iframe width="853" height="480" src="http://www.youtube.com/embed/0SgIv2uCojw?rel=0" frameborder="0" allowfullscreen></iframe></ol>
<p>Here are some of the still shots of the carousel in development: ( To see a large format picture, click the picture on this page then on the next page click the image there and the next page will open a full size picture)</p>
<p><a href="http://madscientisthut.com/wordpress/daily-blog/a-very-nice-steam-engine-powered-carousel-project-that-uses-the-joule-thief/attachment/olympus-digital-camera/" rel="attachment wp-att-1491"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/09/JH_carousel1-300x225.jpg" alt="Jerry&#039;s Carousel pic1" title="Jerry&#039;s Carousel pic1" width="300" height="225" class="alignleft size-medium wp-image-1491" /></a></p>
<p><a href="http://madscientisthut.com/wordpress/daily-blog/a-very-nice-steam-engine-powered-carousel-project-that-uses-the-joule-thief/attachment/olympus-digital-camera-2/" rel="attachment wp-att-1492"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/09/JH_carousel2-300x225.jpg" alt=" Jerry&#039;s Carousel pic" title=" Jerry&#039;s Carousel pic" width="300" height="225" class="alignleft size-medium wp-image-1492" /></a></p>
<p><a href="http://madscientisthut.com/wordpress/daily-blog/a-very-nice-steam-engine-powered-carousel-project-that-uses-the-joule-thief/attachment/olympus-digital-camera-3/" rel="attachment wp-att-1493"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/09/JH_carousel3-300x225.jpg" alt="Jerry&#039;s Carousel pic3" title="Jerry&#039;s Carousel pic3" width="300" height="225" class="alignleft size-medium wp-image-1493" /></a></p>
<div id="attachment_1494" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/a-very-nice-steam-engine-powered-carousel-project-that-uses-the-joule-thief/attachment/olympus-digital-camera-4/" rel="attachment wp-att-1494"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/09/JH_carousel4-300x225.jpg" alt="Jerry&#039;s Carousel pic4" title="Jerry&#039;s Carousel pic4" width="300" height="225" class="size-medium wp-image-1494" /></a><p class="wp-caption-text">Jerry&#8217;s Steam Powered Carousel with Generator and Joule Thief Boost</p></div>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/a-very-nice-steam-engine-powered-carousel-project-that-uses-the-joule-thief/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MSP430 Launchpad using a SHT15 and a 16&#215;2 LCD Display</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/msp430-launchpad-using-a-sht15-and-a-16x2-lcd-display/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/msp430-launchpad-using-a-sht15-and-a-16x2-lcd-display/#comments</comments>
		<pubDate>Sun, 26 Aug 2012 16:43:43 +0000</pubDate>
		<dc:creator>Kirk</dc:creator>
				<category><![CDATA[Daily Blog]]></category>
		<category><![CDATA[MSP430]]></category>
		<category><![CDATA[Energia LCD Temperature]]></category>
		<category><![CDATA[Energia MSP430]]></category>
		<category><![CDATA[Energia SHT15]]></category>
		<category><![CDATA[Launchpad SHT15]]></category>
		<category><![CDATA[Launchpad Temperature and Humidity]]></category>
		<category><![CDATA[MSP430 SHT15]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1430</guid>
		<description><![CDATA[<p style="text-align: left;">As an addition to my previous post Product Road Test: MSP430 Launchpad Value Line Development Kit  I decided to try and interface a SHT15 Temperature and humidity sensor to the MSP430 Launchpad. This code change took about 30 minutes and the HW change took about another 30 minutes, see the code at the bottom of this post. The nice thing is I still have six IOs left, I think I might just try to add an SD card next to datalog the temperature and humidity</p>
<p style="text-align: left;">
<p style="text-align: left;">To see a larger image, click image then click image on the next page (some wordpress thing I have yet to figure out)</p>
<p class="wp-caption-text">SHT15 Sensor on MSP430 Launch pad with 16&#215;2 LCD</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p style="text-align: left;">I used the SHT15 library for the Arduino library from the website http://www.practicalarduino.com , the library can be downloaded here https://github.com/practicalarduino/SHT1x</p>
<p style="text-align: left;">Just copy the library to where you have Energia installed, for example my install is on my desktop so here is the path to where I copied the SHT1x library: C:\Documents and Settings\me\Desktop\energia-0101E0008\hardware\msp430\libraries\SHT1x</p>
<p style="text-align: left;">
<p style="text-align: left;">To see a larger image, click image then click image on the next page (some wordpress thing I have yet <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/msp430-launchpad-using-a-sht15-and-a-16x2-lcd-display/">MSP430 Launchpad using a SHT15 and a 16&#215;2 LCD Display</a></span>]]></description>
				<content:encoded><![CDATA[<p style="text-align: left;">As an addition to my previous post<a title="Product Road Test: MSP430 Launchpad Value Line Development Kit " href="http://madscientisthut.com/wordpress/?p=1406"> Product Road Test: MSP430 Launchpad Value Line Development Kit  </a>I decided to try and interface a SHT15 Temperature and humidity sensor to the MSP430 Launchpad. This code change took about 30 minutes and the HW change took about another 30 minutes, see the code at the bottom of this post. The nice thing is I still have six IOs left, I think I might just try to add an SD card next to datalog the temperature and humidity</p>
<p style="text-align: left;">
<p style="text-align: left;">To see a larger image, click image then click image on the next page (some wordpress thing I have yet to figure out)</p>
<div id="attachment_1436" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/msp430-launchpad-using-a-sht15-and-a-16x2-lcd-display/attachment/dscf5288/" rel="attachment wp-att-1436"><img class="size-medium wp-image-1436" title="SHT15 Sensor on MSP430 Launch pad with 16x2 LCD" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/08/DSCF5288-300x225.jpg" alt="SHT15 Sensor on MSP430 Launch pad with 16x2 LCD" width="300" height="225" /></a><p class="wp-caption-text">SHT15 Sensor on MSP430 Launch pad with 16&#215;2 LCD</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-align: left;">I used the SHT15 library for the Arduino library from the website <a title="http://www.practicalarduino.com/news/id/211" href="http://www.practicalarduino.com/news/id/211">http://www.practicalarduino.com</a> , the library can be downloaded here <a title="https://github.com/practicalarduino/SHT1x" href="https://github.com/practicalarduino/SHT1x">https://github.com/practicalarduino/SHT1x</a></p>
<p style="text-align: left;">Just copy the library to where you have Energia installed, for example my install is on my desktop so here is the path to where I copied the SHT1x library: C:\Documents and Settings\me\Desktop\energia-0101E0008\hardware\msp430\libraries\SHT1x</p>
<p style="text-align: left;">
<p style="text-align: left;">To see a larger image, click image then click image on the next page (some wordpress thing I have yet to figure out)</p>
<p><a href="http://madscientisthut.com/wordpress/daily-blog/msp430-launchpad-using-a-sht15-and-a-16x2-lcd-display/attachment/sht1x-2/" rel="attachment wp-att-1435"><img class=" wp-image-1435" title="SHT1X" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/08/SHT1X-300x263.jpg" alt="SHT1X library location in Energia" width="300" height="263" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-align: left;">The code (consumes 7478 Bytes) is here:</p>
<p style="text-align: left;">Download the code by clicking here, then click on link on the next page (once again wordpress issue): <a href="http://madscientisthut.com/wordpress/daily-blog/msp430-launchpad-using-a-sht15-and-a-16x2-lcd-display/attachment/demo_code_4/" rel="attachment wp-att-1450">Demo_code_4</a></p>
<p style="text-align: left;">The below code will not paste into the IDE you get carriage returns and other stuff that keeps it from compiling, it is here for you to examine. Thanks to the wonderful posts at <a href="http://www.hobbielektronika.hu/forum/topic_hsz_1287834.html" target="_blank">www.hobbielektronika.hu</a> website which I had to translate to find the errors.</p>
<p style="text-align: left;">/*</p>
<p style="text-align: left;">The circuit:<br />
=================================<br />
LCD pin              Connect to<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
01 &#8211; GND             GND, pot<br />
02 &#8211; VCC             +5V, pot<br />
03 &#8211; Contrast        Pot wiper<br />
04 &#8211; RS              Pin8 (P1.4)<br />
05 &#8211; R/W             GND<br />
06 &#8211; EN              Pin9 (P1.3)<br />
07 &#8211; DB0             GND<br />
08 &#8211; DB1             GND<br />
09 &#8211; DB2             GND<br />
10 &#8211; DB3             GND<br />
11 &#8211; DB4             Pin10 (P1.1)<br />
12 &#8211; DB5             Pin11 (P1.2)<br />
13 &#8211; DB6             Pin12 (P1.6)<br />
14 &#8211; DB7             Pin13 (P1.7)<br />
15 &#8211; BL+             +5V<br />
16 &#8211; BL-             GND<br />
=================================</p>
<p style="text-align: left;">SHT15 SENSOR          Connect to<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
GND                  GND<br />
DATA                 P2_5  then 4.7K to VCC<br />
SCLK                 P2_4<br />
VCC                  VCC (should have 0.1uF ceramic to gnd, I did not do this)<br />
=================================<br />
*/</p>
<p style="text-align: left;">// include the library code:<br />
#include &lt;LiquidCrystal.h&gt;<br />
#include &lt;SHT1x.h&gt;</p>
<p style="text-align: left;">// Specify data and clock connections and instantiate SHT1x object<br />
#define dataPin  P2_5<br />
#define clockPin P2_4</p>
<p style="text-align: left;">SHT1x sht1x(dataPin, clockPin);</p>
<p style="text-align: left;">// initialize the library with the numbers of the interface pins<br />
LiquidCrystal lcd(P1_4, P1_3, P1_1, P1_2, P1_6, P1_7);</p>
<p style="text-align: left;">//used in temperature and humidity<br />
float temp_f;<br />
float humidity;</p>
<p style="text-align: left;">// used in elapsed_time<br />
unsigned long lastSecond = 0;<br />
int secs = 0;<br />
int mins = 0;<br />
int hours = 0;<br />
//end elapsed_time vars</p>
<p style="text-align: left;">/// end vars</p>
<p style="text-align: left;">void setup() {<br />
// set up the LCD&#8217;s number of columns and rows:<br />
lcd.begin(16, 2);<br />
//lcd.print(&#8220;F:&#8221;);<br />
lcd.print(&#8220;F:       H:&#8221;);<br />
lcd.setCursor(0, 1);  // set cursor location on LCD<br />
lcd.print(&#8220;Elapsed:&#8221;);</p>
<p style="text-align: left;">}</p>
<p style="text-align: left;">void loop() {</p>
<p style="text-align: left;">//////////////////////////////////////////////////////////////////////////////////////////////////////////////<br />
//// measure SHT15 temperature and humidity then display</p>
<p style="text-align: left;">temp_f = sht1x.readTemperatureF();<br />
humidity = sht1x.readHumidity();</p>
<p style="text-align: left;">lcd.setCursor(2, 0);<br />
lcd.print(temp_f);</p>
<p style="text-align: left;">lcd.setCursor(11, 0);<br />
lcd.print(humidity);<br />
lcd.setCursor(15, 0);<br />
lcd.print(&#8220;%&#8221;);</p>
<p style="text-align: left;">///////    end temperature display<br />
//////////////////////////////////////////////////////////////////////////////////////////////////////////////</p>
<p style="text-align: left;">//////////////////////////////////////////////////////////////////////////////////////////////////////////////<br />
/// elapsed time to display</p>
<p style="text-align: left;">if(millis() &#8211; lastSecond &gt;= 2000) ///just in-case something took more than two seconds,  should not happen??<br />
{<br />
lastSecond += 2000;<br />
secs++;<br />
secs++;<br />
}<br />
if(millis() &#8211; lastSecond &gt;= 1000)<br />
{<br />
lastSecond += 1000;<br />
secs++;<br />
}<br />
if(secs &gt; 59)<br />
{<br />
secs = 0;<br />
mins++;<br />
}<br />
if(mins &gt; 59)<br />
{<br />
mins = 0;<br />
hours++;<br />
}</p>
<p style="text-align: left;">//place hours in correct position<br />
if( hours &lt;= 9 )<br />
{<br />
lcd.setCursor( 12, 1 );<br />
lcd.print( hours, DEC );<br />
}<br />
else if( hours &lt;= 99 )<br />
{<br />
lcd.setCursor( 11, 1 );<br />
lcd.print( hours, DEC );<br />
}<br />
else if( hours &lt;= 999 )<br />
{<br />
lcd.setCursor( 10, 1 );<br />
lcd.print( hours, DEC );<br />
}<br />
else if( hours &lt;= 9999 )<br />
{<br />
lcd.setCursor( 9, 1 );<br />
lcd.print( hours, DEC );<br />
}<br />
else if( hours &lt;= 99999 )<br />
{<br />
lcd.setCursor( 8, 1 );<br />
lcd.print( hours, DEC );<br />
}</p>
<p style="text-align: left;">// do minutes<br />
lcd.setCursor( 13, 1 );<br />
lcd.print( &#8220;:&#8221; );</p>
<p style="text-align: left;">if( mins &lt;= 9 )<br />
{<br />
lcd.print( &#8220;0&#8243; );<br />
}<br />
lcd.print( mins, DEC );</p>
<p style="text-align: left;">///// end of elapsed time<br />
//////////////////////////////////////////////////////////////////////////////////////////////////////////////</p>
<p style="text-align: left;">}</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/msp430-launchpad-using-a-sht15-and-a-16x2-lcd-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Product Road Test: MSP430 Launchpad Value Line Development Kit</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/product-road-test-msp430-launchpad-value-line-development-kit/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/product-road-test-msp430-launchpad-value-line-development-kit/#comments</comments>
		<pubDate>Sun, 26 Aug 2012 15:59:10 +0000</pubDate>
		<dc:creator>Kirk</dc:creator>
				<category><![CDATA[Daily Blog]]></category>
		<category><![CDATA[MSP430]]></category>
		<category><![CDATA[Energia]]></category>
		<category><![CDATA[Energia LCD Temperature]]></category>
		<category><![CDATA[Energia MSP430]]></category>
		<category><![CDATA[Internal temperature sensor M430G2553]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1406</guid>
		<description><![CDATA[<p style="text-align: left;">A couple of years back I had ordered a few of the MSP430 Launchpad development kits with many ideas in my head about some of the great things I could make on a low cost micro-controller development board at only $4.30 who can complain. I took the first one out of the box and started to bang away. I was a PIC processor guy so I had to learn new stuff and there really was not much out there for demos and code examples other than blink LED code and lots of stuff I was not interested in trying out. I spent about a week at it and developed a temperature monitor that read back values from the internal temp sensor that you could read from a serial port. Using the Code Composer Studio was also a learning experience, it took a long time to figure out how the IDE worked. The memory space was limited to 2K with the MSP430G2231 and MSP430G2211 that were included in the kit. All and all the kits were a great value but I did not want to waste my time, so I shelved the other kits that I bought.</p>
<p style="text-align: left;">The other <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/product-road-test-msp430-launchpad-value-line-development-kit/">Product Road Test: MSP430 Launchpad Value Line Development Kit</a></span>]]></description>
				<content:encoded><![CDATA[<p style="text-align: left;">A couple of years back I had ordered a few of the MSP430 Launchpad development kits with many ideas in my head about some of the great things I could make on a low cost micro-controller development board at only $4.30 who can complain. I took the first one out of the box and started to bang away. I was a PIC processor guy so I had to learn new stuff and there really was not much out there for demos and code examples other than blink LED code and lots of stuff I was not interested in trying out. I spent about a week at it and developed a temperature monitor that read back values from the internal temp sensor that you could read from a serial port. Using the Code Composer Studio was also a learning experience, it took a long time to figure out how the IDE worked. The memory space was limited to 2K with the MSP430G2231 and MSP430G2211 that were included in the kit. All and all the kits were a great value but I did not want to waste my time, so I shelved the other kits that I bought.</p>
<p style="text-align: left;">The other day <a title="Newark Element 14" href="http://www.newark.com/aecatalog">Newark Element 14</a> asked the Mad Scientist Hut to run a product road test for a <a title="MSP430 Launchpad Development Kit" href="http://www.newark.com/jsp/bespoke/bespoke7.jsp?bespokepage=newark/en_US/dev/dev_board_kinetis.jsp&amp;isRedirect=true"> Development Kit</a> , I agreed  to try out the MSP430 Launchpad since I wanted to see if there are any improvements to the value line Launchpad. I received the new kit and opened it up, I was really excited to see that they had put a M430G2253 and M430G22452 in the kit, 16K and 8K of memory respectively and several more IO pins, they still included the 32KHz crystal for real time clock applications and they still include the USB cable.</p>
<p style="text-align: left;">In my opinion there has been a major development in making the Launchpad one of the best values for a micro-controller development kit than it has ever been, and that is because now there is an Arduino like IDE for the Launchpad that is mostly code interchangeable with Arduino called Energia.  Energia is a fitting name since it was the name of the Russian rocket designed to carry the Russian version of its space shuttle to orbit. I downloaded the software for Energia and started to dable with it, I was really impressed. Wow! I developed the code that took me a week in just two hours using Energia, but with the addition of an LCD display and I also added a elapsed time counter. To get started with Energia click this: <a title="Getting started with Energia" href="https://github.com/energia/Energia/wiki/Getting-Started">Getting started with Energia </a>This link has a nice quick start guide that will have you blinking and LED on the launchpad in just a few minutes.</p>
<p style="text-align: left;">To get started with the Launchpad kit, you can get them from Element 14 for just $4.35 each click here: <a title="MSP430 Launchpad Development Kit" href="http://www.newark.com/texas-instruments/msp-exp430g2/msp430-launchpad-value-line-development/dp/77R3863">MSP430 Launchpad</a></p>
<p style="text-align: left;">Update: I added an SHT15 temperature and Humidity sensor, see this post <a title="http://madscientisthut.com/wordpress/?p=1430" href="http://madscientisthut.com/wordpress/?p=1430">http://madscientisthut.com/wordpress/?p=1430</a></p>
<p style="text-align: left;">To see a larger image, click image then click image on the next page (some wordpress thing I have yet to figure out)</p>
<p style="text-align: left;"><a href="http://madscientisthut.com/wordpress/daily-blog/product-road-test-msp430-launchpad-value-line-development-kit/attachment/dscf5291/" rel="attachment wp-att-1408"><img class="size-medium wp-image-1408" title="MSP430 Launchpad displaying internal temperature and elapsed time" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/08/DSCF5291-300x225.jpg" alt="MSP430 Launchpad displaying internal temperature and elapsed time" width="300" height="225" /></a></p>
<p style="text-align: left;">.</p>
<p style="text-align: left;">Here is the code (consumes 6804 Bytes), it uses the internal temperature sensor to measure temperature in degrees F, and calculates the elapsed time (HHHHHH:MM) since power up then displays it to the LCD:</p>
<p style="text-align: left;">Download the code by clicking here, then click on link on the next page (once again wordpress issue):<a href="http://madscientisthut.com/wordpress/daily-blog/product-road-test-msp430-launchpad-value-line-development-kit/attachment/demo_code_3/" rel="attachment wp-att-1454">Demo_code_3</a></p>
<p style="text-align: left;">The below code will not paste into the IDE you get carriage returns and other stuff that keeps it from compiling, it is here for you to examine. Thanks to the wonderful posts at <a href="http://www.hobbielektronika.hu/forum/topic_hsz_1287834.html" target="_blank">www.hobbielektronika.hu</a> website which I had to translate to find the errors.</p>
<p style="text-align: left;">/*</p>
<p style="text-align: left;">The circuit:<br />
=================================<br />
LCD pin              Connect to<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
01 &#8211; GND             GND, 10K pot<br />
02 &#8211; VCC             +5V from next to the USB port, 10K pot<br />
03 &#8211; Contrast       10K  Pot wiper<br />
04 &#8211; RS              Pin8 (P1.4)<br />
05 &#8211; R/W             GND<br />
06 &#8211; EN              Pin9 (P1.3)<br />
07 &#8211; DB0             GND<br />
08 &#8211; DB1             GND<br />
09 &#8211; DB2             GND<br />
10 &#8211; DB3             GND<br />
11 &#8211; DB4             Pin10 (P1.1)<br />
12 &#8211; DB5             Pin11 (P1.2)<br />
13 &#8211; DB6             Pin12 (P1.6)<br />
14 &#8211; DB7             Pin13 (P1.7)<br />
15 &#8211; BL+             +5V<br />
16 &#8211; BL-             GND<br />
=================================</p>
<p style="text-align: left;">*/</p>
<p style="text-align: left;">// include the library code:<br />
#include &lt;LiquidCrystal.h&gt;</p>
<p style="text-align: left;">// initialize the library with the numbers of the interface pins<br />
LiquidCrystal lcd(P1_4, P1_3, P1_1, P1_2, P1_6, P1_7);</p>
<p style="text-align: left;">/// Vars used in code<br />
long  sensorValue = 0;<br />
int   Temp_Gain = 1000; /// gain error (x10*-1.0)+1000 I.E.&gt;  if error = -0.5% Temp_Gain = 1005<br />
int   Temp_Offset = 0;  /// offset error /10 I.E.&gt; if error = 2.1 degrees Temp_Offset = 21<br />
long  FValue = 0;<br />
float FValue1000 = 0;   // using float here uses a lot of flash mem, this can be converted to long and then some tricks can be done on the display output, but I have lots of flash for this demo&#8230;..</p>
<p style="text-align: left;">// used in elapsed_time<br />
unsigned long lastSecond = 0;<br />
int secs = 0;<br />
int mins = 0;<br />
int hours = 0;<br />
//end elapsed_time vars</p>
<p style="text-align: left;">/// end vars</p>
<p style="text-align: left;">void setup() {<br />
// set up the LCD&#8217;s number of columns and rows:<br />
lcd.begin(16, 2);<br />
lcd.print(&#8220;  Temp F:&#8221;);<br />
lcd.setCursor(1, 1);  // set cursor location on LCD<br />
lcd.print(&#8220;Elapsed:&#8221;);</p>
<p style="text-align: left;">}</p>
<p style="text-align: left;">void loop() {</p>
<p style="text-align: left;">////////////////////////////////////////////////////////////////////////<br />
//// measure internal temperature and display</p>
<p style="text-align: left;">FValue1000 = 0;<br />
for (int count = 0; count &lt; Temp_Gain; count++)<br />
{</p>
<p style="text-align: left;">ADC10CTL1 = INCH_10 + ADC10DIV_3;         // Temp Sensor ADC10CLK/4<br />
ADC10CTL0 = SREF_1 + ADC10SHT_3 + REFON + ADC10ON + ADC10IE;<br />
TACCR0 = 30;                              // Delay to allow Ref to settle<br />
TACCTL0 |= CCIE;                          // Compare-mode interrupt.<br />
TACTL = TASSEL_2 | MC_1;                  // TACLK = SMCLK, Up mode.<br />
LPM0;                                     // Wait for delay.<br />
TACCTL0 &amp;= ~CCIE;                         // Disable timer Interrupt<br />
ADC10CTL0 |= ENC + ADC10SC;               // Sampling and conversion start<br />
__bis_SR_register(CPUOFF + GIE);          // LPM0 with interrupts enabled</p>
<p style="text-align: left;">sensorValue = ADC10MEM;                   // store the ADC10 value</p>
<p style="text-align: left;">FValue=(((sensorValue) &#8211; 630) * 761) / 1024;   // do math on ADC10 value to convert to degrees F<br />
FValue1000 = FValue1000 + FValue;              // store value (this is how we can apply gain to the measurement)<br />
}</p>
<p style="text-align: left;">FValue1000 = (FValue1000/Temp_Gain);    // do gain error</p>
<p style="text-align: left;">FValue1000 = FValue1000 + Temp_Offset;  // do offset error</p>
<p style="text-align: left;">// location formating</p>
<p style="text-align: left;">lcd.setCursor(11, 0);  // set cursor location on LCD<br />
lcd.print(&#8220;    &#8220;);      // clear area to write the temperature<br />
lcd.setCursor(11, 0);  // set cursor location on LCD</p>
<p style="text-align: left;">if (FValue&lt;=10.0)<br />
{<br />
lcd.print(&#8220;  &#8220;);<br />
}<br />
else if (FValue&lt;=100.0)<br />
{<br />
lcd.print(&#8221; &#8220;);<br />
}</p>
<p style="text-align: left;">lcd.print(FValue1000);<br />
//delay(100);</p>
<p style="text-align: left;">///////    end temperature display<br />
/////////////////////////////////////////////////////////////////////</p>
<p style="text-align: left;">//////////////////////////////////////////////////////////////////////////////////////////////////////////////<br />
/// elapsed time to display</p>
<p style="text-align: left;">if(millis() &#8211; lastSecond &gt;= 2000) ///just in-case something took more than two seconds,  should not happen??<br />
{<br />
lastSecond += 2000;<br />
secs++;<br />
secs++;<br />
}<br />
if(millis() &#8211; lastSecond &gt;= 1000)<br />
{<br />
lastSecond += 1000;<br />
secs++;<br />
}<br />
if(secs &gt; 59)<br />
{<br />
secs = 0;<br />
mins++;<br />
}<br />
if(mins &gt; 59)<br />
{<br />
mins = 0;<br />
hours++;<br />
}</p>
<p style="text-align: left;">//place hours in correct position<br />
if( hours &lt;= 9 )<br />
{<br />
lcd.setCursor( 12, 1 );<br />
lcd.print( hours, DEC );<br />
}<br />
else if( hours &lt;= 99 )<br />
{<br />
lcd.setCursor( 11, 1 );<br />
lcd.print( hours, DEC );<br />
}<br />
else if( hours &lt;= 999 )<br />
{<br />
lcd.setCursor( 10, 1 );<br />
lcd.print( hours, DEC );<br />
}<br />
else if( hours &lt;= 9999 )<br />
{<br />
lcd.setCursor( 9, 1 );<br />
lcd.print( hours, DEC );<br />
}<br />
else if( hours &lt;= 99999 )<br />
{<br />
lcd.setCursor( 8, 1 );<br />
lcd.print( hours, DEC );<br />
}</p>
<p style="text-align: left;">// do minutes<br />
lcd.setCursor( 13, 1 );<br />
lcd.print( &#8220;:&#8221; );</p>
<p style="text-align: left;">if( mins &lt;= 9 )<br />
{<br />
lcd.print( &#8220;0&#8243; );<br />
}<br />
lcd.print( mins, DEC );</p>
<p style="text-align: left;">///// end of elapsed time</p>
<p style="text-align: left;">}</p>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/product-road-test-msp430-launchpad-value-line-development-kit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lessons in measurement error</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/lessons-in-measurement-error/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/lessons-in-measurement-error/#comments</comments>
		<pubDate>Sun, 25 Mar 2012 04:52:43 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Daily Blog]]></category>
		<category><![CDATA[MISC]]></category>
		<category><![CDATA[Arduino tachometer]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1370</guid>
		<description><![CDATA[<p>I built a tachometer for the milling machine, as a step in giving the cnc controller full spindle control (auto-change with tool change, and sense when it&#8217;s stalling.)  The first version uses an arduino and this code: http://arduino.cc/playground/Learning/Tachometer</p>
<p>The sensor is a mouse encoder wheel LED/phototransistor pair, with a turned aluminum disc that has a hole drilled in it, as the encoder itself.</p>
<p>(You may ask why I&#8217;m not using an AS5040.  That&#8217;s the wrong tool for the job, since it senses position rather than just rotation, and the encoder wheel I just cut fits right on the hollow mill spindle, which provides no easy place to put a magnet.)</p>
<p>Anyway.  The arduino code works fine.  The schematic, however, has a problem: if you wire it up just as this says, the phototransistor output is always at about Vcc: the analog input to the arduino measures between 1017 and 1023 no matter how carefully you block the phototransistor.</p>
<p>But the moment you go to measure the voltage coming off the phototransistor with respect to ground, it works perfectly: any bit of anything blocks the lightbeam and the output goes to a fraction of a volt.</p>
<p>The meter&#8217;s input impedance drags down the output and makes it <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/lessons-in-measurement-error/">Lessons in measurement error</a></span>]]></description>
				<content:encoded><![CDATA[<p>I built a tachometer for the milling machine, as a step in giving the cnc controller full spindle control (auto-change with tool change, and sense when it&#8217;s stalling.)  The first version uses an arduino and this code: http://arduino.cc/playground/Learning/Tachometer</p>
<p>The sensor is a mouse encoder wheel LED/phototransistor pair, with a turned aluminum disc that has a hole drilled in it, as the encoder itself.</p>
<p>(You may ask why I&#8217;m not using an AS5040.  That&#8217;s the wrong tool for the job, since it senses position rather than just rotation, and the encoder wheel I just cut fits right on the hollow mill spindle, which provides no easy place to put a magnet.)</p>
<p>Anyway.  The arduino code works fine.  The schematic, however, has a problem: if you wire it up just as this says, the phototransistor output is always at about Vcc: the analog input to the arduino measures between 1017 and 1023 no matter how carefully you block the phototransistor.</p>
<p>But the moment you go to measure the voltage coming off the phototransistor with respect to ground, it works perfectly: any bit of anything blocks the lightbeam and the output goes to a fraction of a volt.</p>
<p>The meter&#8217;s input impedance drags down the output and makes it work.  It&#8217;s hard to troubleshoot something that works when you&#8217;re measuring it, and only doesn&#8217;t work when you&#8217;re not measuring it.</p>
<p>A 1 megohm resistor between the output and ground makes it work great.</p>
<div id="attachment_1372" class="wp-caption aligncenter" style="width: 247px"><a href="http://madscientisthut.com/wordpress/daily-blog/lessons-in-measurement-error/attachment/tach_schem-2/" rel="attachment wp-att-1372"><img class="size-medium wp-image-1372" title="tach_schem" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/03/tach_schem1-237x300.png" alt="optical tachometer schematic" width="237" height="300" /></a><p class="wp-caption-text">optical tachometer schematic</p></div>
<p>&nbsp;</p>
<p>Tomorrow I&#8217;ll add an LCD rather than having to keep a laptop in there to see the RPM, and a bit later I&#8217;ll turn the whole thing into a standalone board on the back of the LCD, but for the moment this will do.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/lessons-in-measurement-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>usb sniffing using wireshark</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/usb-sniffing-using-wireshark/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/usb-sniffing-using-wireshark/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 18:44:09 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Daily Blog]]></category>
		<category><![CDATA[MISC]]></category>
		<category><![CDATA[USB Sniffing]]></category>
		<category><![CDATA[wireshark usb]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1367</guid>
		<description><![CDATA[<p>A while back Kirk gave me a webcam that has pan and tilt control.  It works well under Windows.  But I&#8217;m a masochist &#8212; and I already have a weather station + insolation + multiple temperature measurement setup for an old linux laptop, and I thought it&#8217;d be nice to add a pan&#038;tilt webcam to the mix.
The webcam is a Creative Live! Motion cam.  It uses a standard ccd for which drivers are included in the mainline kernel so camorama et al can get video from it natively.  But that doesn&#8217;t handle motion.
Soooo I fired up wireshark, preparing to copy these guys:</p>
<p>http://techblog.vsza.hu/posts/Reverse_engineering_chinese_scope_with_USB.html</p>
<p>who reverse-engineered the screendump program for an oscilloscope (and found that the scope actually dumps a nice full-color high-resolution screencap that the stock software degrades to a small monochrome picture.)</p>
<p>So I installed XP in virtualbox, installed the cam drivers in XP, and fired up the camera.
Problem 1: no USB.  I solved this by running virtualbox as root.
Problem 2: XP crashed the moment I tried to do anything with the camera.  I solved this by starting virtualbox as root, and doing the whole XP install from that &#8212; just copying over a VM made as <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/usb-sniffing-using-wireshark/">usb sniffing using wireshark</a></span>]]></description>
				<content:encoded><![CDATA[<p>A while back Kirk gave me a webcam that has pan and tilt control.  It works well under Windows.  But I&#8217;m a masochist &#8212; and I already have a weather station + insolation + multiple temperature measurement setup for an old linux laptop, and I thought it&#8217;d be nice to add a pan&#038;tilt webcam to the mix.<br />
The webcam is a Creative Live! Motion cam.  It uses a standard ccd for which drivers are included in the mainline kernel so camorama et al can get video from it natively.  But that doesn&#8217;t handle motion.<br />
Soooo I fired up wireshark, preparing to copy these guys:</p>
<p>http://techblog.vsza.hu/posts/Reverse_engineering_chinese_scope_with_USB.html</p>
<p>who reverse-engineered the screendump program for an oscilloscope (and found that the scope actually dumps a nice full-color high-resolution screencap that the stock software degrades to a small monochrome picture.)</p>
<p>So I installed XP in virtualbox, installed the cam drivers in XP, and fired up the camera.<br />
Problem 1: no USB.  I solved this by running virtualbox as root.<br />
Problem 2: XP crashed the moment I tried to do anything with the camera.  I solved this by starting virtualbox as root, and doing the whole XP install from that &#8212; just copying over a VM made as a user didn&#8217;t do it.<br />
At this point the camera is stable in XP.<br />
Problem 3: wireshark crashed the camera connection.  As soon as wireshark came up, the USB stream got broken.<br />
My friend Brian pointed out that other people have had problems with old versions of libpcap, upon which wireshark relies.  Turns out even recent versions of Ubuntu and Mint have wireshark packages from 2007.<br />
Independent repositories to the rescue: ppa:jelmer/daily will provide you with (as of right now) wireshark 1.4.2 rather than the stock 0.9 and that has a libpcap that works beautifully.<br />
So now I can drive the video camera around, taking pictures, and logging usb commands.  I can look through the packets &#8212; ignoring the 64kbyte ones, that are just chatter between the computer and the camera and analyzing the packets that are larger than that &#8212; and start figuring out how I can copy them.</p>
<p>That&#8217;s as far as I&#8217;ve gotten so far, because now I&#8217;m learning how to use wireshark&#8217;s filters so I can have it show only the differences between sequential packets.</p>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/usb-sniffing-using-wireshark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expanded Scale Analog Meter Circuit</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 20:23:27 +0000</pubDate>
		<dc:creator>Kirk</dc:creator>
				<category><![CDATA[Basic Circuits]]></category>
		<category><![CDATA[Daily Blog]]></category>
		<category><![CDATA[24V solar meter]]></category>
		<category><![CDATA[analog expanded scale meter]]></category>
		<category><![CDATA[expanded scale meter]]></category>
		<category><![CDATA[expanded scale panel meter]]></category>
		<category><![CDATA[green energy]]></category>
		<category><![CDATA[low power 24VDC solar meter]]></category>
		<category><![CDATA[solar battery bank meter]]></category>
		<category><![CDATA[solar system meter]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1224</guid>
		<description><![CDATA[<p>I am putting in a small scale solar system with a 24VDC flooded lead acid battery bank for back up power. I want to make a low power consumption expanded scale analog meter circuit to monitor the battery bank voltage of my system. The expanded scale allows me see the voltage range that I am most concerned about between 21V to 30V and that gives me about three times the resolution on the meter face.</p>
<p>&#160;</p>
<p></p>
<p>While searching for circuit ideas I found this website &#8220;The Back Shed&#8221; and I liked the simplicity of the circuit that they presented on their site (this is the circuit from their site). I tried to make the circuit but found that the response was not very linear.</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>The problem with this circuit is that the current going through the Zener diode changes as the voltage input to the circuit changes (I=V/R) because it uses a simple resistor current limit.</p>
<p>Zener diode voltages are specified at a set current in the datasheet. In this Zener diode curve, Izt is the current where the Zener voltage Vz is specified, if you change the current through the Zener diode the voltage changes.</p>
<p class="wp-caption-text">Zener Diode Curve</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>I wanted an expanded meter with a fairly <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/">Expanded Scale Analog Meter Circuit</a></span>]]></description>
				<content:encoded><![CDATA[<p>I am putting in a small scale solar system with a 24VDC flooded lead acid battery bank for back up power. I want to make a low power consumption expanded scale analog meter circuit to monitor the battery bank voltage of my system. The expanded scale allows me see the voltage range that I am most concerned about between 21V to 30V and that gives me about three times the resolution on the meter face.</p>
<p>&nbsp;</p>
<p><a href="http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/attachment/back_shed_expanded_scale/" rel="attachment wp-att-1229"><img class="alignleft size-full wp-image-1229" title="Back_shed_expanded_scale" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/02/Back_shed_expanded_scale.jpg" alt="" width="204" height="239" /></a></p>
<p>While searching for circuit ideas I found this website &#8220;<a title="BackShed" href="http://www.thebackshed.com/windmill/articles/ExpandedScaleVoltMeter.asp">The Back Shed</a>&#8221; and I liked the simplicity of the circuit that they presented on their site (this is the circuit from their site). I tried to make the circuit but found that the response was not very linear.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The problem with this circuit is that the current going through the Zener diode changes as the voltage input to the circuit changes (I=V/R) because it uses a simple resistor current limit.</p>
<p>Zener diode voltages are specified at a set current in the datasheet. In this Zener diode curve, Izt is the current where the Zener voltage Vz is specified, if you change the current through the Zener diode the voltage changes.</p>
<div id="attachment_1232" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/attachment/zener_curve-2/" rel="attachment wp-att-1232"><img class="size-medium wp-image-1232" title="Zener Diode Curve" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/02/zener_curve1-300x270.jpg" alt="Zener Diode Curve" width="300" height="270" /></a><p class="wp-caption-text">Zener Diode Curve</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>I wanted an expanded meter with a fairly linear response. So after thinking about the linearity issue with the Back Shed circuit and how it was related to the current changing in the circuit, I decided to revisit our old friend the <a href="http://madscientisthut.com/wordpress/?p=1046">current limit circuit</a> I blogged about previously.</p>
<p>I modified the current limit to pull about 1.5mA through the circuit and added Zener diodes in place of the LEDs.</p>
<div id="attachment_1279" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/attachment/expanded-meter-circuit/" rel="attachment wp-att-1279"><img class="size-medium wp-image-1279" title="Expanded Meter Circuit" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/02/Expanded-Meter-Circuit-300x226.jpg" alt="Expanded Meter Circuit" width="300" height="226" /></a><p class="wp-caption-text">Expanded Meter Circuit</p></div>
<p>(To get a larger image, click image, then click image on the following page) So here is how this circuit works: For voltages below 21V the Zener diodes are off and there is no current flowing in the meter path of the circuit. Somewhere around 21V the Zener diodes crack over their knee voltage then current starts flowing in the circuit. The current limit circuit turns on and starts to drop voltage across the 2N7000 NMOS FET. As the voltage going into the circuit rises the current limit circuit causes the NMOS to drop any voltage not going through the Zener and current sense resistor. The Zener diodes drop a fairly constant voltage in this circuit because the current limit circuit is holding the current at a fairly constant rate. Since the 10VDC panel meter is measuring the Voltage across the NMOS it displays any voltage over ~21VDC on the meter face. The battery bank voltage should not go over 30VDC , unless there is something wrong with the charge controller, so hopefully we never see the meter at 32V.</p>
<p>(Note: instead of the 400 Ohm resistor in the schematic I used a 1K trim pot in series with 200 Ohms) (Also for the meter I bought a cheap 10VDC panel meter from E-bay, $5.99 including shipping)</p>
<p>This circuit still has the drawback of the temperature coefficient (TC) of the Zener and also the temperature effect of the VBE on the transistor that will have an over all effect on the accuracy with temperature. The temperature error is a very small (around 0.08%/degree C, for a change in room temperature of 65F to 75F you would see an error of less than 0.1V) and that small of an error really does not matter to me. If you are concerned with having a more accurate meter over a large temperature range, you can use a combination of Zener diodes with a positive and negative TC. An example would be to use four 1N5222B (TC=-0.085%/C) and a 1N5242B (TC=+0.077%/C) .</p>
<p>I took the 10VDC panel meter apart and scanned the face in on a flat bed scanner at 600DPI then modified the the scan with GNU Image Manipulation Program (GIMP) and reprinted it at 600 DPI onto a shipping label sticker. Placed the sticker onto the meter face cut the edges of the sticker off then put the meter back together. The following picture was the first pass:</p>
<div id="attachment_1288" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/attachment/meter_scan/" rel="attachment wp-att-1288"><img class="size-medium wp-image-1288" title="Expanded Meter Face Rev1" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/02/Meter_scan-300x155.jpg" alt="Expanded Meter Face Rev1" width="300" height="155" /></a><p class="wp-caption-text">Expanded Meter Face Rev1</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>After I put the circuit to the meter I found it was a little off ( this is was really no surprise, since Zener diodes are +/-5%, but it was a lot closer than I expected) so I had to calibrate the meter with one more graphic spin in GIMP. To calibrate the meter face with the actual DC voltage reading. I put the expanded scale meter in parallel with a digital multimeter, made little tick marks on the meter face for the voltages.</p>
<div id="attachment_1291" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/attachment/meterface/" rel="attachment wp-att-1291"><img class="size-medium wp-image-1291" title="Meter Face Calibration" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/02/MeterFace-300x182.jpg" alt="Meter Face Calibration" width="300" height="182" /></a><p class="wp-caption-text">Meter Face Calibration</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>I ended up with a graphic like this.  ( Note: I highlighted the 28.8V mark since this is where my charge controller will push the battery bank to at the bulk charge phase) ( the 30VDC mark is also important for when I equalize the battery bank)</p>
<div id="attachment_1294" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/attachment/picturetemp/" rel="attachment wp-att-1294"><img class="size-medium wp-image-1294" title="Final Expanded Scale Meter Face" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/02/Picturetemp-300x177.jpg" alt="Final Expanded Scale Meter Face" width="300" height="177" /></a><p class="wp-caption-text">Final Expanded Scale Meter Face</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>And here is picture of the meter hooked up with a power supply and a DMM to verify operation.</p>
<div id="attachment_1295" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/attachment/dscf4523/" rel="attachment wp-att-1295"><img class="size-medium wp-image-1295" title="Expanded Meter in Operation" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/02/DSCF4523-300x225.jpg" alt="Expanded Meter in Operation" width="300" height="225" /></a><p class="wp-caption-text">Expanded Meter in Operation</p></div>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/expanded-scale-analog-meter-circuit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One Winding Joule Thief</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/one-winding-joule-thief/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/one-winding-joule-thief/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 17:47:54 +0000</pubDate>
		<dc:creator>Kirk</dc:creator>
				<category><![CDATA[Daily Blog]]></category>
		<category><![CDATA[Joule Thief]]></category>
		<category><![CDATA[1 Watt Cree LED]]></category>
		<category><![CDATA[1W Cree LED]]></category>
		<category><![CDATA[energy harvest]]></category>
		<category><![CDATA[energy harvesting]]></category>
		<category><![CDATA[energy harvestor]]></category>
		<category><![CDATA[green energy]]></category>
		<category><![CDATA[Joule Thief Circuit]]></category>
		<category><![CDATA[Joule Thief Kit]]></category>
		<category><![CDATA[Joule Thief PCB]]></category>
		<category><![CDATA[Joule Thief Schematic]]></category>
		<category><![CDATA[Joule Thief Simulation]]></category>
		<category><![CDATA[joules thief]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1240</guid>
		<description><![CDATA[<p>We had some high permeability toroid cores shipped in. The permeability is so high that it can achieve somewhere between 3-5uH per each winding. This allows for us to make a High Power Joule Thief with just one winding on each side of the transformer. </p>
<p>The new one winding Joule Thief is very stable, starts up at below 600mV, and runs very bright at 1.5VDC leaving spots in your vision if you happen to glance at the LED while it is on. These units are assembled, tested, and can be purchased here.</p>
<p class="wp-caption-text">High Power Joule Thief 1 Watt Cree LED</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>Here it is running off of a single AA battery.</p>
<p class="wp-caption-text">High Power Joule Thief 1 Watt <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/one-winding-joule-thief/">One Winding Joule Thief</a></span>]]></description>
				<content:encoded><![CDATA[<p>We had some high permeability toroid cores shipped in. The permeability is so high that it can achieve somewhere between 3-5uH per each winding. This allows for us to make a High Power Joule Thief with just one winding on each side of the transformer. </p>
<p>The new one winding Joule Thief is very stable, starts up at below 600mV, and runs very bright at 1.5VDC leaving spots in your vision if you happen to glance at the LED while it is on. These units are assembled, tested, and can be <a href="http://www.madscientisthut.com/Shopping/agora.cgi?product=Energy%20Harvesting&#038;xm=on" title="Energy Harvesting Products">purchased here</a>.</p>
<div id="attachment_1241" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/one-winding-joule-thief/attachment/hp_jt011a_ow/" rel="attachment wp-att-1241"><img class="size-medium wp-image-1241" title="High Power Joule Thief 1 Watt Cree LED" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/02/HP_JT011A_OW-300x282.jpg" alt="High Power Joule Thief 1 Watt Cree LED" width="300" height="282" /></a><p class="wp-caption-text">High Power Joule Thief 1 Watt Cree LED</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Here it is running off of a single AA battery.</p>
<div id="attachment_1242" class="wp-caption alignleft" style="width: 193px"><a href="http://madscientisthut.com/wordpress/daily-blog/one-winding-joule-thief/attachment/hp_jt011a_ow_lit/" rel="attachment wp-att-1242"><img class="size-medium wp-image-1242" title="High Power Joule Thief 1 Watt Cree LED" src="http://madscientisthut.com/wordpress/wp-content/uploads/2012/02/HP_JT011A_OW_lit-183x300.jpg" alt="High Power Joule Thief 1 Watt Cree LED" width="183" height="300" /></a><p class="wp-caption-text">High Power Joule Thief 1 Watt Cree LED</p></div>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/one-winding-joule-thief/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing the MSH 300 Lumen DIY 12VDC LED Light Bar</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/introducing-the-msh-300-lumen-diy-12vdc-light-bar/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/introducing-the-msh-300-lumen-diy-12vdc-light-bar/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 14:01:39 +0000</pubDate>
		<dc:creator>Kirk</dc:creator>
				<category><![CDATA[Daily Blog]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1169</guid>
		<description><![CDATA[<p><p class="wp-caption-text">Cree 12V DC Light Bar</p>
This is our newest addition to our product line, we are now branching into Do It Yourself (DIY) LED lighting. The circuit on this board is based off of our earlier blog Simple LED Constant Current Circuit Uses Four Discrete Components </p>
<p>Some of the applications that this can used in are:
Renewable energy systems that run at 12 VDC
RV lighting
Indoor grow lights</p>
<p>
The board features:
Recommended operating voltage range from 10.5V to 15V DC
The individual LEDs are CREE XLAMP XR 7090 binned at 51.7 to 56.8 Lumens at test current of 350mA. Color temperature approximate 5800K
Light bar puts out an estimated 160 Lumens at 350mA, and about 300 Lumens at absolute maximum current of 700mA
Current limiting, with current reduction if the board heats up.
Two mounting holes for 6/32 screws, so that the board can be mounted to a heatsink.
User control of current limit, by selecting the proper current sense resistors.
The boards are designed to be paralleled.
There is an optional input for PWM dim control.
There is an optional input for remote light sense, that will turn the light off if there is another source of light.
The board is designed to be used with 2 inch wide aluminum heat sinking, but <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/introducing-the-msh-300-lumen-diy-12vdc-light-bar/">Introducing the MSH 300 Lumen DIY 12VDC LED Light Bar</a></span>]]></description>
				<content:encoded><![CDATA[<p><div id="attachment_1171" class="wp-caption aligncenter" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/introducing-the-msh-300-lumen-diy-12vdc-light-bar/attachment/cree_top/" rel="attachment wp-att-1171"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2011/12/cree_top-300x90.jpg" alt="Cree 12V DC Light Bar" title="Cree 12V DC Light Bar" width="300" height="90" class="size-medium wp-image-1171" /></a><p class="wp-caption-text">Cree 12V DC Light Bar</p></div><br />
This is our newest addition to our product line, we are now branching into Do It Yourself (DIY) LED lighting. The circuit on this board is based off of our earlier blog <a href="http://www.madscientisthut.com/wordpress/daily-blog/simple-led-constant-current-circuit-uses-four-components/">Simple LED Constant Current Circuit Uses Four Discrete Components</a> </p>
<p>Some of the applications that this can used in are:<br />
Renewable energy systems that run at 12 VDC<br />
RV lighting<br />
Indoor grow lights</p>
<p>
The board features:<br />
Recommended operating voltage range from 10.5V to 15V DC<br />
The individual LEDs are CREE XLAMP XR 7090 binned at 51.7 to 56.8 Lumens at test current of 350mA. Color temperature approximate 5800K<br />
Light bar puts out an estimated 160 Lumens at 350mA, and about 300 Lumens at absolute maximum current of 700mA<br />
Current limiting, with current reduction if the board heats up.<br />
Two mounting holes for 6/32 screws, so that the board can be mounted to a heatsink.<br />
User control of current limit, by selecting the proper current sense resistors.<br />
The boards are designed to be paralleled.<br />
There is an optional input for PWM dim control.<br />
There is an optional input for remote light sense, that will turn the light off if there is another source of light.<br />
The board is designed to be used with 2 inch wide aluminum heat sinking, but for low current situations the board does not need to be heat sinked.</p>
<p>The board comes assembled with the current limit set at 250mA, if the board is used with out heat sinking it will automatically current limit to about 200mA in free air. Included with the board is an additional current sense resistor that can be used to set the current to about 500mA (700mA is the absolute maximum current for this board). This board does require proper heat sinking to run at higher currents. <strong>Warning these are CLASS 2 LEDs per IEC 60825-1, Do not stare into LED they can damage your eyes. </strong></p>
<p><div id="attachment_1180" class="wp-caption alignnone" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/introducing-the-msh-300-lumen-diy-12vdc-light-bar/attachment/3_top/" rel="attachment wp-att-1180"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2011/12/3_top-300x225.jpg" alt="Example of three boards in parallel" title="Example of three boards in parallel" width="300" height="225" class="size-medium wp-image-1180" /></a><p class="wp-caption-text">Example of three boards in parallel</p></div><br />
<div id="attachment_1183" class="wp-caption alignnone" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/introducing-the-msh-300-lumen-diy-12vdc-light-bar/attachment/lit/" rel="attachment wp-att-1183"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2011/12/lit-300x225.jpg" alt="Three boards running at 500mA each" title="Three boards running at 500mA each" width="300" height="225" class="size-medium wp-image-1183" /></a><p class="wp-caption-text">Three boards running at 500mA each</p></div><br />
Note that there is heat sink that is used with the three boards. This board and heat sink combo runs at a steady state of about 59C in free air after about 40 minutes of run time.  With the assistance of a small 80mA CPU fan the heat sink runs at very close to ambient air temperature.</p>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/introducing-the-msh-300-lumen-diy-12vdc-light-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing the Cree 1 Watt LED High Power Joule Thief Kit</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/introducing-the-cree-1-watt-led-high-power-joule-thief-kit/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/introducing-the-cree-1-watt-led-high-power-joule-thief-kit/#comments</comments>
		<pubDate>Sun, 04 Dec 2011 19:21:31 +0000</pubDate>
		<dc:creator>Kirk</dc:creator>
				<category><![CDATA[Daily Blog]]></category>
		<category><![CDATA[Joule Thief]]></category>
		<category><![CDATA[energy harvest]]></category>
		<category><![CDATA[energy harvesting]]></category>
		<category><![CDATA[energy harvestor]]></category>
		<category><![CDATA[green energy]]></category>
		<category><![CDATA[Joule Thief Circuit]]></category>
		<category><![CDATA[Joule Thief Kit]]></category>
		<category><![CDATA[Joule Thief PCB]]></category>
		<category><![CDATA[Joule Thief Schematic]]></category>
		<category><![CDATA[Joule Thief Simulation]]></category>
		<category><![CDATA[joules thief]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1127</guid>
		<description><![CDATA[<p>We are very excited to introduce our newest Joule Thief kit. This kit is a higher power Joule Thief kit that includes a Cree 50 Lumen XLamp 1 Watt white LED. See our energy harvesting product section to purchase this kit .</p>
<p class="wp-caption-text">1 Watt Cree LED Joule Thief</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>You can also purchase these Cree XLamp XL LEDs as an individual unit by going to our <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/introducing-the-cree-1-watt-led-high-power-joule-thief-kit/">Introducing the Cree 1 Watt LED High Power Joule Thief Kit</a></span>]]></description>
				<content:encoded><![CDATA[<p>We are very excited to introduce our newest Joule Thief kit. This kit is a higher power Joule Thief kit that includes a Cree 50 Lumen XLamp 1 Watt white LED. See our<a title="Energy Harvesting Products" href="http://www.madscientisthut.com/Shopping/agora.cgi?product=Energy%20Harvesting&amp;xm=on"> energy harvesting</a> product section to purchase this kit .</p>
<div id="attachment_1128" class="wp-caption alignleft" style="width: 310px"><a href="http://madscientisthut.com/wordpress/daily-blog/introducing-the-cree-1-watt-led-high-power-joule-thief-kit/attachment/fin/" rel="attachment wp-att-1128"><img class="size-full wp-image-1128" title="1 Watt Cree LED Joule Thief " src="http://madscientisthut.com/wordpress/wp-content/uploads/2011/12/fin.jpg" alt="1 Watt Cree LED Joule Thief " width="300" height="251" /></a><p class="wp-caption-text">1 Watt Cree LED Joule Thief</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>You can also purchase these Cree XLamp XL LEDs as an individual unit by going to our <a title="Cree XLamp LED" href="http://www.madscientisthut.com/Shopping/agora.cgi?product=Components&amp;user4=CREE%20XLAMP%20LED&amp;xm=on">components</a> section.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/introducing-the-cree-1-watt-led-high-power-joule-thief-kit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3-axis MMA7660 sensor working with Arduino</title>
		<link>http://madscientisthut.com/wordpress/3-axis-sensor/3-axis-mma7660-sensor-working-with-arduino-3/</link>
		<comments>http://madscientisthut.com/wordpress/3-axis-sensor/3-axis-mma7660-sensor-working-with-arduino-3/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 02:19:37 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[3-Axis G Sensor]]></category>
		<category><![CDATA[3-axis accelerometer]]></category>
		<category><![CDATA[3-axis g sensor]]></category>
		<category><![CDATA[3-axis sensor]]></category>
		<category><![CDATA[3d sensor]]></category>
		<category><![CDATA[mma7660]]></category>
		<category><![CDATA[MMA7660 breakout board]]></category>
		<category><![CDATA[mma7660fc]]></category>
		<category><![CDATA[MMA7660FC breakout board]]></category>
		<category><![CDATA[three axis accelerometer]]></category>
		<category><![CDATA[three axis g sensor]]></category>
		<category><![CDATA[three axis sensor]]></category>
		<category><![CDATA[triple axis accelerometer]]></category>
		<category><![CDATA[triple axis g sensor]]></category>
		<category><![CDATA[triple axis sensor]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1464</guid>
		<description><![CDATA[<p>We have the MMA7660 assembled and tested breakout boards in stock, check out products section under CNC/robotics for $6.50 each</p>
<p>I got the Freescale MMA7660FC 3 axis g sensor displaying rotational information, using Tim Zaman&#8217;s Project library, found here: http://www.timzaman.nl/?p=1089&#38;lang=en or here Tim Zaman Project Reference Arduino Code for MMA7660 </p>
<p>As the installation instructions say: unzip it in the Libraries directory of your Arduino install. This is tested with Arduino 022 IDE.</p>
<p>Wiring for a 168/328-based Arduino is: DVDD and AVDD to 3.3V, GND to GND, SDA to Analog 4, SCL to Analog 5, as per the Wire library specification here: http://arduino.cc/it/Reference/Wire</p>
<p>So pleased to have <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/3-axis-sensor/3-axis-mma7660-sensor-working-with-arduino-3/">3-axis MMA7660 sensor working with Arduino</a></span>]]></description>
				<content:encoded><![CDATA[<p>We have the MMA7660 assembled and tested breakout boards in stock, check out products section under<a href="http://www.madscientisthut.com/Shopping/agora.cgi?product=CNC%20/%20Robotic%20Sensors&amp;xm=on"> CNC/robotics</a> for $6.50 each</p>
<p>I got the Freescale MMA7660FC 3 axis g sensor displaying rotational information, using Tim Zaman&#8217;s Project library, found here: <a title="Tim Zaman Project Reference Arduino Code for the MMA 7660" href="http://www.timzaman.nl/?p=1089&amp;lang=en">http://www.timzaman.nl/?p=1089&amp;lang=en</a> or here <a href="http://madscientisthut.com/wordpress/daily-blog/mma7660-3-axis-sensor-working-with-arduino/attachment/mma7660/" rel="attachment wp-att-1391">Tim Zaman Project Reference Arduino Code for MMA7660 </a></p>
<p>As the installation instructions say: unzip it in the Libraries directory of your Arduino install. This is tested with Arduino 022 IDE.</p>
<p>Wiring for a 168/328-based Arduino is: DVDD and AVDD to 3.3V, GND to GND, SDA to Analog 4, SCL to Analog 5, as per the Wire library specification here: <a title="http://arduino.cc/it/Reference/Wire" href="http://arduino.cc/it/Reference/Wire">http://arduino.cc/it/Reference/Wire</a></p>
<p>So pleased to have this working!</p>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/3-axis-sensor/3-axis-mma7660-sensor-working-with-arduino-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Product Road Test &#8211; TI eZ430-F2013 Development Tool</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/misc/product-road-test-ti-ez430-f2013-development-tool/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/misc/product-road-test-ti-ez430-f2013-development-tool/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 12:30:49 +0000</pubDate>
		<dc:creator>Kirk</dc:creator>
				<category><![CDATA[MISC]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1086</guid>
		<description><![CDATA[<p>I just received the MSP430 Ultra-Low Power MCUs eZ430-F2013 Development Tool made by Texas Instruments from Newark to Electronic Components for a product road test.</p>
<p><p class="wp-caption-text">TI ez430-F2013 usb development tool</p></p>
<p>&#160;</p>
<p>This is a complete USB based development tool for about $23.00, that includes all of the required hardware and software to start a MSP430F2013 low power micro-controller project. It features:</p>

eZ430-F2013 development tool       including a USB debugging interface and detachable MSP430F2013 target board
eZ430-F2013 target board

LED indicator
14 user accessible        pins


eZ430 debugging and       programming interface

Supports development with some 2xx Spy Bi-Wire devices (refer to Table 1-1 in MSP430 Hardware Tools User&#8217;s Guide for complete compatibility list)
Supports eZ430-T2012 and eZ430-RF2500T target boards


Removable USB stick enclosure
Includes IAR       Kickstart and Code  Composer Studio which include an assembler, linker,       source-level debugger and limited C-compiler
Full documentation on CD-ROM

<p class="wp-caption-text">eZ430 dev. board with removable daughter card</p>
<p></p>
<p>&#160;</p>
<p>The USB stick comes in an easy to remove case that you pry open at the corner. The MSP430F2013 is mounted on a removable daughter card. The daughter card has test points that allow <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/misc/product-road-test-ti-ez430-f2013-development-tool/">Product Road Test &#8211; TI eZ430-F2013 Development Tool</a></span>]]></description>
				<content:encoded><![CDATA[<p>I just received the <a href="http://www.newark.com/texas-instruments/ez430-f2013/msp430-usb-stick-development-tool/dp/87K7632?Ntt=87K7632">MSP430 Ultra-Low Power MCUs eZ430-F2013 Development Tool</a> made by <a href="http://www.newark.com/texas-instruments/">Texas Instruments</a> from <a href="http://www.newark.com/">Newark to Electronic Components</a> for a product road test.</p>
<p><div id="attachment_1088" class="wp-caption alignleft" style="width: 310px"><a rel="attachment wp-att-1088" href="http://madscientisthut.com/wordpress/daily-blog/misc/product-road-test-ti-ez430-f2013-development-tool/attachment/ez430_dev/"><img class="size-medium wp-image-1088" title="ez430-F2013" src="http://madscientisthut.com/wordpress/wp-content/uploads/2011/07/ez430_dev-300x121.jpg" alt="TI usb development tool" width="300" height="121" /></a><p class="wp-caption-text">TI ez430-F2013 usb development tool</p></div><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /></p>
<p>&nbsp;</p>
<p>This is a complete USB based development tool for about $23.00, that includes all of the required hardware and software to start a MSP430F2013 low power micro-controller project. It features:</p>
<ul>
<li>eZ430-F2013 development tool       including a USB debugging interface and detachable <a href="http://focus.ti.com/docs/prod/folders/print/msp430f2013.html">MSP430F2013</a> target board</li>
<li>eZ430-F2013 target board
<ul type="circle">
<li>LED indicator</li>
<li>14 user accessible        pins</li>
</ul>
</li>
<li>eZ430 debugging and       programming interface
<ul type="circle">
<li>Supports development with some 2xx Spy Bi-Wire devices (refer to Table 1-1 in <a href="http://www.ti.com/lit/pdf/slau278">MSP430 Hardware Tools User&#8217;s Guide</a> for complete compatibility list)</li>
<li>Supports <a href="http://focus.ti.com/docs/toolsw/folders/print/ez430-t2012.html">eZ430-T2012</a> and <a href="http://focus.ti.com/docs/toolsw/folders/print/ez430-rf2500t.html">eZ430-RF2500T</a> target boards</li>
</ul>
</li>
<li>Removable USB stick enclosure</li>
<li>Includes <a href="http://focus.ti.com/docs/toolsw/folders/print/iar-kickstart.html">IAR       Kickstart</a> and <a href="http://focus.ti.com/docs/toolsw/folders/print/ccstudio.html">Code  Composer Studio</a> which include an assembler, linker,       source-level debugger and limited C-compiler</li>
<li>Full documentation on CD-ROM</li>
</ul>
<div id="attachment_1093" class="wp-caption alignleft" style="width: 310px"><a rel="attachment wp-att-1093" href="http://madscientisthut.com/wordpress/daily-blog/misc/product-road-test-ti-ez430-f2013-development-tool/attachment/ez430_bd/"><img class="size-medium wp-image-1093" title="ez430 USB stick" src="http://madscientisthut.com/wordpress/wp-content/uploads/2011/07/ez430_bd-300x98.jpg" alt="eZ430 dev. board with removable daughter card" width="300" height="98" /></a><p class="wp-caption-text">eZ430 dev. board with removable daughter card</p></div>
<p><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /></p>
<p>&nbsp;</p>
<p>The USB stick comes in an easy to remove case that you pry open at the corner. The MSP430F2013 is mounted on a removable daughter card. The daughter card has test points that allow access to all of the pins of the MSP430F2013.</p>
<p>The MSP430F2013 features:</p>
<ul>
<li>Low Supply Voltage Range 1.8 V to 3.6 V</li>
<li>Ultra-Low Power Consumption
<ul>
<li>Active Mode: 220 µA at 1 MHz, 2.2 V</li>
<li>Standby Mode: 0.5 µA</li>
<li>Off Mode (RAM Retention): 0.1 µA</li>
</ul>
</li>
<li>Five Power-Saving Modes</li>
<li>Ultra-Fast Wake-Up From Standby Mode in Less Than 1 µA</li>
<li>16-Bit RISC Architecture, 62.5-ns Instruction Cycle Time</li>
<li>Basic Clock Module Configurations:
<ul>
<li>Internal Frequencies up to 16 MHz With Four Calibrated Frequencies to ±1%</li>
<li>Internal Very Low-Power Low-Frequency Oscillator</li>
<li>32-kHz Crystal</li>
<li>External Digital Clock Source</li>
</ul>
</li>
<li>16-Bit Timer_A With Two Capture/Compare Registers</li>
<li>On-Chip Comparator for Analog Signal Compare Function or Slope A/D<br />
(MSP430F20x1)</li>
<li>10-Bit 200-ksps A/D Converter With Internal Reference, Sample-and-Hold,<br />
and Autoscan (MSP430F20x2)</li>
<li>16-Bit Sigma-Delta A/D Converter With Differential PGA Inputs and<br />
Internal Reference (MSP430F20x3)</li>
<li>Universal Serial Interface (USI) Supporting SPI and I2C<br />
(MSP430F20x2 and MSP430F20x3)</li>
<li>Brownout Detector</li>
<li>Serial Onboard Programming, No External Programming Voltage Needed,<br />
Programmable Code Protection by Security Fuse</li>
</ul>
<p>In the coming weeks we will be testing the development system. We will post some sample code for our project also.</p>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/misc/product-road-test-ti-ez430-f2013-development-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple LED Constant Current Circuit Uses Four Discrete Components</title>
		<link>http://madscientisthut.com/wordpress/daily-blog/simple-led-constant-current-circuit-uses-four-components/</link>
		<comments>http://madscientisthut.com/wordpress/daily-blog/simple-led-constant-current-circuit-uses-four-components/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 00:37:13 +0000</pubDate>
		<dc:creator>Kirk</dc:creator>
				<category><![CDATA[Basic Circuits]]></category>
		<category><![CDATA[Daily Blog]]></category>
		<category><![CDATA[constant current circuit]]></category>
		<category><![CDATA[laser diode current limit circuit]]></category>
		<category><![CDATA[LED Constant Current Source]]></category>
		<category><![CDATA[LED current control]]></category>
		<category><![CDATA[LED current limit control]]></category>

		<guid isPermaLink="false">http://madscientisthut.com/wordpress/?p=1046</guid>
		<description><![CDATA[<p>I need to add an active current limit to the LEDs from the previous post. The main reason for the current limit is so that the brightness of the LEDs remains uniform across the lead acid battery voltage range of 11.8 to 14.4V. The circuit I am using is a very simple and only uses 4 components to limit current.
See the schematic here:(to see a bigger version of any of these pictures click the image, then click the image on the following page, it is a weird wordpress issue)

The circuit functions as follows:
For this example we will set the current limit at 100mA so R2 is 6 Ohms.
The NMOS is turned on when the voltage from Vin through R1 exceeds the NMOS Gate threshold level. As voltage at Vin rises so does current through the circuit and so does the voltage drop across R2. The current limit kicks in when the R2 voltage drop exceeds the base voltage threshold (VBE) of approximately 600mV on Q1. So if the current limit is set for 100mA the voltage across R2 = 6 Ohms * 0.1A = 600mV. When Q1 turns on it starts to pull the voltage down at the gate of the <span style="color:#777"> . . . &#8594; Read More: <a href="http://madscientisthut.com/wordpress/daily-blog/simple-led-constant-current-circuit-uses-four-components/">Simple LED Constant Current Circuit Uses Four Discrete Components</a></span>]]></description>
				<content:encoded><![CDATA[<p>I need to add an active current limit to the LEDs from the <a href="http://madscientisthut.com/wordpress/daily-blog/an-led-dayligh…htness-control/">previous post</a>. The main reason for the current limit is so that the brightness of the LEDs remains uniform across the lead acid battery voltage range of 11.8 to 14.4V. The circuit I am using is a very simple and only uses 4 components to limit current.<br />
See the schematic here:(to see a bigger version of any of these pictures click the image, then click the image on the following page, it is a weird wordpress issue)<br class="blank" /><br />
<a href="http://madscientisthut.com/wordpress/daily-blog/simple-led-constant-current-circuit-uses-four-components/attachment/i-lim/" rel="attachment wp-att-1048"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2011/06/I-Lim-300x199.jpg" alt="" title="I-Lim" width="300" height="199" class="alignleft size-medium wp-image-1048" /></a><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br />
The circuit functions as follows:<br />
For this example we will set the current limit at 100mA so R2 is 6 Ohms.<br />
The NMOS is turned on when the voltage from Vin through R1 exceeds the NMOS Gate threshold level. As voltage at Vin rises so does current through the circuit and so does the voltage drop across R2. The current limit kicks in when the R2 voltage drop exceeds the base voltage threshold (VBE) of approximately 600mV on Q1. So if the current limit is set for 100mA the voltage across R2 = 6 Ohms * 0.1A = 600mV. When Q1 turns on it starts to pull the voltage down at the gate of the NMOS causing the FET to go into its linear region, this limits the current through the circuit. The NPN transistor is so much faster than the NMOS that there is no problems with oscillation in the circuit ( this assumes that the circuit is built properly with the current limit components in a very tight group ) </p>
<p>There is one more &#8216;benefit&#8217; to this circuit. If you want some limited form of over heating protection for your load circuit you can place the transistor next to the hottest part of the load. The VBE of the transistor will drop as it heats up, effectively dropping the the current limit in the circuit, this will all depend on the current in the transistor and the temperature. The greatest analog guru of all time Bob Pease wrote an article that explains VBE in detail just click here to read <a href="http://www.national.com/rap/Story/vbe.html">What&#8217;s All This VBE Stuff, Anyhow?</a> Of course if you want to keep your current limit circuit constant keep the transistor away from the heating of the load.</p>
<p>Here is a simulation run of the circuit: Red line is the current going through the LEDs and R2, Blue line is the Voltage into the circuit ramped from 0 to 14.4V in 20mS, Green is the gate voltage of the NMOS, Light blue is the Voltage across R2 and at the base of Q1.<br />
<a href="http://madscientisthut.com/wordpress/daily-blog/simple-led-constant-current-circuit-uses-four-components/attachment/ilim_sim/" rel="attachment wp-att-1083"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2011/06/Ilim_sim-300x169.jpg" alt="" title="Ilim_sim" width="300" height="169" class="alignleft size-medium wp-image-1083" /></a><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /></p>
<p>This circuit can be used for a constant current source / sink for LEDs and laser diodes (the circuit can be used on the high or low side of a load). It can also be used anywhere a current limit function is needed. </p>
<p>The NMOS can be just about any N-Channel FET that is rated for 1.5X the voltage of the circuit, 2X the Wattage of the circuit and at least 2X the current of the circuit, and should have a reasonable RDSon. The FET may need to attached to a heat sink, if you plan on running more than a 1/4 Watt. </p>
<p>The current limit function comes into play only if the input voltage is high enough to meet the following: </p>
<p>Vin > Load Circuit Voltage Drop + ( NMOS RDSon * Ilim ) + ( R2 * Ilim)</p>
<p>Here is an example of the current limit setting a constant current for two different voltage levels:<br />
<a href="http://madscientisthut.com/wordpress/daily-blog/simple-led-constant-current-circuit-uses-four-components/attachment/untitled/" rel="attachment wp-att-1051"><img src="http://madscientisthut.com/wordpress/wp-content/uploads/2011/06/Untitled-300x197.jpg" alt="" title="Constant Current for LEDs" width="300" height="197" class="alignleft size-medium wp-image-1051" /></a><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /><br class="blank" /></p>
<p>For example A the current limit is set for 30mA and is barely on with just 0.7V dropping across M1. This is derived with : 11.8V Vin &#8211; (LED forward voltage 3.5V at 30mA * 3 LEDs) &#8211; 0.6V across R2<br />
The power dropped on M1 = 0.7V * 0.03A = 21mW</p>
<p>In example B the lead acid battery is fully charged and the power drop is at it highest with the power dissipated on M1 =  4V * 0.03A = 102mW</p>
]]></content:encoded>
			<wfw:commentRss>http://madscientisthut.com/wordpress/daily-blog/simple-led-constant-current-circuit-uses-four-components/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.245 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-06-19 08:51:17 -->
