Camera mounting
Table of Contents
Overview
The IDOC system consists of a custom-built enclosure that holds a camera and allows it to be positioned in a precise location at the top of the IDOC chamber. After building the camera enclosure and mounting it, you must make sure it is properly aligning for optimal monitoring of Drosophila behavior.
Building the IDOC enclosure camera mounting system involves several steps:
- Select a suitable camera for video tracking (ideally moderate framerate, monocolor, and connected via USB).
- Install a camera mounting bracket inside the enclosure, which allows the camera to be securely attached and positioned in the desired location.
- Install a camera onto the mounting bracket, ensuring that it is securely fastened and properly aligned.
- Connect the camera to the computer to enable live monitoring and recording of Drosophila behavior during experiments.
- Build the custom enclosure, which is typically made of optical posts, metal rails and hardboard, and is designed to be placed on the top of the setup enclosure to provide camera protection.
Select the camera
We use two camera models from Basler to record the preference choices of the fly in two different setups. We recommend sticking to Basler, however, you can modify the code to support other providers (Flir, etc). Below you can find the specs of each camera and how we mounted them in our setups.
Please note, the oldest of the two cameras was discontinued by Basler at the time we built the second setup (2022).
First setup model:
Item | Vendor | ||
---|---|---|---|
Camera model: | acA1280-60gm - Basler ace | Basler | |
Lens: | Computar Lens M0814-MP2 F1.4 f8mm 2/3" - Lens | Basler | |
Cable: | Basler Cable GigE, Cat 6, RJ45 sl hor/RJ45, DrC, P, 5 m - Data Cable | Basler | |
Mounting plate: | Tripod Mount ace - Camera Mount Adapter | Basler | |
Power supply: | Power Supply 12V/18W, Hirose 6-pin - Power Supply | Basler |
Second setup model:
Item | Vendor | ||
---|---|---|---|
Camera model: | a2A2590-60umBAS - Basler ace 2 | Basler | |
Lens: | Computar Lens M0814-MP2 F1.4 f8mm 2/3" - Lens | Basler | |
Cable: | Basler Cable USB 3.0, Micro B 90° A1 sl/A (ace downwards), P, 5 m - Data Cable | Basler | |
Mounting plate: | Tripod Mount ace2 - Camera Mount Adapter | Basler | |
Power supply: | Via USB 3.0 interface 2.8 W | Basler |
The fly chambers are viewed from above by a camera equipped with a C-mount lens. The camera is placed on the top of the setup enclosure assembly to avoid camera overheating. Optical clamps, mounting base and metal posts from Thorlabs were used to fix the camera.
Installation of base at the top of the enclosure
The post holder base is used for positioning and fastening the camera mount at the top of the enclosure. The post holders include a spring-loaded thumbscrew that holds posts in place before tightening
The following parts are needed to create a base for the above camera mount construction:
-
Ø12.7 mm Post Holder, Spring-Loaded Hex-Locking Thumbscrew, L=75 mm (PH75/M, Thorlabs) (Q: 2x)
-
M6 x 1.0 stainless steel cap screw, 10 mm Long (SH6MS10, Thorlabs) (Q: 2x)
-
M6 x 1.0 stainless steel cap screw, 16 mm Long (SH6MS16, Thorlabs) (Q: 2x)
-
Mounting Base, 25 mm x 58 mm x 10 mm (BA1S/M, Thorlabs) (Q: 2x)
-
5-mm balldriver or hex key.
Procedure
-
Connect the post holder to a mounting base by inserting a 10-mm M6 screw through the bottom-located counterbores in the base.
-
Screw and tighten the M6 screw at the middle hole of the post holder using a 5-mm hex key, be sure the direction of the thumbscrew is in the outside face to facilitate and stabilize post mounting.
-
Attach one the assembled base post holder to the right 25-mm rail at the top of the setup enclosure.
-
Use 16-mm M6 screw and pre-slotted Low-Profile T-Nut (see step: Build the enclosure roof) to establish and tighten base connection to the right rail.
-
Attach the other assembled base post holder to the left 25-mm rail at the top of the setup enclosure.
-
Use 16-mm M6 screw and pre-slotted Low-Profile T-Nut to establish and tighten the base connection to the left rail. Make sure that both right and left holders are aligned to the end of the IR-filter window.
Installation of mounting stage
The following parts are needed to construct the camera mount:
-
Ø12.7 mm Optical Post, SS, M4 Setscrew, M6 Tap, L = 300 mm (TR300/M, Thorlabs) (Q: 2x)
-
Ø12.7 mm Optical Post, SS, M4 Setscrew, M6 Tap, L = 250 mm (TR250/M, Thorlabs) (Q: 2x)
-
Ø12.7 mm Optical Post, SS, M4 Setscrew, M6 Tap, L = 100 mm (TR100/M-P5, Thorlabs). (Q: 3x)
-
Parallel Clamp for Ø1/2" Posts, M4 Counterbore and 5 mm Hex (RA360/M, Thorlabs) (Q: 2x)
-
Right-Angle Clamp for Ø1/2" Posts, 5 mm Hex (RA90/M-P5, Thorlabs) (Q: 2x)
-
M4 x 0.7 stainless steel cap screw, 10 mm Long (SH4MS10, Thorlabs) (Q: 2x)
-
2-mm balldriver or hex key.
-
3-mm balldriver or hex key
Procedure
-
Remove the M4 setscrew at the end of 100-mm posts using a 2-mm hex key.
-
Connect the parallel clamp to 100-mm post by inserting a M4 screw at the middle hole of the clamp, screw it to the 100-mm post end.
-
Connect 250-mm and 300-mm posts together to form one single long post, to do that add one M-6 setscrew at the end of the 250-mm, then attach the 300-mm post to the setscrew. Rotate both posts in different directions until they are well tightened.
-
Insert one right-angle clamp in each combined long post, move to the center.
-
connect each end of the combined post to the end of the parallel clamp.
-
Add 100-mm post in the middle of the combined posts to be clamped by the two right-angle clamps. This post is needed to fix the camera using M6- Setscrew at the base of the mounting plate of the camera. See: how to attach the camera to the mounting stage)
-
The mounting stage is ready to be mounted through the base at the top of the setup enclosure (see step), to do that; place the vertical 100-mm post of the above assembled stage at each post holder. The post holders include a spring-loaded thumbscrew that holds posts in the correct place before tightening.
Attaching the camera to the mounting stage:
The following parts are needed to create a base for the above camera mount construction:
-
Ø12.7 mm Optical Post, SS, M4 Setscrew, M6 Tap, L = 100 mm (TR100/M, Thorlabs). (Q: 1x)
-
M6 x 1.0 Stainless Steel Setscrew, 10 mm Long (SS6MS10, Thorlabs). (Q: 1x)
-
Tripod Mount ace2 - Camera Mount Adapter (2200000314, Basler) (Q: 1x)
-
M3 Stainless Steel screw, 10 mm Long (supplied with camera mount adaptor). (Q: 3x)
-
2-mm balldriver or hex key.
-
3-mm balldriver or hex key
Procedure
-
Use a 2-mm hex key to secure three screws supplied with the camera mount to attach the camera to the mounting plate
-
Insert M6 stainless steel setscrew into the middle hole of the camera mounting plate, screw it using a 3-mm hex key.
-
Connect 100-mm optical post to the M6 setscrew at the middle of the mounting plate, rotate the post until establish a stable connection.
-
Fix the assembled camera optical post to the middle parallel clamps of the assembled camera mounting stage.
-
Be sure that the camera connection is stable and the lens facing the IR-sheet at the visualization window at the roof of the enclosure.
Final step: Position and fixation of the camera mounting stage at the top of the enclosure
One of the challenges is finding the right camera position relative to the distance and the area that the camera will see. For that reason, a specific lens is needed to obtain optimum quality from the camera. Depending on our camera model and the recording setup, width (350 mm), length (400 mm), and working distance (700mm). For our purpose, a camera lens with about 8 focal length was selected. Since the focal length is determined by the distance between the lens and the inspected object, it is recommended to check what kind of lens is compatible with your camera using Basler camera lens selector
Irregular installation position or improper angle of camera will result in tracking problems. So, as mentioned above camera position is important, so the mounting stage was designed in the way that provide XYZ axis translation movement when positioning the camera via optical components. After finding the proper height, use 5-mm hex key to full tighten all the screws of clamps and angles.
Camera Enclosure
The camera enclosure placed on the top of the setup enclosure to provide minimum light exposure to the camera, because its sensor is so sensitive to the light and thereby can affect or stop the running experiments.
Customize the black hardboard
The following supplies are needed:
-
Black hardboard (TB4, Thorlabs)
-
Pencil
-
Cutter
-
Tape measure or ruler
-
Aluminum flat bar
Be sure that the correct size of the black board has been ordered or in house customized to fit the dimensions of the camera enclosure. Only TB4 blackboard is used. The camera enclosure is not fully closed, the left and right walls are free.
Here is the final size:
· Vertical panels that form the front and back walls: 510-mm x 255-mm (L x W)
· The top panel that forms the roof of the enclosure: 510-mm to 255-mm (L x W)
Procedure
-
Using a tape measure mark a line by pencil on the face of black board to the correct size. Be sure that the final size is about 5 mm longer and 5 mm wider than the rail length to fit in the walls and the roof.
-
Cut all the way through the board following the pencil lines. The blackboard is soft, so proceed carefully, aluminum flat bar can be used to keep straight cut. Be careful not to injury your fingers.
-
Remove the cuts and trim the rough edges of the black hardboard.
Join the rails & build the walls and roof
For this step, you will need:
-
Low-Profile Channel Screw (Q: 16x)
-
Construction Cube with Slotted Corners (Q: 4x)
-
25-mm square construction rail 250-mm length (Q: 6x)
-
25-mm square construction rail 500-mm length (Q: 2x)
-
Customized (510-mm x 255-mm) black hardboard (Q: 3x)
-
Mounting base T-brackets; to connect camera enclosure to setup enclosure, 3D designed (Q: 4x)
-
4-mm balldriver or hex key
Procedure
-
Attach low-profile channel screw to a construction cube. Then, push the screw into the threaded hole in the end of each 500-mm rail and tighten both screws down with the balldriver to connect the two rails.
-
Repeat the above step for the other corner to connect a second construction cube from the other end.
-
Connect 250-mm rail to each construction cube, by inserting the screw into the threaded hole in the end of each rail and tighten both screws down with the balldriver to connect the 500-mm rail
-
Repeat the above step for the other corner to connect the other 250-mm rail and form U-Shaped-frame.
-
Slide the black hardboard (255-mm x 510-mm) into the channel of the U-shaped frame rails.
-
Connect the fourth rail by placing another channel screw into the hole of construction cube, then insert it into the threaded hole in the end of the rail and tighten screws down with the balldriver to form the horizontal top rectangle.
-
Attach low-profile channel screw to the third hole of each construction cube to connect the vertical rails. Push the screw into the threaded hole in the end of each rail and tighten screws down with the balldriver to connect the four rails.
-
Slide the black hardboard (255-mm x 510-mm) into the channels of the front and back rails.
-
Attach the 3D- elbow T-bracket at each end of the vertical rails, by the way the counterbored holes of the connectors are outside of the enclosure then fasten the vertical 25 mm rails to brackets using a T-Nut and low-profile channel screw.
C- Mount the camera enclosure
Procedure
-
After installation, mounting and adjust the camera. Move the camera enclosure to the top of the setup enclosure to protect the camera.
-
Attach a low-profile channel screw to the outside part of each corner bracket.
-
To assemble both enclosures, insert the screws into the brackets and loosely thread them into preinserted T-nuts on rail channels. Then tighten them down with the balldriver to create a stable connection.