Author Topic: Windows app to fill areas of photo in black for PCB copying?  (Read 2893 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris WilsonTopic starter

  • Super Contributor
  • ***
  • Posts: 1081
  • Country: gb
  • Race car engineer, dog lover, hoarder.
Windows app to fill areas of photo in black for PCB copying?
« on: August 15, 2017, 09:08:33 am »


 Basically I am looking for the best / easiest way to take a photo of the copper tracks side of a single sided printed circuit board and fill in the tracks in solid black so the new image can be printed on clear acetate sheet to make a copy board through photo resist coated PCB and etching. Some boards will have copper coloured tracks, some like this example with tinning on the copper so it looks silver. I have tried filling in with a digital paintbrush in Paint, but it's inaccurate and very tedious. Would some sort of PC Tablet with a stylus be better, or is there an app to flood selected areas in black? Thanks
Best regards,

                 Chris Wilson.
 

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #1 on: August 15, 2017, 09:19:27 am »


 Basically I am looking for the best / easiest way to take a photo of the copper tracks side of a single sided printed circuit board and fill in the tracks in solid black so the new image can be printed on clear acetate sheet to make a copy board through photo resist coated PCB and etching. Some boards will have copper coloured tracks, some like this example with tinning on the copper so it looks silver. I have tried filling in with a digital paintbrush in Paint, but it's inaccurate and very tedious. Would some sort of PC Tablet with a stylus be better, or is there an app to flood selected areas in black? Thanks

Illuminate it from behind, the component side, and it will improve the contrast a lot, if you can colour the board with a sharpie that will also make your life easier.

Also, a scanner will help you get the board square without lens aberration or camera alignment problems.
« Last Edit: August 15, 2017, 09:21:42 am by CJay »
 

Offline ju1ce

  • Regular Contributor
  • *
  • Posts: 96
  • Country: fi
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #2 on: August 15, 2017, 09:25:42 am »
I agree that the image could be better in terms of lighting, but I think I got a pretty good result by using an implementation of the Sobel-Feldman edge detection filter (http://pinetools.com/image-edge-detection) and then reducing brightness and contrast in paint.net.


 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #3 on: August 15, 2017, 09:31:47 am »
Again, even lighting would help, you can abuse "picasa" using the "neon" effect for edge highlighting, followed by Pencil Scket to convert it to black and white to get similar effects.
 

Offline nali

  • Frequent Contributor
  • **
  • Posts: 657
  • Country: gb
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #4 on: August 15, 2017, 10:54:50 am »
For a board as simple as this, it'd probably be as quick if not quicker to just re-create it. If you have a draw / paint package that supports layers then create an an outline and the edge connector based on measurements, manipulate the image to fit, then just draw the pads / tracks using the image on a background layer as a guide.

Personally I'd use OpenOffice Draw - create a pad with a black circle & white circle for the hole, copy/paste as required, then either freehand draw the lines or use lines / curves for the tracks. That's assuming you want a facsimile of the original and don't want to use a PCB package to make something electrically equivalent but visually different.
 

Offline frozenfrogz

  • Frequent Contributor
  • **
  • Posts: 936
  • Country: de
  • Having fun with Arduino and Raspberry Pi
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #5 on: August 15, 2017, 11:05:08 am »
If you want to digitize PCBs on a regular basis I recommend to use a flatbed scanner.
The better the image (especially homogeneous lighting), the easier the job.

Since it is a very rainy day and I feel like doing something nice:

You are welcome.

Edit: You of course need to scale it accordingly, I however have already adjusted for lens distortion as much as possible.
For pixel graphics you could use the Gimp. It has a lot of nice features especially regarding edge selection and the likes.
I would recommend doing tracing in a vector based format such as .svg. Inkscape is the way to go.
« Last Edit: August 15, 2017, 11:14:10 am by frozenfrogz »
He’s like a trained ape. Without the training.
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #6 on: August 15, 2017, 11:28:23 am »
IrfanView

Small, free but powerful tool. It is a must have.
 

Offline ar__systems

  • Frequent Contributor
  • **
  • Posts: 516
  • Country: ca
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #7 on: August 16, 2017, 01:42:42 am »
you can use photoshop, but as was already pointed out, the board is so simple you can recreate it in CAD tool faster than messing around in photoeditor.
 

Offline DigitalDeath

  • Regular Contributor
  • *
  • Posts: 62
  • Country: us
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #8 on: August 16, 2017, 03:49:13 am »
That's pretty easy to do tracing in a cad that can do img import.


 

Offline DigitalDeath

  • Regular Contributor
  • *
  • Posts: 62
  • Country: us
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #9 on: August 16, 2017, 03:51:07 am »
Here's in DXF and PDF
 

Offline DigitalDeath

  • Regular Contributor
  • *
  • Posts: 62
  • Country: us
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #10 on: August 16, 2017, 04:03:20 am »
First you open your cad and make a rectangle of the given dimensions. Then you export that rectangle to an img file. You open the picture of the board in photoshop and place the exported rectangle image file on a second layer and set it to 50% opacity so you can see thru it. Then select the layer that contains the board picture and use the distort and warp transforms to make it match the edges of the rectangle on the second layer. Once they match delete the second layer save the board image file and then import it into the cad under the original rectangle you made before and simply trace it using circles for the round pads and holes and polylines for the traces. Once done tracing select all polylines and apply smoothing to make them nicely curved. Took me about 5 minutes to do this one to show you using VectorWorks.


« Last Edit: August 16, 2017, 04:06:12 am by DigitalDeath »
 

Offline Chris WilsonTopic starter

  • Super Contributor
  • ***
  • Posts: 1081
  • Country: gb
  • Race car engineer, dog lover, hoarder.
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #11 on: September 07, 2017, 03:47:17 pm »
Sorry not to have got back, one of my dogs became sick, needed 24 hour care, but subsequently it became terminal and he had to be put to sleep.

I really appreciate all the help, sadly I did not have the required software nor experience to do this conversion myself, but frozenfrogz very kindly did me some mirror .pdf images for a few beers and hopefully I can now recreate my boards. I have had issues with some photo resist board that's been in a drawer for over a year, so have ordered new PCB and will try again, the help here has been exceptionally generous, thank you all.
Best regards,

                 Chris Wilson.
 
The following users thanked this post: frozenfrogz

Offline mojo3120

  • Newbie
  • Posts: 2
  • Country: us
Re: Windows app to fill areas of photo in black for PCB copying?
« Reply #12 on: October 03, 2017, 08:40:37 pm »
If you want to digitize PCBs on a regular basis I recommend to use a flatbed scanner.
Yes, only way to go. They're all over craigslist for <$10.

I reverse engineered a 4 layer pcb with a flatbed scanner and photoshop. Used a power sander to expose each layer, scanning each one throughout the process. Then I put them all into photoshop at 50% transparency, mirrored the bottom layers and rebuilt the layer stack up.

To answer your question....the trick is to convert the copper layers to black and white, max out the contrast and play with brightness levels. You can see in attached image where I used the paint bucket tool to auto fill the traces (instead of solid black, I used different colors to identify each trace).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf