zundscope
zund usb microscope tool with wifi streaming


Connecting to the scope
- Add power through USB battery (remember to push the button)
- Give Linux about ~60 seconds to start up.
- Join the "Zundtastic" wifi network from any nearby computer.
- Open a terminal and log into the tool:
ssh pi@192.168.4.1
- Start the webcam server:
/usr/local/bin/mjpg_streamer -i "/usr/local/lib/mjpg-streamer/input_uvc.so -n -f 15 -r 1920x1080" -o "/usr/local/lib/mjpg-streamer/output_http.so -p 8080 -w /usr/local/www"
- Open a web browser and go to
http://192.168.4.1:8080/target.html
to view the stream. - When you are ready to shut down the scope, from the terminal run
sudo shutdown now
- Unplug the battery.
BOM
- Raspberry Pi Zero W, $10.00
- SuperEyes B008 USB Microscope, $95.50
- Anker 3350mAh USB Battery, $19.99
- Flat tipped set screw 5mmx0.8mmx10mm, McMaster 92605A233, $6.38 for pack of 50 (only need 8)
- Low-profile socket head cap screws 3mm (TODO, find exact link)
- USB type A plug (TODO, find exact link)
For alignment, I find this 2.5mm hex-shank allen bit helpful: McMaster 7389A22
Also, for tapping the M3 mounting holes for the raspberry pi, a tap is helpful (can also just use the screws to threadform). E.G. McMaster 8302A12
Building the scope
3D models to print
The main body, with supports for 3D printing is available here.

Setting up Raspberry Pi
TODO: host OS image for preconfigured download for flashing SD cards
TODO: make detailed installation instructions from vanilla raspian
Assembly
TODO

Alignment
The tool can be aligned to the rotational axis of the universal module by adjusting the set screws on the lower part of the tool body. This allows the microscope to be used for accurate registration tasks (in addition to simple measurement and inspection tasks, for which alignment isn't necessary).
TODO: write detailed instructions.
Future tasks
- Make a startup service that starts the webcam server. Need to issue the shutdown command via the webpage to avoid potential corruption of SD card.
- Would be great to adjust field of view without disassembling the scope. Maybe as simple as an access hole for adjusting knob.
- Figure out how to use for Registration, not just Reference in ZCC.