<?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>stealthcopter.com &#187; Electronics</title>
	<atom:link href="http://www.stealthcopter.com/blog/tag/electronics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stealthcopter.com/blog</link>
	<description>Android, Linux, Python and stealthcopters</description>
	<lastBuildDate>Sat, 24 Jul 2010 00:01:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>TFT pixels in focus under high magnification microscope</title>
		<link>http://www.stealthcopter.com/blog/2010/06/tft-pixels-in-focus-under-high-magnification-microscope/</link>
		<comments>http://www.stealthcopter.com/blog/2010/06/tft-pixels-in-focus-under-high-magnification-microscope/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 23:02:31 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[microscope]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=904</guid>
		<description><![CDATA[Whilst working on this post I managed to get some sexy shots of pixels in focus from my TFT screen under the microscope.]]></description>
			<content:encoded><![CDATA[<p>Whilst working on <a href="http://www.stealthcopter.com/blog/2010/06/nexus-ones-amoled-screen-under-the-microscope/">this post</a> I managed to get some sexy shots of pixels in focus from my TFT screen under the <a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/">microscope</a>.</p>
<div id="attachment_901" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/06/nexus-ones-amoled-screen-under-the-microscope/2010-06-10-234045/" rel="attachment wp-att-901"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/06/2010-06-10-234045-600x480.jpg" alt="Regular pixels from a TFT screen" title="Regular pixels from a TFT screen" width="600" height="480" class="size-medium wp-image-901" /></a><p class="wp-caption-text">Regular pixels from a TFT screen</p></div>
<div id="attachment_902" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/06/tft-pixels-in-focus-under-high-magnification-microscope/2010-06-10-234057/" rel="attachment wp-att-902"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/06/2010-06-10-234057-600x480.jpg" alt="Cool Focusing on pixels from a TFT High magnification" title="Cool Focusing on pixels from a TFT High magnification" width="600" height="480" class="size-medium wp-image-902" /></a><p class="wp-caption-text">Cool Focusing on pixels from a TFT High magnification</p></div>
<div id="attachment_903" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/06/tft-pixels-in-focus-under-high-magnification-microscope/2010-06-10-234108/" rel="attachment wp-att-903"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/06/2010-06-10-234108-600x480.jpg" alt="More Cool Focusing on pixels from a TFT High magnification" title="More Cool Focusing on pixels from a TFT High magnification" width="600" height="480" class="size-medium wp-image-903" /></a><p class="wp-caption-text">More Cool Focusing on pixels from a TFT High magnification</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/06/tft-pixels-in-focus-under-high-magnification-microscope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nexus One&#8217;s AMOLED Screen under the microscope</title>
		<link>http://www.stealthcopter.com/blog/2010/06/nexus-ones-amoled-screen-under-the-microscope/</link>
		<comments>http://www.stealthcopter.com/blog/2010/06/nexus-ones-amoled-screen-under-the-microscope/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 22:49:44 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[microscope]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=896</guid>
		<description><![CDATA[After casually browsing this wikipedia article on google&#8217;s Nexus One (or HTC&#8217;s) I became interested in the AMOLED (Active-matrix OLED (Organic Light Emitting Device) screen due to its interesting pixel structure. Quote from wikipedia: The Nexus One has a 3.7 inch AMOLED screen with PenTile matrix pixel arrangement. The raster resolution is 800&#215;480 pixels, however [...]]]></description>
			<content:encoded><![CDATA[<p>After casually browsing <a href="http://en.wikipedia.org/wiki/Nexus_one#Hardware">this wikipedia article</a> on google&#8217;s Nexus One (or HTC&#8217;s) I became interested in the <a href="http://en.wikipedia.org/wiki/Active-matrix_OLED">AMOLED</a> (Active-matrix <a href="http://en.wikipedia.org/wiki/OLED">OLED</a> (Organic Light Emitting Device) screen due to its interesting pixel structure. Quote from wikipedia:</p>
<blockquote><p>
The Nexus One has a 3.7 inch AMOLED screen with PenTile matrix pixel arrangement. The raster resolution is 800&#215;480 pixels, however each pixel in the PenTile RGBG display has only two subpixels (red and green, or blue and green alternately), rather than the three found in most displays. This gives it a total effective subpixel resolution of a 392&#215;653 RBG display.[40]
</p></blockquote>
<p>So I decided to have a look under the <a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/">microscope</a> to see what I could find with my <a href="http://www.stealthcopter.com/blog/2010/04/received-my-complimentary-nexus-one-from-google-device-seeding/">nexus one</a>. Enjoy the following images:</p>
<p><strong>Low Zoom</strong></p>
<div id="attachment_898" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/06/nexus-ones-amoled-screen-under-the-microscope/2010-06-10-232506/" rel="attachment wp-att-898"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/06/2010-06-10-232506-600x480.jpg" alt="Nexus One&#039;s AMOLED screen under the microscope (Low magnification)" title="Nexus One&#039;s AMOLED screen under the microscope (Low magnification)" width="600" height="480" class="size-medium wp-image-898" /></a><p class="wp-caption-text">Nexus One's AMOLED screen under the microscope (Low magnification)</p></div>
<p><strong>High zoom</strong></p>
<div id="attachment_899" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/06/nexus-ones-amoled-screen-under-the-microscope/2010-06-10-232527/" rel="attachment wp-att-899"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/06/2010-06-10-232527-600x480.jpg" alt="Nexus One&#039;s AMOLED screen under the microscope (High magnification)" title="Nexus One&#039;s AMOLED screen under the microscope (High magnification)" width="600" height="480" class="size-medium wp-image-899" /></a><p class="wp-caption-text">Nexus One's AMOLED screen under the microscope (High magnification)</p></div>
<div id="attachment_900" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/06/nexus-ones-amoled-screen-under-the-microscope/2010-06-10-232537/" rel="attachment wp-att-900"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/06/2010-06-10-232537-600x480.jpg" alt="Nexus One&#039;s AMOLED screen under the microscope (High magnification)" title="Nexus One&#039;s AMOLED screen under the microscope (High magnification)" width="600" height="480" class="size-medium wp-image-900" /></a><p class="wp-caption-text">Nexus One's AMOLED screen under the microscope (High magnification)</p></div>
<p><strong>Regular Pixel</strong></p>
<div id="attachment_901" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/06/nexus-ones-amoled-screen-under-the-microscope/2010-06-10-234045/" rel="attachment wp-att-901"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/06/2010-06-10-234045-600x480.jpg" alt="Regular pixels from a TFT screen" title="Regular pixels from a TFT screen" width="600" height="480" class="size-medium wp-image-901" /></a><p class="wp-caption-text">Regular pixels from a TFT screen</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/06/nexus-ones-amoled-screen-under-the-microscope/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dell 1320c colour laser printer (Machine Identification Code microdots)</title>
		<link>http://www.stealthcopter.com/blog/2010/04/dell-1320c-colour-laser-printer-machine-identification-code-microdots/</link>
		<comments>http://www.stealthcopter.com/blog/2010/04/dell-1320c-colour-laser-printer-machine-identification-code-microdots/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 15:48:50 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[printer]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=843</guid>
		<description><![CDATA[As you may or may not be aware some printers add extra information in order for the printer to be identified (primarily for counterfeiting case I believe). With colour laser printers this can be in the form of a small array of yellow dots printed onto you paper. Yellow dots are hardly visible to the [...]]]></description>
			<content:encoded><![CDATA[<p>As you may or may not be aware some printers add extra information in order for the printer to be identified (primarily for counterfeiting case I believe). With colour laser printers this can be in the form of a small array of yellow dots printed onto you paper. Yellow dots are hardly visible to the naked eye, however if you are close enough and get the light at the right angle you can see them. If you have some blue leds or a blue light available this can make it much easier to see the dots (as the yellow dots will absorb the blue and look black).</p>
<div id="attachment_845" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.stealthcopter.com/blog/2010/04/dell-1320c-colour-laser-printer-machine-identification-code-microdots/cimg0424/" rel="attachment wp-att-845"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/04/CIMG0424.jpg" alt="CUPS test paper with non-visible yellow dots" title="CUPS test paper with non-visible yellow dots" width="500" height="667" class="size-full wp-image-845" /></a><p class="wp-caption-text">CUPS test paper with non-visible yellow dots</p></div>
<div id="attachment_846" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.stealthcopter.com/blog/2010/04/dell-1320c-colour-laser-printer-machine-identification-code-microdots/cimg0425/" rel="attachment wp-att-846"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/04/CIMG0425.jpg" alt="CUPS test paper with non-visible yellow dots (closer)" title="CUPS test paper with non-visible yellow dots (closer)" width="500" height="375" class="size-full wp-image-846" /></a><p class="wp-caption-text">CUPS test paper with non-visible yellow dots (closer)</p></div>
<p>Now much clearer under blue led illumination:</p>
<div id="attachment_848" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/04/dell-1320c-colour-laser-printer-machine-identification-code-microdots/cimg04322/" rel="attachment wp-att-848"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/04/CIMG04322.jpg" alt="Yellow dots very clear under blue illumination on the dell 1320c colour laser printer" title="Yellow dots very clear under blue illumination on the dell 1320c colour laser printer" width="600" height="450" class="size-full wp-image-848" /></a><p class="wp-caption-text">Yellow dots very clear under blue illumination on the dell 1320c colour laser printer</p></div><br />
<div id="attachment_849" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/04/dell-1320c-colour-laser-printer-machine-identification-code-microdots/cimg043222/" rel="attachment wp-att-849"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/04/CIMG043222-600x558.jpg" alt="Yellow dots very clear under blue illumination (zoomed in)" title="Yellow dots very clear under blue illumination (zoomed in)" width="600" height="558" class="size-medium wp-image-849" /></a><p class="wp-caption-text">Yellow dots very clear under blue illumination (zoomed in)</p></div>
<p>Unfortunately I my camera isn&#8217;t good enough quality and it doesn&#8217;t have a macro lens or feature so I can only show images at both extremes. Below are images captured with my microscope, you don&#8217;t have to look very far around the page, as the clusters are littered all over the page.</p>
<div id="attachment_850" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/04/dell-1320c-colour-laser-printer-machine-identification-code-microdots/2010-04-05-152732/" rel="attachment wp-att-850"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/04/2010-04-05-152732-600x450.jpg" alt="Microscope image of a few yellow dots on paper printed with dell 1320c" title="Microscope image of a few yellow dots on paper printed with dell 1320c" width="600" height="450" class="size-medium wp-image-850" /></a><p class="wp-caption-text">Microscope image of a few yellow dots on paper printed with dell 1320c</p></div>
<div id="attachment_851" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/04/dell-1320c-colour-laser-printer-machine-identification-code-microdots/2010-04-05-152854/" rel="attachment wp-att-851"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/04/2010-04-05-152854-600x450.jpg" alt="Microscope image of a two yellow dots (max zoom)" title="Microscope image of a two yellow dots (max zoom)" width="600" height="450" class="size-medium wp-image-851" /></a><p class="wp-caption-text">Microscope image of a two yellow dots (max zoom)</p></div>
<p>The <a href="http://www.eff.org/wp/investigating-machine-identification-code-technology-color-laser-printers#testsheets">Electronic frontier foundation</a> have more information about the dots and have setup an address you can send a print test page to in order for them to build up a public defence case. Perhaps criminals will end up printing with yellow backgrounds to combat this method?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/04/dell-1320c-colour-laser-printer-machine-identification-code-microdots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing a Dell 1320c colour laser printer in ubuntu (kubuntu 9.10 x86_64)</title>
		<link>http://www.stealthcopter.com/blog/2010/04/installing-a-dell-1320c-colour-laser-printer-in-ubuntu-kubuntu-9-10-x86_64/</link>
		<comments>http://www.stealthcopter.com/blog/2010/04/installing-a-dell-1320c-colour-laser-printer-in-ubuntu-kubuntu-9-10-x86_64/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 14:59:05 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=842</guid>
		<description><![CDATA[This is a nice colour laser printer that I managed to pick up quite cheaply with 2 sets of toner. Problem On my system (kubuntu 9.10 x86_64) it did not appear in lsusb and dmesg showed the following: [15208.550014] usb 1-6: new high speed USB device using ehci_hcd and address 10 [15208.701200] usb 1-6: configuration [...]]]></description>
			<content:encoded><![CDATA[<p>This is a nice colour laser printer that I managed to pick up quite cheaply with 2 sets of toner.</p>
<p><strong>Problem</strong></p>
<p>On my system (kubuntu 9.10 x86_64) it did not appear in lsusb and dmesg showed the following:</p>
<blockquote><p>
[15208.550014] usb 1-6: new high speed USB device using ehci_hcd and address 10<br />
[15208.701200] usb 1-6: configuration #1 chosen from 1 choice<br />
[15208.741575] usblp0: USB Bidirectional printer dev 10 if 0 alt 0 proto 2 vid 0x413C pid 0&#215;5516<br />
[15208.741596] usbcore: registered new interface driver usblp<br />
[15209.747326] usb 1-6: usbfs: interface 0 claimed by usblp while &#8216;usb&#8217; sets config #1
</p></blockquote>
<p>Funnily enough it did appear in the list of devices in virtualbox, however I had no luck trying (and didn&#8217;t really want to) to install it virtually. So I decided I&#8217;d make use of the built in network abilities of the printer and plug it directly into the router (I didn&#8217;t do this initially as I wanted the printer in a different room to the router).</p>
<p><strong>Solution</strong></p>
<p>After setting the printer up on the network, I ensure logged into the web interface and changed the password from the default. I then followed <a href="http://ubuntuforums.org/showthread.php?t=783346">this thread</a> on the ubuntuforums which refers to <a href="http://www.xtr.org/jeff/notes/linux/dell_1320c_printer_linux_install.txt">this text</a> for installing the &#8220;Fuji Xerox DocuPrint C525A&#8221; driver which is compatible with the dell 1320c.</p>
<p>The driver is an 32bit rpm by default (which is fine for redhat based os&#8217;s), you can use alien to convert the rpm to an deb, or you can just download a prebuilt deb from <a href="http://zoffix.com/other/Installing-Dell-1320c-Color-Laser-Printer-on-Ubuntu">zoffix.com</a> (<a href="http://zoffix.com/content-pics/dell_printer/fuji-xerox-docuprint-c525-a-ap_1.0-2_i386.deb">Direct link</a>. This is a 32 bit package still so we need to install it using &#8220;&#8211;force-architecture&#8221;</p>
<blockquote><p>
sudo dpkg -i fuji-xerox-docuprint-c525-a-ap_1.0-2_i386.deb &#8211;force-architecture
</p></blockquote>
<p>Once this driver is installed you can login to cups and configure your printer as you would normally (instructions below). However when you are required to select the printer you need to provide the ppd file manually  if you have installed the driver</p>
<p>1 &#8211; Open a webbrowser and goto http://localhost:631/admin<br />
2 &#8211; Click add printer<br />
3 &#8211; Enter a name for the printer eg: dell1320c (spaces are not allowed)<br />
4 &#8211; Enter the printer address. This is the ip address of your printer prefixed with &#8220;lpd://&#8221;. eg: lpd://192.168.1.121<br />
5 &#8211; Either locate Fuji Xerox DocuPrint C525A or select the ppd directly which is located at /usr/share/cups/model/FujiXerox/en/FX_DocuPrint_C525_A_AP.ppd<br />
6 &#8211; Memory Capacity should be 64MB, and Optional Tray Module should be 250 Sheet Feeder<br />
7 &#8211; finish.</p>
<p><strong>Bypass tray problem</strong></p>
<p>You should now print a test page, however if you get the problem like me that the printer always attempts to load paper from the manual paper feed, you will need to change the paper source from bypass tray to tray 1 in each program you need to print with (hopefully there will be a fix for this, but in this cups there seems no option to set it)</p>
<div id="attachment_844" class="wp-caption aligncenter" style="width: 511px"><a href="http://www.stealthcopter.com/blog/2010/04/installing-a-dell-1320c-colour-laser-printer-in-ubuntu-kubuntu-9-10-x86_64/bypasspaper/" rel="attachment wp-att-844"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/04/bypasspaper.png" alt="Select tray 1 to avoid using bypass paper with dell 1320c in ubuntu" title="Select tray 1 to avoid using bypass paper with dell 1320c in ubuntu" width="501" height="379" class="size-full wp-image-844" /></a><p class="wp-caption-text">Select tray 1 to avoid using bypass paper with dell 1320c in ubuntu</p></div>
<p><strong>Additional</strong></p>
<p>I also noticed that this printer was covering each printed page with tiny yellow dots, which can be used to identify a printer (most likely for criminal matters). </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/04/installing-a-dell-1320c-colour-laser-printer-in-ubuntu-kubuntu-9-10-x86_64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIY soil moisture sensors</title>
		<link>http://www.stealthcopter.com/blog/2010/03/diy-soil-moisture-sensors/</link>
		<comments>http://www.stealthcopter.com/blog/2010/03/diy-soil-moisture-sensors/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 12:26:29 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[microscope]]></category>
		<category><![CDATA[sensor]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=836</guid>
		<description><![CDATA[I&#8217;ve been looking into creating an automated herbarium of some sort for a while, and I came across the brilliant post about creating some DIY soil moisture sensors using nails and plaster of paris. cheapvegetablegardener from hackaday. I wont explain all of the theory or background as it is already explained on cheapvegetablegardener. I measured [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking into creating an automated herbarium of some sort for a while, and I came across the brilliant post about creating some DIY soil moisture sensors using nails and plaster of paris. <a href="http://www.cheapvegetablegardener.com/2009/11/how-to-make-cheap-soil-moisture-sensor-2.html">cheapvegetablegardener</a> from <a href="http://hackaday.com/2010/03/15/soil-moisture-sensing/">hackaday</a>.</p>
<div id="attachment_837" class="wp-caption aligncenter" style="width: 512px"><a href="http://www.stealthcopter.com/blog/2010/03/diy-soil-moisture-sensors/cimg0411/" rel="attachment wp-att-837"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/CIMG0411-502x799.jpg" alt="Plaster of paris humidity sensor" title="Plaster of paris humidity sensor" width="502" height="799" class="size-medium wp-image-837" /></a><p class="wp-caption-text">Plaster of paris humidity sensor</p></div>
<div id="attachment_838" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/diy-soil-moisture-sensors/cimg0412/" rel="attachment wp-att-838"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/CIMG0412-600x450.jpg" alt="Plaster of paris humidity sensor with wires attached " title="Plaster of paris humidity sensor with wires attached " width="600" height="450" class="size-medium wp-image-838" /></a><p class="wp-caption-text">Plaster of paris humidity sensor with wires attached </p></div>
<div id="attachment_839" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/diy-soil-moisture-sensors/cimg0409/" rel="attachment wp-att-839"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/CIMG0409-600x450.jpg" alt="Both of the sensors" title="Both of the sensors" width="600" height="450" class="size-medium wp-image-839" /></a><p class="wp-caption-text">Both of the sensors</p></div>
<p>I wont explain all of the theory or background as it is already explained on <a href="http://www.cheapvegetablegardener.com/2009/11/how-to-make-cheap-soil-moisture-sensor-2.html">cheapvegetablegardener</a>.</p>
<div id="attachment_841" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/diy-soil-moisture-sensors/cimg0413/" rel="attachment wp-att-841"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/CIMG0413-600x450.jpg" alt="Resistance experiment on moisture sensor" title="Resistance experiment on moisture sensor" width="600" height="450" class="size-medium wp-image-841" /></a><p class="wp-caption-text">Resistance experiment on moisture sensor</p></div>
<p>I measured the resistance of the sensor in air to be 12Kohms, I then placed the sensor into water (keeping the nail heads above the surface). The resistance dropped to 4Kohms whilst in the water, and then over 20 mins of back in air the resistance rose to 5.6Kohms. The sample still looks and feels quite wet, so I imagine it is going to take some time to dry, but from these prelimary results we can see it appears to work.</p>
<p>Soldering the wires to the nails before creating the plaster of paris along with covering the end sensor with hot glue would improve its longevity. I will post again once I find a better mould to make the plaster in as it was quite difficult to get them out of the cuvettes  (I had about a 50% success rate). </p>
<p>Here is a microscope image of the surface of the plaster:</p>
<div id="attachment_840" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/diy-soil-moisture-sensors/2010-03-28-123608/" rel="attachment wp-att-840"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-28-123608-600x450.jpg" alt="Microscope image of the surface of the plaster of paris" title="Microscope image of the surface of the plaster of paris" width="600" height="450" class="size-medium wp-image-840" /></a><p class="wp-caption-text">Microscope image of the surface of the plaster of paris</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/03/diy-soil-moisture-sensors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Measurement of microscope capabilities.</title>
		<link>http://www.stealthcopter.com/blog/2010/03/measurement-of-microscope-capabilities/</link>
		<comments>http://www.stealthcopter.com/blog/2010/03/measurement-of-microscope-capabilities/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 17:56:42 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[microscope]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=832</guid>
		<description><![CDATA[As requested (by uplink) here are some images and calculations of the microscopes maximum zoom. The images are taken with the edge of the camera case pressed right up against the ruler. You could probably remove casing to increase zoom slightly, or create a slot to slide a microscope slide into it. The camera has [...]]]></description>
			<content:encoded><![CDATA[<p>As requested (by <a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/#comments">uplink</a>) here are some images and calculations of the <a href="http://www.dealextreme.com/details.dx/sku.11743~r.27613104">microscopes</a> maximum zoom.</p>
<p>The images are taken with the edge of the camera case pressed right up against the ruler. You could probably remove casing to increase zoom slightly, or create a slot to slide a microscope slide into it. The camera has two focuses the first:</p>
<div id="attachment_833" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/measurement-of-microscope-capabilities/2010-03-27-172126/" rel="attachment wp-att-833"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-27-172126-600x480.jpg" alt="Usb digital microscope&#039;s first zoom level of a ruler (markings at 0.5mm)" title="Usb digital microscope&#039;s first zoom level of a ruler (markings at 0.5mm)" width="600" height="480" class="size-medium wp-image-833" /></a><p class="wp-caption-text">Usb digital microscope's first zoom level of a ruler (markings at 0.5mm)</p></div>
<p>And the second (maximum zoom):<br />
<div id="attachment_834" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/measurement-of-microscope-capabilities/2010-03-27-172219/" rel="attachment wp-att-834"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-27-172219-600x480.jpg" alt="Usb digital microscope&#039;s full zoom level of a ruler (markings at 0.5mm)" title="Usb digital microscope&#039;s full zoom level of a ruler (markings at 0.5mm)" width="600" height="480" class="size-medium wp-image-834" /></a><p class="wp-caption-text">Usb digital microscope's full zoom level of a ruler (markings at 0.5mm)</p></div></p>
<p>I am using my laptop screen as a typical screen and viewing the image at 100%. Poor mans calculations give you the following for the first focus and second focus:</p>
<p><strong>1mm displayed over 40mm: zoom ~ 40x<br />
1mm displayed over 150mm: zoom ~ 150x</strong></p>
<p>(Note: Measuring magnification level is rubbish as it depends on screen the image is viewed on, so viewing it on a projector would make the statistics seem more impressive.)</p>
<p>The minimum zoom is less than this as we can move the camera further from the object:</p>
<div id="attachment_835" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/measurement-of-microscope-capabilities/2010-03-27-171515/" rel="attachment wp-att-835"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-27-171515-600x480.jpg" alt="Usb digital microscope&#039;s minimum zoom level of a ruler (markings at 0.5mm)" title="Usb digital microscope&#039;s minimum zoom level of a ruler (markings at 0.5mm)" width="600" height="480" class="size-medium wp-image-835" /></a><p class="wp-caption-text">Usb digital microscope's minimum zoom level of a ruler (markings at 0.5mm)</p></div>
<p>Which is about 15x zoom. The microscope box states the zoom is between 10x and 200x, which from these tests seems a little over-exaggerated but not by much.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/03/measurement-of-microscope-capabilities/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microscope images of my eye (by request)</title>
		<link>http://www.stealthcopter.com/blog/2010/03/microscope-images-of-my-eye-by-request/</link>
		<comments>http://www.stealthcopter.com/blog/2010/03/microscope-images-of-my-eye-by-request/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 21:40:37 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[misc]]></category>
		<category><![CDATA[art?]]></category>
		<category><![CDATA[microscope]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=827</guid>
		<description><![CDATA[More microscope image of eyes were requested (by Benjie), trying to focus more on the detail of the eye by using external illumination. Unfortunately the camera has some colour problems when not using the built in LEDs, possibly because it attempts compensates for the lack of illumination. Hopefully I am not in danger of someone [...]]]></description>
			<content:encoded><![CDATA[<p>More microscope image of eyes were requested (by <a href="http://www.benjiegillam.com/">Benjie</a>), trying to focus more on the detail of the eye by using external illumination. Unfortunately the camera has some colour problems when not using the built in LEDs, possibly because it attempts compensates for the lack of illumination. Hopefully I am not in danger of someone cloning my retinal scan to gain access to my confidential files.</p>
<div id="attachment_830" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/microscope-images-of-my-eye-by-request/2010-03-26-184707/" rel="attachment wp-att-830"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-26-184707-600x750.jpg" alt="Black and white microscope image of my eye" title="Black and white microscope image of my eye" width="600" height="750" class="size-medium wp-image-830" /></a><p class="wp-caption-text">Black and white microscope image of my eye</p></div>
<div id="attachment_831" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/microscope-images-of-my-eye-by-request/2010-03-26-185051/" rel="attachment wp-att-831"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-26-185051-600x750.jpg" alt="Clear reflection of my laptop in a black and white microscope image of my eye" title="Clear reflection of my laptop in a black and white microscope image of my eye" width="600" height="750" class="size-medium wp-image-831" /></a><p class="wp-caption-text">Clear reflection of my laptop in a black and white microscope image of my eye</p></div>
<div id="attachment_828" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/microscope-images-of-my-eye-by-request/2010-03-26-185352/" rel="attachment wp-att-828"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-26-185352-600x750.jpg" alt="Coloured illuminated microscope image of my eye" title="Coloured illuminated microscope image of my eye" width="600" height="750" class="size-medium wp-image-828" /></a><p class="wp-caption-text">Coloured illuminated microscope image of my eye</p></div>
<div id="attachment_829" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/microscope-images-of-my-eye-by-request/2010-03-26-185412/" rel="attachment wp-att-829"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-26-185412-600x750.jpg" alt="Coloured illuminated microscope image of my eye (see the blood vessels)" title="Coloured illuminated microscope image of my eye (see the blood vessels)" width="600" height="750" class="size-medium wp-image-829" /></a><p class="wp-caption-text">Coloured illuminated microscope image of my eye (see the blood vessels)</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/03/microscope-images-of-my-eye-by-request/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More microscope images (21)</title>
		<link>http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/</link>
		<comments>http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 23:48:55 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[microscope]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=801</guid>
		<description><![CDATA[So I got a little carried away and started to take images of everything with my microscope: Electronics Materials Eyes Note the reflection in the image of my eye, if you zoom in and enhance you may be able to read what is on my screen which will then possibly lead to the solving of [...]]]></description>
			<content:encoded><![CDATA[<p>So I got a little carried away and started to take images of everything with my microscope:</p>
<p><strong>Electronics</strong></p>
<div id="attachment_813" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-223827/" rel="attachment wp-att-813"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-223827-600x450.jpg" alt="Magnified image of an intergrated circuit chip" title="Magnified image of an intergrated circuit chip" width="600" height="450" class="size-medium wp-image-813" /></a><p class="wp-caption-text">Magnified image of an intergrated circuit chip</p></div>
<div id="attachment_814" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-224025/" rel="attachment wp-att-814"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-224025-600x450.jpg" alt="Magnified image of an surface mount LED" title="Magnified image of an surface mount LED" width="600" height="450" class="size-medium wp-image-814" /></a><p class="wp-caption-text">Magnified image of an surface mount LED</p></div>
<div id="attachment_815" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-224221/" rel="attachment wp-att-815"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-224221-600x450.jpg" alt="Magnified image of an another integrated circuit chip" title="Magnified image of an another integrated circuit chip" width="600" height="450" class="size-medium wp-image-815" /></a><p class="wp-caption-text">Magnified image of an another integrated circuit chip</p></div>
<div id="attachment_816" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-224312/" rel="attachment wp-att-816"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-224312-600x450.jpg" alt="Magnified image of yet an another integrated circuit chip" title="Magnified image of yet an another integrated circuit chip" width="600" height="450" class="size-medium wp-image-816" /></a><p class="wp-caption-text">Magnified image of yet an another integrated circuit chip</p></div>
<div id="attachment_812" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-223259/" rel="attachment wp-att-812"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-223259-600x450.jpg" alt="Magnified image of a crocodile clip" title="Magnified image of a crocodile clip" width="600" height="450" class="size-medium wp-image-812" /></a><p class="wp-caption-text">Magnified image of a crocodile clip</p></div>
<div id="attachment_811" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-19-213634/" rel="attachment wp-att-811"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-19-213634-600x450.jpg" alt="Magnified image of a surface mounted resistors" title="Magnified image of a surface mounted resistors" width="600" height="450" class="size-medium wp-image-811" /></a><p class="wp-caption-text">Magnified image of a surface mounted resistors</p></div>
<div id="attachment_810" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-19-213603/" rel="attachment wp-att-810"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-19-213603-600x450.jpg" alt="Magnified image of a digital printed circuit board" title="Magnified image of a digital printed circuit board" width="600" height="450" class="size-medium wp-image-810" /></a><p class="wp-caption-text">Magnified image of a digital printed circuit board</p></div>
<div id="attachment_809" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-222706/" rel="attachment wp-att-809"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-222706-600x450.jpg" alt="Magnified image of a digital camera" title="Magnified image of a digital camera" width="600" height="450" class="size-medium wp-image-809" /></a><p class="wp-caption-text">Magnified image of a digital camera</p></div>
<div id="attachment_807" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-224634/" rel="attachment wp-att-807"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-224634-600x450.jpg" alt="Magnified image of a camera focussed on the glass" title="Magnified image of a camera focussed on the glass" width="600" height="450" class="size-medium wp-image-807" /></a><p class="wp-caption-text">Magnified image of a camera focussed on the glass</p></div>
<div id="attachment_808" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-224620/" rel="attachment wp-att-808"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-224620-600x450.jpg" alt="Magnified image of a camera" title="Magnified image of a camera" width="600" height="450" class="size-medium wp-image-808" /></a><p class="wp-caption-text">Magnified image of a camera</p></div>
<div id="attachment_806" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-224811/" rel="attachment wp-att-806"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-224811-600x450.jpg" alt="Magnified image of a headphone" title="Magnified image of a headphone" width="600" height="450" class="size-medium wp-image-806" /></a><p class="wp-caption-text">Magnified image of a headphone</p></div>
<div id="attachment_805" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-224714/" rel="attachment wp-att-805"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-224714-600x450.jpg" alt="Magnified image of a mobile phone speaker" title="Magnified image of a mobile phone speaker" width="600" height="450" class="size-medium wp-image-805" /></a><p class="wp-caption-text">Magnified image of a mobile phone speaker</p></div>
<div id="attachment_804" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-225419/" rel="attachment wp-att-804"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-225419-600x450.jpg" alt="Magnifieid image of a DVD" title="Magnifieid image of a DVD" width="600" height="450" class="size-medium wp-image-804" /></a><p class="wp-caption-text">Magnifieid image of a DVD</p></div>
<p><strong>Materials</strong></p>
<div id="attachment_817" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/drysponge/" rel="attachment wp-att-817"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/drysponge-600x450.jpg" alt="Magnified image of a dry sponge (with some solder burns)" title="Magnified image of a dry sponge (with some solder burns)" width="600" height="450" class="size-medium wp-image-817" /></a><p class="wp-caption-text">Magnified image of a dry sponge (with some solder burns)</p></div>
<div id="attachment_818" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/wetsponge/" rel="attachment wp-att-818"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/wetsponge-600x450.jpg" alt="Magnified image of a wet sponge (with some solder burns)" title="Magnified image of a wet sponge (with some solder burns)" width="600" height="450" class="size-medium wp-image-818" /></a><p class="wp-caption-text">Magnified image of a wet sponge (with some solder burns)</p></div>
<div id="attachment_819" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/caramel-biscuit/" rel="attachment wp-att-819"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/caramel-biscuit-600x450.jpg" alt="Magnified image of a caramel shortbread biscuit" title="Magnified image of a caramel shortbread biscuit" width="600" height="450" class="size-medium wp-image-819" /></a><p class="wp-caption-text">Magnified image of a caramel shortbread biscuit</p></div>
<div id="attachment_820" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/flapjack/" rel="attachment wp-att-820"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/flapjack-600x450.jpg" alt="Magnified image of a flapjack" title="Magnified image of a flapjack" width="600" height="450" class="size-medium wp-image-820" /></a><p class="wp-caption-text">Magnified image of a flapjack</p></div>
<div id="attachment_821" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-19-215255/" rel="attachment wp-att-821"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-19-215255-600x450.jpg" alt="Magnified image of demin" title="Magnified image of demin" width="600" height="450" class="size-medium wp-image-821" /></a><p class="wp-caption-text">Magnified image of demin</p></div>
<div id="attachment_822" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-19-215338/" rel="attachment wp-att-822"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-19-215338-600x450.jpg" alt="Magnified image of paper" title="Magnified image of paper" width="600" height="450" class="size-medium wp-image-822" /></a><p class="wp-caption-text">Magnified image of paper</p></div>
<p><strong>Eyes</strong></p>
<div id="attachment_802" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-230152/" rel="attachment wp-att-802"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-230152-600x450.jpg" alt="Magnified image of the queen&#039;s eye from a £10 note" title="Magnified image of the queen&#039;s eye from a £10 note" width="600" height="450" class="size-medium wp-image-802" /></a><p class="wp-caption-text">Magnified image of the queen's eye from a £10 note</p></div>
<div id="attachment_803" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/2010-03-20-035019/" rel="attachment wp-att-803"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/2010-03-20-035019-600x450.jpg" alt="Magnified image of an eye" title="Magnified image of an eye" width="600" height="450" class="size-medium wp-image-803" /></a><p class="wp-caption-text">Magnified image of an eye</p></div>
<p>Note the reflection in the image of my eye, if you <a href="http://www.youtube.com/watch?v=Vxq9yj2pVWk">zoom in and enhance</a> you may be able to read what is on my screen which will then possibly lead to the solving of a murder. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/03/more-microscope-images-21/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>DigiMicro 200X Zooming USB Digital Microscope in ubuntu (linux)</title>
		<link>http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/</link>
		<comments>http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 01:13:53 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[microscope]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=785</guid>
		<description><![CDATA[I&#8217;ve wanted a USB microscope for a long time, and I have finally purchased a DigiMicro 200X Zooming USB Digital Microscope from dealextreme (product link) It only cost $40.23 USD (about £27.34 GBP) which I think is quite reasnoble for the fun and cool photos I&#8217;m getting out of it. Quick Review Advantages Very Cheap [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve wanted a USB microscope for a long time, and I have finally purchased a <em>DigiMicro 200X Zooming USB Digital Microscope</em> from <a href="http://www.dealextreme.com/r.27613104">dealextreme</a> (<a href="http://www.dealextreme.com/details.dx/sku.11743~r.27613104">product link</a>) It only cost $40.23 USD (about £27.34 GBP) which I think is quite reasnoble for the fun and cool photos I&#8217;m getting out of it.</p>
<div id="attachment_800" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/20-03-2010-00-49-46/" rel="attachment wp-att-800"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/20-03-2010-00.49.46-600x450.jpg" alt="DigiMicro 200X Zooming USB Digital Microscope" title="DigiMicro 200X Zooming USB Digital Microscope" width="600" height="450" class="size-medium wp-image-800" /></a><p class="wp-caption-text">DigiMicro 200X Zooming USB Digital Microscope</p></div>
<p><strong>Quick Review</strong><br />
Advantages</p>
<ul>
<li>Very Cheap</li>
<li>Easy to setup (plug and play)</li>
<li>Can take some awesome photos, see below</li>
<li>Three illumination settings (full on, half on, off) on top of software compensation</li>
</ul>
<p>Disadvantages</p>
<ul>
<li>Controls (lights, zoom/focus and snapshot) are located on the body which make using them difficult if you are trying not to move your sample</li>
<li>The stand is not very stable, tightening it to maximum holds it steady at certain angles for short periods of time</li>
<li>Takes ~ 2 weeks to arrive from <a href="http://www.dealextreme.com/r.27613104">dealextreme</a> as they are based in hong kong</li>
</ul>
<p><strong>Setup</strong></p>
<p>The beauty of this webcam is that it requires no installation with ubuntu 9.10 you simply need to run the software and the camera works! woo! The output of `lsusb` shows the device as:</p>
<pre name="code" class="bash">
Bus 001 Device 006: ID 0c45:62e0 Microdia MSI Starcam Racer
</pre>
<p>and `dmesg` shows the following:</p>
<pre name="code" class="bash">
[22844.064666] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62e0)
[22844.080844] input: USB 2.0 Camera as /devices/pci0000:00/0000:00:0b.1/usb1/1-6/1-6:1.0/input/input9
</pre>
<p><strong>Software</strong><br />
Most video programs will pick up the device, I am opting to use a program called cheese which is awesome not only because of the name but also because of its simplicity.</p>
<pre name="code" class="bash">
sudo apt-get install cheese
</pre>
<div id="attachment_799" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/cheese/" rel="attachment wp-att-799"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/cheese-600x682.png" alt="Screenshot of cheese webcam software in action" title="Screenshot of cheese webcam software in action" width="600" height="682" class="size-medium wp-image-799" /></a><p class="wp-caption-text">Screenshot of cheese webcam software in action</p></div>
<p><strong>Lens Cap</strong><br />
Remember to take the lens cap off otherwise you will end up focusing on the plastic cap as shown below. It is fairly obvious if this is the problem as moving the microscope will only change the light levels not the image.</p>
<div id="attachment_797" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/lenscap/" rel="attachment wp-att-797"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/lenscap-600x450.jpg" alt="Photo of the microscope focussed on its lens cap" title="Photo of the microscope focussed on its lens cap" width="600" height="450" class="size-medium wp-image-797" /></a><p class="wp-caption-text">Photo of the microscope focussed on its lens cap</p></div>
<p><strong>Pretty images</strong><br />
<div id="attachment_786" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/fluff/" rel="attachment wp-att-786"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/fluff-600x450.jpg" alt="200x Microscope image of belly button fluff" title="200x Microscope image of belly button fluff " width="600" height="450" class="size-medium wp-image-786" /></a><p class="wp-caption-text">200x Microscope image of belly button fluff </p></div></p>
<div id="attachment_791" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/fluff2/" rel="attachment wp-att-791"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/fluff2-600x450.jpg" alt="Full ~200x zoom microscope image of belly button fluff" title="Full ~200x zoom microscope image of belly button fluff " width="600" height="450" class="size-medium wp-image-791" /></a><p class="wp-caption-text">Full ~200x zoom microscope image of belly button fluff </p></div>
<div id="attachment_787" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/coin/" rel="attachment wp-att-787"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/coin-600x480.jpg" alt="200x Microscope image of a £2 coin" title="200x Microscope image of a £2 coin" width="600" height="480" class="size-medium wp-image-787" /></a><p class="wp-caption-text">200x Microscope image of a £2 coin</p></div>
<div id="attachment_793" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/coin2/" rel="attachment wp-att-793"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/coin2-600x450.jpg" alt="Full ~200x zoom magnified section of a £2 coin" title="Full ~200x zoom magnified section of a £2 coin" width="600" height="450" class="size-medium wp-image-793" /></a><p class="wp-caption-text">Full ~200x zoom magnified section of a £2 coin</p></div>
<div id="attachment_788" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/custard/" rel="attachment wp-att-788"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/custard-600x480.jpg" alt="200x Microscope image of a custard blob" title="200x Microscope image of a custard blob" width="600" height="480" class="size-medium wp-image-788" /></a><p class="wp-caption-text">200x Microscope image of a custard blob</p></div>
<div id="attachment_789" class="wp-caption aligncenter" style="width: 222px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/screen1/" rel="attachment wp-att-789"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/screen1.jpg" alt="Nonmagnified screenshot of section of screen with the google logo" title="Nonmagnified screenshot of section of screen with the google logo" width="212" height="75" class="size-full wp-image-789" /></a><p class="wp-caption-text">Nonmagnified screenshot of section of screen with the google logo</p></div>
<div id="attachment_790" class="wp-caption aligncenter" style="width: 433px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/screen2/" rel="attachment wp-att-790"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/screen2.jpg" alt="200x magnified section of screen with the google logo showing the individual pixels" title="200x magnified section of screen with the google logo showing the individual pixels" width="423" height="491" class="size-full wp-image-790" /></a><p class="wp-caption-text">200x magnified section of screen with the google logo showing the individual pixels</p></div>
<div id="attachment_792" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/screen3/" rel="attachment wp-att-792"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/screen3-600x450.jpg" alt="Full ~200x zoom magnified section of screen with the google logo showing the individual pixels" title="Full ~200x zoom magnified section of screen with the google logo showing the individual pixels" width="600" height="450" class="size-medium wp-image-792" /></a><p class="wp-caption-text">Full ~200x zoom magnified section of screen with the google logo showing the individual pixels</p></div>
<div id="attachment_794" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/fingerprint/" rel="attachment wp-att-794"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/fingerprint-600x450.jpg" alt="Full ~200x zoom magnified section of my finger" title="Full ~200x zoom magnified section of my finger" width="600" height="450" class="size-medium wp-image-794" /></a><p class="wp-caption-text">Full ~200x zoom magnified section of my finger</p></div>
<div id="attachment_795" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/fingerprint2/" rel="attachment wp-att-795"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/fingerprint2-600x450.jpg" alt="Full ~200x zoom magnified another section of my finger" title="Full ~200x zoom magnified another section of my finger" width="600" height="450" class="size-medium wp-image-795" /></a><p class="wp-caption-text">Full ~200x zoom magnified another section of my finger</p></div>
<div id="attachment_796" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/led/" rel="attachment wp-att-796"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/LED-600x450.jpg" alt="Full ~200x zoom magnified section of an LED" title="Full ~200x zoom magnified section of an LED" width="600" height="450" class="size-medium wp-image-796" /></a><p class="wp-caption-text">Full ~200x zoom magnified section of an LED</p></div>
<div id="attachment_798" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/ldr/" rel="attachment wp-att-798"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/03/ldr-600x450.jpg" alt="Full ~200x zoom magnified section of an LDR" title="Full ~200x zoom magnified section of an LDR" width="600" height="450" class="size-medium wp-image-798" /></a><p class="wp-caption-text">Full ~200x zoom magnified section of an LDR</p></div>
<p>Any requests for microscope images (within reason) will be considered <img src='http://www.stealthcopter.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Python: interfacing with an arduino</title>
		<link>http://www.stealthcopter.com/blog/2010/02/python-interfacing-with-an-arduino/</link>
		<comments>http://www.stealthcopter.com/blog/2010/02/python-interfacing-with-an-arduino/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 11:42:56 +0000</pubDate>
		<dc:creator>mat</dc:creator>
				<category><![CDATA[arduino]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=204</guid>
		<description><![CDATA[So what is an arduino? An arduino is an open source open hardware programmable controller with several inputs and outputs. The image below shows an Ardunio Dicemella. It (Arduino Dicemella) has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz crystal oscillator, a USB connection, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>So what is an arduino?</strong><br />
An <a href="http://www.arduino.cc/">arduino</a> is an open source open hardware programmable controller with several inputs and outputs. The image below shows an <a href="http://www.arduino.cc/en/Main/ArduinoBoardDiecimila">Ardunio Dicemella</a>.</p>
<div id="attachment_472" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.stealthcopter.com/blog/wp-content/uploads/2009/12/arduino.jpg"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2009/12/arduino-300x172.jpg" alt="Ardunio Dicemella Annotated Photo" title="Ardunio Dicemella Annotated Photo" width="300" height="172" class="size-medium wp-image-472" /></a><p class="wp-caption-text">Ardunio Dicemella Annotated Photo</p></div>
<blockquote><p>It (Arduino Dicemella) has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.</p></blockquote>
<p>They are very useful for people who know how to program but have little experience with hardware interaction.</p>
<p><strong>Programming the arduino</strong><br />
This post will not contain in-depth detail on how to program the arduino, instead focussing briefly on setting up serial (over serial or usb cable) communications in order to talk to a python script. The arduino can be programmed via a IDE provided by the creators in a C-style hardware language.</p>
<p><strong>Code example</strong></p>
<pre name="code" class="c">
int ledPin = 13;            // choose the pin for the LED
int inputPin = 2;          // choose the input pin (for a pushbutton)
int val = 0;                // variable for reading the pin status

void setup() {
  pinMode(ledPin, OUTPUT);      // declare LED as output
  pinMode(inputPin, INPUT);     // declare pushbutton as input
}

void loop(){
  val = digitalRead(inputPin);  // read input value
  if (val == HIGH) {            // check if the input is HIGH
    digitalWrite(ledPin, HIGH);  // turn LED ON
  } else {
    digitalWrite(ledPin, LOW); // turn LED OFF
  }
}
</pre>
<div id="attachment_596" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/arduino1.jpg"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/arduino1-300x170.jpg" alt="Arduino LED switch circuit off" title="Arduino LED switch circuit off" width="300" height="170" class="size-medium wp-image-596" /></a><p class="wp-caption-text">Arduino LED switch circuit off</p></div>
<div id="attachment_598" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/arduino2.jpg"><img src="http://www.stealthcopter.com/blog/wp-content/uploads/2010/01/arduino2-300x170.jpg" alt="Arduino LED switch circuit on" title="Arduino LED switch circuit on" width="300" height="170" class="size-medium wp-image-598" /></a><p class="wp-caption-text">Arduino LED switch circuit on</p></div>
<p>Now we add a few lines to enable the writing of information from our arduino over the serial connection. We first need to set up the transfer speed in our setup (<em>Serial.begin(9600);</em>). Then we can simply send messages over serial using <em>Serial.print(&#8220;message\n&#8221;);</em>. You can choose between print and println with the difference been that the latter automatically appends the newline char, so we would use the former to write multiple things to the same line. Below is our modified code:</p>
<p><strong>Serial write example</strong></p>
<pre name="code" class="c">
int ledPin = 13;           // choose the pin for the LED
int inputPin = 2;         // choose the input pin (for a pushbutton)
int val = 0;               // variable for reading the pin status

void setup() {
  pinMode(ledPin, OUTPUT);      // declare LED as output
  pinMode(inputPin, INPUT);     // declare pushbutton as input
  Serial.begin(9600);
  Serial.print("Program Initiated\n");
}

void loop(){
  val = digitalRead(inputPin);  // read input value
  if (val == HIGH) {            // check if the input is HIGH
    digitalWrite(ledPin, HIGH);  // turn LED ON
    Serial.print("LED Activated\n");
  } else {
    digitalWrite(ledPin, LOW); // turn LED OFF
  }
}
</pre>
<p>We now add into this code the ability to receive information via serial. Below is the modified example which removes the action of the button and replaces it by activating the LED when &#8216;Y&#8217; is sent via serial. </p>
<p><strong>Serial read example</strong></p>
<pre name="code" class="c">
int ledPin = 13;  // choose the pin for the LED
int val = 0;      // variable for reading the pin status
char msg = '  ';   // variable to hold data from serial

void setup() {
  pinMode(ledPin, OUTPUT);      // declare LED as output
  Serial.begin(9600);
  Serial.print("Program Initiated\n");
}

void loop(){
        // While data is sent over serial assign it to the msg
	while (Serial.available()>0){
		msg=Serial.read();
	}

  // Turn LED on/off if we recieve 'Y'/'N' over serial
  if (msg=='Y') {
    digitalWrite(ledPin, HIGH);  // turn LED ON
    Serial.print("LED Activated\n");
    msg=' ';
  } else if (msg=='N') {
    digitalWrite(ledPin, LOW); // turn LED OFF
  }
}
</pre>
<p><strong>Interaction with python</strong></p>
<p>First we import the serial library to python in order to communicate with the arduino (this includes talking over usb).</p>
<pre name="code" class="python">import serial</pre>
<p>We then attempt to connect to our arduino on /dev/ttyUSB0, using try and except to catch an exception if we are unable to find the arduino on USB0. The 9600 corresponds to the baud rate (speed of communication) that we are using with the arduino and should be the same as set in the program on the arduino otherwise your communication may appear garbled.</p>
<pre name="code" class="python">try:
	arduino = serial.Serial('/dev/ttyUSB0', 9600)
except:
	print "Failed to connect on /dev/ttyUSB0"
</pre>
<p>The address will be /dev/ttyUSB# where # is replaced by a number for arduinos connected via usb and /dev/ttyS# where # is replaced by a number for arduinos connected via serial. If you are not sure of the location of your arduino, it can be found in the arduino IDE or you can write some python to scroll through possible locations until a response is found</p>
<pre name="code" class="python">
locations=['/dev/ttyUSB0','/dev/ttyUSB1','/dev/ttyUSB2','/dev/ttyUSB3',
'/dev/ttyS0','/dev/ttyS1','/dev/ttyS2','/dev/ttyS3']

for device in locations:
	try:
		arduino = serial.Serial(device, 9600)
	except:
		print "Failed to connect on",device
</pre>
<p>You may need to be careful as other devices can be connected. For example if I try to connect to /dev/ttyS0 I will connect to the wacom tablet on my laptop.</p>
<p>Once you have connected to your arduino successfully you can write information to it using write and read information sent from it using read (you will need to import time to use the sleep function). If your arduino does not send any messages via serial then attempting to readline will result in your program hanging until it receives a message.</p>
<pre name="code" class="python">
try:
	arduino.write('Y')
	time.sleep(1)
	print arduino.readline()
except:
	print "Failed to send!"
</pre>
<p>So the python code should now look like the following and we should be able to control the LED over serial.</p>
<pre name="code" class="python">
import serial
import time

locations=['/dev/ttyUSB0','/dev/ttyUSB1','/dev/ttyUSB2','/dev/ttyUSB3',
'/dev/ttyS0','/dev/ttyS1','/dev/ttyS2','/dev/ttyS3']  

for device in locations:
	try:
		print "Trying...",device
		arduino = serial.Serial(device, 9600)
		break
	except:
		print "Failed to connect on",device   

try:
    arduino.write('Y')
    time.sleep(1)
    print arduino.readline()
except:
    print "Failed to send!"
</pre>
<p>The above will send the character &#8216;Y&#8217; (Y for Yes please turn on the LED) to the arduino wait for 1 second and then read from the arduino which will have hopefully posted a response to our &#8216;Y&#8217;. Using the program on this should turn the LED on, and report <em>LED Activated</em> back via serial to our python program. This should be enough for people to get started with ardunios and communicating with them in python.</p>
<p><strong>References</strong></p>
<ul>
<li><a href="http://www.arduino.cc/">Arduino</a> &#8211; The arduino website with everything you are likely to need (programming examples and reference guide, and hardware information)</li>
<li>
<a href="http://www.ladyada.net/learn/arduino/">Arduino tutorial </a> &#8211;  a basic and easy to understand tutorial on programming the arduino
</li>
<li><a href="http://lemonodor.com/archives/2008/02/arduino_serial.html/">Python port of arduino-serial.c</a> &#8211; By John Wiseman from which I based my program.</li>
<li><a href="http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/">original arduino-serial.c</a> &#8211; by Tod E. Kurt.</li>
<li><a href="http://www.sparkfun.com">Sparkfun</a> &#8211; Here is a good place to purchase ardunio and other electronics parts. Try <a href="http://www.coolcomponents.co.uk">coolcomponents</a> if your from the uk like me</li>
<li><a href="http://www.dealextreme.com/default.dx/r.27613104">Dealextreme</a> &#8211; Hong Kong based retailer that sells a lot of cheap DIY electronics and also has worldwide free delivery with no min spend (crazy). Does take about two weeks to arrive though (uk).</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.stealthcopter.com/blog/2010/02/python-interfacing-with-an-arduino/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
