Millidoc

Features The millidoc / milliscope is a very useful device for inspecting and documenting small, but not microscopic, objects.  ? to ~75x magnification on 15" monitor  Full HD video at 30 fps  Real time output to LCD monitor  ToDo:  5 MP still photos  Recording to external HD or network fileserver  Audio recording for voice-over explanations  Stream over local network (for display via projector) </li> Stream online, e.g. ustream or own server </li> Automatic upload to Youtube / Vimeo / Flickr / your server </li> Total cost: Under ~$200 </li></ul> Magnification  When using a Durst 606 photo-enlarger, at maximum zoom a 4 mm object will approximately fill the width of the monitor. For a 15" monitor that is about 75x magnification. The exact magnifying power will vary depending on the photo-enlarger and the monitor. Bill of materials Summary of materials and Cost  Used photo-enlarger: ~$30 </li> Raspberry Pi: $40 </li> Raspberry Pi camera: <a rel="nofollow" class="external text" href="http://www.ebay.com/itm/Raspberry-Pi-Camera-Board-w-M12x0-5-mount-Lens-/281212352673?pt=LH_DefaultDomain_0&amp;hash=item41798ff8a1">$19</a>  Or search ebay for Raspberry Pi Camera Board /w M12x0.5 mount Lens. Anything with lens that's attached with screws will do. We don't need the lens. </li></ul> </li> SD card (1 GB or more): $6 (4 GB sandisk class 4) </li></ul> <dl><dd>Don't cheap out. Get a sandisk. 1 GB is enough though. </dd></dl>  Cables  HDMI to DVI: $3.33 for 3 feet (monoprice) </li> Micro USB: $1.11 for 3 feet (monoprice) </li> Power on/off toggle: $2.95 (<a rel="nofollow" class="external text" href="https://www.adafruit.com/products/1620">adafruit</a>) </li><li> USB extender: $1.02 for 3 feet (monoprice) </li><li> Ethernet cable: $2.07 for 20 feet </li></ul> </li><li> USB sound card: $2.21 (<a rel="nofollow" class="external text" href="http://www.dx.com/p/5-1-channel-usb-sound-card-adapter-black-59039">dx.com</a>) </li><li> Microphone: $1.71 (<a rel="nofollow" class="external text" href="http://www.amazon.com/3-5mm-Flexible-Microphone-Laptop-Skype/dp/B002EQ6E9E/ref=sr_1_7?ie=UTF8&amp;qid=1406975296&amp;sr=8-7&amp;keywords=microphone">kiki mall via amazon</a>) </li></ul> <dl><dd>Consider getting a high quality microphone. Audio quality is super important. </dd></dl> <ul><li> AC outlet to 5 volt USB (min 1 amp): $5 </li><li> LCD monitor with DVI input: $25 (used 15" or better) </li><li> Lamp: $10 (<a rel="nofollow" class="external text" href="http://www.ikea.com/us/en/catalog/products/20169658/">ikea</a>) </li><li> A piece of corrugated plastic: ~$5 </li><li> Record button: $1.5 (<a rel="nofollow" class="external text" href="https://www.adafruit.com/products/1190">adafruit</a>) </li><li> Microphone mute button: $1.5 (<a rel="nofollow" class="external text" href="https://www.adafruit.com/products/1479">adafruit</a>) </li><li> Snapshot button: $1 (<a rel="nofollow" class="external text" href="http://www.adafruit.com/products/1504">adafruit</a>) </li><li> Pin header: $2.95 (<a rel="nofollow" class="external text" href="https://www.adafruit.com/products/598">adafruit</a>) </li></ul> <ul><li> Total: ~$175 + tax and shipping </li></ul> Tools and minor materials <ul><li> Box cutter or exacto knife </li><li> Wide clear packing tape </li></ul> <dl><dd>Though any wide tape will do </dd></dl> <ul><li> Hot glue gun and glue </li></ul> <ul><li> Currugated plastic </li></ul> Photo-enlarger A photo-enlarger is a device used to project light through a photo-negative, magnifying the image onto photo-sensitive paper in order to create a large version of the photo. They are little-used nowadays and can be gotten for cheap or free. I've gotten them for between $0 and $50. If you're in the bay area good places to look for them are Urban Ore in Berkeley and the East Bay Center for Creative Re-use in Oakland, or of course Craigslist. I recommend getting a table-top model. Larger wall-mount units also exist but they are unwieldy and I have not yet attempted to modify one. There seem to be two distinct designs when it comes to tabletop photo-enlarger. One type has the magnifier mounted on a pole at a 90 degree angle to the table and another has it mounted at a somewhat smaller angle. The 90 degree angle model is preferable since you can zoom in and out without changing the relative position of the camera and the object being studied. It is possible to modify the non-90-degree models to 90-degrees with the trade-off being that the camera will then be pointed at the object at an angle. I have modified the following models so far: <ul><li>Durst 606 (90 degree) </li><li>Omega C-700 (less than 90 degree) </li></ul> You may come across photo-enlargers in less than perfect condition. You don't need a fully intact photo-enlarger. The only part of the optics you need is the final lens that is mounted right before the light leaves the photo-enlarger. You don't need any of the big magnifying-lense optics or mirrors. You don't need the the lightbulb or lightbulb-socket either. If the final lense is there and isn't too scratched up and the knobs for adjusting focus and zoom are working, then your photo-enlarger will be suitable for modification into a milliscope. Lighting The milliscope will need a light source. I recommend this cheap adjustable LED work lamp from Ikea: <ul><li><a rel="nofollow" class="external text" href="http://www.ikea.com/us/en/catalog/products/20169658/">JANSJÖ</a> for $10 </li></ul> Whatever you do, don't use a light-source with fluorescent bulbs as they will cause flickering and banding on the video. Camera mode These are the camera modes supported by the Raspberry Pi camera: <ul><li> 2592×1944 1-15fps, video or stills mode, Full sensor full FOV, default stills capture </li><li> 1920×1080 1-30fps, video mode, 1080p30 cropped </li><li> 1296×972 1-42fps, video mode, 4:3 aspect binned full FOV. Used for stills preview in raspistill. </li><li> 1296×730 1-49fps, video mode, 16:9 aspect, binned, full FOV (width), used for 720p </li><li> 640×480 42.1-60fps, video mode, up to VGAp60 binned </li><li> 640×480 60.1-90fps, video mode, up to VGAp90 binned </li></ul> <a rel="nofollow" class="external text" href="http://www.raspberrypi.org/new-camera-mode-released/">source</a> The one you want to use for the milliscope is 1920x1080 at 30 fps. As you can see, it is cropped a cropped mode meaning that it gives us only a portion of the full image as seen by the camera. This is a good thing for two reasons: <ul><li> It gives us a bit of extra zoom. </li><li> Unless you manage to remove all of the black plastic that used to hold the lens over the CCD the non-cropped modes will give you a view like you're looking down a tunnel with round black borders. </li></ul> Technical notes Intesting stuff <a rel="nofollow" class="external free" href="https://github.com/monsieurpod/raspifpv">https://github.com/monsieurpod/raspifpv</a> What I did Installed raspian on sd-card and configured using built-in configurator. Ran upgrade: aptitude update aptitude safe-upgrade Used this guide for read-only root: <a rel="nofollow" class="external free" href="http://blog.pi3g.com/2014/04/make-raspbian-system-read-only/">http://blog.pi3g.com/2014/04/make-raspbian-system-read-only/</a> Installed avahi: aptitude install avahi-daemon Disabled bootclean autostart: update-rc.d checkroot-bootclean.sh disable Added this script for re-mounting read-write: mount -o remount,rw / /etc/init.d/triggerhappy stop /etc/init.d/avahi-daemon stop /etc/init.d/cron stop /etc/init.d/rsyslog stop /etc/init.d/dbus stop ifdown eth0 umount /var mount -o bind /var_org /var umount /etc mount -o bind /etc_org/ /etc /etc/init.d/triggerhappy start /etc/init.d/cron start /etc/init.d/rsyslog start /etc/init.d/dbus start /etc/init.d/avahi-daemon start ifup eth0 Ran clean: aptitude clean aptitude autoclean
 * 1) !/bin/sh