Here's how I modified my Quickcam for astronomy
- First, I disassembled the camera and removed the lens assembly. See
How to disassemble a b&w Quickcam (Hanno Muller) for more info.
- I built a new body out of standard plumbing parts. The body is an 1 1/4"
threaded to 1 1/2" glued PVC fitting. I had to use a hole saw in a drill
press to slightly enlarge the fitting so that the circuit board would fit.
Also, in order to hold the fitting still so the hole saw could be used, I
cut a hole in a piece of 2x6 lumber using a circle cutter, so that the fitting
could be snugly tapped in, and then clamped to the drill press table.
- I used a Dremel tool to make an exit hole for the cable.
- Once the fitting had been enlarged, the circuit board was inserted, some
vague attempt made to center the CCD, and the circuit board was secured with
hot-melt glue.
- The eyepiece tube is an 1 1/4" O.D. drain pipe and a compression fitting.
These came in one package for about $2.00. The tube was cut to an appropriate
length, and the inside lined with black fabric "friction" tape.
Total cost of everything but the Quickcam was about $4.00. Total
construction time was about 90 minutes; about 40 minutes of that was trying
to get the circle cutter to make exactly the right sized hole to hold the
fitting for drilling.
Here are some photos! Click the images for larger versions.

All the parts used in the assembly

A view of the CCD chip

The complete assembly, including part of an Arby's kid's meal toy, which
was JUST the right size to cap the fitting!