Comments (27)
Hi! Yeah sorry about the online version, I've been meaning to get it back up for ages. I'm also sorry for the lack of documentation, I've added a readme now with basic installation and usage instructions: https://github.com/kirberich/gerber_to_scad/blob/master/README.md
Let me know if anything in there is wrong or confusing and I'll try to help! Let me know how you get on, I'd love to see what you make with it!
from gerber_to_scad.
Hey, thanks for the response. I will give this a try today.
I have been building some ESP8266 projects. I had a PC board made for one of them, but have not been very successful in building it. Seems my solder skills have greatly deteriorated and these SM parts are a pain to hand solder. I decided to try reflow solder and thought it would be great to make my own solder stencil.
I will post back here once I give it a try and let you know how it went.
from gerber_to_scad.
Forgive me, but I guess it's not quite basic enough for me. At the start of your instructions, are you running in a windows command prompt, or are those Linux commands? if it is Linux, can I run this on my Raspberry Pi?
from gerber_to_scad.
I went ahead and tried to set this up on my Raspberry Pi using Raspbian, as that looked more appropriate. It didn't understand the "virtualenv env", or the "source env/bin/activate" (more likely I didn't apply it correctly). I did make progress with the "pip install -r requirements.txt" though. It threw a couple of errors, but I assume that is because I didn't have everything set up correctly.
from gerber_to_scad.
Hey! So the instructions from the readme are for any linux (or mac) environment, but they do make some assumptions, like having virtualenv installed (on debian that's aptitude install python-virtualenv). After that you can run those instructions. You can also leave out the virtualenv, but then you'll need to run the pip
command using sudo
, otherwise you won't have permission to install the requirements.
It does seem however that there's something broken in the scipy package for debian, I ended up having to install it via the package manager instead of using pip.
However, as all of this is quite complicated, I've gone ahead and finally got the site back up. So if you'd rather not fiddle around with libraries for ages, go ahead and try http://solder-stencil.me/ again :)
from gerber_to_scad.
Thanks, I thought I figured out how to make it work, but I was still seeing errors, so I'm glad you saw the same thing. I will try the online version, but I will likely keep fiddling with trying to get it working locally as well.
Thanks for the help.
Robert
from gerber_to_scad.
Now that is REALLY COOL!! already created STL's for both top and bottom and one is on the printer now, 11 min to print. can't wait to see how it turns out.
from gerber_to_scad.
Glad to hear it! Be prepared for some fiddling though, you have to get the first layer extremely well calibrated for the stencil to come out well - a bit too far away and the stencil ends up not being solid, a bit too close and holes in the stencil don't print properly. But once you get it calibrated right I found the printed stencils to work almost as well as professional ones (as long as the parts aren't too small).
from gerber_to_scad.
Yea, first print was a bust. I only got the stencil ledge for some reason. Just ran the files through Mesh Mixer and will try again. this time printing both at the same time.
from gerber_to_scad.
How come you have stencils for top and bottom - are you planning on reflowing both sides? I've had cases where something was wrong with the STL file breaking the mesh, sometimes this happens when lines are exactly in the same place (if two holes overlap). Try to set the "increase hole size" option to something very small like 0.001 or so, that often fixes it.
Also if you like feel free to send me your gerber files, I'll try it out here and see if I can figure out what's wrong
from gerber_to_scad.
Yes, the plan is to re-flow both sides. I was thinking the STL had mesh problems as well, so I used meshmixer to try and fix them. It didn't help. I'm thinking that my printer is set up with minimum number of layers, and two layers just won't cut it. I went in and created a custom profile and will see how that works. I'll also try your suggestion about the "increase hole size" option, if it doesn't work this time.
from gerber_to_scad.
Same result, at this point I don't think it is your software. It looks good in meshmixer and on the build plate in the printer software, but it isn't printing the stencil layers, only the ledge. I'm going to check with the support guy for my printer and see if he can offer any suggestions.
from gerber_to_scad.
If you want, send me over the stl or the gerber files I'll have a look if the files themselves look correct, just to rule out a problem in the software - you can upload them here or send them to [email protected]
from gerber_to_scad.
Here is one of the STL files, I had to change the extension to .txt so that it would upload
from gerber_to_scad.
the problem does seem to be the printer. I changed the thickness to .3mm and now it is printing the stencil. It may take some more fiddling though, as the first print is not very good.
from gerber_to_scad.
Yep it looks fine for me - what works best for me btw is to print a single 0.15mm layer for the stencil - 0.1 (at least on my printer) is difficult to get solid, while two layers tend to be too thick for the solder paste to release properly (most professional stencils seem to be about 0.1mm to 0.12mm thick).
from gerber_to_scad.
Thanks, I'll give that a try. I appreciate the help getting this going. I am re-running the print now with a slightly different calibration. hopefully that should get the quality up.
from gerber_to_scad.
Good luck, and no problem!
For reference, here's what my printer spits out with a 0.15mm layer: (the top of the layer isn't great, it'd probably be good enough to use though)
from gerber_to_scad.
Great resolution on the holes. Mine keeps filling some of them in. I may still have it too close.
Here is my latest attempt. I didn't let it finish the ledge
from gerber_to_scad.
I'm having a problem on the bottom stencil. The printer stops in one place and deposits a large amount of material, and then continues to print. It sort of looks like it is repeating a hole outline over and over. could this be due to holes being very close together? I tried increasing the hole size. Is there something else I can do to change this?
from gerber_to_scad.
I re-ran everything from scratch starting with the cam file. Whatever the problem was it went away. it appears I'm getting a clean print. Must have just been a glitch.
from gerber_to_scad.
One minor problem; the stencil for the bottom side is mirrored. the ledge is on the wrong side. Other than that, this last print was almost perfect,
from gerber_to_scad.
That looks good! The few gaps in the stencil are probably fine, I figure this should be good to go.
Very good point about the ledge, I've never tried printing a stencil for the bottom side, so this never occurred to me! You should be able to use it without a ledge (it's more of a bonus anyway), but I might try and spend a bit of time to allow reversing the direction of the ledge.
Hope the soldering will go well!
from gerber_to_scad.
I modified my settings to hopefully take care of the gaps (at least some of them). I agree about the ledge, just getting this far is a huge bonus. I used both sides of the board to keep it small. My experience with reflow is that you can do each side separately without a problem. Once the parts are soldered on the first side, just turn it over and do the other. The biggest problem is having something for it to set on to raise it up off of the surface. With the 3D printer I can make a custom holder for the board out of nylon, or even HIPS that will work great.
IF this works, it will save me some money since I wont have to buy a stencil.
from gerber_to_scad.
It looks like the problem is solved. I went back to the CAM file and there is an option to "Mirror" the output. I set the bottom for mirror and the stl file looks correct now. I will print it shortly to verify.
from gerber_to_scad.
Built my custom board this weekend. The solder Stencil I printed, with the help of your program, was very helpful. The 0603 parts were much easier to place and re-flow solder rather than trying to solder by hand.
The Board actually, but I will be incorporating a couple of changes, including changing as much as possible to surface-mount parts. And you can be I will be printing another Stencil for this board as well as the second board I am going to build.
Thanks!
from gerber_to_scad.
Awesome, I'm happy to hear that! I might add the mirroring option anyway, but it's cool that there's a workaround as well! (If I don't add it I might just add it to the hints section).
from gerber_to_scad.
Related Issues (11)
- Invalid format, is this a valid gerber file? HOT 1
- TypeError: offset_points() got an unexpected keyword argument 'inside' HOT 2
- Readme instructions are outdated HOT 1
- Unexpected Primitives - AMCommentPrimitive and AMVectorLinePrimitive HOT 1
- ModuleNotFoundError: No module named 'gerber' HOT 2
- TypeError: 'NoneType' object is not subscriptable conversion.py line 290 HOT 6
- does this support gerber from KiCAD? I don't see any .gko file HOT 1
- Got IndexError: tuple index out of range when run the script HOT 3
- SCAD file preview is fine -> rendering contains only the ledge HOT 3
- Option for bottom layer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gerber_to_scad.