Electronic – How to reverse engineer a simple through-hole board

reverse-engineeringthrough-holetutorial

How can I reverse engineer a simple through-hole board? Trying to do it by eye gets confusing because it's easy to lose track of component orientation and location while flipping the board over. Maybe there's a computer assisted technique that would make things easier?

Best Answer

  1. Take the best pictures of both sides of the board that you can.
    You can use a scanner to scan the bottom side of the board, but not all scanners will be able to focus the top layer because of the height of the components.

    To this guide I used a 3MP camera of the iPhone 3GS without any special lighting or anything. You will almost always likely to have a picture taken with better equipment and conditions.

enter image description here enter image description here

  1. Import then to a blank canvas on your favorite editing program. I'm using Adobe Fireworks, you photoshop or almost any image editing software.
    The images must be in separated layers. enter image description here

  2. Use the Polygon Lasso tool to crop the board from the rest of the picture. Do the same for the other side. enter image description here

  3. Use CMD-X to cut and then CMD-V to paste. It will lift the selection from the background. And then just delete the background. Do the same for the other side. enter image description here

  4. Use the Rotation CW/CCW and Flip Horizontal/Vertical to adjust the pictures to the correct position.

    • You will want the bottom of the board to be mirrored, so it matches the components side. enter image description here

6.Decrease the opacity of the top layer down to around 50%~75% so we can se through it. enter image description here

7.The 2 images are not in the same size, or angle. So we will use the Distortion tool to resize and straighten the corners of the top side so it match the bottom side. enter image description here * Alignment is critical, so take your time, use the zoom/magnifier and check if everything is aligned. Look for the holes in the board, it is the easier way to check if the board is misaligned.

Blending

There are many methods that can be used to blend images. Not all will work on all cases.

But I will go through a few of methods that may work for the majority of people.

  • The adjustments are subjective and will depend on your board color, illumination, exposure, etc... there are many variables, play around and find what values works best for you.

1. Screen Blend

  1. Drag the bottom side to upwards the components side (copper side's layer on top of component side's layer).
  2. Darken the copper layer using Brightness/Contrast filter and set brightness to -50
  3. Select the copper layer and select blend mode to Screen/Interpolationor Average and set to 80 enter image description here

enter image description here

2. Luminosity Blend

  1. Drag the bottom side to upwards the components side (copper side's layer on top of component side's layer).
  2. Increase the constrast of the copper layer using Levels filter, drag the pins to twords the hill. enter image description here
  3. Select the copper layer and select blend mode to Luminosity and set to 50 enter image description here enter image description here

Brush + Threshold

  1. Drag the bottom side to upwards the components side (copper side's layer on top of component side's layer).

  2. Select the copper layer and use the Brush and draw lines connecting the solder pads/holes, you can also use the path/line tool to draw straight lines instead. Use a solid color that is not used by the solder mask. In this case the solder mask is green/yellowish, so I used blue.
    enter image description here

  3. Apply a Invert filter.
    enter image description here

  4. Use the Levels filter or Threshold filter to extract just the solid color. Drag the left pin all the way to the right.
    enter image description here

  5. Apply the filter Hue/Saturation and choose the color of the track of you preference rotating the Hue.
    enter image description here

  6. Select the copper layer and select blend mode to Additive and set the opacity to around 70 to adjust the intensity of the track.
    enter image description here


Now we are ready to write down the values, and then transfer it to a CAD Software.