Close
0%
0%

Not Your Father's EDM

No, not Electronic Dance Music - It's an Electro-Discharge Machine for PCB prototyping

Similar projects worth following
EDM is often used for milling very hard materials, or very deep, thin holes. Other than hardcore machinists or mechanical engineers, few people know what it is, which is probably why I've never seen one used for milling PCBs. I don't even know if this will work!

One of my theories for effective methods of rapid PCB prototyping is EDM, or electro-discharge machining. The idea behind EDM is that you have an electrode hooked up to negative voltage, dunk the system in a high impedance fluid, and then put a potential on the metal workpiece. When that electrode is close to the metal and the potential is high enough to ionise a path through the dielectric fluid, an electric arc gets created between them, taking out a chunk of your workpiece.
Basically a spark welder to remove material.
This is often used for removing broken taps from holes or machining very deep, narrows holes with high precision.

I think I can use this to directly erode paths between traces on a sheet of copper-clad.

EDM is one of those strange niche tools that only machinists are really into. The hardcore kind of machinists that don't really internet well. There seem to be about three resources on the internet for details on the inner workings of these machines: one CNC forum, one thread of a 3D printing forum, and one Yahoo group. None of these are particularly fantastic.
Fortunately, machinists are a lot more into books. Robert Langlois put out a couple how-to manuals in the early 2000s, and Ben Fleming has some much more recently.
Someone got in contact with Langlois recently, and he said that he lost interest in the project, but would definitely like to see Raspberry Pi control of an EDM and is open sourcing his books. So, naturally, I've read his books. I've also found some academic papers and expired patents that go over some design constraints.

There really are three major building blocks in building one of these: a CNC platform, the dielectric fluid immersion tank, and the electronics. The mechanical guys have got the first two figured and polished to a degree that I'm not capable of. The circuitry, though, is all extremely simple. I think I can add some microcontroller controls and improve hugely on the designs.
Most of the EDM schematics out there are just rectifiers and 555 timer-based pulse circuits.
One of the more sophisticated designs out there, The Garden of EDM by C. Scott Ananian provides an excellent rundown of design decisions, and has some similar ideas to what I've come up with independently. His version seems a unnecessarily complicated, though. Especially considering he never actually built his circuit. I'll start with a much simpler design, offload more to a microcontroller, and end up with more control out of the deal.

Here are some parameters I'm trying to hit:
20-100kHz pulses
20ns rise times or better
Adjustable voltage up to ~80VDC
4A max current discharge

I put all of my polished-ish stuff up on my website (left), but I'll be experimenting with this format for a daily-blag type thing. I'll try to throw up a picture and a few words every time I get to work on this.

  • 1 × 12v oil pump Model: 6Y13AIA39
  • 1 × CNC platform This will get expanded when I build my own
  • 1 × heavy duty t-hinge Home depot SKU 1000773469
  • 1 × sheet of 1/2" MDF Home depot 1000165102

  • I'm tired of using words!

    Jarrett04/02/2015 at 16:01 0 comments

    CNC Day Best Day.

    It's a space ship!

    Next steps:

    - Properly mount the Piccolo onto the box (my first mounting choice didn't quite work out).

    - Cut away a little bit of the pump mounting tab because it interferes with the Piccolo travel.

    - Update the Arduino sketch (ugh) to jog the electrode properly to keep it in the conductive region.

    - Get money

    - Smoke trees

    - Wisdom

  • Start Small. Small EDM tank.

    Jarrett02/03/2015 at 17:06 0 comments

    Other than wanting to spend very little money on this project, the scope of it is huge enough that I've been trying to use as many prebuilt components as possible.

    If I have the majority of the project build with discrete, modular components, then I can start drilling down and replace the weakest links, one at a time.

    Because the CNC portion is horribly complicated, and itself comprised of several parts (drive electronics, mechanical movements, control software, firmware), several weeks ago I made the decision to use a low-cost CNC platform. I mean "platform" in the sense that it's designed as a starting point to hack, redesign, and improve.

    It's called the Piccolo:

    It uses three (TINY!) servo motors, a bunch of laser cut gears and mounting plates, and some Processing-based software. Everything is open-source, and I don't think they even sell any of the components themselves. They provide all of the files and expect people to make it on their own, which is kinda cool.

    One thing I couldn't find on their site anywhere was the work area. I needed dimensions of all of the parts to mount and design around this anyway, so a couple hours with their laser cutter files produced this:

    Turns out all axis have a range of about 2.5 inches. That's really tiny for a CNC platform, but definitely usable for making PCBs. At first, anyway. That double-ensures that this portion will eventually be replaced, probably with a CNC system of my own design. That will be fun, I am looking forward to it.

    One note for future-self:

    There is a decent chance that the sparking from my electrodes will cause enough interference to mess with my servos. If they get really jittery during a burn, I know exactly what is happening, and a redesign will happen sooner rather than later.

    Working with the above files, I gathered together some more materials:

    A 12V oil pump($12) for the EDM fluid (more on this in a future post), a standard heavy duty door hinge($3), and a small plastic tank($0.89). The tank is a lot smaller in person than it looks.

    Putting it all together:

    That's a reasonably accurate mode of the tank on the left.

    There's also models of the Piccolo and the fuel pump that you can see there.

    The rest of the frame is designed out of 1/2 inch MDF. The tank fits in the box, which can flip up like so:

    And BAM. Hinges. The idea is that the whole mess can flip up for servicing, changing out the PCB, etc.

    The PCB holders at the bottom might be changed a little before I build this, but the idea will stay the same. They'll be submerged in the EDM fluid in the tank during operation. Afterwards, the top flips up, and those PCB holders are angled so that the oil drips back into the tank.

    That should mitigate oil going everywhere somewhat. I still expect this to get messy.

  • Well that was dumb

    Jarrett01/26/2015 at 07:47 0 comments

    90% of this project, I've gone ahead with hand tools or a soldering iron and just built stuff. Very little drawing out of stuff beforehand. That's my dayjob, planning ahead isn't fun.

    So far the damage on this project has been two blown caps that I've over-volted, a bunch of wasted time building some motor drivers that ended up being too noisy (they would cause the microcontroller to brownout - I may fix this later, it's not too hard), and now a few more hours of wasted time.

    I was getting some weird results with my power circuit (previous log), then I ran out of time and had to leave it for the day. Later in the shower, it hit me - duh. I was trying to drive the MOSFETs from the wrong voltage reference.

    N-channel MOSFETs need a positive threshold voltage from the source to the gate. Usually (or often, I should say) they're going right to 0V, so my natural inclination is the drive the gate voltage using ground as the reference.

    That's totally not what's going on in this circuit! Obviously! Here's a P-channel solution that I should have started with, given, like, 5 minutes of critical thought:

    An incomplete survey of my hackspace tells me that I may have issues finding appropriate P-channel MOSFETs, though. They're much less common than N-channel. One of the local brick-and-mortar places has an old old list of transistors they used to stock in the 2000s, and that has one or two potential hits, both between $4-$6 per transistor :/

  • Bad news bump

    Jarrett01/18/2015 at 09:54 0 comments

    So I have't updated in awhile. I haven't lost interest or anything (quite the opposite).

    Full story:

    My hackspace(where I'm building this) got evicted a couple months ago. Everything got thrown into turmoil. A little while later, I got a frantic text message, "Pick up your shit!"

    Heading down there a couple days later, well into the packing effort, to grab my project box, I couldn't find it where I left it. A little more effort turned up the distinctive blue box at the bottom of a shipping pallet, completely covered in shrink wrap.

    Welp;

    Anyway. We moved, we unloaded, and we're starting to unpack. The new place is a fair bit smaller than the old place, so we're in a purge phase.

    And somebody purged my project box before I had a chance to grab it.

    Through a completely offhand comment that someone made about finding a PicKit in the dumpster a couple days later, I rushed over and did some diving, recovering most of my project.

    Whew.

    I'm not sure the full extent of stuff I lost, but all of the important bits for this are okay, I think. Except for the power output stage, I couldn't find that board. It needed a bunch of rework, anyway.

    The whole situation is ironic because it all happened the day before the hackspace is moved-in enough that I can work on stuff in there, for the first time in two months or so.

    So I did some more work, rebuilding that output power board:

    I've pretty much decided that this is a pre-alpha prototype, so I don't even care about the crappiness anymore. If every part of this project sort-of works, then I can prove my concept. After that, I start identifying the weak links and moving the project through a state of not-suck.

    So this board: I left off the rectifier for now, so I'm not running it through my sketchy-as-hell antique transformer. I've swapped the order of the caps because I believe the mylar one will hold up better to repeated fast discharges. It's also a smaller value, so my pulses will be shorter, but be able to charge up as fast as the mylar cap can charge.

    I'm still using simple red LEDs to indicate whether that stage has charge.

    I still have to add bleeder resistors so that the system doesn't store energy while off. I have to add opto-isolaters to my micro to turn on the power MOSFETs.

    I need some sort of analog readback at each of the stages.

    The MOSFETs I'm using are totally unsuitable for this application, so I need to change them out. I'm not really happy at the selection of FETs at my disposal.

    As you can see, without my xformer/rectifier, I'm just using a couple 30v power supplies in series (and another one to trigger the transistors). It's only 60v(my final circuit is 80v), but the principles don't change with the lower voltage.

    Bonus picture:

    Whenever I'm feeling sketchy about a circuit, I get @TyIsI to touch the dangerous stuff!

  • MOSFET-life

    Jarrett11/14/2014 at 16:14 0 comments

    Had some more time to work on this yesterday.

    The Power section powers up! And nothing blows up!

    The MOSFET family I'm using is the IRFBG30

    I picked it out of the bin because all of the max values are acceptable, but there are some issues I need to keep in mind.

    Foremost among them is that it takes 10v on Vgs to fully turn on. Max 20v on that junction. As it stands, I have a clean 5v rail and a dirty 80v rail. Eventually I may need a 12v rail for driving motors, but I'd like to put that off as much as possible.

    The 5v section is isolated from this portion entirely, so I'll try using an optoisolator from my micro to feed 80v to a resistor divider, putting ~15v on the gate. How well this works will depend heavily on how well I can filter out the noise from arcing.

    The transistor's max pulsed current is 12A, which is great (I plan on using 4A), but while I am technically doing pulses, it will be repetitive and as high duty cycle as my mechanical system will allow. These are rated for 2A continuous at high temperatures, so I may have to put to a couple in parallel.

    If I come across a transistor that is slightly faster, lower Rds (this is 5 Ohm - too high!), lower max voltage but higher current, I would be pretty happy. Modern technologies are pretty great, I'm sure there are lots of options out there. I'm using components scavenged almost entirely from my hackspace's parts bins, however, so I am limited by what I can find.

    That is made more difficult by the hackspace being in a state of flux at the moment after having our lease unexpectedly terminate recently.

  • I like to move it move it

    Jarrett11/10/2014 at 22:42 0 comments

    I also did this, like two months ago:

    The idea behind this was a very cheap and quick Z-axis for controlling the spark. Basically when the electrodes get close enough with a high enough potential, then an arc gets created, ionizing the path between them. If you can get fine control of the up-down movement, then you can sustain this arc for a longer period of time, getting a better burn.

    This took about 2 hours to mock up in SolidWorks, then 12ish to clean up and make sure it worked mechanically. 6 minutes to laser-cut out of 6mm acrylic, and then a couple hours to pressfit everything together.

    After building it, there are a couple problems. Next time I should do cutouts in my corners for laser cutting. The acrylic gets a little melty and it makes fitting pieces together a little challenging. That will also allow all of the tabs to fit in more thoroughly, helping the assembly keep in square and slide more smoothly.

    I didn't use bushings on the linear rails. The rails came from a salvaged scanner, and I have the bushings, they're just encased in plastic and I haven't taken them out yet.

    The backlash is also horrible with this design. I think that's going to have to change. Probably redesign at some point to use some threaded rod and homemade anti-backlash nuts.

    Those motors are $2 eBay specials, but I made the mount for them reasonably modular to be swapped out with better ones.

  • Power! Almost.

    Jarrett11/10/2014 at 22:15 0 comments

    Had a couple minutes to spend on this yesterday. This is the start of the power stage. It's pretty much like in that SPICE schematic I posted below, but with components I had lying around.

    The idea is to pull max 10A from the wall at 120VAC. It goes through a 2:1 transformer (just left of this frame), and then through that square-shaped bridge rectifier in the top left. After that, I get about 80VDC, and it should be about 20 amps. It gets stored in that yellow mylar cap (side-note: I think I should change it to the same value or larger than the blue aluminum cap). Energy gets stored there, and then periodically transferred to the next stage through a MOSFET. I don't remember what the MOSFETs were, but the datasheet said it could handle ~10 amps with a 25ns rise time.

    Energy then gets stored in the second stage, and the electrodes are in the third stage after one more MOSFET.

    The idea is that I never want to open both transistors at the same time, potentially blowing a fuse when the electrodes short out.

    There's also a red "DANGER!" LED at each stage.

    Now that I think about it, that transistor should be fine for the 2->3 stage, but the first one will need to be able to pass 20 amps, probably. Then I need to limit current to 20A when cap 2 is depleted and transistor 1 first opens up, but doesn't limit current as much when cap 2 is half-charged, for example. A clever application of an inductor might be the solution.

    As you can tell, I'm just plowing on and building things for this project. Finesse is for when I've finished a version 0.1 and want to start making it not-suck.

  • Sparky Sparky

    Jarrett10/29/2014 at 07:20 2 comments

    Here's the initial idea in LTSPICE for the power section. The input is from a 1:2 transformer, so around 60VAC, to 80VDCish. Electrodes are on the right. Obviously the MOSFETs will be driven from the PIC.

    These values aren't anything close to final, I'm just playing around.

    I'd like to add some sensing in there, too. Well, I need to, to know what's going on during a burn. I'll probably add some "danger" LEDs that turn on when the caps are charged up.

    For measuring voltage and current, it's a little bit challenging when I need to keep the supplies isolated. I also don't particularly want to buy a fast isolated IC, and don't particularly need the precision.

    I'm thinking PWM from PIC --> Optoisolator --> Big cap to smooth the PWM into an analog value --> comparator, added to the above schematic -> Back to optoisolator --> PIC Digital Input

    That should get me a sort of homemade isolated 1-bit ADC.

  • A case for good enclosure

    Jarrett10/28/2014 at 21:09 0 comments

    A member at my hackspace enlisted my help in clearing out some junk from his warehouse. I grabbed a cool-ass box. It had stuff in it, but after I took that out, there's plenty of room for me to put all my electronics crap into. Lots of room to work with, modular so I can replace panels with custom cut bits (when I know what components I want to mount), and comes with all sorts of cool switches and knobs that I'm totally going to try and work in where appropriate.

    This is post-hacking on it for a bit. You can see some holes I cut for displays on the right, and the power switch on the bottom left is something I added.

    Top just slides off:

    And around back, it came with an integrated fuse-holder and IEC power socket.

    Note to future-Jarrett:

    The fuse/socket unit claims to be rated up to 6A. I plan to eventually draw around 10A in pulses. If melts and catches fire, put it out, okay?

  • This is a many part project.

    Jarrett10/28/2014 at 19:14 0 comments

    There are three main categories in an EDM:

    - The CNC system

    - The electronics

    - The fluid tank

    I'm most comfortable with that electronics (that is kind of my thing), so I will start there.

    The electronics can be broken up into two sections:

    - The control side, and

    - The power side

    The power bit is the hard, industrial-trade-secret type thing that makes electrodes spark. I'm working on that, but I don't have a physical thing to show for it.

    Here's what I have for control as of yet:

    This will be hackish, and I've done many tens of hours on this and other parts already, so we're playing catch-up.

    Left side: Transformer to 6-7VAC, full-wave rectifier, big cap, 7805 linear regulator

    Right-to-left: PIC18F4320 microcontroller (one I had kicking around, a very beefy model ten years ago), dual 7-seg display that is no longer connected and I haven't finished desolder yet, a row of serial-to-parallel shift registers to drive LED displays in their new location, a row of not-fully-connected 2N2222 BJTs for motor drivers.

    All of my control will be done in PIC, and I'll start keeping GitHub updatedish.

View all 10 project logs

Enjoy this project?

Share

Discussions

Young wrote 07/04/2018 at 05:16 point

Just curious, so you are going to use the electrode like a milling bit or you will make a 3d copy of the pcb as an electrode?

By the way, EDM works well for those metals with low conductivity like steel. So it would work well for stencil. Copper would give you a hard time, just for your information

  Are you sure? yes | no

Jon Nordby wrote 04/13/2016 at 00:19 point

Really interested in this project! EDM is promising for instance for PCB isolation engraving. Any updates? Bad results / challenges just as interesting as good news!

  Are you sure? yes | no

Jarrett wrote 04/14/2016 at 17:03 point

The last log here is basically where I left off. I guess a year-long hiatus is enough, right? :)

I actually just started thinking about this a few weeks ago due to some spitballing with Russians on the internet. So expect to see some progress here, in the coming weeks. After I move. Ugh.

  Are you sure? yes | no

Adam Curtis wrote 02/14/2016 at 16:36 point

Super cool, Jarrett.

  Are you sure? yes | no

esot.eric wrote 11/07/2015 at 02:57 point

Cool, never heard of this technique!

  Are you sure? yes | no

max.kargl wrote 06/15/2015 at 08:55 point

I was doing some principle testing some years ago (it was just a selfmade glass nozzle with an copper electrode inside and the fluid (water) being pressed through the nozzle via a small pump) and found it to be working in principle , but being a very slow (just a hole in the copper plating after one minute) and messy process. If you manage to get better results (best of luck), I will also give it a try again

  Are you sure? yes | no

zakqwy wrote 04/02/2015 at 16:42 point

Any plans for electrodes? My understanding is that plunge EDM often uses machined graphite electrodes (although my only real exposure to the topic was in the MIM tool manufacturing world). I suppose you could use anything conductive though, right?

  Are you sure? yes | no

Jarrett wrote 04/02/2015 at 17:02 point

From the earliest prototypes to the finalish version, I'm planning on using the following, in order:
1) Whatever I have lying around. This might be copper tubing or brass coat hangers or similar.
2) Brass EDM electrodes from China
3) Final version - I have a small block of high density graphite that was given to me by an eccentric machinist genius that I have work connections with. It's super expensive, though, so I'm holding off on machining it until I have some idea what I'm doing.

  Are you sure? yes | no

Frank Vigilante wrote 04/02/2015 at 04:36 point

Awesome stuff here.

  Are you sure? yes | no

Mike Szczys wrote 12/22/2014 at 23:03 point

Wow, looking good! You should put at least one picture in the sidebar (edit your project to do so). Otherwise when this shows up in the project list there are no images.

  Are you sure? yes | no

Adam Fabio wrote 10/28/2014 at 06:05 point
We've got CNC mills, 3D printers, the one technology we haven't quite gotten to the low cost hobbiest level yet is EDM. I'm following this one closely!

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates