<?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>Reza's Rants</title>
	<atom:link href="http://reza.net/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://reza.net/wordpress</link>
	<description>Nothing for you to look at, please move along..</description>
	<lastBuildDate>Mon, 27 Feb 2012 19:16:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Thermostat Replacement For Kegorator</title>
		<link>http://reza.net/wordpress/?p=288</link>
		<comments>http://reza.net/wordpress/?p=288#comments</comments>
		<pubDate>Mon, 27 Feb 2012 00:29:16 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[beer]]></category>
		<category><![CDATA[lauchpad]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=288</guid>
		<description><![CDATA[I had experimented for some time with a peltier based heat exchanger to cool beer from my kegs (home brewing), but after a few iterations, I felt the system would not be as compact as I hoped, and the peltier was eating up too much current (80W).  Here’s the unit  &#8211; heatsink, peltier, and big [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-image: initial;" title="IMG_1226" src="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1226_thumb.jpg" border="0" alt="IMG_1226" width="184" height="244" /></p>
<p>I had experimented for some time with a peltier based heat exchanger to cool beer from my kegs (home brewing), but after a few iterations, I felt the system would not be as compact as I hoped, and the peltier was eating up too much current (80W).  Here’s the unit  &#8211; heatsink, peltier, and big block of metal that would be placed in a water bath.  I have 16ft of stainless steel tubing that wraps around the block for the beer to flow through.  I had the unit in a bucket surrounded by expanding foam for insulation.   Ultimately, it was ugly.</p>
<p>I finally gave in, and decided to buy a dedicated fridge for the kegs instead.  I found a neighbor selling one of the right size across the street (very convenient).  He was the nth owner, and it was a commercial unit with a nice stainless steel exterior.  However, after getting it home, it seemed apparent that the thermostat was useless.  It would turn on randomly and off randomly.  I figured I could fix this, but my goal was to spend no money.  Also, the thermostat has this meal tube that goes into the wall of the fridge – and it seems permanently attached, so I wasn’t sure how feasible it would be to replace the thermostat if I had to take the entire thing apart to replace that tube.</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/launchpad01.jpg"><img class="alignleft" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-image: initial; border: 0px initial initial;" title="launchpad01" src="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/launchpad01_thumb.jpg" border="0" alt="launchpad01" width="244" height="184" /></a></p>
<p>After looking through my pile of PCBs that I could repurpose, I came across my Texas Instruments LauchPad that I picked up at ESC.</p>
<p>The thing that makes this unit amazing as compared to the arduino is that it costs $4.30.  The thing that sucks is that the target MCU is a POS and really didn’t have enough ram/flash for my liking.  However, after looking at the schematic, the IC at the top left of the picture caught my eye.  It’s a MSP430F1612, and it is used as a programming interface for the target IC.  Unlike the target MCU, it’s very nice and had all the features I wanted.  It’s powered off USB (5V) but has a 3.6V regulator onboard.  This surprised me a bit as this is the max voltage the MSP430s run at, with 3.3V being more logical, and what I would have expected.  Additionally, the header exposed 4 of the I/O lines which are used to interface (program) the target MCU.  This was the minimum I needed to implement a temperature sensor, a display, and to control a relay to switch on the refrigerator compressor.</p>
<p>I love how appliances have wiring schematics on them these days (though I had to remove the condenser coils to access it).</p>
<p><img class="alignright" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-image: initial; border: 0px initial initial;" title="IMG_1208" src="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1208_thumb.jpg" border="0" alt="IMG_1208" width="184" height="244" /></p>
<p>Both neutral and line voltage (120VAC) are present at the location of the thermostat, and a simple relay is sufficient to drive it.   Oddly enough, the lamp switch was present but unused in the fridge (so it was always on – was probably a design mistake as the door never made contact with the lamp switch anyhow).   Not surprisingly, the bulb was burnt out.</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1209.jpg"><img class="alignleft" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-image: initial; border: 0px initial initial;" title="IMG_1209" src="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1209_thumb.jpg" border="0" alt="IMG_1209" width="184" height="244" /></a></p>
<p>The relay replaced the thermostat (pins 3,4 in the photo).  And a wall adaptor for my old cell phone which presented a 5V USB interface was used to provide power.  It was connected to the BLU wire and the WHT wires in place of the lamp.</p>
<p><img class="alignright" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-image: initial; margin: 0px; border: 0px initial initial;" title="image" src="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/image_thumb.png" border="0" alt="image" width="244" height="134" />The schematic for the lauchpad is provided by TI, which was nice.  The header I interfaced was J3. If you look, you’ll find that pins 5.1, 5.2, 4.7, and 4.2 are all connected through R5 to SBWTDIO.  Setting all but one pin as an input, and using the output pin worked fine.  Additinally, pin 5.3 connectes to SBWTCK (with a pulldown resistor which we can ignore if we are driving the pin).  Finally, we have the a serial interface on pins 3.7 and 3.6.</p>
<p>The header on the top left (you need to add pins) provide the programming header for the MSP430F1612.  There might be some way to program it from the USB port, but as I had the programmer, it was fairly easy.</p>
<p>The interface I  built was super simple, but looked ugly as it was a mass of wires handing all over.  Here’s the schematic.</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/photo-001.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="photo-001" src="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/photo-001_thumb.jpg" border="0" alt="photo-001" width="244" height="184" /></a></p>
<p>Starting from the top, an IO is used to switch a darlington which turns on the relay.  Again, I just used what I had lying around, and it was able to switch the relay at 2V, which was good.</p>
<p>I have a number of <a href="http://www.sensirion.com/en/01_humidity_sensors/06_humidity_sensor_sht75.htm">SHT75</a> temperature and humidity sensors lying around that require a clock and data line to interface.  Additionally, the data line requires a pullup resistor, but the MSP430F1612 doesn’t have any so an external one was added.  They have some horrible example code that I ported over and after a few tweaks I was able to get it to work.  One tricky bit is that the data line should never be driven high – when the code wants it to go high, set it as an input so that the pullup resistor pulls it up.  For some of the messaging, you need to watch that line and see when the SHT75 module pulls it low.</p>
<p>Finally, I got lucky and had an LCD with the <a href="http://www.sparkfun.com/products/258">SerLCD</a> module from sparkfun mounted.     It lets you use a serial line to drive a serial interface, dropping the I/O line requirements from something like 8 to 1.</p>
<p>I recently got an <a href="http://blog.ultimaker.com/">Ultimaker</a> which is cool, but the documentation sucks sucks sucks sucks for a commercial product.  I need to spend the rest of the day today taking apart the print head and which is encased in melted plastic to add some teflon tape to prevent the plastic from oozing everywhere.   In any case, I was able to print out an enclosure for the device, and for the most part, it works fine.  Not having any additional input lines, I have no way to adjust the temperature setpoint without pulling the board out and reprogramming it.  It’s currently set to turn on at 45 deg F and off at 40 deg F, which seems a reasonable temperature range for beer.  Here are some photos of the unit operating.</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1223.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="IMG_1223" src="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1223_thumb.jpg" border="0" alt="IMG_1223" width="244" height="184" /></a></p>
<p>The temperature probe is taped to the back of the fridge.</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1224.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="IMG_1224" src="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1224_thumb.jpg" border="0" alt="IMG_1224" width="244" height="184" /></a></p>
<p>Yes, humidity is pointless in this application, but I had enough space on the LCD.</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1225.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="IMG_1225" src="http://reza.net/wordpress/wp-content/ftp/Thermostat-Replacement-For-Kegorator_DAFB/IMG_1225_thumb.jpg" border="0" alt="IMG_1225" width="184" height="244" /></a></p>
<p>It’s still a mess, and I would like to remake the enclosure so it’s a bit nicer and it fully hides all the wires.  Feel free to contact me if you want a copy of the firmware.</p>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=288</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Intents, registerReceiver, BroadcastReceiver, updating GUI elements from threads</title>
		<link>http://reza.net/wordpress/?p=283</link>
		<comments>http://reza.net/wordpress/?p=283#comments</comments>
		<pubDate>Fri, 12 Aug 2011 12:27:05 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=283</guid>
		<description><![CDATA[First, let me make one thing clear.&#160; I have Java.&#160; I think that there is something wrong with the way people who code java think.&#160; It’s like they have to make things as complicated as possible, as verbose as possible, and as convoluted as possible for no reason. I had a simple goal, and that [...]]]></description>
			<content:encoded><![CDATA[<p>First, let me make one thing clear.&#160; I have Java.&#160; I think that there is something wrong with the way people who code java think.&#160; It’s like they have to make things as complicated as possible, as verbose as possible, and as convoluted as possible for no reason.</p>
<p>I had a simple goal, and that was to have a background thread receive some data and update a text field in an “Activity”.&#160; There were plenty of webpages that attempted to describe how to do it, referring to explicit intents, to modifying the Manifest.xml file, and all sorts of other jargon – but no clear examples.&#160; I came across dozens of posts from people trying to do the same thing I wanted to do, but no answers.&#160; I spent about 4 hours trying to piece together a method that worked.&#160; </p>
<p>Hopefully, this simple explanation will help someone..</p>
<p>If you want to send data from one thread to another you can do it through a messaging protocol, and encapsulate data in that message if needed.&#160; One big complication is that the messaging can occur across applications, it can be directed at a specific target if you know it exists, or it can be ambiguous and you figure something will deal with it.&#160; The messages can also invoke an application (“Activity”) to do something.</p>
<p>What I’m going to describe is how to send a message from one part of an application to another – with the typical goal being to send data to the active “activity” to display data or somesuch.</p>
<p>&#160;</p>
<p>1. In the activity where you want to receive messages, you need to create a class within the activity class (I have no idea what the java developers were smoking to come with this idea) that extends <strong>BroadcastReceiver()</strong>.&#160; You then want to override <strong>onReceive()</strong> to contain the business logic.</p>
<p>&#160;</p>
<blockquote><p>public class ActivityClass extends Activity {</p>
<p>&#160; private BroadcastReceiver mReceiver = new BroadcastReceiver() {      <br />&#160;&#160;&#160; @Override       <br />&#160;&#160;&#160; public void onReceive(Context context, Intent intent) {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; String action = intent.getAction();       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (action.equals(&quot;net.reza.SET_BATT&quot;)) {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; setBattery(intent.getIntExtra(&quot;value&quot;, 0));       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160; }       <br />&#160; };</p>
<p>&#160; /* rest of your code */</p>
<p>}</p>
</blockquote>
<p>In this example, I’m creating&#160; mReceiver which is a BroadcastReceiver but I am modifying the <strong>onReceive()</strong> method.&#160; In the method, I’m checking to see if the activity string is equal to “net.reza.SET_BATT”.&#160; This can be anything.&#160; There are some standards that are meaningless.&#160; Use whatever you want.&#160; I think it’s called an intent or intent-filter.&#160; I’m going to call it a ‘tag’ for clarity.</p>
<p>2. You need to register that mReceiver is capable of handing the “net.reza.SET_BATT” tag.&#160; There are a bunch of places to do this in your code.&#160; I stuck it in the <strong>onCreate() </strong>method for the Activity class.</p>
<p>&#160;</p>
<blockquote><p>@Override</p>
<p>public void onCreate(Bundle savedInstanceState) {      <br />&#160; IntentFilter ifilt = new IntentFilter(&quot;net.reza.SET_BATT&quot;);       <br />&#160; registerReceiver(mReceiver, ifilt);</p>
<p>&#160; /* more code */</p>
</blockquote>
<p>&#160;</p>
<p>A lot of the documentation said you need to modify the Manifest.xml file and stick it in there, but that was a mess and not obvious how to make it work.&#160; Defining it this way is /much/ easier, and in my mind, much more manageable.&#160; Why do java people love XML so much?&#160; </p>
<p>And I have no idea why they call these tags “intent-filters” but they do.&#160; Based on my code, you don’t need to bother with the action.equals() line, as the only time it will be called is if that tag is registered with <strong>registerReceiver(),</strong> and I’ve only registered that one tag.&#160;&#160; But if you register multiple tags with the same BroadcastReceiver then you should check to see which one is being called.</p>
<p>&#160;</p>
<p>3. You need to invoke that tag.&#160; This can be done anywhere, as far as I know.&#160; Even from another application.&#160; In my case, it’s from a background thread that monitors the battery voltage by polling a device over bluetooth.&#160; </p>
<blockquote><p>public class BatteryMonitor extends Thread{ </p>
<p>Context context;</p>
<p>public BatteryMonitor(Context y) {</p>
<p>&#160; this.context = y;</p>
<p>}</p>
<p>&#160;</p>
<p>public void run() {</p>
<p>&#160; /* some code */</p>
<p>&#160; Intent i = new Intent(&quot;net.reza.SET_BATT&quot;);      <br />&#160; i.putExtra(&quot;value&quot;, bat);       <br />&#160; this.context.sendBroadcast(i);</p>
<p>&#160; /* more code */</p>
<p>}      </p>
</blockquote>
<p>&#160;</p>
<p>Couple things here.&#160; First, I still have no clue what a context is, who owns it, and how to use it properly.&#160;&#160; I kept trying different things till it worked.&#160; I passed the output of <strong>getBaseContext()</strong> to the constructor of the background thread, and that seemed to work.&#160; I think some other options are <strong>getContext()</strong> and <strong>getApplicationContext()</strong>, so try those too.&#160; Please post a comment if you know what’s going on.&#160;&#160; </p>
<p>So we create an Intent with the same tag.&#160; We can then stick extra data in there – in my case, I add an <em>int.</em> And then you call the <strong>sendBroadcast()</strong> method from the context object to make it go.&#160; </p>
<p>&#160;</p>
<p>I now need to go write some more code in C to cleanse my mind from all this gibberish… </p>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=283</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Skunkworks Project&#8211;Modern Art PCB</title>
		<link>http://reza.net/wordpress/?p=282</link>
		<comments>http://reza.net/wordpress/?p=282#comments</comments>
		<pubDate>Sun, 10 Jul 2011 11:52:53 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=282</guid>
		<description><![CDATA[Been busy the past month with a secret project.&#160; Still in stealth mode, but the layout looked like modern art, so I thought I would share… &#160;]]></description>
			<content:encoded><![CDATA[<p>Been busy the past month with a secret project.&#160; Still in stealth mode, but the layout looked like modern art, so I thought I would share…</p>
<p>&#160;</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Skunkworks-Project_433D/image.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://reza.net/wordpress/wp-content/ftp/Skunkworks-Project_433D/image_thumb.png" width="542" height="309" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=282</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bluetooth enabled multifrequency bioimpedance spectrometer for hydration monitoring.</title>
		<link>http://reza.net/wordpress/?p=281</link>
		<comments>http://reza.net/wordpress/?p=281#comments</comments>
		<pubDate>Sun, 05 Jun 2011 22:00:45 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=281</guid>
		<description><![CDATA[I finally had a chance to assemble this PCB.&#160; Alas, I ordered an SO8 package for a part accidentally and had to stick it on a daughterboard.&#160; Will replace with the right part.&#160; Designed to scan complex bioimpedance from 1k-100kHz and communicate with a handheld tablet over bluetooth.&#160; I’ve moved away from the CSR ICs [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://reza.net/wordpress/wp-content/ftp/Bluetooth-enabled-multifrequency-bioimp_D22A/P1040489.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="P1040489" border="0" alt="P1040489" src="http://reza.net/wordpress/wp-content/ftp/Bluetooth-enabled-multifrequency-bioimp_D22A/P1040489_thumb.jpg" width="385" height="218" /></a></p>
<p>I finally had a chance to assemble this PCB.&#160; Alas, I ordered an SO8 package for a part accidentally and had to stick it on a daughterboard.&#160; Will replace with the right part.&#160; Designed to scan complex bioimpedance from 1k-100kHz and communicate with a handheld tablet over bluetooth.&#160; I’ve moved away from the CSR ICs to using these packages as the BlueCore 3 that we were using became more expensive than these modules, and the modules are a lot simpler to solder.&#160; I’m planning on moving to the BlueCore5 for future designs – can get power consumption down to &lt;10mA (if you believe the datasheet) at 115kbps.</p>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=281</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mobile Health 2011, ESC 2011, HCI-DC 2011 all in a week</title>
		<link>http://reza.net/wordpress/?p=278</link>
		<comments>http://reza.net/wordpress/?p=278#comments</comments>
		<pubDate>Wed, 04 May 2011 18:35:15 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=278</guid>
		<description><![CDATA[Its been a busy week for me, I was in DC last week for a conference, san jose yesterday for an embedded systems conference and now in stanford for the mobile health conference. Last night I ended up at a super-geek dinner which was cool though the venue was not optimal. I got a chance [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a busy week for me, I was in DC last week for a conference, san jose yesterday for an embedded systems conference and now in stanford for the mobile health conference.   Last night I ended up at a super-geek dinner which was cool though the venue was not optimal.  I got a chance to meet Grant Imahara from the mythbusters fame, the founder of iFixit, and some other geek VIPs.  It was more of a show and tell with all sorts of gadetry in the middle of a restaurant, including a rc helicopter flight that almost srt off the sprinklers.  </p>
<p>They just started the talks at the MH2011 conf.  So far I think that there are a ton of interesting people here, but I&#8217;m a bit dissapointed with the first 3 talks.  Ill be posting some more as the conference progresses.</p>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=278</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bioimpedance Spectroscopy Boards Arrived</title>
		<link>http://reza.net/wordpress/?p=276</link>
		<comments>http://reza.net/wordpress/?p=276#comments</comments>
		<pubDate>Tue, 03 May 2011 06:44:50 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=276</guid>
		<description><![CDATA[I had some PCBs made up to do some bioimpedance spectroscopy for edma detection through the cole-cole model. One set has an MCU &#38; space for a bluetooth module meant to communicate with an android tablet.&#160; The other is a stand-alone module that I’m going to try and interface directly with a microtouch avr touchscreen. [...]]]></description>
			<content:encoded><![CDATA[<p>I had some PCBs made up to do some bioimpedance spectroscopy for edma detection through the <a href="http://en.wikipedia.org/wiki/Cole%E2%80%93Cole_equation">cole-cole</a> <a href="http://www.rehab.research.va.gov/jour/07/44/4/sanders.html">model</a>. One set has an MCU &amp; space for a bluetooth module meant to communicate with an android tablet.&#160; The other is a stand-alone module that I’m going to try and interface directly with a <a href="http://www.ladyada.net/products/microtouch/#introduction">microtouch</a> avr touchscreen.</p>
<p>&#160;</p>
<p>&#160; <a href="http://reza.net/wordpress/wp-content/ftp/BioZ-Boards-Arrived_14BC4/bioZ-pcb-001.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="bioZ pcb 001" border="0" alt="bioZ pcb 001" src="http://reza.net/wordpress/wp-content/ftp/BioZ-Boards-Arrived_14BC4/bioZ-pcb-001_thumb.jpg" width="307" height="124" /></a></p>
<p>&#160;</p>
<p>These will go from 1kHz to 100kHz.&#160; If you notice the big PCB, I made the VIAs have a teardrop shape – they look cool.&#160; It’s based on my design for a fixed 50kHz device for <a href="http://www.bem.fi/book/25/25.htm">impedance plethysmography</a> that I use to measure respiration.&#160; Fun stuff! </p>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=276</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random Slow-Carb Recipes</title>
		<link>http://reza.net/wordpress/?p=275</link>
		<comments>http://reza.net/wordpress/?p=275#comments</comments>
		<pubDate>Wed, 09 Feb 2011 02:34:46 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[diet]]></category>
		<category><![CDATA[slow-carb]]></category>
		<category><![CDATA[chicken]]></category>
		<category><![CDATA[lentils]]></category>
		<category><![CDATA[recipe]]></category>
		<category><![CDATA[slow carb]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=275</guid>
		<description><![CDATA[This slow-carb diet has forced me to cook a lot more, and I’ve enjoyed the process.&#160; I thought I would share a couple of the dishes that I enjoy – and that are a lot more interesting than the ones that Tim (ala 4-Hour Body) recommends.&#160; I will not present this in the typical recipe [...]]]></description>
			<content:encoded><![CDATA[<p>This slow-carb diet has forced me to cook a lot more, and I’ve enjoyed the process.&#160; I thought I would share a couple of the dishes that I enjoy – and that are a lot more interesting than the ones that Tim (ala 4-Hour Body) recommends.&#160; I will not present this in the typical recipe format, rather, it’s more of a technique you can apply.</p>
<p>First, great simple way to prepare chicken/pork.&#160; This cooks fast, gives juicy results, and tastes great.&#160; First, the marinade – super simple – super fast.&#160; Sriracha Hot sauce &amp; Soy sauce.&#160; I bought this organic kikoman soy sauce and really like it.</p>
<p>&#160;</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040408.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="P1040408" border="0" alt="P1040408" src="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040408_thumb.jpg" width="159" height="213" /></a></p>
<p>&#160;</p>
<p>Add a bunch (I use about equal parts, but adjust to suite your taste) to meat (I like using the costco frozen tenderloins).</p>
<p>&#160;</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040407.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="P1040407" border="0" alt="P1040407" src="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040407_thumb.jpg" width="244" height="178" /></a></p>
<p>&#160;</p>
<p>Just a few minute seems to work, because we will then fry it in some oil.&#160; Doesn’t have to cover the meat.&#160; The meat absorbs none of the oil, cooks fast, and is super juicy.&#160; I also use the same method for pork cutlets.&#160; I sometimes add an egg yolk if I want it to have more of a battered feel, though it’s not needed.</p>
<p>&#160;</p>
<p>I have also decided I can’t stand canned beans anymore.&#160; Ugh.&#160; I’ve tried my hand at lentils (someone posted a recipe that sounded great and involved bacon, but it didn’t come out all that great).&#160; So I hit up a local Indian grocery store and picked up…</p>
<p>&#160;</p>
<p>&#160;&#160; <a href="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040406.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="P1040406" border="0" alt="P1040406" src="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040406_thumb.jpg" width="244" height="222" /></a></p>
<p>That, 1/2 and onion, a tomato, and some lentils</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040405.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="P1040405" border="0" alt="P1040405" src="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040405_thumb.jpg" width="195" height="244" /></a></p>
<p>and I have some simple and great tasting lentils.&#160; Super cheap too if you figure the cost of ingredients.&#160;&#160; It takes about an hour or so worth of cooking, but you can make bigger batches and save.&#160; The instructions require a scale, which I had.&#160; I like cooking with a scale more than the volumetric measures we usually use.&#160; Seems more scientific <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/wlEmoticon-smile.png" /></p>
<p>&#160;</p>
<p>Finally top off with what I’ve found to be a veggie that I’ve not gotten tired of – microwaved broccoli with mayo.&#160;&#160; </p>
<p>&#160;</p>
<p>&#160;<a href="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040410.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="P1040410" border="0" alt="P1040410" src="http://reza.net/wordpress/wp-content/ftp/Random-Slow-Carb-Recipes_1017F/P1040410_thumb.jpg" width="244" height="139" /></a></p>
<p>&#160;</p>
<p>Super tasty, and if you cook the lentils in advance, less than 15 minutes from start to finish.</p>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=275</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One more day</title>
		<link>http://reza.net/wordpress/?p=274</link>
		<comments>http://reza.net/wordpress/?p=274#comments</comments>
		<pubDate>Wed, 26 Jan 2011 09:59:01 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=274</guid>
		<description><![CDATA[I’ve been stressed out about what’s going to happen tomorrow.&#160; For almost 3 years I’ve been thinking about tomorrow.&#160; It’s a simple exam that in the history of my department, no one has failed.&#160; I present a research project, show I know the background to the material, and I pass.&#160; However, I’ve managed to get [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been stressed out about what’s going to happen tomorrow.&#160; For almost 3 years I’ve been thinking about tomorrow.&#160; It’s a simple exam that in the history of my department, no one has failed.&#160; I present a research project, show I know the background to the material, and I pass.&#160; However, I’ve managed to get advice from a set of people who have the most disparate ideas about what said proposal should entail.&#160; That might not seem like a bad idea, but I’ve probably put together 3 totally different project, with multiple revisions of each that take a whole different slant on the material.&#160; To nail that point home, I found out yesterday that the cumulative sum of months of work was “just not going to work” and I was advised to learn a multitude of new mathematical frameworks to be able to come up with an answer that really wouldn’t address my hypothesis.&#160; And the exam date was fixed.</p>
<p>&#160;</p>
<p>What ensued:</p>
<ol>
<li>Panic.&#160; I felt like I was the captain of a plane that was on fire.&#160; I wasn’t dead but I had to do something.</li>
<li>I decided pursue all my options simultaneously.&#160; These included</li>
<ul>
<li>call library to find relevant mathematical and psychological textbooks.&#160; Probability of mastering (which was required) the new material in 48 hours: 3%.&#160; </li>
<li>Email various departments looking for a tutor to help with the material.&#160; (10% success probability)</li>
<li>Try to figure out a way to slice and dice my content such as the “it’s not going to work” condition goes away.&#160; This involved asking for a number of people to help in a brainstorming session.</li>
</ul>
<p> Of the three options, the third won out and 5 hours later, I had a 100% different presentation that utilized 20% of the material I started out with.&#160; An additional 7 hour of work on the slides and I had a first pass ready.&#160; 4 hours of sleep later and a 30 minute drive &#8211; and I was back on campus working the written part of the project.&#160; I found a tutor who offered to help and we covered the relevant material in no time.&#160; If someone explains content at the right level, I can digest it very quickly.&#160; For example, I love “<a href="http://www.amazon.com/Robert-Lacostes-Darker-Side-Applications/dp/1856177629">The Darker Side</a>” – it does an amazing job of explaining mixed signal electronic design.&#160; He’s also the only good author left on Circuit Cellar’s payroll.&#160; </ol>
<ol>In any case, the exam is tomorrow.&#160; One thing I’ve learned though all this is about stress, both the theory, about my experiences, and my developed theories (one of which I’ll be presenting on).&#160; And what’s amazing is that I’ve been able to control the physical manifestation of stress – I’m so much better at being able to deal than I was just 3 months ago.&#160; I’m really not stressed about tomorrow, even though I should be.&#160; </ol>
<ol></ol>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=274</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slow-Carb Diet Update&#8211;Day 7</title>
		<link>http://reza.net/wordpress/?p=273</link>
		<comments>http://reza.net/wordpress/?p=273#comments</comments>
		<pubDate>Mon, 17 Jan 2011 01:15:43 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[diet]]></category>
		<category><![CDATA[slow carb]]></category>
		<category><![CDATA[tim ferris]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=273</guid>
		<description><![CDATA[&#160; I think I’m going to start posting some details about the progress of my diet through the course of it as this sort of info might be helpful to others.&#160;&#160; I had my 1st “bing” day yesterday, which is sanctioned by the diet.&#160; I decided to try to go full bore and see how [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>I think I’m going to start posting some details about the progress of my diet through the course of it as this sort of info might be helpful to others.&#160;&#160; I had my 1st “bing” day yesterday, which is sanctioned by the diet.&#160; I decided to try to go full bore and see how it effected me.&#160; My breakfast consisted of:</p>
<ul>
<li>waffles</li>
<li>fried chicken</li>
<li>2x sausage &amp; egg sandwiches</li>
<li>grits (didn’t like it, didn’t eat much) – how are these supposed to be eaten?</li>
<li>2x 16oz glasses of sweet tea</li>
</ul>
<p> <img src="http://sphotos.ak.fbcdn.net/hphotos-ak-snc4/hs1375.snc4/164779_10100213993542033_1210480_56689141_6350325_n.jpg" width="720" height="405" />
<p>&#160;</p>
<p>As good as it tasted, it made me feel horrible for the rest of the day.&#160; I had a headache and my body hurt.&#160; It’s amazing how bad sugar is for you.&#160; The evening was filled with more goodness including crab cakes, bolgogi beef, chicken meatballs, pan-fried mac and cheese balls, shrimp with bacon, sausage burgers, beer, wine, bourbon.&#160;&#160; The results:</p>
<p>&#160;</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/eea4ba9243cf_EF4C/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://reza.net/wordpress/wp-content/ftp/eea4ba9243cf_EF4C/image_thumb.png" width="378" height="222" /></a></p>
<p>&#160;</p>
<p>Now, if the diet works, by Tuesday I should return to my post-binge weight.&#160; Sarah and I went to Safeway (how I hate that place) and I bought more veggies than I ever had before in my life.&#160; Trying to follow the paradigm of “use bag of frozen veggies” just didn’t cut it and I need to get some variety.&#160; So for lunch I had two “slow-carb” burritos that consisted of a large piece of lettuce, layer of refried beans, garlic pulled pork from last week, sautéed green beans/onions/garlic/spring onions, peppercinis, avocado, and habanero salsa (finally found a safeway salsa that I liked).&#160; And it was really good – I didn’t miss the bread at all.&#160;&#160; </p>
<p>&#160;</p>
<p>I’m really enjoying the cooking that I’m doing for this diet, as I’m usually too lazy to cook.&#160; I’ve found it’s been a lot better on the wallet but a huge pain in the ass to clean up.&#160; The dishwasher runs like 2x/day now.&#160; </p>
<p>&#160;</p>
<p>And tonight – safeway had a great sale on Dungenous crab&#160; &#8212; so I’m going to try to make a crab salad with homemade mayo (all the stuff in the store had some sugar added).&#160;&#160; I’ll probably add some bacon to it as well.&#160; </p>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=273</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My attempt at implementing Tim Ferriss&#8217; Slow-Carb Diet</title>
		<link>http://reza.net/wordpress/?p=270</link>
		<comments>http://reza.net/wordpress/?p=270#comments</comments>
		<pubDate>Fri, 14 Jan 2011 10:52:38 +0000</pubDate>
		<dc:creator>reza</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[diet]]></category>
		<category><![CDATA[four hour body]]></category>
		<category><![CDATA[slow carb]]></category>
		<category><![CDATA[tim ferris]]></category>

		<guid isPermaLink="false">http://reza.net/wordpress/?p=270</guid>
		<description><![CDATA[I’ve been working too hard at graduating and a number of other projects where I found I wasn’t going to the gym nearly as much as I used to.&#160; As a result, I started feeling unhealthy, but I also didn’t believe in dieting.&#160; That was till I saw a blog entry on gizmodo.com about Tim’s [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been working too hard at graduating and a number of other projects where I found I wasn’t going to the gym nearly as much as I used to.&#160; As a result, I started feeling unhealthy, but I also didn’t believe in dieting.&#160; That was till I saw a blog entry on <a href="http://gizmodo.com/5709913/4+hour-body-+-the-slow+carb-diet">gizmodo.com</a> about Tim’s book, the 4-hour body.&#160; It’s not a diet book, but rather a somewhat scientific look at how to hack many aspects of your body – and I bought his pitch.&#160; It made sense to me, and it seemed like an approach that I could follow.&#160; </p>
<p>The chapter that talks about the diet is essentially converted from <a href="http://www.fourhourworkweek.com/blog/2007/04/06/how-to-lose-20-lbs-of-fat-in-30-days-without-doing-any-exercise/">this blog entry</a>.&#160; I’m not going to bore you with the details, but I’m trying to be a bit methodical about the progress and want to document it.&#160; Essentially, it’s 4 meals a day of lots of beans (I never want to eat beans again after this).&#160; He also stresses keeping the meals simple (read: boring) and the same.&#160; He argues it’s simpler that way.&#160; Unfortunately,&#160; following that advice will get me disinterested quickly from the diet.&#160; I need variety.&#160; I just finished cooking the garlic pork dish from <a href="http://robbwolf.com/wp/wp-content/uploads/2010/12/The-Slow-Carb-Cookbook.pdf">this cookbook I found online</a>.&#160;&#160;&#160; </p>
<p>Anyhow, I’m doing pretty well though I accidentally violated one of the rules and had some fruit juice.&#160; And I’m drinking some whiskey instead of wine right now (thanks diQ for leaving that bottle behind).&#160; But so far I’m on track to hit my goal of 20lbs in 30 days.&#160; I’m also following a regiment of a ton of <a href="http://fitnessgremlin.com/pagg-stack-the-4-hour-body-review-tim-ferriss/">supplements that he suggests</a> – 13 pills a day no less at a cost of $75/month for the supply.&#160; Normally I’m not into that kind of stuff, but there’s something cool about the thought of hacking my body, so I’ll give I a shot.&#160; Here’s the data, though I started right after finishing 3 days of my unintentional food-poisoning diet which I dropped 5lbs over 3 days.&#160; I’m actually less now than I’ve been in years.&#160; I’m going to start weight training again after I hit 170, but my body puts on muscle fast and I don’t want to see my weight increase (it’s a motivational thing).</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/My_24AC/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://reza.net/wordpress/wp-content/ftp/My_24AC/image_thumb.png" width="521" height="310" /></a></p>
<p>&#160;</p>
<p><a href="http://reza.net/wordpress/wp-content/ftp/My_24AC/image_3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://reza.net/wordpress/wp-content/ftp/My_24AC/image_thumb_3.png" width="522" height="321" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://reza.net/wordpress/?feed=rss2&amp;p=270</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

