Instructables

3D-Printed Circuit Boards, for solder-free printable electronics

FeaturedContest Winner
Intro -- what is this instructable? Given the schematic for a simple circuit, make it a real circuit with the base components, some conductive thread, and a 3D printer. No solder, no etching chemicals, no sending away for anything.

This Instructable is to serve as the how-to guide for a 3D-printed electronic circuit library implemented in OpenSCAD, 3D-PCB.  I recreate the full replication process of a simple analog circuit of a blinking LED made from a few transistors, capacitors, and resistors, a single LED, and a AAA battery. I will review how to import the library, and use it to place components in OpenSCAD in a grid, and teach you the basic wrapping techniques for all the included features.

Also included is a more useful example of an LED flashlight.

What do you need? The code base was developed for use by the MakerBot Replicator. Besides the basic electronic components, you will also need conductive thread. I have tried several types of conductive thread, and the best so far (by a wide margin) can be found here.

I have also found it useful to have fine point tweezers and small scissors, to aid in the wrapping and placing of components.

Links: -- www.carrythewhat.com
 -  Library for 3D-PCB
 -  Example printed electronic -- the Cutaway LED Flashlight
 -  3D-PCB Github if you would like to support the project directly
 -  Or visit our etsy shop for other info and to support indirectly

Why? We are entering an age where physical goods increasingly have a digital representation (eg www.thingiverse.com) -- and the means production of such goods are increasingly accessible (eg reprap, makerbot, etc..).  The success of Open Source Software speaks for itself. Open Source Hardware has also seen many achievements in conventional firms (eg with arduino). But future success might lie in distributed manufacturing.

While the data can be ubiquitous and free, the machines are not, and there will always be some material cost in replicating physical goods. To those without, we want to provide access to the fantastic creations these machines are capable of. To the developers of these creations, we hope to provide a valuable user base. And the economic activity generated will drive extra resources into the technologies that power it.

At CarryTheWhat? Replications, we are acting as a case study for the independent, distributed manufacturing of physical open source goods, and there are a number of other makers doing similar things.

The goal of this project in particular is to increase the scope of what can be replicated on a commodity machine. Better solutions some day might be sort of conductive putty or ink, or even a printable conductive plastic or semi-conductor material. But for now, you can print basic electronics using a plastic PCB and conductive thread. So give it a try!
 
Remove these adsRemove these ads by Signing Up

Step 1: Constructing the Circuit

Picture of Constructing the Circuit
IMG_1073.JPG
IMG_1078.JPG
openscad circuit.png
Component layout:  You have a circuit diagram, like the conceptual schematic attached.  The library currently supports the following features: battery holder (AA, AAA, and coin cell), capacitor, resistor, transistor, 1xLED, 2xLED, base board, peg (and cap, for wrapping and holding things together), an SPST slide switch, and a trace hop (for intersecting threads). This example is of a simple analog transistor circuit which causes an LED to blink.

Unfortunately, there is not yet a way to automatically place the components, so you will place each component manually. Spend a few minutes analyzing the circuit, and think about how to arrange it into a grid. I have found the grid layout the easiest for placement and wrapping, but it's by no means the only possibility!

I recommend you sketch out the circuit by hand, roughly how you intend to place them (orientation and relative locations). Also, it might be a good idea to test the circuit with the components you have on a conventional breadboard.

If you prefer Blender or SketchUp, then you can import each component separately (STL files), and place them manually. If you do this, make sure you maintain the orientation so that they will print nicely.

If you are building the circuit in OpenSCAD, download the library file '3D-PCB.scad' via thingiverse or github, and put it in the same folder as your project.  You will also need to do the same for the MCAD library. At the top of your .scad file, import the library, along with the MCAD dependencies (with the paths appropriately altered if necessary):
use <MCAD/regular_shapes.scad>;
use <MCAD/shapes.scad>;
include <3D-PCB.scad>;

Each component in the library has a standardized spacing: the pegs that make up a component are a set distance from that component's center. This value can be accessed by a call to 'get_component_distance()'. If you arrange your components in rows and columns like the example, the distance between the rows and columns should be 2 times this distance. Then if components are placed next to each other on this grid, they can share a peg. Do this where possible, and you will minimize the number of threads you need to wrap.  The caps that go over the pegs will hold your components to a snug connection.

Place your components with calls to the library, along with translate and rotate about z, with as many components sharing pegs as possible.  Tip: OpenSCAD has two rendering options: a quick render and a full render. I suggest using 'quick render' (F5) to preview while placing components. But do not try to rotate or move the rendered 3D model, this only works well after a 'full render' (F6) which in this example took around 10 minutes!

When you are finished, render and export the STL circuit.

Step 2: Print the circuit!

Picture of Print the circuit!
IMG_1097.JPG
Your 3d-printed circuit board is ready to be fabricated! Make sure that the components you placed are close enough to the right orientation. Print using the standard replicator defaults, with no raft and no support.

Also, make sure you print sufficient end-caps, and a toggle-switch if applicable.

Remove and clean if necessary, and check it's integrity -- that your slide switch will slide, batteries fit well into their holders, and your peg caps are snug and don't break the pegs when inserted.

Step 3: Wrap it up!

This section has detailed instructions for wrapping techniques for the various components involved. It is by no means the only way of doing it, as the process is also a work in progress.

General rules of thumb:
1. You should always try to start and end your traces at a peg
2. The tail end of a thread should come out of the side of the peg that is away from the other components (this is where the most fraying will occur)
3. When running between pegs, have the thread come out of the center (as opposed to around the side) for a more firm hold with the cap, and for straight traces at increments of 90 degrees.
4. Run your traces prior to inserting any of the components, to make them easier to change out if necessary.
5. Insert the peg caps once the components are in place. If there is an excess thread at the peg, pull it tight, insert the cap, and then snip off the excess.
6. I strongly suggest you test your circuit early and often with a multimeter; resistance of the threads should register but should not exceed a few dozen ohms.

Detailed wrapping instructions (each accompanied with pictures)
 - Peg: Start and end your trace at a peg. First, pin down a small length of thread next to the peg, and feed it through a central slot. Wrap once or twice around the perimeter, then add a few half-wraps; pass the thread through a central slot, then 3/4 of the way around the outside, then through the opposite central slot. When ending a trace, do the same procedure. Make sure to leave some extra thread to pull it taught before inserting the cap (after the components), and trim the excess to keep the fraying end in check.
- Battery: Start with a few loops around the half of the peg that is not conjoined with the sphere. Then run the thread along the perpendicular slot, into the slanted slot of the sphere itself. Wrap one or two loops around the sphere: around the contact point with the battery and then through the slot again. After these loops, run the thread back down through the central slot, and back out through the end peg. Hold everything in place by inserting a peg cap at the 45 degree angle into the peg.
- Toggle Switch: This has two components. The base of the switch is placed in your circuit, and has two pegs on either side. Wire up one end of the switch by wrapping these two pegs, but make sure your thread runs straight across as pictured. For the second part, start with the separately printed toggle. Form a loop around the front of the switch, where the connection will be made with the thread that you just ran. Follow the thread along the grooves, and tie a knot around the back of the switch, as tight as possible. Snip off any excess thread, but it's OK to leave a little there. Once this is done, snap the switch into the circuit (still with the other end of the thread untethered).  Make sure that the switch is in the ON position before you wrap the loose thread around another peg, otherwise there will not be enough slack and you'll either not be able to switch it on, or you'll force it and the thread will snap.
- Trace Hop: This is for when wires have to cross each other in the plane. You can help alleviate the need by building your circuits in two parts (with holes) and gluing them together.. but you still need sometimes to hop over a wire. Like with PCBs, these are unshielded traces. Along one direction this component has a lower slot, and in the perpendicular direction it has an upper slot.  I suggest you run the thread in the lower slot first.
- Components: the LEDs, resistors, capacitors, and transistors are all quite similar. They have two to three leads with the corresponding pegs, which should already be wrapped into the circuit board.  When you insert the components, it is helpful to have fine point tweezers to help guide the leads into the peg. If it does not slide all the way in, that's fine -- the peg cap will do the rest. Be careful when bending the leads, especially for the LED slots, because they are not particularly malleable and will break after just a few bends. Once in place, pull any excess thread at the peg and slide the cap into place.  Trim any excess thread, and use tweezers to wrap excess component lead around the peg (or clip off).

Step 4: Useful Example: 3D Printed LED Flashlight

This is the detailed instructions for a case study with the library: the 3D-Printed LED Flashlight.

Tools:
- 3D Printer; right now I've only done thorough testing on MakerBot Replicator
- Needle point tweezers (helpful in wrapping and inserting components)
- Small scissors (helpful in trimming excess thread)

Bill of Materials:
(4) 5mm LEDs, you'd probably prefer white
(2) AAA batteries
(2) conductive threads ~12in each
(2) conductive threads ~18in each

Printed Bill of Materials: (all with default settings, no raft, no support)
(1) electronics top
(1) electronics bottom
(1) flashlight tube casing
(1) flashlight cap
(1) toggle switch piece
(11) end cap

First: Make sure you test your LEDs, with about the 3v from the batteries.  It also might be a good idea to test the batteries...

Detailed Instructions: Referring to the schematic attached, there are 4 traces to run. Detailed instructions for how to wrap the individual components can be found in step 3.
1.  Start on the back, the "electronics bottom" board with the two batteries. Orienting the LED slots to be up, run your first trace (~18in) between the positive end of the left battery and the negative end of the right battery (top left to bottom right). Insert end caps.
2.  Also on the back, wrap the second trace (~12in) from the positive end of the right battery, around the peg that is behind the LEDs, but in front of the batteries. Place the "electronics top" on the underside against the "electronics bottom", with the LED holders pointing in the same direction. Feed your excess thread from the peg through both holes at the peg's base, so that it emerges on the other side. Flipping the two boards over, wrap the rest of this thread around the corresponding peg next to the hole.
3. Starting on the back again, with the same LED up orientation, start the third trace (~18in) on the upper left peg.  After a few wraps, have your thread emerge from the top, to run across in front of the LEDs, and do the same wrapping on the upper right peg. Have your thread again emerge from the top, and feed it through the hole nearby.  Flipping the electronics over, wrap the two upper most LED pegs in the same fashion: solid wraps around each peg, and running across in front of the LEDs. Once all 4 are wired, you should still have decent excess thread. Run your trace down to the peg below, and across the switch.  Finish wrapping that peg, and insert a peg cap.
4. Lastly, your last trace (~12in) will be the rest of the switch attached to the battery. Start by tying the knot around the switch, as is explained in step 3.  Insert the toggle switch (should snap into place), and move it to the on position, or you won't have enough slack to operate the flashlight. Run the thread down to the peg at the base, and give it a few wraps. Then feed the thread through the hole at the bottom right, so it will emerge in the right place.  Flipping the electronics over, there is one remaining battery terminal. Wrap your excess thread around this, the negative end of the left battery. Insert peg cap.
5. Insert the components. In this case, there are 4 LEDs and two batteries to insert. In this case, I suggest inserting the batteries first, and wrap with the switch on. This way, you'll know quickly whether or not you are inserting the LEDs correctly...  For both the top and the bottom, there are two LEDs to insert.  Orient them such that the positive leads (the longer one) run down to the peg in the center, and the negative leads out to the pegs on the side.  You will need to bend the leads a little to fit properly, but be careful not to bend them too much because they are prone to breaking. Once they are all in place and working, insert the final peg caps, anywhere there was a loose thread or a component lead.
6. Put it all together. Slide the combined electronics piece into the tube, such that the switch is exposed in the cut-away. The cap then fits onto the front, and twists into place.

Congratulations, you have now printed your own flashlight!
donkeyknee9 months ago
Amazing...!!
eng_Andy1 year ago
Brilliant idea, I like the way you made those easy-to-use wire-crossing pegs with the ones that allow one wire to go under another without contact. I'll be even more impressed if you or someone else can make a parametric inductor-winding guide part for this.
Have you thought of including any blocks that might allow through-hole IC's to be placed on one of these boards? Forgive me if there is already something like that, I don't have time to look through your library yet.
This is one of the coolest projects Ive seen, and def something cool to help kids get into electronics. super cool.
pbraams1 year ago
Very nice. This is the way to go for 3d-printing. Share designs.
I can recommend replacing the LED driver circuit with a Joulethief circuit (http://en.wikipedia.org/wiki/Joule_thief). It is smaller, more reliable, your batteries will last longer and you can easily add LEDS in parallel for more light.
The necessary parts can be retrieved from a broken CFL (low power fluorescent lamp).
CarryTheWhat (author)  pbraams1 year ago
Hey -- Thanks so much! That's a good idea, definitely on my list of things next to implement.

What do you suggest I do about the coil? I know I could scavenge the parts, but I would rather it be maximally printed & precisely reproducible, using similar techniques.
This is a very well-written walkthrough, and the pictures make it easy to follow the process from start to finish.

Cool technology, keep up the good work!
This is great if you have access to a 3D printer and want to fiddle with non-insulated, simple circuits... I am curious what you would do with an IC chip or anything with more than three pins... I guess I will stick with wire wrap tech for the more complicated stuff... it has worked wonderfully for several decades,,,
CarryTheWhat (author)  Taranach1 year ago
That's a very good question, a 555 timer 8 pin IC is next on my project list -- I have a few ideas for how to implement it.

I hear that wire wrap does work very well, but I believe it still requires some specialized, expensive equipment. I'm hoping to do as much as possible with just one machine (the whole structure, plus the circuit).
Well... a simple wire wrap tool averages about $40USD (low$25 high $60) and the sockets range from $1.50 (8 pin) to $10 (28 pin)... this is a LOT less than the $500 low end 3D printer.... I realize that the printer can do other things and will return on it's investment, however I am concerned about the scalability for circuits... the connectors in your project are pretty large, larger than many of the components, placement becomes an issue as well as tight design tolerances for more complex components. There is also the lack of insulation for the conductive thread which may preclude complex circuits that have connections going over one another. none of which are a problem for wire wrap.

Like I said before, this was a very cool and inspired use of 3D printing but I think it will only be practical for simple circuits at large scales. now if there were only a way to easily embed metal pins in a 3D printed project... it might also be useful for custom shaped boards using wire wrap...
Having no access to a 3d printer myself at the moment (I'm working on scrounging the parts for one from the scrap heap) I have no way to test this. However, I have in the past repaired circuit boards with glue and a conductive pen. This makes me wonder if it might be possible to use one of the drawing heads commonly available for the various models of 3d printer and some variety of conductive pen, and if the ink would be capable of holding up to having another layer of plastic printed over the top... Probably not as cheap as the wire is, but it might lend itself more easily to more confined spaces.
derte841 year ago
Great idea! Well different from other circuit printing techniques. I can be useful to explain electric concepts at school
blanchae1 year ago
Wondering why you used conductive thread and not stranded wire?
CarryTheWhat (author)  blanchae1 year ago
I've tried many materials to run the traces.. from basic wires to conductive tapes and glue. So far, this type of thread has had the best combination of characteristics (inexpensive, easy to deal with, low resistance, durability, re-usability, flexibility, etc) -- some of the components involve small knots, threaded through holes etc. While I'm always looking for another material that might be better, this is the best I've found so far.
Old Fart Speaking: When I was a kid, access to printed circuits at home was a real doozey, so my solution at the time was to use "bread board (more like vero-board)", and just to be that little bit confusing to others, I used to thread it up with single strands from twisted wire. At a glance, the wires were invisible.
Gilius1 year ago
I am absolutely thrilled about this technology. Bringing it back into the spotlight by fusing it with 3d print technology is genius.

Maybe you could integrate it with KiCAD. It's open source.
CarryTheWhat (author)  Gilius1 year ago
Thanks so much!! It's implemented in OpenSCAD right now, which is also open source. A future project is some implementation to generate the OpenSCAD from traditional PCB files --- KiCAD might be the right choice! Thanks for the tip!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!