README.md 2.7 KB
Newer Older
Sam Calisch's avatar
Sam Calisch committed
1
2
# zundscope

Sam Calisch's avatar
Sam Calisch committed
3
4
zund usb microscope tool with wifi streaming

Sam Calisch's avatar
Sam Calisch committed
5
6
7
8
<img src='img/zundscope.jpg' height=400px><br>



Sam Calisch's avatar
Sam Calisch committed
9
10
11
12
<img src='img/UDT_corner-2.jpg' height=300px>
<img src='img/UDT_corner.jpg' height=300px>


Sam Calisch's avatar
Sam Calisch committed
13
## Connecting to the scope
Sam Calisch's avatar
Sam Calisch committed
14
15
16
17
18
19
20
21
22
23

1. Add power through USB battery (remember to push the button)
2. Give Linux about ~60 seconds to start up.
3. Join the "Zundtastic" wifi network from any nearby computer. 
4. Open a terminal and log into the tool: `ssh pi@192.168.4.1`
5. 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"`
6. Open a web browser and go to `http://192.168.4.1:8080/target.html` to view the stream.
7. When you are ready to shut down the scope, from the terminal run `sudo shutdown now`
8. Unplug the battery.

Sam Calisch's avatar
Sam Calisch committed
24
25
26
27
## BOM

1. <a href='https://www.adafruit.com/product/3400'>Raspberry Pi Zero W</a>, $10.00
2. <a href='https://www.amazon.com/Supereyes-Portable-Microscope-Endoscope-Magnifier/dp/B0066H7H1Q'>SuperEyes B008 USB Microscope</a>, $95.50
Sam Calisch's avatar
Sam Calisch committed
28
3. <a href='https://www.amazon.com/Anker-PowerCore-Lipstick-Sized-Generation-Batteries/dp/B005X1Y7I2'>Anker 3350mAh USB Battery</a>, $19.99
Sam Calisch's avatar
Sam Calisch committed
29
4. Flat tipped set screw 5mmx0.8mmx10mm, McMaster 92605A233, $6.38 for pack of 50 (only need 8)
Sam Calisch's avatar
Sam Calisch committed
30
5. USB type A plug (TODO, find exact link)
Sam Calisch's avatar
Sam Calisch committed
31

Sam Calisch's avatar
Sam Calisch committed
32
33
34
35
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

Sam Calisch's avatar
Sam Calisch committed
36
## Building the scope
Sam Calisch's avatar
Sam Calisch committed
37

Sam Calisch's avatar
Sam Calisch committed
38

Sam Calisch's avatar
Sam Calisch committed
39
40
41
### 3D models to print

The main body, with supports for 3D printing is available <a href='model/zundscope_with_supports.stl'>here</a>.
Sam Calisch's avatar
Sam Calisch committed
42

Sam Calisch's avatar
Sam Calisch committed
43
44
45
<img src='img/slicer.jpg' height=400px>


Sam Calisch's avatar
Sam Calisch committed
46
47
48
49
50
51
### Setting up Raspberry Pi

TODO: host OS image for preconfigured download for flashing SD cards

TODO: make detailed installation instructions from vanilla raspian

Sam Calisch's avatar
Sam Calisch committed
52
53
### Assembly

Sam Calisch's avatar
Sam Calisch committed
54
55
TODO

Sam Calisch's avatar
Sam Calisch committed
56
57
58
<img src='img/assembly.jpg' height=400px>


Sam Calisch's avatar
Sam Calisch committed
59
60
### Alignment

Sam Calisch's avatar
Sam Calisch committed
61
62
63
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.
Sam Calisch's avatar
Sam Calisch committed
64

Sam Calisch's avatar
Sam Calisch committed
65

Sam Calisch's avatar
Sam Calisch committed
66
## Future tasks
Sam Calisch's avatar
Sam Calisch committed
67
68
69

1. 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.
2. Would be great to adjust field of view without disassembling the scope.  Maybe as simple as an access hole for adjusting knob.
Sam Calisch's avatar
Sam Calisch committed
70
3. Figure out how to use for Registration, not just Reference in ZCC.