Samstag, 4. April 2009

Additional details of the hinge-mechanism

Since I received several requests regarding the construction of the rig, here are some additional information and pictures to explain the construction. You'll need the following parts: 
  • 2 Metal Brackets (I used a standard size of 70mm length and 16mm width)
  • 1 Metal Hinge (Length 51mm, with 12mm, total width 30mm when unfolded)
  • 8 small magnets (10x4 mm, with a thickness of 1mm) 
The Metal parts should be fairly standard parts that you can get from any DIY shop. I purchased the magnets from a german online-shop.
Before you begin the construction, you must first measure the exact distance (d) from the tripod-socket of the camera to the middle of the lens. For the Ixus 55 d=27mm. If you double this distance you get the total distance (2d=54mm) that the two bottom-sides of the brackets must have to ensure that the camera lenses are on the same height.
The second measurement you need is the distance between the left side of camera and the middle of the tripod socket (s=28mm in case of the Ixus 55), because you have to drill corresponding holes into the brackets later to mount the cameras. The following picture explains this hopefully a bit better:

Von Fotoarchiv


First step then is to shorten the metal brackets to the size you need using a saw. The side of the bracket that will be connected to the hinge should be roughly equal to 2d, which should of course roughly match the lenght of the hinge you purchase. The other side of the brackets should be long enough to support the cameras firmly. In the case of the Ixus 55, 40mm turned out to be the optimal size, because this will provide enough stability but also lets you access the battery chamber when the cameras are still mounted.
The next step is to drill the hole for the tripod connector, because this will be more difficult when the brackets are already connected to the hinge. As you can see in the following picture there were already holes in the brackets, but of course not in the right position for the Ixus 55 (well I did not expect to be so lucky ;-):

Von Fotoarchiv


Next step is to connect the hinge to the brackets. It took me a few attempts before I found the best solution for the connection. In my case there were already predrilled holes in the hinge. So after I placed the hinge over the bracket I was able to mark the position for the corresponding holes on each bracket. I then drilled small holes (2mm if I remember correctly) into the bracket and then used a 3mm threader to cut threads into the bracket so that I could fix the hinge to each bracket simply using 2 screws that I shortened so that they do not extend into the inside of the bracket where the cameras are supposed to be mounted. This turned out to be a very easy but still also a very stable connection that also had the big advantage of being relatively thin, so that the camera-spacing is not increased unnecessarily.
Von Fotoarchiv

After I was sure that everything is stable and sufficiently aligned, I fixed the screws using some superglue. Last step then is to glue the magnets in place. Finding magnets with the correct thickness is important to ensure that the brackets are still aligned when the hinge is closed and the magnets are connected, so the optimal thickness of the magnets is determined by the space between both sides of the hinge when the hinge is closed. When you arrange the magnets so that there is some space near the axis of the hinge you can use that space for the cable connection between the cameras as you can see on the picture above.

Sonntag, 15. Juni 2008

Additional Pictures and a Video of the Final Ixus 55 Rig

After a few weeks of optimizing some of the construction details here are some pictures of the final stereo camera:




Between the cameras strong magnets provide stability:


When the rig is folded the total size is just 10x7x4,5 cm (W*H*D), which means it fits in a very small camera bag:


The cable to connect both cameras can be routed within the hinge mechanism behind the magnets:



The cable was made from a standard USB cable and selfmade plugs with a housing made of epoxy:




Here you can see the socket within the camera:


The following video demonstrates that he camera can be controlled like a true point-n-shoot camera:

Mittwoch, 14. Mai 2008

3D Digital Stereo Ixus 55 (Part 4: The Software)

As already mentioned in the introduction, I wanted to use CHDK or SDM on this camera but without having to use an external switch connected via USB. To achieve this I studied the source code of SDM carefully (Thanks David for making it public!) and rewrote the internal synch routine as follows and added it to the standard Allbest CHDK branch:

void wait_until_remote_button_is_released(void)
{
asm volatile ("STMFD SP!, {R0-R11,LR}\n"); // store R0-R11 and LR in stack

#define DELAY_TIMEOUT 10000
#define KBD_MASK 0x4
int tick;
long z, *x;

debug_led(1);
_kbd_pwr_on();
tick=get_tick_count();

do {
z = physw_status[2] & KBD_MASK;
x = (void*)0xc0220208;
_kbd_read_keys_r2(physw_status);

}
while( (!z) && ((int)get_tick_count()-tick < DELAY_TIMEOUT));

_kbd_pwr_off();

debug_led(0);
if (fd>=0) close (fd);

asm volatile ("LDMFD SP!, {R0-R11,LR}\n");
}


This way, the cameras do not wait for the external USB switch to be released but the shutter fires after the nomal shutter switch has been released. The shoot sequence therefore is pretty straightforward:
1. Half press the shutter to focus
2. Full press the shutter until both blue LEDs light up
3. Release the shutter and a highly synchronized pair of pictures is taken.

I havent measured the synch systematically yet because I don't have a CRT monitor anymore to be able to use the Camera Synch Tester.

3D Digital Stereo Ixus 55 (Part 3: Building the Rig)

The original idea was to make a stereo camera that can be used more or less like an ordinary point and shoot camera. An important goal therefore was to design a rig that does not add unnecessary size and weight to the cameras. Using ready-made parts from a local DIY-shop I build the following rig:

The cameras are then attached using standard 1/4" screws:


Did I forget something important???

Oh yes ;-) one of the standard parts from the DIY-shop was small hinge, so you can fold the rig and the camera will fit nicely into a small camera bag:


To ensure that the rig is stable when unfolded, I used some small magnets which are place within the hinge as you can see on the following picture:

The magnets are not actually glued in yet, because the current rig is still a prototype where the vertical alignment of the cameras is not good enough yet. Since the price of the two angles and the hinge is just a little more than 1 Euro I bought some more parts to be able to experiment a little ...

So this is the current design when everything is completely assembled:

Dienstag, 13. Mai 2008

3D Digital Stereo Ixus 55 (Part 2: Hardwiring the cameras)

The first task was relatively easy: Open up the camera by removing the 6 tiny screws (use a size-0 Philips screwdriver for this, other cameras might even require size 00 and be prepared that you might need to apply some force. Be sure to use a screwdriver of the correct size to avoid that the heads get damaged) and remove the front and back housing. The plate connecting the switches can then be easily removed and the switch board can be seen. After using a multimeter to measure the contacts on this board, I obtained the following diagram:


The next step was by far the most difficult: How to connect the switches of two tiny little cameras without damaging too much and without using a direct cable connection that would prevent the cameras from being usable alone? After researching many different connector designs I ended up with multipin- and multipoint connectors having a 1,27mm grid:

The only place to put the connector is directly above the usb and video socket where normally the rubber socket-cover is connected to the housing. This is the only part we need to get rid of. First we have to remove the small plastic pin that holds the rubber cover in place using a sharp knife:

Afterwards you can see that the connector (after being shortened to 7 pins) would fit nicely into the resulting space:

Most important thing however is that this connector can be reached from the outside simply by plugging a 7-pin multipin connector into the slot where the rubber cover used to be.

We now must make a little more additonal space inside above the USB and video ports: Remove the top 1mm of the plastic part between both ports:

After shortening two of the seven pins of the connector and making it just a little slender using a rasp, it fits nicely into the resulting space and should be glued there using a tiny portion of superglue:


Now the even more delicate work begins: For the internal wiring I used leads from a 100pin ide cable which is relatively thin, not too flexible and easy to solder. It is very important to customize the cables before soldering:


The soldering itself is quite delicate and requires a fairly shake-free hand but is not too difficult. As you can see in the following picture: I am definitely NOT a professional is this discipline ;-))


After reassembling the cameras the only visible difference is the missing cover:


A suitable cable to connect the cameras was soldered using multipin connectors and an old flexible IDE cable. The plugs were made using 2-component epoxy. Not a pretty design but the cable does work ;-)

After a few weeks I found out that the camera behaved strangely when the battery in one of the cameras was running low. I fixed that by cutting one of the connections between the cameras that connected the side of the on-off switch that was directly connected to the batteries. So actually you only need a 6-pin connection between the cameras.

3D Digital Stereo Ixus 55 (Part 1: Introduction)

This is the first post in a new series detailing the steps to build a digital stereo camera using the wildly popular Canon Ixus P&S cameras.

Most of you will have heard from CHDK which allows to use additional firmware functions in many Canon Powershot cameras. One flavour of CHDK, called SDM (Stereo Data Maker) was especially designed for stereo photography and allows for an almost perfect synch between cameras that are coupled using a USB based switch.

Since I already had one Canon Ixus 55 camera (named Powershot SD450 in the US), I wanted to use CHDK / SDM on it, but unfortunately at that time CHDK wasn't ported to the Ixus 55 yet. Well, it was a dirty job, but somebody had to do it, so I started to port CHDK to the Ixus myself and after many weeks and tremendous help I received from the CHDK forum, the Ixus 55 port was finally ready.

I then started to design a suitable USB switch to use with this camera but soon decided that I wanted to go for a more radical approach: Using CHDK / SDM out of the box ensures perfect synch but all the camera functions, especially the on/off switch as well as the zoom button had to be used independently on both cameras. Futhermore the use of an additional switch connected via USB to trigger the shutter seemed like a waste of space, because after all you already have a stereo camera with two perfectly designed shutter switches. Therefore the decision was clear: I wanted a hardwired camery where on/off switches, shutter- and zoom-buttons are coupled together with CHDK / SDM for perfect synch. I will describe how I built this camera in the next posts in this blog.

Samstag, 12. Januar 2008

Additional construction details of the 3D display

Since I was asked to post some more construction details here are some closeup-shots:

The displays are mounted using standard VESA wall mounts



The top display was not mounted horizontally because I wanted to have a larger angle than 90 degrees to get a wider viewing angle:


And finally the construction of the mirror frame: