<?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>Nanwei&#039;s blahg</title>
	<atom:link href="http://nanweigong.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://nanweigong.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 16 Jul 2012 16:02:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Electronic circuit design and component selection</title>
		<link>http://nanweigong.com/blog/?p=86</link>
		<comments>http://nanweigong.com/blog/?p=86#comments</comments>
		<pubDate>Mon, 16 Apr 2012 22:53:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[component selection]]></category>
		<category><![CDATA[Electronic circuit design]]></category>
		<category><![CDATA[PCB]]></category>
		<category><![CDATA[PCB design]]></category>

		<guid isPermaLink="false">http://nanweigong.com/blog/?p=86</guid>
		<description><![CDATA[Hello class (and world!), Here&#8217;s my lecture slides for  MAS.S63: Design for DIY Manufacturing. Enjoy! I tried very hard to put links to all the images I got from the internet. If I missed any reference, please let me know. Electronic circuit design and &#8230; <a href="http://nanweigong.com/blog/?p=86">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hello class (and world!),<br />
Here&#8217;s my lecture slides for  MAS.S63: Design for DIY Manufacturing. Enjoy!</p>
<p>I tried very hard to put links to all the images I got from the internet. If I missed any reference, please let me know.</p>
<p><a href="http://nanweigong.com/blog/wp-content/uploads/2012/04/Electronic-circuit-design-and-component-selection.pdf">Electronic circuit design and component selection</a></p>
<p>In this lecture, I talked about the following things -<br />
• Test circuit<br />
• Component Selection<br />
• PCB Design<br />
• PCB Manufacturing<br />
• Components Placement</p>
]]></content:encoded>
			<wfw:commentRss>http://nanweigong.com/blog/?feed=rss2&#038;p=86</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steadicam!</title>
		<link>http://nanweigong.com/blog/?p=83</link>
		<comments>http://nanweigong.com/blog/?p=83#comments</comments>
		<pubDate>Fri, 16 Mar 2012 14:19:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nanweigong.com/blog/?p=83</guid>
		<description><![CDATA[After getting my awesome new camera, I decided to build a Steadicam for my future home-made video career. I started with this DIY tutorial - &#160; After a week of getting parts from Home Depot, e-bay and Amazon.com I entered &#8230; <a href="http://nanweigong.com/blog/?p=83">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>After getting my awesome new camera, I decided to build a Steadicam for my future home-made video career.</p>
<p>I started with this DIY tutorial -</p>
<p><span style="text-align:center; display: block;"><a href="http://nanweigong.com/blog/?p=83"><img src="http://img.youtube.com/vi/da4dTGk-G6g/2.jpg" alt="" /></a></span></p>
<p>&nbsp;</p>
<p>After a week of getting parts from Home Depot, e-bay and Amazon.com</p>
<p>I entered this state</p>
<p><span style="text-align:center; display: block;"><a href="http://nanweigong.com/blog/?p=83"><img src="http://img.youtube.com/vi/-lHc6vddorg/2.jpg" alt="" /></a></span></p>
<p>urrg. maybe I will make a video and cry for help soon.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://nanweigong.com/blog/?feed=rss2&#038;p=83</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What&#8217;s Inside the Black Box? Basic Electronics You Need to Know.</title>
		<link>http://nanweigong.com/blog/?p=48</link>
		<comments>http://nanweigong.com/blog/?p=48#comments</comments>
		<pubDate>Thu, 01 Mar 2012 20:52:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[electronics tutorial]]></category>
		<category><![CDATA[filter design]]></category>
		<category><![CDATA[op amps]]></category>
		<category><![CDATA[practical electronics]]></category>
		<category><![CDATA[Sensor technology]]></category>

		<guid isPermaLink="false">http://nanweigong.com/blog/?p=48</guid>
		<description><![CDATA[One of my favorite books of all time is &#8220;Practical Electronics for Inventors&#8220;. I own two copies of this book so I can have one at work and one at home. If you are serious about getting a reference of &#8230; <a href="http://nanweigong.com/blog/?p=48">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>One of my favorite books of all time is &#8220;<a href="http://www.amazon.com/Practical-Electronics-Inventors-Paul-Scherz/dp/0071452818/ref=dp_ob_title_bk">Practical Electronics for Inventors</a>&#8220;. I own two copies of this book so I can have one at work and one at home. If you are serious about getting a reference of almost everything you need to know for your own electronics projects, get the book. If you only want to read tutorials and learn some basic concepts about electronics, sensors and  filter design, read on. Below are list of lectures I gave in the past which includes almost everything you need to know about *basic* electronics in my language (which does not involve big words that I can not spell). I&#8217;ll write about some of the topics individually later. But for now, I will put my slides here.</p>
<p><strong>Lecture 1 &#8211; Electronic Components  <a href="http://nanweigong.com/blog/wp-content/uploads/2012/03/MAS_836_recitation1_2011.pdf">[pdf]<br />
</a></strong>Resistors– Ohm’s Law– Resistor in parallel / series– Voltage divider– Wheatstone bridge• Capacitors– Gauss’s Law– Capacitor in parallel / series<br />
• Inductors<br />
• Diodes– Zener diodes<br />
• Transistors<br />
• Op Amps– Ideal model– Comparator / Schmidt trigger– Voltage follower– Non-inverting   Amp / Inverting Amp– Summing / Differential Amplifier</p>
<p><strong>Lecture 2 &#8211; Basic Filter Design  <a href="http://nanweigong.com/blog/wp-content/uploads/2012/03/MAS_836_recitation2-2011.pdf">[pdf]<br />
</a></strong>• Capacitor (Inductor)<br />
-RC circuit<br />
-Time constant<br />
• Complex numbers -complex plane…<br />
• Decibels (dB) -cut off frequency -half power point -F3dB<br />
•  Filters- Low-pass, high-pass -MFB band-pass filter</p>
<p><strong>Lecture 3 &#8211; Sensors and Sensor Design <a href="http://nanweigong.com/blog/wp-content/uploads/2012/03/sensorIntro.pdf">[pdf]<br />
</a></strong>• What is a sensor<br />
• How to read a datasheet<br />
• Example signal conditioning<br />
• Sensing on a surface – Pressure and Force<br />
• Remote Sensing – Detecting “the Field”<br />
• Multi-target or Multi-sensor?</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://nanweigong.com/blog/?feed=rss2&#038;p=48</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>.NET Gadgeteer beginner’s guide</title>
		<link>http://nanweigong.com/blog/?p=28</link>
		<comments>http://nanweigong.com/blog/?p=28#comments</comments>
		<pubDate>Mon, 27 Feb 2012 00:21:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[.NET Gadgeteer]]></category>
		<category><![CDATA[GHI Electronics]]></category>
		<category><![CDATA[open source hardware]]></category>
		<category><![CDATA[Seeed]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://nanweigong.com/blog/?p=28</guid>
		<description><![CDATA[This article is for people who have never used .NET Micro Framework and Visual Studio or building things with .NET Gadgeteer before like me. I documented each step after receiving my kit and everything I did to start a project &#8230; <a href="http://nanweigong.com/blog/?p=28">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>This article is for people who have never used .NET Micro Framework and Visual Studio or building things with .NET Gadgeteer before like me. I documented each step after receiving my kit and everything I did to start a project and have a simple program set up and running (the whole process took about 1.5 hours with the help of Simon Olberding).</p>
<p><strong>Background</strong></p>
<p>Before we start, a quick overview about what this is about- <a href="http://www.netmf.com/gadgeteer/  ">.NET Gadgeteer</a> is a new open source platform based on the use of the .NET Micro Framework. What this really means for me is that I can write higher level code (C#) for a complex electronics project with the .NET framework which supports a real-time debugging environment. I build my own circuit board and chose my favorite microprocessors most of the time in order to adopt the circuit for specific applications. However, Gadgeteer comes with modular peripherals which allow you to plug in and not to worry about the physical connection, power, and modularity in the early stage of your development. It also comes with a powerful ARM processor (on <a href="http://www.ghielectronics.com/catalog/product/128">EMX</a> module which contains ARM Processor, Flash, RAM, Ethernet PHY…etc),   which reminds me of the <a href=" beagleboard.org ">Begalboard </a>which is a hardware platform based on TI ARM-A8 processors.</p>
<p>.NET Gadgeteer provides a nice hardware interfacing platform for electronics hobbyist to build projects that requires more computing power with very little knowledge requirement on the hardware end. The development environment allows you to drag and drop components in a graphic user interface manner and automatically includes the libraries for you.</p>
<p>My step by step tutorial is for people who just received their starter kit and can not wait to plug everything in and make something blink. I found it hard to find a tutorial simply lists all the things one needs to know.</p>
<p>Now, I would like to talk about our experience in setting up a FEZ Spider Starter Kit. .</p>
<p><a href="http://www.i-programmer.info/news/91-hardware/2819-net-gadgeteer-an-alternative-to-arduino.html"><img class="alignright size-full wp-image-30" title="gt0" src="http://nanweigong.com/blog/wp-content/uploads/2012/02/gt0.jpg" alt="" width="600" height="561" /></a></p>
<p><strong>Setup – software<br />
</strong>Things to install – You can find everything from this link &#8211; <a href="http://www.tinyclr.com/support">http://www.tinyclr.com/support</a></p>
<p><strong>System preparation<br />
</strong>1.  <a href="http://www.microsoft.com/express/Downloads/#2010-Visual-CS" target="_blank">Microsoft Visual C# Express 2010</a><br />
2.  <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=cff5a7b7-c21c-4127-ac65-5516384da3a0" target="_blank">Microsoft .NET Micro Framework 4.1 SDK</a><br />
3.  <a href="http://www.ghielectronics.com/downloads/NETMF/GHI%20NETMF%20v4.1%20and%20.NET%20Gadgeteer%20Package.zip" target="_blank">GHI NETMF v4.1 and .NET Gadgeteer Package</a> Feb. 24, 2012</p>
<p>This installs all the necessary SDKs and components.<br />
First Project Settings    <a href="http://wiki.tinyclr.com/index.php?title=First_Project">http://wiki.tinyclr.com/index.php?title=First_Project</a></p>
<p>Beginners Guide to C# and the.NET Micro Framework<br />
<a href="http://www.ghielectronics.com/downloads/FEZ/Beginners%20guide%20to%20NETMF.pdf">http://www.ghielectronics.com/downloads/FEZ/Beginners%20guide%20to%20NETMF.pdf</a></p>
<p><strong>Setup- Hardware</strong></p>
<p>The mainboard (in our case, a FEZ spider 1.0 mainboard) comes with 14 sockets marked with letters.<a href="http://www.ghielectronics.com/catalog/product/269"><img class="alignright size-full wp-image-38" title="spider" src="http://nanweigong.com/blog/wp-content/uploads/2012/02/spider.jpg" alt="" width="791" height="554" /></a></p>
<p>The first application we tried to setup is as follows</p>
<ol>
<li>A button that can trigger an event &#8212; input device</li>
<li>Being able to draw something on the touchscreen &#8212; output device</li>
<li>Reading signals from Pulse Oximeter and temperature/humidity sensors &#8212; events</li>
</ol>
<p>Sockets mapping – First, what you need is the socket mapping diagram -</p>
<p><a href="http://nanweigong.com/blog/wp-content/uploads/2012/02/sockets.jpg"><img class="alignright size-full wp-image-37" title="sockets" src="http://nanweigong.com/blog/wp-content/uploads/2012/02/sockets.jpg" alt="" width="843" height="759" /></a> The pulse oximeter transmits signals through UART (indicated by the “U” on the sensor board), the button and temperature/ humidity sensor use GPIO pins (indicated by X: 3 GPIO and Y: 5 GPIO) . The LCD is connected with “R”, “G”, “B” and “T” (touchscreen).</p>
<p>The wiring is as the following image.</p>
<p><a href="http://nanweigong.com/blog/wp-content/uploads/2012/02/gt5.jpg"><img class="alignright size-full wp-image-35" title="gt5" src="http://nanweigong.com/blog/wp-content/uploads/2012/02/gt5.jpg" alt="" /></a></p>
<p>You also need the power board which connects to “D” – USB device. It’s pretty straightforward once you figure out the letter matching scheme.</p>
<p>Before you continue, make sure when you plug in, you finished the “First Project Settings    <a href="http://wiki.tinyclr.com/index.php?title=First_Project">http://wiki.tinyclr.com/index.php?title=First_Project</a> “ and had successfully pinged the device and set up the project.</p>
<p>&nbsp;</p>
<p>Now, we are ready for some action.</p>
<p>First, start visual C#,</p>
<p>File → New Project&#8230; select Gadgeteer and then select “.NET Gadgeteer  Application -&gt; ok</p>
<p>Then you should first see the Program.gadgeteer page.</p>
<p><a href="http://nanweigong.com/blog/wp-content/uploads/2012/02/gt3.jpg"><img class="alignright size-large wp-image-33" title="gt3" src="http://nanweigong.com/blog/wp-content/uploads/2012/02/gt3-1024x614.jpg" alt="" width="584" height="350" /></a></p>
<div>
<p>Click the Toolbox on the left side and select your mainboards, GHI Electronics and Seeed sensors. Link things together based on the Letter matching scheme. Once you are done, you will notice that a Program.generated.cs file was generated and all the modules are included and initiated in this file and you are good to go!</p>
<p>Now, switch to Program.cs and start programming your first .NET Gadgeteer project!</p>
<p>The best examples that I found, besides from the example projects,are from the msdn <a href="http://blogs.msdn.com/b/net_gadgeteer/archive/2011/12/18/how-to-build-a-flipbook-maker-part-1.aspx">blog </a>written by <a href="http://blogs.msdn.com/359923/ProfileUrlRedirect.ashx">Kerry Hammil</a>. The example projects can be found under ../Microsoft .NET Micro Framework 4.1/Samples/</p>
<p>&nbsp;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://nanweigong.com/blog/?feed=rss2&#038;p=28</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to read a resistor&#8217;s value&#8230;</title>
		<link>http://nanweigong.com/blog/?p=12</link>
		<comments>http://nanweigong.com/blog/?p=12#comments</comments>
		<pubDate>Fri, 24 Feb 2012 00:10:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://nanweigong.com/blog/?p=12</guid>
		<description><![CDATA[Okay, I know it&#8217;s really basic and you probably have an app on your iPhone for it. But I still cannot help to share the great discovery I made last week. Before that, let&#8217;s cover the bases. There are color &#8230; <a href="http://nanweigong.com/blog/?p=12">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Okay, I know it&#8217;s really basic and you probably have an app on your iPhone for it.</p>
<p>But I still cannot help to share the great discovery I made last week.<br />
Before that, let&#8217;s cover the bases. There are color bands on a through hole resistor and the numbers are arranged in the same way as the color of the rainbows (sort of).</p>
<p>Black Brown <strong><em>Red Orange Yellow Green Blue</em> Violet</strong> Grey White &#8230;</p>
<p>http://en.wikipedia.org/wiki/Electronic_color_code</p>
<p><a href="http://nanweigong.com/blog/wp-content/uploads/2012/02/Screen-shot-2012-02-23-at-6.37.34-PM.png"><img class="alignnone size-large wp-image-14" title="Screen shot 2012-02-23 at 6.37.34 PM" src="http://nanweigong.com/blog/wp-content/uploads/2012/02/Screen-shot-2012-02-23-at-6.37.34-PM-1024x754.png" alt="" width="584" height="430" /></a></p>
<p>I always thought those numbers were randomly assigned just because rainbows are pretty until last week.</p>
<p>Long story short, Nan and I blew up a light dimmer while trying to reverse engineer the circuit. After the magic smoke, we tried to figure out exactly which resistor was blown by reading the value of the apparently troubled resistor&#8230;</p>
<p>First, we measured it just for fun&#8230; and of course, &#8220;beeeeep&#8221;, said the multimeter (which means it&#8217;s a short circuit, zero ohm in multimeter language).</p>
<p>Then, naturally, I tried to read the value to show off the fact that I remember the color of the rainbows.</p>
<p>&#8220;Okay, it is black-black-black-black&#8230;.&#8221;</p>
<p>&#8220;hmmmmm???&#8221;</p>
<p>&#8220;ohhhhhh&#8230;.&#8221;</p>
<p><a href="http://nanweigong.com/blog/wp-content/uploads/2012/02/Screen-shot-2012-02-23-at-5.36.49-PM.png"><img class="alignnone size-full wp-image-13" title="Screen shot 2012-02-23 at 5.36.49 PM" src="http://nanweigong.com/blog/wp-content/uploads/2012/02/Screen-shot-2012-02-23-at-5.36.49-PM.png" alt="" width="554" height="358" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://nanweigong.com/blog/?feed=rss2&#038;p=12</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://nanweigong.com/blog/?p=1</link>
		<comments>http://nanweigong.com/blog/?p=1#comments</comments>
		<pubDate>Mon, 20 Feb 2012 21:05:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nanweigong.com/blog/?p=1</guid>
		<description><![CDATA[Hello internet! It&#8217;s nice to finally meet you!]]></description>
				<content:encoded><![CDATA[<p>Hello internet! It&#8217;s nice to finally meet you!</p>
]]></content:encoded>
			<wfw:commentRss>http://nanweigong.com/blog/?feed=rss2&#038;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
