<?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>Terence&#039;s Blog &#187; Electronics</title>
	<atom:link href="http://www.TerenceTam.com/tag/electronics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.TerenceTam.com</link>
	<description>Cool Stuff from Terence</description>
	<lastBuildDate>Fri, 25 Nov 2011 06:07:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>[Engineering] &#8211; Bullet Flight Sensor, Design Validation Testing</title>
		<link>http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-design-validation-testing/</link>
		<comments>http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-design-validation-testing/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 07:04:04 +0000</pubDate>
		<dc:creator>ttstam</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Photo Gear]]></category>
		<category><![CDATA[Prototyping]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Photog gear]]></category>

		<guid isPermaLink="false">http://www.TerenceTam.com/?p=103</guid>
		<description><![CDATA[Successful night at Tam Labs tonight! Tonight, the goal was to test the breadboarded prototype of the bullet flight sensor&#8217;s electronics. Remember &#8211; I am a mechanical engineer; this is a completely new foray into the world of electronics for &#8230; <a href="http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-design-validation-testing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Successful night at Tam Labs tonight! <img src='http://TerenceTam.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Tonight, the goal was to test the breadboarded prototype of the bullet flight sensor&#8217;s electronics.  Remember &#8211; I am a mechanical engineer; this is a completely new foray into the world of electronics for me, aside from some simple &#8220;hook a solid state relay to a microprocessor and bit bang some code to turn on the rice cooker&#8221; projects.  So even though this may seem like kindergarden EE stuff, it&#8217;s a fairly big leap for me, design wise; I&#8217;m no longer relying on the ability to clobber code and instead using discrete logic ICs and doing actual calculations and setting RC time constants, etc.</p>
<p>We begin with the breadboarded model:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4295137084" title="View 'Electronics-001' on Flickr.com"><img border="0" width="333" alt="Electronics-001" src="http://farm5.static.flickr.com/4009/4295137084_c5c70637f1.jpg" height="500"/></a></div>
<p>And our setup in the lab:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4296541237" title="View 'P1000377' on Flickr.com"><img border="0" width="500" alt="P1000377" src="http://farm5.static.flickr.com/4065/4296541237_831e01537b.jpg" height="375"/></a></div>
<p>On the bench is a trusty oscilloscope to look at the signals at different lines, a DC power supply set to 5V, 100mA current limit, and a signal generator.  The signal generator won&#8217;t be used for this project here.</p>
<p>First, I verified that the *new* sensor is working &#8211; the last one had a round put through it by accident:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4270528251" title="View 'Blogged at: http://www.TerenceTam.com' on Flickr.com"><img border="0" width="500" alt="Blogged at: http://www.TerenceTam.com" src="http://farm5.static.flickr.com/4029/4270528251_a459953b7c.jpg" height="328"/></a></div>
<p>Next, I verified that the 555IC is getting the power that it needs.  Turns out that the power rails aren&#8217;t fully connected all the way.  A bit of poking with an ohm-meter fixed that.  Now I am ready to insert my test points:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4297287330" title="View 'P1000378' on Flickr.com"><img border="0" width="500" alt="P1000378" src="http://farm3.static.flickr.com/2681/4297287330_6cfd37b0cd.jpg" height="375"/></a></div>
<p>And trip the break-beam sensor, with my gimpy fingers:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4297278956" title="View 'Blogged at: http://www.TerenceTam.com' on Flickr.com"><img border="0" width="320" alt="Blogged at: http://www.TerenceTam.com" src="http://farm3.static.flickr.com/2745/4297278956_ec7acbdd8a.jpg" height="240"/></a></div>
<p>Orange line, or Ch1, is my sensor&#8217;s output.  It goes from High to Low when the beam is broken.  The turquoise line, or Ch2, is my 555&#8242;s trigger output.  It goes from low to high when the input pulse is received.  That&#8217;s a VERY promising sign.</p>
<p>My fat butter fingers can only move so fast through a 10mm opening, so the event scrolls off the oscilloscope&#8217;s screen.  I tried dropping a small machine screw through the opening, but that actually prove to be much harder than expected (don&#8217;t laugh!).  Frustrated, I finally came up with the following idea:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4297287012" title="View 'P1000376' on Flickr.com"><img border="0" width="500" alt="P1000376" src="http://farm5.static.flickr.com/4005/4297287012_9dfe30fd8a.jpg" height="375"/></a></div>
<p>By flexing the rubber ducky antenna on one of my pocket wizards and getting it to spring through the break-beam sensor gap, I can generate a quick enough blip from the sensor:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4297279038" title="View 'Blogged at: http://www.TerenceTam.com' on Flickr.com"><img border="0" width="320" alt="Blogged at: http://www.TerenceTam.com" src="http://farm3.static.flickr.com/2775/4297279038_0d5e962b79.jpg" height="240"/></a></div>
<p>Each major division is 5 milli-second on this setting, so the rubber ducky antenna is only in the beam&#8217;s path for about 10mS.  My fingers can&#8217;t move *that* fast, for sure <img src='http://TerenceTam.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Repeating the test again a few times, got me the same result:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4296532987" title="View 'Blogged at: http://www.TerenceTam.com' on Flickr.com"><img border="0" width="320" alt="Blogged at: http://www.TerenceTam.com" src="http://farm3.static.flickr.com/2751/4296532987_a0b7471f9a.jpg" height="240"/></a></div>
<p>Note that irregardless of the pulse length from the sensor, the 555&#8242;s output always sits at about 35ms.  This is a litte bit off from the design goal of 40ms (1/250 second shutter speed, or sync speed on a 1.6x crop camera), but close enough for government work.   I attribute the difference in component value tolerances on setting the RC constant.</p>
<p>Now the final test &#8211; does the output from the 555 trip the SCR to fire the strobe and pocket wizard?<br />
(I selected an SCR instead of a cheaper / more common transistor.  The SCR is rated to 400V, so even an older, high voltage &#8220;digital camera killer&#8221; flash will work on this sensor.  )</p>
<p>And&#8230; </p>
<p>*drum roll please*</p>
<p>Nothing happened.</p>
<p>Turns out the same bug that bit me on the 555 timer bit me again.  The top and bottom half of the power bus on this breadboard is not connected, and the SCR wasn&#8217;t grounded properly because of that.  Now, plugging in a pocket wizard, this is what I get (with Ch2 now monitoring the anode of the SCR):</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4296533009" title="View 'Blogged at: http://www.TerenceTam.com' on Flickr.com"><img border="0" width="320" alt="Blogged at: http://www.TerenceTam.com" src="http://farm3.static.flickr.com/2724/4296533009_548f5044c4.jpg" height="240"/></a></div>
<p>Interesting, it seems to add a bit of noise to the sensor output line.  But the characteristic beep of the PW firing can be heard as the beam is broken.  (Note that the sync voltage of the pocket wizard is only 3V or so).</p>
<p>Plugging in the 580EXii:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4297279108" title="View 'Blogged at: http://www.TerenceTam.com' on Flickr.com"><img border="0" width="320" alt="Blogged at: http://www.TerenceTam.com" src="http://farm5.static.flickr.com/4025/4297279108_02ca609500.jpg" height="240"/></a></div>
<p>Again, some electronic noise on the sensor line, but we got what we need out of it &#8211; the clean voltage drop that triggers the monostable multivibrator.</p>
<p>And here&#8217;s the happy camera dork with his new toy (click link for video:) </p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4296516187" title="View 'Test firing bullet flight detector switch' on Flickr.com"><img border="0" width="500" alt="Test firing bullet flight detector switch" src="http://farm5.static.flickr.com/4035/4296516187_62f33b9c7d.jpg" height="375"/></a></div>
<p>Now that the circuit is verified working, I am okay with releasing the resources to order the acrylic for laser cutting to form the chassis, as well as starting PCB layout.  Stay tuned&#8230; <img src='http://TerenceTam.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-design-validation-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Engineering] &#8211; Bullet Flight Sensor, Systems Integration</title>
		<link>http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-systems-integration/</link>
		<comments>http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-systems-integration/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 08:39:48 +0000</pubDate>
		<dc:creator>ttstam</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Photo Gear]]></category>
		<category><![CDATA[Prototyping]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.TerenceTam.com/?p=83</guid>
		<description><![CDATA[Quick status update on the bullet flight sensor. This is heading into systems integration testing next, where I&#8217;ll be firing up each section of the circuit and making sure it all works. Missing is the break beam sensor that I &#8230; <a href="http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-systems-integration/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Quick status update on the bullet flight sensor.  This is heading into systems integration testing next, where I&#8217;ll be firing up each section of the circuit and making sure it all works.  Missing is the break beam sensor that I put a air rifle round through by accident <img src='http://TerenceTam.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4295137084" title="View 'Electronics-001' on Flickr.com"><img border="0" width="333" alt="Electronics-001" src="http://farm5.static.flickr.com/4009/4295137084_c5c70637f1.jpg" height="500"/></a></div>
<p>Note the &#8220;unusual&#8221; arrangement with the pocket wizard.  The &#8220;hot shoe adapter&#8221; is actually plugged into the sensor to simulate a camera&#8217;s hotshoe firing the pocket wizard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-systems-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Engineering] &#8211; Bullet flight sensor &#8211; circuit design</title>
		<link>http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-circuit-design/</link>
		<comments>http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-circuit-design/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 08:09:01 +0000</pubDate>
		<dc:creator>ttstam</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Photo Gear]]></category>
		<category><![CDATA[circuit design]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[mechanical design]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.TerenceTam.com/?p=63</guid>
		<description><![CDATA[Continued work on the bullet flight sensor electronics. Dad had suggested that I research a &#8220;monostable vibrator&#8221; circuit, and to look at the 555 timer IC, so after some tinkering and math, here&#8217;s my first draft circuit diagram: Dad (a &#8230; <a href="http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-circuit-design/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Continued work on the bullet flight sensor electronics.  Dad had suggested that I research a &#8220;monostable vibrator&#8221; circuit, and to look at the 555 timer IC, so after some tinkering and math, here&#8217;s my first draft circuit diagram:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4280461471" title="View 'scan0001' on Flickr.com"><img border="0" width="500" alt="scan0001" src="http://farm5.static.flickr.com/4066/4280461471_88ce2816af.jpg" height="261"/></a></div>
<p>Dad (a retired electrical engineer) had given it his blessing, so the next step up would be physically prototyping it.  Looks like I&#8217;ll be placing an order with DigiKey or Jameco or some other online electronics component vendor.</p>
<p>While the circuit components are enroute &#8211; and they will be breadboarded up first &#8211; I&#8217;m going to try my hand at learning <a href="http://www.cadsoft.de/">Eagle</a>, a CAD design software.  The circuit is simple enough that I can probably etch it myself using laser transfer paper, but I might also just job it out to someone like BatchPCB.com and deal with it that way.  It&#8217;ll all depend on the mechanical fabrication lead time as well as other project loads.  </p>
<p>Meanwhile, mechanical design needs to be refined a little bit.  These are current CAD model screenshots:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4281234248" title="View 'Bullet_Switch_Assembly.PartialDisassembly' on Flickr.com"><img border="0" width="500" alt="Bullet_Switch_Assembly.PartialDisassembly" src="http://farm5.static.flickr.com/4027/4281234248_97f10525bc.jpg" height="370"/></a></div>
<p>Here the unit is partially disassembled to change batteries.</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4281234226" title="View 'Bullet_Switch_Assembly.Top' on Flickr.com"><img border="0" width="500" alt="Bullet_Switch_Assembly.Top" src="http://farm5.static.flickr.com/4050/4281234226_ab8127e3c0.jpg" height="370"/></a></div>
<p>Here&#8217;s a top view looking straight down on the circuit card, with the detector barrel rendered transparent.</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4280490951" title="View 'Bullet_Switch_Assembly.ISOMETRIC' on Flickr.com"><img border="0" width="500" alt="Bullet_Switch_Assembly.ISOMETRIC" src="http://farm3.static.flickr.com/2740/4280490951_d0051107a1.jpg" height="370"/></a></div>
<p>And finally an isometric view of the unit assembled.</p>
<p>Mechanical details for the battery contacts, as ewell as lead-in for the slots, needs to be integrated.  Then it&#8217;s a matter of generating a file to drive Dave&#8217;s grandparent&#8217;s laser engraver to cut these acrylic parts!</p>
<p>W00t, can&#8217;t wait! <img src='http://TerenceTam.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.TerenceTam.com/2010/01/engineering-bullet-flight-sensor-circuit-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Engineering] &#8211; Testing of a Break Beam sensor</title>
		<link>http://www.TerenceTam.com/2010/01/testing-of-a-break-beam-sensor/</link>
		<comments>http://www.TerenceTam.com/2010/01/testing-of-a-break-beam-sensor/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 07:24:30 +0000</pubDate>
		<dc:creator>ttstam</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://ttstam.com/?p=5</guid>
		<description><![CDATA[Today, I performed validation testing of the breakbeam module selected to handle bullet-detection for high speed photography. The sensor module is a Sharp GP1A57HRJ00F from SparkFun Electronics (Datasheet). This is an infra-red emitter / detector combo: one half of the &#8230; <a href="http://www.TerenceTam.com/2010/01/testing-of-a-break-beam-sensor/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today, I performed validation testing of the breakbeam module selected to handle bullet-detection for high speed photography.  The sensor module is a <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9299">Sharp GP1A57HRJ00F</a> from SparkFun Electronics (<a href="http://www.sparkfun.com/datasheets/Components/GP1A57HRJ00F.pdf">Datasheet</a>).  This is an infra-red emitter / detector combo:  one half of the module holds an IR LED, the other half an opto-transistor detecting the output.  </p>
<p>The output on Pin 2 is at TTL High until the beam is broken, then it goes to TTL low.</p>
<p>I wanted to make sure the sensor does as advertised (remember, I&#8217;m a mechanical engineer by trade, that happens to dabble in electronics and coding).  So I hook it up with a breakout board and populated the current limiting resistor with a SMT 231 ohm resistor that we&#8217;ve got lying around the lab. Here&#8217;s the schematic:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4267757039" title="View '001' on Flickr.com"><img border="0" width="500" alt="001" src="http://farm3.static.flickr.com/2709/4267757039_4af1eae9c4.jpg" height="396"/></a></div>
<p>Connecting Vcc to a 5V DC power supply in the lab, and connecting a probe from an oscilloscope between SIG and GND, I was able to get the following response:</p>
<div style="text-align:center;"><a href="http://www.flickr.com/photos/8812323@N08/4267737923" title="View 'TEK0000' on Flickr.com"><img border="0" width="320" alt="TEK0000" src="http://farm5.static.flickr.com/4006/4267737923_c2f7695a2e.jpg" height="240"/></a></div>
<p>As you can see, the output on the signal switches rather quickly.  The oscilloscope was set to trigger off the falling edge of the signal at approximately 3.8V and the drop in voltage occurred within 20 *nano* seconds.  </p>
<p>If we assume a .22 round that&#8217;s spherical in shape (say, a BB), travelling at 1000 fps:</p>
<p>Each milli-second the round covers 1 ft<br />
To cover .22, or 0.0183ft, the round will take 0.0183 millisecond, or 18.3 microseconds.</p>
<p>I&#8217;m fairly confident that the round firing through the beam can trigger an electronic response.  The next challenge is then designing electronic circuit to lengthen this response to a switched pulse to fire a pocket wizard radio transmitter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.TerenceTam.com/2010/01/testing-of-a-break-beam-sensor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

