<?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>Electrical engineering &#8211; Henry Poon&#039;s Blog</title>
	<atom:link href="https://blog.henrypoon.com/blog/tag/electrical-engineering/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>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>How I Ended Up Mechanical Engineering and Why I Want to Stay</title>
		<link>https://blog.henrypoon.com/blog/2011/09/25/how-i-ended-up-mechanical-engineering-and-why-i-want-to-stay/</link>
					<comments>https://blog.henrypoon.com/blog/2011/09/25/how-i-ended-up-mechanical-engineering-and-why-i-want-to-stay/#comments</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Mon, 26 Sep 2011 01:58:15 +0000</pubDate>
				<category><![CDATA[computer stuff]]></category>
		<category><![CDATA[Brian Wilson]]></category>
		<category><![CDATA[cars]]></category>
		<category><![CDATA[Chan]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[Electrical engineering]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Family]]></category>
		<category><![CDATA[Final]]></category>
		<category><![CDATA[Find]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[German]]></category>
		<category><![CDATA[Germany]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[Hole]]></category>
		<category><![CDATA[Hong Kong]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[IME]]></category>
		<category><![CDATA[In Germany]]></category>
		<category><![CDATA[Inspired By True Events]]></category>
		<category><![CDATA[ise]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Lie]]></category>
		<category><![CDATA[Luann Ryon]]></category>
		<category><![CDATA[Matt]]></category>
		<category><![CDATA[Mech]]></category>
		<category><![CDATA[Mecha]]></category>
		<category><![CDATA[Mechanical engineering]]></category>
		<category><![CDATA[Mind]]></category>
		<category><![CDATA[Net]]></category>
		<category><![CDATA[Physics]]></category>
		<category><![CDATA[Plan]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[rain]]></category>
		<category><![CDATA[Robot]]></category>
		<category><![CDATA[robots]]></category>
		<category><![CDATA[Safe]]></category>
		<category><![CDATA[STR]]></category>
		<category><![CDATA[Student]]></category>
		<category><![CDATA[Team]]></category>
		<category><![CDATA[Thou]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Z]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/how-i-ended-up-mechanical-engineering-and-why-i-want-to-stay</guid>

					<description><![CDATA[Coming out of high school, I was one of those kids that didn’t really know what to do for university.  There were lots of students like that, but I felt like the only one who didn’t even understand the ramifications of the future in my career choice.  I couldn’t even make an informed decision.  Although, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Coming out of high school, I was one of those kids that didn’t really know what to do for university.  There were lots of students like that, but I felt like the only one who didn’t even understand the ramifications of the future in my career choice.  I couldn’t even make an informed decision.  Although, I was smart enough to start researching.  I already knew what subjects in school I was good at: math, physics, chemistry, programming, graphics design, and web development.</p>
<p>The last two were pretty artsy, and I felt that as fun as it was, I never thought I was good enough to actually pursue it as a career (and I still think so).  It could also be because the way I was raised taught me that a career in the fine arts would be useless in the real world.  I’m not saying that it is, but that kind of thought very often prevailed when students made career decisions.  I forgot about pursuing web and graphic design as a career and left it alone as a hobby.  I still do this today and am still quite satisfied with this decision.</p>
<p>When it came to math and the sciences, I did really well in high school (which doesn’t really say much as university showed).  I thought about what I could do with these.  The few career choices that came to mind were careers like: computer programmer, mathematician, physicist, chemist etc.  Surprisingly, the thought of being an engineer never came across my mind.  At the time, I had only heard the word being used, but never knew what it was.</p>
<p>I talked to a few of my friends about what they were going to take in university.  A few of them told me they were going into engineering.  Intrigued, I looked to find out more.  The gist of what I got from the Internet was that “an engineer applies math and physics to design things that makes life better.”  I also found that UBC and SFU both had information sessions for engineering.  I visited the information session at SFU.</p>
<p>There, I got a whole slew of information about engineering.  Each department in the faculty and a lot of student teams set up booths explaining what they were all about.  To entice potential incoming high school students, they displayed a lot of cool things that they designed like helicopters, computer games, and just fancy gadgets.  At that point, I thought to myself, “wouldn’t it be so cool to build something like that?”  I had no idea what kind of work the projects entailed.  I was really focussed on the final product.  I had no concept of what happened in between.  To me, engineering seemed like the first half of that picture at the top.</p>
<p>I also went to the mechatronics information session there and that’s where I first learned about that discipline.  I really liked the idea of blending mechanical engineering, electrical engineering, and computer engineering together.  It seemed like a great combination.  The first thing that popped into my juvenile mind after was, “Cool! I can build robots like the ones people see in movies!” That kind of thought was quite naive, but regardless, it was the thought that dominated at the time.  Such was the thinking of a child.</p>
<p>That pretty much convinced me to go into engineering.  The next question was, “what school should I go to for that?”  I knew I didn’t want to go too far away from home, so I really only had two options: UBC or SFU.  I thought long and hard for a long time and eventually decided on UBC.  At the time, I didn’t know if I made the right choice, but I did have two reasons for doing so.</p>
<p>One was the international reputation that UBC commanded.  I could go to Hong Kong and talk about UBC and people would know what I’m talking about.  Even people in Germany have heard of UBC.  SFU?  Not so much.</p>
<p>UBC also let me live in a home away from home in a way.  I lived in Port Coquitlam and the commute from there to UBC took 1.5 hours each way.  In order to avoid having to deal with that intense time sink every day, I got a spot in residence.  That would teach me to live independently while having support from my parents.  To this day, I am still glad I made that choice.  I really did learn to live independently.  In fact, I wrote this while I was still in Germany, thousands of kilometers away from family.</p>
<p>After making my choice of doing engineering at UBC, I got acquainted with the UBC campus and the residences and so once school started I was prepared.  I was totally taken aback to how university life was different, but I managed to adjust.  In the end, I went through first year with pretty good grades (high enough to be guaranteed entry into whatever specialization I wanted).  Even then, I still had no idea what engineering was all about.  The stuff I learned was all just theory.  If anybody asked me to design anything, I would have been clueless.  I still had not bridged the gap between theory and practicality.</p>
<p>During the summer after first year, it became time to make yet another career-defining choice: What discipline in engineering should I do?  I researched pretty much every single one and I was left with three choices: mechanical engineering, engineering physics, and computer engineering.  Even though I researched them all, I had no idea what they were all about.</p>
<p>I remembered the mechatronics info session I went to a year ago.  The thought of building a robot still floated in my mind.  As naive of a thought as that was, it got me really considering the mechatronics option in mechanical engineering.  I looked on the Mech website and found out about the Mech 2 program.  I really liked the way the curriculum was organized.  I thought it had a great mix of learning theory and actually applying that theory to projects.  I agreed with its goal of breaking down the artificial barriers between subjects.  At that point, my mind was set on doing Mech.  I had already missed the deadline for going straight into mechatronics from first year, but I felt that I could get in after second year.</p>
<p>Second year in mechanical engineering really taught me what it meant to be a mechanical engineer.  I found out that Mech wasn’t just about cars, planes, trains, and boats, and that those things were only a small facet of a discipline with an abundance of possibilities.  I found out that not every single engineer does design – some are in research, product safety, and even maintenance.  Despite those other kinds of engineers, my primary interest still lay in design.  I learned the process of actually going from just an idea to a final product – something that no info session ever taught me.  In fact, some engineering curricula programs don’t teach it either.  They seem to half-expect its students to figure out on their own and know how to apply the theory themselves.  I had really interesting and useful classes that I could really apply in engineering designs.  I could go on forever here, but the important thing is that after knowing all this, I still wanted to stay.  <strong>It’s what I wanted to do</strong>.  I wanted to design and build things.  Every now and then someone will talk about some other profession having a better salary, but that doesn’t matter.  <strong>Interest trumps that</strong>.</p>
<p>Looking back, I found it quite absurd as to how I ended up in mechanical engineering, but it’s what happened.  I started off knowing next to nothing about the profession, and now I can’t think a better option.  I am now in my fourth year of mechanical engineering, and if someone gave me the chance to go back and pick something else, my choice would not change.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2011/09/25/how-i-ended-up-mechanical-engineering-and-why-i-want-to-stay/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1244</post-id>	</item>
		<item>
		<title>Leaving Vancouver</title>
		<link>https://blog.henrypoon.com/blog/2011/01/11/leaving-vancouver/</link>
					<comments>https://blog.henrypoon.com/blog/2011/01/11/leaving-vancouver/#respond</comments>
		
		<dc:creator><![CDATA[hp]]></dc:creator>
		<pubDate>Tue, 11 Jan 2011 22:11:00 +0000</pubDate>
				<category><![CDATA[europe]]></category>
		<category><![CDATA[Academic disciplines]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[Bosch]]></category>
		<category><![CDATA[Chan]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[cooking]]></category>
		<category><![CDATA[D]]></category>
		<category><![CDATA[EAR]]></category>
		<category><![CDATA[Electrical engineering]]></category>
		<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Euro]]></category>
		<category><![CDATA[Europe]]></category>
		<category><![CDATA[Family]]></category>
		<category><![CDATA[German]]></category>
		<category><![CDATA[Germany]]></category>
		<category><![CDATA[Go]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[IME]]></category>
		<category><![CDATA[In Germany]]></category>
		<category><![CDATA[It]]></category>
		<category><![CDATA[Mech]]></category>
		<category><![CDATA[Mecha]]></category>
		<category><![CDATA[Mechanical engineering]]></category>
		<category><![CDATA[Microelectromechanical systems]]></category>
		<category><![CDATA[Microtechnology]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[Robert Bosch]]></category>
		<category><![CDATA[Stuttgart]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Transducers]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Vancouver]]></category>
		<guid isPermaLink="false">http://henrypoon.mooo.com/blog/leaving-vancouver</guid>

					<description><![CDATA[Day 0 Eight months is a long time to be away from family.&#160; It will be my first time going away for so long.&#160; Before this, I had only been living at UBC and with my parents.&#160; This is a big step for me to learn how to be independent.&#160; My parents were always kind [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Day 0</p>



<p class="wp-block-paragraph">Eight months is a long time to be away from family.&nbsp; It will be my first time going away for so long.&nbsp; Before this, I had only been living at UBC and with my parents.&nbsp; This is a big step for me to learn how to be independent.&nbsp; My parents were always kind enough to do all the cooking and chores.&nbsp; I guess I am kind of spoiled.</p>



<p class="wp-block-paragraph">It helps that I am going with a friend of mine from UBC already.&nbsp; Having a companion helps so much more than being alone.</p>



<p class="wp-block-paragraph">During these eight months, I will be working for a company named Robert Bosch, which is based out of Stuttgart, Germany.&nbsp; My work will be on microelectromechanical systems (<a href="http://en.wikipedia.org/wiki/Microelectromechanical_systems" target="_blank" rel="noopener noreferrer">MEMS</a>).&nbsp; At the same time, being in Germany enables me to travel around Europe as much as I can (provided that I can afford it first).&nbsp; I am hoping this will be an extremely positive experience.</p>



<p class="wp-block-paragraph">Some pictures:</p>



<p class="has-text-align-center wp-block-paragraph"><a href="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2011/01/img_00231.jpg" target="_blank" rel="noreferrer noopener"><img data-recalc-dims="1" decoding="async" title="" width="640" height="480" border="0" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0;" src="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2011/01/img_0023_thumb1.jpg?resize=640%2C480" alt=""></a> Flying Above the Clouds</p>



<p class="has-text-align-center wp-block-paragraph"><a href="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2011/01/img_00251.jpg" target="_blank" rel="noreferrer noopener"><img data-recalc-dims="1" loading="lazy" decoding="async" title="" width="640" height="480" border="0" style="display: block; float: none; margin-left: auto; margin-right: auto; border-width: 0;" src="https://i0.wp.com/blog.henrypoon.com/wp-content/uploads/2011/01/img_0025_thumb1.jpg?resize=640%2C480" alt=""></a>My First Stop: Heathrow International Airport</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.henrypoon.com/blog/2011/01/11/leaving-vancouver/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">628</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" loading="lazy" 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="auto, (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>
