# Measuring Parts from Product Photos in FreeCAD

## Overview

![FreeCAD image with dimensions](https://cdn-learn.adafruit.com/assets/assets/000/140/481/medium800/hacks_full-dimensions.png?1760540082 )

Sometimes you’ve got the perfect part in mind — a display, sensor, or breakout board — but you don’t have it _in hand_ yet. Maybe it’s still in the mail, or maybe you just want to test-fit it in a 3D design before you click “Add to Cart.”

Good news: you don’t need calipers, a datasheet, or even the real part to start modeling.

In this guide, you’ll learn how to measure and model Adafruit parts using only their **product photos** and the dimensions listed on the **product page** by bringing&nbsp;those images into **FreeCAD.** You can scale them to real-world size and use them as reference blueprints to sketch accurate outlines, mounting holes, and features.

This technique is perfect for:

- Checking fit and alignment in mechanical assemblies
- Designing 3D-printed enclosures or laser-cut panels
- Mocking up projects before parts arrive

You’ll go from a flat photo to a scaled sketch ready for modeling — all in a few quick steps. Once you know the trick, you can do it for any product photo in minutes.

# Measuring Parts from Product Photos in FreeCAD

## Software & Specs

![FreeCAD logo](https://cdn-learn.adafruit.com/assets/assets/000/140/482/medium800/hacks_freecad.png?1760540199 )

## Download and Install&nbsp;

- [FreeCAD](https://www.freecad.org/) (any recent version)

- An image editor (Preview, [GIMP](https://www.gimp.org/downloads/), etc.)

- A product photo from the Adafruit product page

- The product dimensions from the Tech Specs tab

# Measuring Parts from Product Photos in FreeCAD

## Getting the Image

## Go to the Product Page

This example uses a simple 2 x AA battery holder, Adafruit part [3858](https://www.adafruit.com/product/3858).

It has two mounting screws that we would like to know the diameter, as well as the distance between and the locations from the edges.

![product page](https://cdn-learn.adafruit.com/assets/assets/000/140/444/medium800/hacks_2xAA-product-page.png?1760540211 )

## Select and Save

Look for a straight-on photo — a top-down (bird’s-eye) or bottom view of the part. Avoid angled shots or images with anything blocking the component, like batteries. In this example, use the second image from the bottom.

Right-click the image and choose " **Save Image As ..**"&nbsp; to save the image to your computer.&nbsp;

![product page dl image](https://cdn-learn.adafruit.com/assets/assets/000/140/445/medium800/hacks_2xAA-save-as.png?1760540222 )

## Crop the Image

You will want to isolate the component. I'm using MacOS's built-in Preview App. Make a selection around the edge of the battery case and press the **crop button** (or **CMD + K** ).

&nbsp;

![preview cropping image](https://cdn-learn.adafruit.com/assets/assets/000/140/448/medium800/hacks_2xaa-crop-3858.png?1760540234 )

![component cropped](https://cdn-learn.adafruit.com/assets/assets/000/140/449/medium800/hacks_2xaa-bat-hold-3858-cropped.jpg?1760540242 )

## Grab the Dimensions

The **Technical Details** section of the product page has the components dimensions.&nbsp;

![product page technical details](https://cdn-learn.adafruit.com/assets/assets/000/140/451/medium800/hacks_2xaa-dimensions.png?1760540253 )

# Measuring Parts from Product Photos in FreeCAD

## Scale and Set Up in FreeCAD

## Open Image in FreeCAD
![FreeCAD part design workbench](https://cdn-learn.adafruit.com/assets/assets/000/140/488/medium800/hacks_part-design-workbench.png?1760541212 )

Once FreeCAD is open, you can either drop the image right into the initial screen or use the menu options:

**_File -\> New_**

**_File -\> Import_**

Make sure the **Part Design workbench** (drop down menu) is selected. We will only be using that workbench for the duration of the guide.&nbsp;

## Scale the Image Size

&nbsp;

![FreeCAD XSize / YSize](https://cdn-learn.adafruit.com/assets/assets/000/140/453/medium800/hacks_freecad-scale-image.png?1760541167 )

Select the **Image filename** listed in the **Model menu**. Use the known dimension from the product page to scale the image **.**

In this case, the battery holder width is 32 mm. Set the **XSize field** to 32 mm.

The battery length is listed as 58 mm, adjust the **YSize field** until the width to match 58 mm.

![FreeCAD XSize / YSize](https://cdn-learn.adafruit.com/assets/assets/000/140/458/medium640/hacks_freecad-resize.png?1760557292)

## Part / Body / Sketch
This is the least intuitive part of getting started with FreeCAD. It's necessary to create a Part, Body and Sketch to do any design work.&nbsp;

Press the&nbsp; **Part button**.

Press the&nbsp; **Body button**.

Press the&nbsp; **Sketch button**.

![FreeCAD Part Body Sketch](https://cdn-learn.adafruit.com/assets/assets/000/140/459/medium640/hacks_freecad-part-body-sketch.png?1760556719)

## Select the XY-Plane

We will be working on the flat XY plane.

Select the circled **XY-plane001** (Base plane) and click **OK**.

![](https://cdn-learn.adafruit.com/assets/assets/000/140/518/medium800/hacks_freecad-xyplane.png?1760557335 )

# Measuring Parts from Product Photos in FreeCAD

## Measure and Sketch Features

## Draw a Rectangle Around the Component

Select the rectangle button or use the key sequence **g r.**

![FreeCAD draw rectangle](https://cdn-learn.adafruit.com/assets/assets/000/140/467/medium800/hacks_rectangle.png?1760541230 )

Draw the outline of the part. Use the mouse wheel to zoom in and out of the component. The key sequence **v f&nbsp;** allows for image centering.

![FreeCAD component outline](https://cdn-learn.adafruit.com/assets/assets/000/140/468/medium640/hacks_part-outline.png?1760556913)

Click on an outer edge and type **d** to add a dimension constraint.

![FreeCAD measure component](https://cdn-learn.adafruit.com/assets/assets/000/140/470/medium640/hacks_rect-dimension.png?1760556947)

## Draw Circles over Mount Holes
Select the **circle button**. Draw circles inside the mounting holes. Click in the empty center of the mounting hole.

Click when the circle is roughly the hole size. Click the outer edge of the circle to manually adjust size. Select&nbsp;the center of the circle to move it around.

Lock in dimensions by typing **d** to assign a dimension constraint. You can also use the right-click menu to see this option.

![FreeCAD draw circle](https://cdn-learn.adafruit.com/assets/assets/000/140/469/medium800/hacks_screw-mounts.png?1760541265 )

## Determining Distances
Whew! I know it takes a bunch of steps to get a basic jig setup. We already figured out the screw hole size and confirmed that the image matches the product page technical specs.

Now to do the fun stuff, which is:

1. Measure the distance on center between the mount holes
2. Measure the distance to each edge from each mount hole

## Construction Geometry Lines
Toggle the **construction geometry button**. This toggles the lines from being white solid to blue dotted when drawing. These blue lines are not part of the structure, but only for labeling.

**Draw a line** between the two mount holes center point using the line icon or press&nbsp; **g l.**

Click on the **blue dotted line** between the holes and press **d** to see the length.

![FreeCAD construction geometry](https://cdn-learn.adafruit.com/assets/assets/000/140/471/medium800/hacks_construction-geometry.png?1760541287 )

The mounting holes are spaced apart and appear to be 16mm on center.&nbsp;

![FreeCAD mount hole on center](https://cdn-learn.adafruit.com/assets/assets/000/140/475/medium800/hacks_mount-holes-16mm.png?1760541319 )

The mounting holes are each inset 8mm on center from the edges of the battery holder. I used the same draw line ( **g l** ) and dimensions ( **d** ) to determine this.

This sort of symmetry (16mm and 8mm) confirms that the photo alignment and dimensions are matching up with a well designed product. If you are seeing crazy values such as 7mm on one side and 9mm on the other, then you might have an alignment issue.

![FreeCAD mount hole on center](https://cdn-learn.adafruit.com/assets/assets/000/140/477/medium800/hacks_mount-holes-edges.png?1760541317 )

The last set of measurements to find is how far the mounting hole center point is from the top and bottom of the battery holder.&nbsp;

After measuring using the ( **g l** ) to draw a line and ( **d** ) for dimension, it appears that it is 29 mm in either direction to the center of the mounting hole.&nbsp;

![FreeCAD mount hole on center](https://cdn-learn.adafruit.com/assets/assets/000/140/480/medium800/hacks_full-dimensions.png?1760541312 )

## Summary
With your scaled image and measurements in place, you can now jump into modeling! Turn that sketch into a solid body, create cutouts, or design a snug 3D-printed enclosure — all from a single product photo.


## Related Guides

- [IoT Moon Phase Guide](https://learn.adafruit.com/moon-phase.md)
- [Arcade Fightstick](https://learn.adafruit.com/arcade-fightstick.md)
- [Adafruit RS-232 Full Pinout Level-Shifter Breakout](https://learn.adafruit.com/adafruit-rs-232-full-pinout-level-shifter-breakout.md)
- [Animated Edge Lit Acrylic NeoPixel Lamp](https://learn.adafruit.com/acrylic-neopixel-lamp.md)
- [Hacking Holiday Animatronics](https://learn.adafruit.com/hacking-holiday-animatronics.md)
- [Adafruit ESP32-S3 Feather](https://learn.adafruit.com/adafruit-esp32-s3-feather.md)
- [32x32 Square Pixel Art Animation Display](https://learn.adafruit.com/32x32-square-pixel-display.md)
- [Cyberpunk Spikes](https://learn.adafruit.com/cyberpunk-spikes.md)
- [Adafruit SEN6x Breakout](https://learn.adafruit.com/adafruit-sen6x-breakout.md)
- [Adafruit NeoPixel Driver BFF](https://learn.adafruit.com/adafruit-neopixel-driver-bff.md)
- [AI 3D Printed Figure](https://learn.adafruit.com/ai-figure.md)
- [Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout](https://learn.adafruit.com/adafruit-bme280-humidity-barometric-pressure-temperature-sensor-breakout.md)
- [NeoPixel Menorah](https://learn.adafruit.com/neopixel-menorah.md)
- [3D Printed LED Fire Horns](https://learn.adafruit.com/3d-printed-led-fire-horns.md)
- [Adafruit SPA06-003 - Temperature + Pressure Sensor](https://learn.adafruit.com/adafruit-spa06-003-temperature-pressure-sensor.md)
