{"id":37,"date":"2009-05-18T16:29:03","date_gmt":"2009-05-18T20:29:03","guid":{"rendered":"http:\/\/www.braindeadprojects.com\/blog\/?p=37"},"modified":"2009-05-25T19:55:45","modified_gmt":"2009-05-25T23:55:45","slug":"the-intel-qx3-microscope","status":"publish","type":"post","link":"http:\/\/www.braindeadprojects.com\/blog\/what\/the-intel-qx3-microscope\/","title":{"rendered":"The Intel QX3 Microscope"},"content":{"rendered":"<p>Well, the bad news is the ant colony I was rearing has died off. I&#8217;m unsure what the problem was, but the ant queen was found dead, followed by the only two offspring dying a couple of days later.<\/p>\n<p>I don&#8217;t have a decent digital camera that can take decent pictures of something as small as an ant, and I came across an old article detailing an interesting childrens toy: The Intel QX3 microscope.<\/p>\n<figure style=\"width: 240px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" title=\"QX3 Microsocpe\" src=\"http:\/\/www.braindeadprojects.com\/img\/qx3-small.jpg\" alt=\"The QX3 Microscope\" width=\"240\" height=\"320\" \/><figcaption class=\"wp-caption-text\">The QX3 Microscope<\/figcaption><\/figure>\n<p>It was released about 10 years ago, so I&#8217;m obviously behind the times. The resolution isn&#8217;t the greatest (the QX3 is a first-gen, but the QX5 has some improvements including better resolution).<\/p>\n<p>The device runs well on linux, you need the following configuration options (in addition to normal USB drivers):<\/p>\n<blockquote><p>CONFIG_VIDEO_CPIA=m<\/p>\n<p>CONFIG_VIDEO_CPIA_USB=m<\/p><\/blockquote>\n<p>The camera (the microscope is basically a webcam) has a number of interesting settings, all touchable via the \/proc filesystem:<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>&#8212;&#8212;&#8211;<\/td>\n<td>current<\/td>\n<td>min<\/td>\n<td>max<\/td>\n<td>default<\/td>\n<td>comment<\/td>\n<\/tr>\n<tr>\n<td>brightness:<\/td>\n<td>50<\/td>\n<td>0<\/td>\n<td>100<\/td>\n<td>50<\/td>\n<\/tr>\n<tr>\n<td>contrast:<\/td>\n<td>48<\/td>\n<td>0<\/td>\n<td>96<\/td>\n<td>48<\/td>\n<td>steps of 8<\/td>\n<\/tr>\n<tr>\n<td>saturation:<\/td>\n<td>50<\/td>\n<td>0<\/td>\n<td>100<\/td>\n<td>50<\/td>\n<\/tr>\n<tr>\n<td>sensor_fps:<\/td>\n<td>3.750<\/td>\n<td>3<\/td>\n<td>30<\/td>\n<td>15<\/td>\n<\/tr>\n<tr>\n<td>stream_start_line:<\/td>\n<td>240<\/td>\n<td>0<\/td>\n<td>288<\/td>\n<td>240<\/td>\n<\/tr>\n<tr>\n<td>sub_sample:<\/td>\n<td>422<\/td>\n<td>420<\/td>\n<td>422<\/td>\n<td>422<\/td>\n<\/tr>\n<tr>\n<td>yuv_order:<\/td>\n<td>YUYV<\/td>\n<td>YUYV<\/td>\n<td>UYVY<\/td>\n<td>YUYV<\/td>\n<\/tr>\n<tr>\n<td>ecp_timing:<\/td>\n<td>normal<\/td>\n<td>slow<\/td>\n<td>normal<\/td>\n<td>normal<\/td>\n<\/tr>\n<tr>\n<td>color_balance_mode:<\/td>\n<td>auto<\/td>\n<td>manual<\/td>\n<td>auto<\/td>\n<td>auto<\/td>\n<\/tr>\n<tr>\n<td>red_gain:<\/td>\n<td>15<\/td>\n<td>0<\/td>\n<td>212<\/td>\n<td>32<\/td>\n<\/tr>\n<tr>\n<td>green_gain:<\/td>\n<td>31<\/td>\n<td>0<\/td>\n<td>212<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>blue_gain:<\/td>\n<td>39<\/td>\n<td>0<\/td>\n<td>212<\/td>\n<td>92<\/td>\n<\/tr>\n<tr>\n<td>max_gain:<\/td>\n<td>8<\/td>\n<td>1<\/td>\n<td>8<\/td>\n<td>2<\/td>\n<td>1,2,4 or 8<\/td>\n<\/tr>\n<tr>\n<td>exposure_mode:<\/td>\n<td>auto<\/td>\n<td>manual<\/td>\n<td>auto<\/td>\n<td>auto<\/td>\n<\/tr>\n<tr>\n<td>centre_weight:<\/td>\n<td>on<\/td>\n<td>off<\/td>\n<td>on<\/td>\n<td>on<\/td>\n<\/tr>\n<tr>\n<td>gain:<\/td>\n<td>4<\/td>\n<td>1<\/td>\n<td>max_gain<\/td>\n<td>1<\/td>\n<td>1,2,4,8 possible<\/td>\n<\/tr>\n<tr>\n<td>fine_exp:<\/td>\n<td>2<\/td>\n<td>0<\/td>\n<td>510<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>coarse_exp:<\/td>\n<td>302<\/td>\n<td>0<\/td>\n<td>302<\/td>\n<td>185<\/td>\n<\/tr>\n<tr>\n<td>red_comp:<\/td>\n<td>220<\/td>\n<td>220<\/td>\n<td>255<\/td>\n<td>220<\/td>\n<\/tr>\n<tr>\n<td>green1_comp:<\/td>\n<td>214<\/td>\n<td>214<\/td>\n<td>255<\/td>\n<td>214<\/td>\n<\/tr>\n<tr>\n<td>green2_comp:<\/td>\n<td>214<\/td>\n<td>214<\/td>\n<td>255<\/td>\n<td>214<\/td>\n<\/tr>\n<tr>\n<td>blue_comp:<\/td>\n<td>230<\/td>\n<td>230<\/td>\n<td>255<\/td>\n<td>230<\/td>\n<\/tr>\n<tr>\n<td>apcor_gain1:<\/td>\n<td>0\u00d718<\/td>\n<td>0\u00d70<\/td>\n<td>0xff<\/td>\n<td>0\u00d71c<\/td>\n<\/tr>\n<tr>\n<td>apcor_gain2:<\/td>\n<td>0\u00d716<\/td>\n<td>0\u00d70<\/td>\n<td>0xff<\/td>\n<td>0\u00d71a<\/td>\n<\/tr>\n<tr>\n<td>apcor_gain4:<\/td>\n<td>0\u00d724<\/td>\n<td>0\u00d70<\/td>\n<td>0xff<\/td>\n<td>0\u00d72d<\/td>\n<\/tr>\n<tr>\n<td>apcor_gain8:<\/td>\n<td>0\u00d734<\/td>\n<td>0\u00d70<\/td>\n<td>0xff<\/td>\n<td>0\u00d72a<\/td>\n<\/tr>\n<tr>\n<td>vl_offset_gain1:<\/td>\n<td>20<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>24<\/td>\n<\/tr>\n<tr>\n<td>vl_offset_gain2:<\/td>\n<td>24<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>28<\/td>\n<\/tr>\n<tr>\n<td>vl_offset_gain4:<\/td>\n<td>26<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>30<\/td>\n<\/tr>\n<tr>\n<td>vl_offset_gain8:<\/td>\n<td>26<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>30<\/td>\n<\/tr>\n<tr>\n<td>flicker_control:<\/td>\n<td>off<\/td>\n<td>off<\/td>\n<td>on<\/td>\n<td>off<\/td>\n<\/tr>\n<tr>\n<td>mains_frequency:<\/td>\n<td>50<\/td>\n<td>50<\/td>\n<td>60<\/td>\n<td>50<\/td>\n<td>only 50\/60<\/td>\n<\/tr>\n<tr>\n<td>allowable_overexposure:<\/td>\n<td>141auto<\/td>\n<td>auto<\/td>\n<td>255<\/td>\n<td>auto<\/td>\n<\/tr>\n<tr>\n<td>compression_mode:<\/td>\n<td>auto<\/td>\n<td>none,auto,manual<\/td>\n<td>auto<\/td>\n<\/tr>\n<tr>\n<td>decimation_enable:<\/td>\n<td>off<\/td>\n<td>off<\/td>\n<td>on<\/td>\n<td>off<\/td>\n<\/tr>\n<tr>\n<td>compression_target:<\/td>\n<td>quality<\/td>\n<td>framerate<\/td>\n<td>quality<\/td>\n<td>quality<\/td>\n<\/tr>\n<tr>\n<td>target_framerate:<\/td>\n<td>15<\/td>\n<td>1<\/td>\n<td>30<\/td>\n<td>15<\/td>\n<\/tr>\n<tr>\n<td>target_quality:<\/td>\n<td>5<\/td>\n<td>1<\/td>\n<td>64<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>y_threshold:<\/td>\n<td>12<\/td>\n<td>0<\/td>\n<td>31<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>uv_threshold:<\/td>\n<td>11<\/td>\n<td>0<\/td>\n<td>31<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>hysteresis:<\/td>\n<td>3<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>threshold_max:<\/td>\n<td>11<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>11<\/td>\n<\/tr>\n<tr>\n<td>small_step:<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>large_step:<\/td>\n<td>3<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>decimation_hysteresis:<\/td>\n<td>2<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>fr_diff_step_thresh:<\/td>\n<td>5<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>q_diff_step_thresh:<\/td>\n<td>3<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>decimation_thresh_mod:<\/td>\n<td>2<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>toplight:<\/td>\n<td>off<\/td>\n<td>off<\/td>\n<td>on<\/td>\n<td>off<\/td>\n<\/tr>\n<tr>\n<td>bottomlight:<\/td>\n<td>off<\/td>\n<td>off<\/td>\n<td>on<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You can alter any of these settings by doing something like:<\/p>\n<blockquote><p>echo &#8220;bottomlight: on&#8221; &gt; \/proc\/cpia\/videoX<\/p><\/blockquote>\n<p>(I&#8217;ve found that you need to have the camera actively in use for these settings changes to actually work).<\/p>\n<p>Two programs work well with the camera &#8211; xawtv and tvtime. TvTime has a few minor issues that I&#8217;ve yet to work out, but I&#8217;ll figure that out eventually (namely the buffer isn&#8217;t filling up properly). XawTV has an issue with screencaptures &#8211; again an issue I&#8217;ll work out shortly.<\/p>\n<p>For better images, I&#8217;ve found that setting sensor_fps to 10 works well. One I have a specimen on the slide and in proper position, I drop that to 3 to actually take the image.<\/p>\n<p>As I mentioned earlier, the resolution isn&#8217;t that great.\u00a0 I&#8217;ve been told lighting is the key, and I&#8217;m still experimenting. Here&#8217;s the head of the queen ant, I&#8217;m sure of species:<\/p>\n<figure style=\"width: 350px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" title=\"Queen ant, taken w\/ QX3\" src=\"http:\/\/braindeadprojects.com\/img\/queen-ant-head.png\" alt=\"Queen ant, taken w\/ QX3\" width=\"350\" height=\"287\" \/><figcaption class=\"wp-caption-text\">Queen ant, taken w\/ QX3<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Well, the bad news is the ant colony I was rearing has died off. I&#8217;m unsure what the problem was, but the ant queen was found dead, followed by the only two offspring dying a couple of days later. I don&#8217;t have a decent digital camera that can take decent pictures of something as small &hellip; <a href=\"http:\/\/www.braindeadprojects.com\/blog\/what\/the-intel-qx3-microscope\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">The Intel QX3 Microscope<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-what"],"_links":{"self":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/37"}],"collection":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":15,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":57,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions\/57"}],"wp:attachment":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}