<?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>Electromagnetism &#8211; Henry Poon&#039;s Blog</title>
	<atom:link href="https://blog.henrypoon.com/blog/tag/electromagnetism/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.henrypoon.com</link>
	<description></description>
	<lastBuildDate>Wed, 05 Oct 2022 02:13:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">83044199</site>	<item>
		<title>Deutsches Museum</title>
		<link>https://blog.henrypoon.com/blog/2013/08/03/deutsches-museum/</link>
					<comments>https://blog.henrypoon.com/blog/2013/08/03/deutsches-museum/#respond</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Sat, 03 Aug 2013 21:19:43 +0000</pubDate>
				<category><![CDATA[engineering]]></category>
		<category><![CDATA[europe]]></category>
		<category><![CDATA[aviation]]></category>
		<category><![CDATA[Bosch]]></category>
		<category><![CDATA[Chan]]></category>
		<category><![CDATA[Classical mechanics]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Culture]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[Deutsches Museum]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[Electromagnetism]]></category>
		<category><![CDATA[Euro]]></category>
		<category><![CDATA[Europe]]></category>
		<category><![CDATA[Germany]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[Icon]]></category>
		<category><![CDATA[IME]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Light]]></category>
		<category><![CDATA[lightning]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[London]]></category>
		<category><![CDATA[Mech]]></category>
		<category><![CDATA[Mecha]]></category>
		<category><![CDATA[Mechanics]]></category>
		<category><![CDATA[Mind]]></category>
		<category><![CDATA[Munich]]></category>
		<category><![CDATA[Museum]]></category>
		<category><![CDATA[Museums]]></category>
		<category><![CDATA[Net]]></category>
		<category><![CDATA[nuclear fission]]></category>
		<category><![CDATA[Over]]></category>
		<category><![CDATA[Pho]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[Printing]]></category>
		<category><![CDATA[Remington Rand]]></category>
		<category><![CDATA[Sleep]]></category>
		<category><![CDATA[States of Germany]]></category>
		<category><![CDATA[STR]]></category>
		<category><![CDATA[Student]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Vancouver]]></category>
		<category><![CDATA[Vimy]]></category>
		<category><![CDATA[Week]]></category>
		<category><![CDATA[wind turbines]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/deutsches-museum</guid>

					<description><![CDATA[From Vimy Ridge, we went back to London for another day and then we parted ways.  Edward flew back to Vancouver while I stayed in Europe for another two and a half weeks.  My next destination was Munich.  Each of our flights were very early in the morning from London Gatwick, so we just went [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">From Vimy Ridge, we went back to London for another day and then we parted ways.  Edward flew back to Vancouver while I stayed in Europe for another two and a half weeks.  My next destination was Munich.  Each of our flights were very early in the morning from London Gatwick, so we just went to the airport and slept there for a night.  It wasn&#8217;t restful sleep at all.  At least I managed to sleep more on the flight there.  I met up with a friend of mine that I met while taking courses at UBC while he was an exchange student.  I stayed with him for a few days.  The <a href="http://henrypoon.wordpress.com/2011/04/11/munich/" target="_blank" rel="noreferrer noopener">last time I went to Munich</a>, I never got the chance to visit the Deutsches Museum, which was my first destination this time.</p>



<p class="wp-block-paragraph">The Deutsches Museum is one of the largest museums I&#8217;ve been to. There were so many topics on technology that the museum had. They had the usual topics on flight, ship building, engines, etc., but they had even more exhibits on classical mechanics, electromagnetism, chemistry, nuclear physics, mining, semiconductors, computers, cartography, microsystems, space exploration, printing, etc.</p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="https://picasaweb.google.com/117972094293741244551/DeutschesMuseum#5897602830019444386" target="_blank" rel="noopener noreferrer"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh4.googleusercontent.com/-fd5VbDjgwlM/Udh-hu2lvqI/AAAAAAAAOPs/SjiNZQvchvU/s912/IMG_9263.JPG?w=1280&#038;ssl=1" alt=""/></a></figure>
</div>


<p class="has-text-align-center wp-block-paragraph"></p>



<p class="wp-block-paragraph">There was even a cool demonstration of arc lightning.</p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="https://picasaweb.google.com/117972094293741244551/DeutschesMuseum#5897603009746845554" target="_blank" rel="noopener noreferrer"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh5.googleusercontent.com/-vldccmJOGAg/Udh-sMY8P3I/AAAAAAAAOQM/Rnn07yBmpFs/s912/IMG_9267.JPG?w=1280&#038;ssl=1" alt=""/></a></figure>
</div>


<p class="has-text-align-center wp-block-paragraph"></p>



<p class="wp-block-paragraph">The section of space exploration was quite interesting too, but it wasn&#8217;t as big as the exhibit at the Smithsonian Museum of Flight.</p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="https://picasaweb.google.com/117972094293741244551/DeutschesMuseum#5897603577103634338" target="_blank" rel="noopener noreferrer"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh6.googleusercontent.com/-xKSZFYnT-Ac/Udh_NN9Vz6I/AAAAAAAAORU/_N3vdmfRtgE/s912/IMG_9275.JPG?w=1280&#038;ssl=1" alt=""/></a></figure>
</div>


<p class="has-text-align-center wp-block-paragraph"></p>



<p class="wp-block-paragraph">The clean room exhibit reminded me a little bit of the type of work I did during my internship at Bosch.</p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="https://picasaweb.google.com/117972094293741244551/DeutschesMuseum#5897604088995051634" target="_blank" rel="noopener noreferrer"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh5.googleusercontent.com/-KyvTNaeuxso/Udh_rA5w-HI/AAAAAAAAOSo/Ljkynmsm8zc/s720/IMG_9285.JPG?w=1280&#038;ssl=1" alt=""/></a></figure>
</div>


<p class="has-text-align-center wp-block-paragraph"></p>



<p class="wp-block-paragraph">Of course in any exhibit on computers, there has to be a computer from <a class="zem_slink" title="Remington Rand" href="http://en.wikipedia.org/wiki/Remington_Rand" target="_blank" rel="wikipedia noopener noreferrer">Remington Rand</a>.</p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="https://picasaweb.google.com/117972094293741244551/DeutschesMuseum#5897604179457784914" target="_blank" rel="noopener noreferrer"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh6.googleusercontent.com/-ZXBB0bgggyU/Udh_wR5wvFI/AAAAAAAAOS8/TRqqnDns8M0/s912/IMG_9287.JPG?w=1280&#038;ssl=1" alt=""/></a></figure>
</div>


<p class="has-text-align-center wp-block-paragraph"></p>



<p class="wp-block-paragraph">Here is the experimental apparatus that was used to discover nuclear fission.</p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="https://picasaweb.google.com/117972094293741244551/DeutschesMuseum#5897604462558494978" target="_blank" rel="noopener noreferrer"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh6.googleusercontent.com/-F4g2iB4uVi8/UdiAAwiOwQI/AAAAAAAAOTc/KQg-4qmUcbw/s912/IMG_9291.JPG?w=1280&#038;ssl=1" alt=""/></a></figure>
</div>


<p class="has-text-align-center wp-block-paragraph"></p>



<p class="wp-block-paragraph">The stuff I looked at was only scratching the surface of the museum. I pretty much skipped entire sections like time keeping, wind turbines, bridge building, among other things. I was there for four hours too and I didn&#8217;t even look at any one section in a lot of detail. To see everything, one would have to spend days here.</p>



<p class="wp-block-paragraph">Link to photo album <a href="https://picasaweb.google.com/117972094293741244551/DeutschesMuseum#" target="_blank" rel="noopener noreferrer">here</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2013/08/03/deutsches-museum/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1728</post-id>	</item>
		<item>
		<title>MECH 45X–Designing the Motor Control Circuit</title>
		<link>https://blog.henrypoon.com/blog/2012/02/21/mech-45x-designing-the-motor-control-circuit/</link>
					<comments>https://blog.henrypoon.com/blog/2012/02/21/mech-45x-designing-the-motor-control-circuit/#respond</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Tue, 21 Feb 2012 08:58:29 +0000</pubDate>
				<category><![CDATA[engineering]]></category>
		<category><![CDATA[9]]></category>
		<category><![CDATA[Actuators]]></category>
		<category><![CDATA[agra]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Brushless DC electric motor]]></category>
		<category><![CDATA[Chan]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[DC motor]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Dia]]></category>
		<category><![CDATA[Drive]]></category>
		<category><![CDATA[driving]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[Electric motors]]></category>
		<category><![CDATA[Electrical engineering]]></category>
		<category><![CDATA[Electromagnetism]]></category>
		<category><![CDATA[Final]]></category>
		<category><![CDATA[Friction]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[IME]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Lie]]></category>
		<category><![CDATA[Maxon Motor]]></category>
		<category><![CDATA[Mech]]></category>
		<category><![CDATA[Mecha]]></category>
		<category><![CDATA[Mechanical engineering]]></category>
		<category><![CDATA[Object]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Over]]></category>
		<category><![CDATA[Paris]]></category>
		<category><![CDATA[Plug]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[rice]]></category>
		<category><![CDATA[Robot]]></category>
		<category><![CDATA[robots]]></category>
		<category><![CDATA[Rolling]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[Servomotor]]></category>
		<category><![CDATA[Speed]]></category>
		<category><![CDATA[Stall torque]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<category><![CDATA[Team]]></category>
		<category><![CDATA[Thou]]></category>
		<category><![CDATA[thunder]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Transmission]]></category>
		<category><![CDATA[Truth]]></category>
		<category><![CDATA[Vol]]></category>
		<category><![CDATA[Voltage]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Z]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/mech-45x%e2%80%93designing-the-motor-control-circuit</guid>

					<description><![CDATA[Knowing that two motors will be controlled for the grasper, a control circuit was required to determine how much voltage would be delivered to the motor and when they would be on or off.&#160; Each motor would also require position feedback for determining when to stop the motor actuation.&#160; The following section describes the process [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Knowing that two motors will be controlled for the grasper, a control circuit was required to determine how much voltage would be delivered to the motor and when they would be on or off.&nbsp; Each motor would also require position feedback for determining when to stop the motor actuation.&nbsp; The following section describes the process used for designing this microcontroller based circuit.&nbsp; These sections also show a heavy emphasis on the electrical portion of the design and less of the physical portion.&nbsp; The physical portion of the design can be visualized with the CAD design.</p>



<h1 class="wp-block-heading">1.0 Motors</h1>



<p class="wp-block-paragraph">The chosen motors are:</p>



<ul class="wp-block-list"><li>Finger grasping &#8211; Cytron IG32E-264K at a cost of USD $57.03 from RobotShop</li><li>Finger sliding &#8211; Cytron MO-SPG-30E-20K at a cost of USD $22.58 from RobotShop</li></ul>



<p class="wp-block-paragraph">Both motors meet the torque speed requirements for this project.</p>



<h2 class="wp-block-heading">1.1 Finger Grasping Actuation</h2>



<p class="wp-block-paragraph">From the initial budget, the budget set for actuators was set at $325.&nbsp; The torque requirement needed for gripping was also calculated and each finger would require 4 Nm at its output to lift a 4 kg object using only the fingertips.&nbsp; The evaluation criteria states that the device grasp as fast as possible and that the client would have the highest satisfaction if the device cost was less than $700.</p>



<p class="wp-block-paragraph">Looking on several websites that sold motors, the following DC motor was chosen: Cytron IG32E-264K at a cost of USD $57.03 from RobotShop.&nbsp; The specifications are as follows:</p>



<figure class="wp-block-table"><table><tbody><tr><td>DC voltage</td><td>12 V</td></tr><tr><td>Gear ratio</td><td>264:1</td></tr><tr><td>Stall torque (w/o gearing)</td><td>0.0392 Nm</td></tr><tr><td>No load speed (w/o gearing)</td><td>7300 rpm</td></tr><tr><td>Stall current</td><td>5 A</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">At 12 V with gearing included, the stall torque would be 20.7 Nm (without consideration of mechanical efficiency).&nbsp; A motor with a high stall torque is also beneficial because it lowers the gear ratio required, which leads to the use of less space for gearing.&nbsp; The motor also comes with its gearing, which contributes to its high torque.&nbsp; Given the high stall torque of this motor addition gear reduction is not required.&nbsp; During grasping, the motor will be exerting high torque at low speeds and therefore, the motor will be operating near the stall torque.&nbsp; The torque here is more than sufficient even with mechanical efficiency losses accounted for.</p>



<p class="wp-block-paragraph">For finger actuation before grasping occurs, there is a low load and therefore the motor will be operating closer to the no load speed.&nbsp; The no load speed with gear reduction is 27.7 rpm (without consideration of mechanical efficiency).&nbsp; Split among three output shafts, the speed would be 9.21 rpm.&nbsp; Even with the load of the fingers accounted for, this is still acceptable. based on requirements and evaluation criteria.</p>



<p class="wp-block-paragraph">While the torque is a lot higher than required, this motor was only more expensive than a motor of one size smaller by less than three dollars.&nbsp; The electrical characteristics were also identical.&nbsp; With a higher motor torque, the grasper would be comfortable in lifting objects even heavier than 4 kg, which is another benefit based on the evaluation criteria.</p>



<h2 class="wp-block-heading">1.2 Finger Sliding Actuation</h2>



<p class="wp-block-paragraph">The motor required here does not require a large torque since motion in this degree of freedom is not expected to handle heavy loads.&nbsp; This motor only requires enough torque to overcome the friction of the finger on the power screw that it is mounted on.&nbsp; Therefore, a low-cost motor (relative to the grasping motor) will suffice.&nbsp; The DC motor of choice is the Cytron MO-SPG-30E-20K at a cost of USD $22.58 from RobotShop.</p>



<p class="wp-block-paragraph">The specifications are as follows:</p>



<figure class="wp-block-table"><table><tbody><tr><td>DC voltage</td><td>12 V</td></tr><tr><td>Gear ratio</td><td>20:1</td></tr><tr><td>Rated torque (after gearing)</td><td>78.4 mNm</td></tr><tr><td>Rated speed (after gearing)</td><td>185 rpm</td></tr><tr><td>Rated current</td><td>410 mA</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">The consistency of the stated specifications do not match the previous motor because the information that was provided by the manufacturer was not consistent.</p>



<p class="wp-block-paragraph">An initial estimate of two 200 g fingers sliding on a 1/2” diameter power screw with a steel-steel sliding interface (friction coefficient of 0.8) shows that only 20 mNm of torque is required.&nbsp; Therefore, this motor meets the requirement.&nbsp; The power screw also has 13 threads per inch, and at the rated 185 rpm, the power screw would slide linearly at 6 mm/s.</p>



<h2 class="wp-block-heading">1.3 Motor Type</h2>



<p class="wp-block-paragraph">DC and servo motors are motors that are suitable for the project.&nbsp; An investigation between DC and servo motors showed that many manufacturers of motors did not provide the necessary specifications for choosing a servo motor in terms of the values of the no load, stall torque, and stall current.&nbsp; While servos generate a lot of torque relative to their size when compared to DC motors, it is not feasible to use a servo motor because of the unknowns in the specifications.&nbsp; It is possible to buy several servos and test them, but this is costly and time consuming.&nbsp; At this stage in the project, the team is not able to commit the time to investigate further.</p>



<p class="wp-block-paragraph">Comparison of the cost of the grasping motor relative to motors from Maxon Motor, a supplier of motors for UBC Thunderbots, shows that the price of a motor of the same power output costs approximately the same amount.&nbsp; However, a fundamental difference is that the motor from Maxon does not include a gearbox, while the chosen motor for this project does.</p>



<h1 class="wp-block-heading">2.0 Microcontroller</h1>



<p class="wp-block-paragraph">The microcontroller of choice is the Arduino Diecimila.&nbsp; The primary motivator for using this board is because the UBC Thunderbots team already has this board and is currently unused.&nbsp; The Thunderbots team has generously provided the board for use on this project.</p>



<p class="wp-block-paragraph">The MCU will allow the turning the motors on and off, changing motor direction, changing motor speed, and reading encoder feedback.</p>



<h1 class="wp-block-heading">3.0 Voltage Regulation for Encoders</h1>



<p class="wp-block-paragraph">Since the power supply is likely going to be run at 12 V, the encoders will require voltage regulation down to 5 V (the operating voltage of the encoder for the motors).&nbsp; The chosen voltage regulator is the MC78L05A at a cost of USD from Digikey.&nbsp; According to the typical application diagram of the datasheet, two capacitors will also be required (0.33 μF and 0.1 μF).&nbsp; The cost of these are less than $1.</p>



<p class="wp-block-paragraph">The voltage regulator will be wired up in this way as the datasheet shows:</p>


<div class="wp-block-image">
<figure class="aligncenter"><a href="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2012/02/image.png?ssl=1" target="_blank" rel="noreferrer noopener"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2012/02/image_thumb.png?w=1280&#038;ssl=1" alt="image" title="image"/></a></figure>
</div>


<p class="wp-block-paragraph">The input will be from the 12 V source, and the output will be to the encoders.</p>



<h1 class="wp-block-heading">4.0 Motor Driver</h1>



<p class="wp-block-paragraph">To control the motors, an H-Bridge is to be used.&nbsp; However, due to the different current flows for each motor, one motor driver will require a high current capacity while the other one will not.&nbsp; The high current capacity motor driver consists of a driving circuit using two half-bridges.&nbsp; The low current capacity motor driver is made up of 1 IC.</p>



<h1 class="wp-block-heading">4.1 Finger Grasping Motor Driver</h1>



<p class="wp-block-paragraph">To design the H-Bridge for controlling the motor, an L6205 motor driver will be used.&nbsp; Each of them costs USD $11.36 from Digikey and can withstand a continuous current of 2.8 A and a peak current of 5.8 A and can be interfaced with the microcontroller with PWM inputs.&nbsp; The driver can also be run in a parallel mode to double the current ratings by using both of its full bridges together.&nbsp; The datasheet provides an application circuit as follows:</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><a href="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2012/02/image1.png?ssl=1" target="_blank" rel="noreferrer noopener"><img data-recalc-dims="1" fetchpriority="high" decoding="async" src="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2012/02/image_thumb1.png?resize=600%2C138&#038;ssl=1" alt="image" width="600" height="138" title="image"/></a></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter"><a href="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2012/02/image2.png?ssl=1" target="_blank" rel="noreferrer noopener"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2012/02/image_thumb2.png?w=1280&#038;ssl=1" alt="image" title="image"/></a></figure>
</div>


<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">Output pins from the Arduino can turn the motor on and off through the enable pins.&nbsp; Direction is controlled by adjusting the voltage polarity between IN1 and IN2.</p>



<p class="wp-block-paragraph">There are also two output pins for current sensing.&nbsp; By using it to measure the current draw, the microcontroller program can determine what the torque is through the use of the motor curves provided in the motor specifications.</p>



<h1 class="wp-block-heading">4.2 Finger Sliding Motor Driver</h1>



<p class="wp-block-paragraph">The motor driver of choice is the L293D and each one costs $2.50 from Digikey.  Bidirectional control of a DC motor can be achieved by adapting the application circuit from the datasheet:<a href="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2012/02/image3.png?ssl=1" target="_blank" rel="noreferrer noopener"><img data-recalc-dims="1" decoding="async" title="image" width="278" height="220" border="0" style="background-image: none; padding-left: 0; padding-right: 0; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0; border-width: 0;" src="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2012/02/image_thumb3.png?resize=278%2C220&#038;ssl=1" alt="image"></a></p>



<p class="wp-block-paragraph">The 1A and 2A pins determine the direction of the motor or the motor deceleration.&nbsp; A truth table is provided in the datasheet.</p>



<h1 class="wp-block-heading">5.0 Power Supply</h1>



<p class="wp-block-paragraph">To power the grasper, a power supply plugged into the wall will be used.&nbsp; It is expected that the future robot will have a power source of its own which will power the hand as well.&nbsp; Therefore, for the purposes of testing the grasper for this project only a wall power supply will be required.</p>



<p class="wp-block-paragraph">Looking at the maximum electrical power consumption of the two motors, the total comes to ~65 W (12 V * 5 A + 12 V * 0.41 A).&nbsp; The other components also consume power and so the final power consumption will be higher.&nbsp; To compensate, a 12 V power supply with a maximum wattage and current of 84 W and 7 A was selected.&nbsp; The part number is CENB1090 and each costs USD $70.48 from Digikey.</p>



<h1 class="wp-block-heading">6.0 Power Supply Connector</h1>



<p class="wp-block-paragraph">The power supply chosen has one port that uses a Molex Mini-Fit Jr. Receptacle.&nbsp; Therefore, a proper receptacle must be used so that proper wire routing can power all the circuitry.&nbsp; This also means that the future robot will also require a matching plug for this receptacle.</p>



<h1 class="wp-block-heading">7.0 Fuses</h1>



<p class="wp-block-paragraph">Fuses will also be used as a redundant mechanism to stop the motor in case the current draw is too high.&nbsp; The primary method of stopping the motor is through the current sense pins on the motor driver.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2012/02/21/mech-45x-designing-the-motor-control-circuit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1346</post-id>	</item>
		<item>
		<title>Repairing a laptop display that is dim or has a black corner</title>
		<link>https://blog.henrypoon.com/blog/2011/12/27/repairing-a-laptop-display-that-is-dim-or-has-a-black-corner/</link>
					<comments>https://blog.henrypoon.com/blog/2011/12/27/repairing-a-laptop-display-that-is-dim-or-has-a-black-corner/#comments</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Wed, 28 Dec 2011 04:51:23 +0000</pubDate>
				<category><![CDATA[computer stuff]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[Backlight]]></category>
		<category><![CDATA[Chan]]></category>
		<category><![CDATA[Cold cathode]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[Display technology]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[Electromagnetism]]></category>
		<category><![CDATA[Find]]></category>
		<category><![CDATA[Gas discharge lamps]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[IME]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Laptop]]></category>
		<category><![CDATA[LED-backlit LCD]]></category>
		<category><![CDATA[Lie]]></category>
		<category><![CDATA[Light]]></category>
		<category><![CDATA[Liquid crystal displays]]></category>
		<category><![CDATA[Over]]></category>
		<category><![CDATA[Pho]]></category>
		<category><![CDATA[Plug]]></category>
		<category><![CDATA[Power inverter]]></category>
		<category><![CDATA[Screws]]></category>
		<category><![CDATA[STR]]></category>
		<category><![CDATA[Struct]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Television technology]]></category>
		<category><![CDATA[Thou]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Vol]]></category>
		<category><![CDATA[Week]]></category>
		<category><![CDATA[Z]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/repairing-a-laptop-display-that-is-dim-or-has-a-black-corner</guid>

					<description><![CDATA[Background After about three years or more of laptop use, one of the components that is likely to break is something in the LCD assembly.&#160; The LCD assembly is a collection of components that allows the laptop to display things on the screen.&#160; The following is a list of the primary components and their purpose: [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Background</h2>



<p class="wp-block-paragraph">After about three years or more of laptop use, one of the components that is likely to break is something in the LCD assembly.&nbsp; The LCD assembly is a collection of components that allows the laptop to display things on the screen.&nbsp; The following is a list of the primary components and their purpose:</p>



<ul class="wp-block-list"><li>LCD Panel – the part of the assembly that displays the images and is what people are looking at when using the laptop</li><li>CCFL Tube/Lamp – provides the light on the display.&nbsp; The LCD panel provides the image, and the lamp provides the light required to see the image.</li><li>LCD Inverter – transfers power to the CCFL lamp</li></ul>



<p class="wp-block-paragraph">The following instructions are general and do not pertain to one specific model of laptops.&nbsp; The theory still applies however.</p>



<h1 class="wp-block-heading">Problem Symptoms</h1>



<p class="wp-block-paragraph">In problems regarding a laptop display, these are the common problems among others that are quite prevalent among laptop users.</p>



<ul class="wp-block-list"><li>Black corner – on one corner of the screen, a black triangle can be seen. The mouse can be moved under it, which shows that the LCD is just not displaying that part of the screen. The black corner is also hot to the touch. In some cases, the black triangle can change size over time (on the order of a few minutes or hours).</li></ul>


<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh4.googleusercontent.com/-uNoid4rIhwA/Tu_E4CgYRHI/AAAAAAAAABs/DY4MHK8kgrY/s912/IMG_2826.JPG?w=1280&#038;ssl=1" alt=""/></figure>
</div>


<ul class="wp-block-list"><li>Dim screen – the LCD is still displaying a picture, but it cannot be seen because there is no backlight.&nbsp; Shining a bright light (such as a desk lamp) illuminates the screen slightly, but not to the brightness that the screen was at before.</li></ul>


<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh5.googleusercontent.com/-mOGDR-6guoU/Tu_E4KxBKMI/AAAAAAAAABs/t6t3WysOhtw/s912/IMG_2808.JPG?w=1280&#038;ssl=1" alt=""/></figure>
</div>


<p class="wp-block-paragraph">The first problem tends to lead to the second one.&nbsp; The CCFL tube burns out and leaves a dim display.</p>



<h1 class="wp-block-heading">Determining the Cause</h1>



<p class="wp-block-paragraph">In general, if one experiences at least one of the problems above, there is a clear hardware issue.&nbsp; Some exceptions are when one has turned the brightness all the way down, but this usually isn’t the case for people.</p>



<p class="wp-block-paragraph">If one simply sees a dim display, it is due to <strong>either the CCFL tube or the Inverter</strong>.&nbsp; It is not possible to to determine which part is the culprit without opening up the laptop.&nbsp; Refer to instructions specific to the laptop in question to open up the screen assembly.&nbsp; During disassembly, take note of what screws go where.&nbsp; Different sized screws get used for different places and it is very easy to forget which ones go where.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh6.googleusercontent.com/-37LIwvrH0nw/Tu_E_UbpQbI/AAAAAAAAADM/myEFwKM2srk/s912/IMG_5648.JPG?w=1280&#038;ssl=1" alt=""/></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh4.googleusercontent.com/-J_6rkBVQmKw/Tu_KyvRGHzI/AAAAAAAAAF4/fwUyWGt86wQ/s912/IMG_5740.JPG?w=1280&#038;ssl=1" alt=""/></figure>
</div>


<p class="wp-block-paragraph">The first image shows the laptop with the cover taken off.&nbsp; The second image shows the disassembled LCD assembly with the CCFL tube lying on top.</p>



<h3 class="wp-block-heading">CCFL Tube</h3>



<p class="wp-block-paragraph">Finding the CCFL Tube on the laptop is a lot more involved than finding the Inverter.&nbsp; It involves opening the LCD panel (see <a href="http://www.laptoprepair101.com/laptop/2007/12/09/replace-laptop-backlight-ccfl-lamp/" target="_blank" rel="noopener">this website</a> for instructions for a Dell Inspiron 1520).&nbsp; Visual inspection of this part can sometimes show clear signs of damage.&nbsp; Burn marks should be apparent.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh6.googleusercontent.com/-poT6WIe8u9w/Tu_Kzn5oM8I/AAAAAAAAAF8/sYywgBnygdU/s912/IMG_5741.JPG?w=1280&#038;ssl=1" alt=""/></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh3.googleusercontent.com/-_94zCr_t3v0/Tu_K1EPT3EI/AAAAAAAAAGA/Qz787kJchgo/s912/IMG_5742.JPG?w=1280&#038;ssl=1" alt=""/></figure>
</div>


<p class="wp-block-paragraph">If burn marks are not apparent, then the cause is likely due to the Inverter.&nbsp; One can also test the CCFL Tube, by turning on the computer with everything still plugged in (but disassembled).&nbsp; If the CCFL Tube lights up, then there is nothing wrong with the CCFL Tube.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh5.googleusercontent.com/-1jcfPoHWtM4/Tu_Mg2QaY8I/AAAAAAAAAIM/Gs51kjJ1ovM/s912/IMG_5784.JPG?w=1280&#038;ssl=1" alt=""/></figure>
</div>


<h3 class="wp-block-heading">LCD Inverter</h3>



<p class="wp-block-paragraph">It isn’t possible to test this part directly without the proper tools.&nbsp; However, if one has a dim display but has checked whether the CCFL works, one can be more certain that the Inverter is the culprit by process of elimination.</p>


<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh4.googleusercontent.com/-fA61Fh5-MxY/Tu_E_d8DP6I/AAAAAAAAADM/I2kwDuwUPQQ/s912/IMG_5649.JPG?w=1280&#038;ssl=1" alt=""/></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/lh6.googleusercontent.com/-w1bjtdPuv-k/Tu_E_QEJfzI/AAAAAAAAADM/eYRZhe8XSi0/s912/IMG_5651.JPG?w=1280&#038;ssl=1" alt=""/></figure>
</div>


<p class="wp-block-paragraph">The Inverter is the part in orange in the top photo.&nbsp; The bottom picture shows the Inverter by itself.</p>



<h1 class="wp-block-heading">Solution</h1>



<p class="wp-block-paragraph">Once the cause has been determined, the next step is to replace the part.&nbsp; However, one has a choice:</p>



<ul class="wp-block-list"><li>Replace the entire LCD assembly – costs more (~$100), but the labour is easier</li><li>Replace the problematic parts individually – costs less (~$5 – $20), but more difficult labour</li></ul>



<p class="wp-block-paragraph">One source for parts is Ebay, but it might take around three weeks for the part to arrive.&nbsp; This is cheaper than the $300 that Dell charges for shipping the laptop, buying the components and the labour.&nbsp; Replacing these parts is an involved process will take at least one hour.</p>



<p class="wp-block-paragraph">Here are some things to watch out for when replacing the CCFL Tube:</p>



<ul class="wp-block-list"><li>It is difficult to take the part out of the LCD panel</li><li>Watch out for dust that could get in between the layers in the LCD (will show up as black specs <em>under</em> the screen</li><li>It is hard to lay out the layers flat again when the CCFL Tube is replaced so there might be some uneven lighting after the CCFL Tube is replaced</li></ul>



<p class="wp-block-paragraph">After replacing the parts, turn on the computer again and the screen should be bright again.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2011/12/27/repairing-a-laptop-display-that-is-dim-or-has-a-black-corner/feed/</wfw:commentRss>
			<slash:comments>10</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1277</post-id>	</item>
		<item>
		<title>Java Serial Programming</title>
		<link>https://blog.henrypoon.com/blog/2010/10/11/java-serial-programming/</link>
					<comments>https://blog.henrypoon.com/blog/2010/10/11/java-serial-programming/#comments</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Tue, 12 Oct 2010 00:35:19 +0000</pubDate>
				<category><![CDATA[computer stuff]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Computer buses]]></category>
		<category><![CDATA[Cookbook]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[Electromagnetism]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Embedded systems]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[Page]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[Physical computing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[RAR]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[Serial]]></category>
		<category><![CDATA[Serial communication]]></category>
		<category><![CDATA[Thou]]></category>
		<category><![CDATA[Wiki]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/java-serial-programming</guid>

					<description><![CDATA[After fiddling with using the Serial Monitor on the Arduino IDE for serial communication inputs, I thought it was very useful to set up my own program to achieve the serial communication so that I didn’t have to rely on the Serial Monitor for it.&#160; I came across a serial communication API called JavaComm (more [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>After fiddling with using the Serial Monitor on the Arduino IDE for serial communication inputs, I thought it was very useful to set up my own program to achieve the serial communication so that I didn’t have to rely on the Serial Monitor for it.&nbsp; I came across a serial communication API called JavaComm (more info in the link below).&nbsp; Only its 2.0 version will run on Windows, but there is a 3.0 version that is available for Linux users.&nbsp; The article discusses how to use the library to achieve serial communication, and has a lot of example code to follow.&nbsp; The PDF in the other link below has information on how to use the JavaComm API, and the information there is presented a little better than Wiki pages, since Wiki pages seem to be loaded with technical information that beginners (like me), can’t really follow too well.</p>
<p>Link: <a title="http://en.wikibooks.org/wiki/Serial_Programming/Serial_Java" href="http://en.wikibooks.org/wiki/Serial_Programming/Serial_Java" target="_blank" rel="noopener noreferrer">http://en.wikibooks.org/wiki/Serial_Programming/Serial_Java</a></p>
<p>Link: <a title="http://java.sun.com/developer/Books/javaprogramming/cookbook/11.pdf" href="http://java.sun.com/developer/Books/javaprogramming/cookbook/11.pdf" target="_blank" rel="noopener noreferrer">http://java.sun.com/developer/Books/javaprogramming/cookbook/11.pdf</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2010/10/11/java-serial-programming/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">429</post-id>	</item>
		<item>
		<title>Undervolting the Processor</title>
		<link>https://blog.henrypoon.com/blog/2010/08/16/undervolting-the-processor/</link>
					<comments>https://blog.henrypoon.com/blog/2010/08/16/undervolting-the-processor/#respond</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Mon, 16 Aug 2010 10:41:15 +0000</pubDate>
				<category><![CDATA[computer stuff]]></category>
		<category><![CDATA[9]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[Central processing unit]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[Digital technology]]></category>
		<category><![CDATA[Dynamic voltage scaling]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[Electromagnetism]]></category>
		<category><![CDATA[Energy conservation]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[Health]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Laptop]]></category>
		<category><![CDATA[Lie]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[Over]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[Speed]]></category>
		<category><![CDATA[Vol]]></category>
		<category><![CDATA[Voltage]]></category>
		<category><![CDATA[Z]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/undervolting-the-processor</guid>

					<description><![CDATA[I’ve always been annoyed at my laptop idling at around 80 degrees Celcius (according to RealTemp), which is totally unhealthy for the computer. Today I decided to do something about it.&#160; I looked at how to undervolt my processor.&#160; The process on the laptop is an Intel Core 2 Duo T5250, which runs at 1.5 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I’ve always been annoyed at my laptop idling at around 80 degrees Celcius (according to RealTemp), which is totally unhealthy for the computer. Today I decided to do something about it.&nbsp; I looked at how to undervolt my processor.&nbsp; The process on the laptop is an Intel Core 2 Duo T5250, which runs at 1.5 Ghz.&nbsp; It supports voltages between 0.95 V and 1.25 V.&nbsp; I followed a guide (link at the end) on how to undervolt the processor and in the process I learned quite a bit.</p>
<p>According to the writer of the guide, undervolting simply reduces the voltage applied to the processor.&nbsp; Since all processors have a different voltage requirement, they all use one standardized value which is most likely higher than the amount that the processor itself requires.&nbsp; By reducing this excess voltage, the power dissipated by the processor will decrease, and thus reduce heat and increase battery life.&nbsp; It should also be noted that this process will not impact performance since the performance of a processor is governed by its clock speed.</p>
<p>By doing this, I’ve reduced the temperature of my laptop by about 12-15 degrees Celcius.&nbsp; The laptop’s keyboard and touchpad are no longer warm to the touch and the side heat vent no longer feels like burning.&nbsp; Definitely a major improvement!</p>
<p>Link: <a href="http://forum.notebookreview.com/hardware-components-aftermarket-upgrades/235824-undervolting-guide.html" target="_blank" rel="noopener noreferrer">http://forum.notebookreview.com/hardware-components-aftermarket-upgrades/235824-undervolting-guide.html</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2010/08/16/undervolting-the-processor/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">414</post-id>	</item>
		<item>
		<title>Arduino Microcontroller Tutorial</title>
		<link>https://blog.henrypoon.com/blog/2010/07/23/arduino-microcontroller-tutorial/</link>
					<comments>https://blog.henrypoon.com/blog/2010/07/23/arduino-microcontroller-tutorial/#respond</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Sat, 24 Jul 2010 04:36:23 +0000</pubDate>
				<category><![CDATA[computer stuff]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino Uno]]></category>
		<category><![CDATA[CloudX]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[Electromagnetism]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Embedded systems]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Internet of things]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Language]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[Net]]></category>
		<category><![CDATA[Physical computing]]></category>
		<category><![CDATA[Plug]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Writing]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/arduino-microcontroller-tutorial</guid>

					<description><![CDATA[A beginner’s guide on how to use the Arduino Microcontroller.&#160; It goes through the basics of plugging it into the computer, writing simple microcontroller code and then uploading that code to the Microcontroller.&#160; It also has a small beginner’s tutorial on C, which is the programming language that the Arduino uses. http://www.ladyada.net/learn/arduino/]]></description>
										<content:encoded><![CDATA[<p>A beginner’s guide on how to use the Arduino Microcontroller.&nbsp; It goes through the basics of plugging it into the computer, writing simple microcontroller code and then uploading that code to the Microcontroller.&nbsp; It also has a small beginner’s tutorial on C, which is the programming language that the Arduino uses.</p>
<p><a href="http://www.ladyada.net/learn/arduino/" target="_blank" rel="noopener noreferrer">http://www.ladyada.net/learn/arduino/</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2010/07/23/arduino-microcontroller-tutorial/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">407</post-id>	</item>
		<item>
		<title>Ideal Diodes and Circuit Analysis</title>
		<link>https://blog.henrypoon.com/blog/2010/01/11/ideal-diodes-and-circuit-analysis/</link>
					<comments>https://blog.henrypoon.com/blog/2010/01/11/ideal-diodes-and-circuit-analysis/#respond</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Tue, 12 Jan 2010 07:42:48 +0000</pubDate>
				<category><![CDATA[computer stuff]]></category>
		<category><![CDATA[Assumption]]></category>
		<category><![CDATA[Chan]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Current source]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[Diode]]></category>
		<category><![CDATA[Diode logic]]></category>
		<category><![CDATA[Diodes]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[Electrical engineering]]></category>
		<category><![CDATA[Electromagnetism]]></category>
		<category><![CDATA[Electronic engineering]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Find]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[IME]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Logic families]]></category>
		<category><![CDATA[Logic gate]]></category>
		<category><![CDATA[Measurement]]></category>
		<category><![CDATA[Over]]></category>
		<category><![CDATA[PATH]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[Schottky diode]]></category>
		<category><![CDATA[Thou]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Truth]]></category>
		<category><![CDATA[Vol]]></category>
		<category><![CDATA[Voltage]]></category>
		<category><![CDATA[Z]]></category>
		<category><![CDATA[Zener diode]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/ideal-diodes-and-circuit-analysis</guid>

					<description><![CDATA[So today I started the problem set for my course on electronic circuits and the first item in the curriculum was ideal diodes.&#160; Prior to the lesson I had already known that diodes only allowed the flow of current in one direction and blocked current flow in the other.&#160; What I didn&#8217;t know were the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">So today I started the problem set for my course on electronic circuits and the first item in the curriculum was ideal diodes.&nbsp; Prior to the lesson I had already known that diodes only allowed the flow of current in one direction and blocked current flow in the other.&nbsp; What I didn&#8217;t know were the analysis techniques used for these non-linear components.&nbsp; While I was doing this problem set, it was surprising how much I had forgotten over the past eight months.</p>



<h3 class="wp-block-heading">Concept</h3>



<p class="wp-block-paragraph">I was given the circuit shown below (from Microelectronic Circuits 6th Edition by Sedra and Smith):</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2010/01/diode.png?resize=610%2C257" alt="" class="wp-image-163" width="610" height="257" title="Diode Circuit" srcset="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2010/01/diode.png?w=610&amp;ssl=1 610w, https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2010/01/diode.png?resize=300%2C126&amp;ssl=1 300w" sizes="(max-width: 610px) 100vw, 610px" /></figure>
</div>


<p class="wp-block-paragraph">I was asked for the voltage of the output terminal and the current flowing through the diode.&nbsp; Finding the current was easy, but I didn&#8217;t quite get the voltage.&nbsp; I thought to myself, &#8220;from what two points do I measure the potential difference?&#8221;, because after all, voltage measurements are always taken relative to two points.&nbsp; It took me the longest time before I could just use ANY two points and the measure the voltage.</p>



<p class="wp-block-paragraph">What I figured is that, for part a, since the diode is in forward bias, the diode will act as a short circuit.&nbsp; I then can say that V &#8211; (-5) = 0, since the voltage difference along a short is 0.&nbsp; From there, I can easily determine that V = -5.&nbsp; I can apply that same logic to the other three.</p>



<h3 class="wp-block-heading">Nodal Analysis</h3>



<p class="wp-block-paragraph">I was given the circuit shown below (from Microelectronic Circuits 6th Edition by Sedra and Smith):</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" src="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2010/01/diodenodalanalysis.png?resize=385%2C416" alt="" class="wp-image-166" width="385" height="416" title="Diode Analysis" srcset="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2010/01/diodenodalanalysis.png?w=385&amp;ssl=1 385w, https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2010/01/diodenodalanalysis.png?resize=278%2C300&amp;ssl=1 278w" sizes="auto, (max-width: 385px) 100vw, 385px" /></figure>
</div>


<p class="wp-block-paragraph">From class, I remember the professor saying that since we cannot tell right away which diodes are on and off, we can only make an assumption about the states of the diodes and then apply the usual analytical techniques.&nbsp; In the event that the result is unreasonable, we know that our assumption wrong.&nbsp; I made my assumptions, but afterward, I didn&#8217;t know where to go next.&nbsp; I had forgotten how to analyze these circuits.</p>



<p class="wp-block-paragraph">Later, I realized that I could use nodal analysis.&nbsp; Since I assumed the two diodes in part a were both on, I replaced them with short circuits.&nbsp; I used the intersection right before the current splits as my node.&nbsp; For part a, the current into the node was 3 V/5 kΩ = 0.6 mA.&nbsp; The current leaving was some unknown current for diode 1, and a current for diode 2.&nbsp; I could determine the current of diode 2 by taking the potential difference between the node and the -3 V output and dividing that by the resistance in the path.&nbsp; The result was (0 &#8211; (-3))/ 10 kΩ = 0.3 mA.&nbsp; From the nodal analysis equation 0.6 mA = current from diode 1 + 0.3 mA, the current from diode 1 is 0.3 mA.&nbsp; And as for the voltage V, the potential difference between V and the -3 V output is equal to the voltage across the resistor, (0.3 mA)(10 kΩ) = V &#8211; (-3).&nbsp; Therefore, V = 0.&nbsp; Alternatively, I can use the potential difference between the node and the output, which equals zero, thus yielding the same result.</p>



<h3 class="wp-block-heading">Boolean Logic</h3>



<p class="wp-block-paragraph">The next issue I had was determining the Boolean outputs of a diode logic circuit.&nbsp; Again, the picture below is from Electronic Circuits 6th Edition by Sedra and Smith.</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" src="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2010/01/diodelogic.png?resize=378%2C250" alt="" class="wp-image-164" width="378" height="250" title="Diode Logic" srcset="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2010/01/diodelogic.png?w=378&amp;ssl=1 378w, https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2010/01/diodelogic.png?resize=300%2C198&amp;ssl=1 300w" sizes="auto, (max-width: 378px) 100vw, 378px" /></figure>
</div>


<p class="wp-block-paragraph">The issue I had here is that I did not know current sources have no voltage if there is no current running through them.&nbsp; Looking back that sounded pretty intuitive.&nbsp; Finding all possible combinations of inputs A and B for this logic circuit, we get the truth table below:</p>



<p class="wp-block-paragraph">A B X Y<br>0 0 0 0<br>1 0 0 1<br>0 1 0 1<br>1 1 1 1</p>



<p class="wp-block-paragraph">The outputs of X reveal an AND gate.&nbsp; Setting A or B to a logic 0 in (a) will cause current to flow through that path.&nbsp; The potential difference X &#8211; A or X &#8211; B (depending which one was set to 0), will yield 0, thus the output X will be zero as well.&nbsp; When A and B are both set to logic 1, it causes the diodes to go into reverse bias, and node X will be powered by the current source.</p>



<p class="wp-block-paragraph">The outputs of Y reveal an OR gate.&nbsp; Setting A or B in (b) to have different inputs, either 1,0 or 0,1, will cause the diode to be in forward bias for the input that has the logic 1.&nbsp; For the input with logic 0, the diode will in reverse bias.&nbsp; Since one of the diodes is on, current will flow and output Y will yield a logic 1.&nbsp; In the case of both diodes being off, no current will flow, thus causing output Y to yield logic 0.</p>



<h3 class="wp-block-heading">Other Notes</h3>



<p class="wp-block-paragraph">In the case of multiple parallel diodes in the same direction, if one of them is on, chances are they are all on (provided that the voltage across them is positive).&nbsp; However, there may be a case where one parallel diode will want to flow into the other because of a greater voltage difference.&nbsp; For example, if there were two parallel diodes, one with a 3V input and the other with a 2 V input both going to the same node, current from the 3 V input will want to flow into the diode connected to the 2 V input.&nbsp; This will cause a reverse bias in the diode connected to the 2 V input, thus turning it off.</p>



<p class="wp-block-paragraph">There is also another case where there are parallel diodes with different output voltages.&nbsp; If current is flowing toward it, they will all be on, so they will all be a short circuit.&nbsp; Which path will the current go to?&nbsp; The path with the larger current.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2010/01/11/ideal-diodes-and-circuit-analysis/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">162</post-id>	</item>
	</channel>
</rss>
