<?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>xiaoma de blog &#187; 电子[Electronics]</title>
	<atom:link href="http://www.floatingvectors.com/blog/category/electronics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.floatingvectors.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 22 Jan 2012 11:51:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPad RC Toy Tank</title>
		<link>http://www.floatingvectors.com/blog/388/</link>
		<comments>http://www.floatingvectors.com/blog/388/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 07:50:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[电子[Electronics]]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.floatingvectors.com/blog/?p=388</guid>
		<description><![CDATA[
The drawing explains pretty much everything.

]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><object width="480" height="400"><param name="movie" value="http://player.youku.com/player.php/sid/XMjI0MTE0MjA4/v.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="never"></param><param name="allownetworking" value="internal"></param><param name="flashvars" value="isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&isAutoPlay=false&isDebug=false&UserID=&winType=interior&playMovie=true&MMControl=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3007,3008,9999" /><embed src="http://player.youku.com/player.php/sid/XMjI0MTE0MjA4/v.swf" type="application/x-shockwave-flash" allowscriptaccess="never" allownetworking="internal" allowfullscreen="true" width="480" height="400" flashvars="isShowRelatedVideo=false&showAd=0&show_pre=1&show_next=1&isAutoPlay=false&isDebug=false&UserID=&winType=interior&playMovie=true&MMControl=false&MMout=false&RecordCode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3007,3008,9999"></embed></object></p>
<p>The drawing explains pretty much everything.<br />
<a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/11/iphonecar1.png"><img class="size-full wp-image-389 alignnone" title="iphonecar" src="http://www.floatingvectors.com/blog/wp-content/uploads/2010/11/iphonecar1.png" alt="" width="648" height="445" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.floatingvectors.com/blog/388/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Heatsink Calculation</title>
		<link>http://www.floatingvectors.com/blog/353/</link>
		<comments>http://www.floatingvectors.com/blog/353/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 11:15:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[电子[Electronics]]]></category>

		<guid isPermaLink="false">http://www.floatingvectors.com/blog/?p=353</guid>
		<description><![CDATA[When design power electronics, to prevent devices from overheating and damage, heatsinks are commonly used. How to calculate heatsinks is thus an issue.
The basic theory is a thermal equivalent of Ohm’s Law. For a power transistor:
T(j-a) = Pd x Rth(j-a)
T(j-a) (in degrees Celsius) is the temperature rise of the transistor above ‘ambient ’ temperature.
Pd (in [...]]]></description>
			<content:encoded><![CDATA[<p>When design power electronics, to prevent devices from overheating and damage, heatsinks are commonly used. How to calculate heatsinks is thus an issue.</p>
<p>The basic theory is a thermal equivalent of Ohm’s Law. For a power transistor:</p>
<p>T(j-a) = Pd x Rth(j-a)</p>
<p>T(j-a) (in degrees Celsius) is the temperature rise of the transistor above ‘ambient ’ temperature.</p>
<p>Pd (in watts)is the power disspipated.</p>
<p>Rth(j-a) (in degress Celsius per watt)is the total thermal resistance between the junction and the ambient.</p>
<p>A design example:</p>
<p><a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/03/heatsink_selection.gif"><img class="aligncenter size-full wp-image-354" title="heatsink_selection" src="http://www.floatingvectors.com/blog/wp-content/uploads/2010/03/heatsink_selection.gif" alt="" width="640" height="400" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.floatingvectors.com/blog/353/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Motor Control Tutorial(Part I)</title>
		<link>http://www.floatingvectors.com/blog/282/</link>
		<comments>http://www.floatingvectors.com/blog/282/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 12:40:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[电子[Electronics]]]></category>
		<category><![CDATA[Motor control]]></category>

		<guid isPermaLink="false">http://www.floatingvectors.com/blog/?p=282</guid>
		<description><![CDATA[Motor Control Tutorial (Part I)
 
After working on several motor control projects, I decided to write this article about PID controller. This article will tell how to implement control loops (PID loops) in software. The hardware part will come soon.
PID Controller
A PID (proportional-integral-derivative) controller is a generic controller widely used in control systems. It calculates the [...]]]></description>
			<content:encoded><![CDATA[<h1>Motor Control Tutorial (Part I)</h1>
<p> </p>
<p>After working on several motor control projects, I decided to write this article about PID controller. This article will tell how to implement control loops (PID loops) in software. The hardware part will come soon.</p>
<p><strong>PID Controller</strong></p>
<p>A PID (proportional-integral-derivative) controller is a generic controller widely used in control systems. It calculates the difference value between a given set-point and measured value and attempts to minimize the difference.</p>
<p>The terminology “PID” tells that it includes three terms. Each term has a different effect on the controlled system. Figure 1 shows a block diagram of a basic PID controller.</p>
<p><a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/basic_pid.png"><img class="aligncenter size-full wp-image-283" title="basic_pid" src="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/basic_pid.png" alt="" width="446" height="236" /></a> </p>
<p style="text-align: center;">Figure 1 Basic PID Controller</p>
<p>The standard mathematic form is</p>
<p><a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_math.png"><img class="aligncenter size-full wp-image-284" title="pid_math" src="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_math.png" alt="" width="416" height="97" /></a></p>
<p>The three terms are</p>
<p><a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_terms.png"><img class="aligncenter size-full wp-image-285" title="pid_terms" src="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_terms.png" alt="" width="416" height="109" /></a></p>
<p>Implementation of a PID controller in a MCU chip requires a discrete form however.</p>
<p><a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_discrete.png"><img class="aligncenter size-full wp-image-286" title="pid_discrete" src="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_discrete.png" alt="" width="416" height="187" /></a></p>
<p>Where</p>
<p> T is the sample period (sec).</p>
<p> Ti is the integral period (sec).</p>
<p> Td is the derivative period (sec).</p>
<p>Then the three terms finally become</p>
<p style="text-align: center;"><a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_final.png"></a><a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_final1.png"><img class="aligncenter size-full wp-image-312" title="pid_final" src="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_final1.png" alt="" width="416" height="124" /></a></p>
<p>Integrator Anti-windup</p>
<p>There are limitations in actuators. For a system that operates over a wide range of conditions, it may happen that the control variable reaches the actuator limits. When this happens, the feedback loop is broken. The integral term will build up since the error is nonzero. The controller output will become very large. When the control input changes, it may take a long time before the integrator and the controller output come back inside the saturation range. To avoid this situation, some anti-windup correction is need.</p>
<p>Below is one way to implement anti-windup in a conventional PID controller.</p>
<p><a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_antiwindup.png"><img class="aligncenter size-full wp-image-313" title="pid_antiwindup" src="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_antiwindup.png" alt="" width="558" height="192" /></a></p>
<p>If the actuator is saturated, the error will decrease integrator and thus prevent windup.</p>
<p><a href="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_antiwindup_final.png"><img class="aligncenter size-full wp-image-314" title="pid_antiwindup_final" src="http://www.floatingvectors.com/blog/wp-content/uploads/2010/01/pid_antiwindup_final.png" alt="" width="416" height="156" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.floatingvectors.com/blog/282/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

