How to mount components in a box?

Yes it is not always easy to get M2.5 screws most suppliers consider M3 as very small.

If you take a look at the projects here:-
http://www.thebox.myzen.co.uk/Hardware/Projects.html
You will see a variety of techniques.

Hot Air glue gun to temporary fix it.

Combo:
Real basic beginners question here. How do you mount things like PCB's and other components in an electronics project box like this?: -

a) The big piece of plastic is the lid. The thin one is the base.

b) Drill holes in the base and use standoffs.

Rather than drilling holes, another solution you can try is:

  1. Attach the standoffs to the board you want to mount.

  2. Apply epoxy, super-glue, or some other similar multi-purpose/multi-material high-strength adhesive to the ends of the standoffs.

  3. Position and apply the standoffs onto the surface your want to attach to.

Once the glue sets, you can then unscrew the board from the standoffs, and they will remain in place. Be careful not to get any glue onto the board or the screws holding it to the standoffs, of course.

1 Like

cr0sh:
2) Apply epoxy, super-glue, or some other similar multi-purpose/multi-material high-strength adhesive to the ends of the standoffs.

That's a nice solution if the box you are using is made of something that you can get the glue to bond with, but I'm not at all sure it will work with ABS, which is what most plastic enclosures are made from. Do you know of a glue that works with ABS?

dc42:
...but I'm not at all sure it will work with ABS...

I am certain. Normal epoxy does not bond to ABS.

With an interesting exception: openings in the ABS give the epoxy a "bonding" point. I have had success "gluing" tactile pushbuttons into openings. The epoxy forms around the opening edges holding the pushbutton in place.

Epoxy works best in my experience, I used to have 1 in 10 separate from the panel until I began roughing up the plastic and fixing a small washer (I like outside star lock washers) and a grey epoxy resin used for automotive repairs called JB Weld. The curing time can be accelerated by heating to 45 deg C or 115 F for 30 minutes.
This was a technique that I used to make field testable models that let me finalize circuit board sizes, mounting holes and cutouts required for a final drawing, PCB layouts (mounting holes) and battery holders for SLA batteries in both plastic and aluminum.

Doc

Hit it with some coarse sandpaper first and it should stick well enough for this sort of thing.

In the crafting circles, I often times see a recommendation for the site: http://www.thistothat.com/ as a reference of what type of glue to join two different things.

For plastics, it looks like their first choice is 'Household Goop' (Household Goop), with the note that Goop is formulated differently in different parts of the world due to local regulations. The Canadian goop for instance contains perchloroethylene which is a known carcinogenic. The U.S. Goop formula contains toluene, which although is a dangerous solvent, it is not carcinogenic. However, toluene is much more flammable than perchloroethylene, so it is a matter of pick what you want to safeguard against (which in turn sounds like a discussion of lead-free vs. lead containing solder).

On some plastics, you want to use sand paper to rough it up, and with most glues, you want to clamp it in place for 24 hours or so.

Telecommando:
Many consumer products use 'hot glue' to hold circuit boards, components and small wiring harnesses in place. I've had limited success with it, it tends to break loose under extreme cold, vibration and sudden shock.

I've had similar results. In addition, if you live in a hot place, the glue might melt without the iron.

Also, some cases have internal mounting boards that are available, such as this case that I've thought about: WC-23 Waterproof NEMA 4X Electronics Clear Cover Enclosure. In terms of the Arduino, my Uno has 4 mounting holes, but the hole next to the reset button is too close to the pin's to be able to use a screw to attach to the stand-off.

Well - when I think of epoxy - I think JB Weld. That said, I have the cover of an old battery from a Motorola "brick" phone that I use occasionally for mixing epoxy; I can bend it and pop the epoxy off (mostly). Not sure if it was made of ABS or not...?

One thing I had done to get some of the epoxy off that battery cover was to use a hammer and chisel it off; but I found the epoxy would stick better the next time around (perhaps the gouges were making it easier to "stick"). So you could probably just sandpaper it some to make it stick. Worth trying out, at least.

I've found JB Weld to be good for sticking together just about anything; my "worst" application was on an anti-backfire valve on my 79 Bronco. That valve is virtually impossible to find, and the one that I did find (off a junker engine) was broken. I JB Weld'ed that thing up, and it's been on that exhaust header for several years now, without failing.

I've also seen JB Weld hold together a blower on a diesel engine, on my brother-in-law's old Ford dump truck; the blower cover was an aluminium casting, and had cracked. My brother-in-law had no way to weld the aluminium, so he JB Weld'ed the crack. It held for over a decade, then the blower failed again. That's when I first saw it. It had cracked in a -different- spot; he told me about using JB Weld on it the first time, and showed me the repair he had made before; it was still holding fine. Of course, after the second crack occurred, he decided to get a replacement blower.

All anecdotes, of course - and says nothing about ABS.

Gorilla Glue (or another polyurethane-based glue) might be another possibility. Something else to try might be to get some ABS solvent (ABS pipe "glue") and take a little bit of it and mix in some ABS shavings to make a "plastic blob", then embed the standoff into the blob onto the ABS piece you are working with (probably a metal hex standoff would work best - basically, the idea would be the inside threaded end of the standoff would secure it longitudinally, while the hex part being embedded would keep it from rotating - but that's all just a guess).

just use the ben heck method. hot glue all the way!!!

ryan27968:
just use the ben heck method. hot glue all the way!!!

If the job of this is to stop electronics rattling around inside a plastic box then just about anything will do. We're not building to mil spec here.

(Or maybe we are and he didn't tell us. It wouldn't be the first time...)

So either:
a) Drill and screw
or
b) Sandpaper surface then epoxy/hot glue.

Another approach I've used is to use push-buttons, rotary encoders, potentiometers etc. that have a bush and nut for panel-mounting but have PCB terminals. I solder these devices to the PCB or stripboard, then I panel-mount them on the enclosure. No additional fixings needed.

Telecommando:

MichaelMeissner:
my Uno has 4 mounting holes, but the hole next to the reset button is too close to the pin's to be able to use a screw to attach to the stand-off.

Have you considered using Nylon hardware?
Nylon Screws, Nuts, Washers, & Rod Category | Nylon Screws, Nuts, Washers & Threaded Rod | U.S. Plastic Corp.
I bought a few bags of assorted sizes several years ago and right after I placed my order I found out my local hardware store stocks small nylon hardware.

The problem is the UNO r3 added 2 additional pins (i2c SCA/SDA) over the r2 next to the AREF pin, and those pins are flush with the mounting hole. That means it is impossible to use a normal M3 screw to attach the standoff leg, since the screw head is too big. I imagine you could use a grinder to cut down on one side of a nylon screw head, and screw it from the bottom, or just use a post with no screw to mount it. If you don't have a shield on top, you could just use a longer screw, but many of the shields I've seen now have the two additional connection terminals.

The UNO designers were sort of between a rock and hard place, in that where they put the extra 2 pins is about the only logical place to put it, and if they had moved the stand off hole, it would not have been compatible with earlier designs.

With plastic models and slot cars that used screws into threaded parts, if the threads got stripped we just put some glue in the hole and turned the screw in. Hours later we had a threaded hole. So with ABS you might drill a small hole and soften the plastic with ABS cement and then turn a bolt in the hole.
Or drill a bigger hole and leave the bolt head on the outside and clamp it in place with a nut on the inside. A washer on either side wouldn't hurt and those you could put glue on.

In the right place, tie wraps might work.

PERC containing GOOP is still available in the U.S. as the industrial product (from the same manufacturer) E6000. Not only is it non-flammable, but it is lower viscosity to begin with and doesn't harden in the tube over time, at least not at the rate that the retail stuff does. You will not find it in retail stores, but the manufacturer does have a web site, though e-bay prices are usually cheaper than theirs. Just search E6000. Cheapest supplier I've found so far is a Hong Kong wedding-decorations supplier: LiNg's moment info3@lingsmoment.com
http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=120783551503&ssPageName=ADME:X:RTQ:US:1123

Great stuff also for strain relief and insulation of wiring: non-corrosive and you can un-solder right through it as an iron will melt it.

Ciao,
Lenny

MichaelMeissner:
The problem is the UNO r3 added 2 additional pins (i2c SCA/SDA) over the r2 next to the AREF pin, and those pins are flush with the mounting hole. That means it is impossible to use a normal M3 screw to attach the standoff leg, since the screw head is too big. I imagine you could use a grinder to cut down on one side of a nylon screw head, and screw it from the bottom, or just use a post with no screw to mount it. If you don't have a shield on top, you could just use a longer screw, but many of the shields I've seen now have the two additional connection terminals.

The UNO designers were sort of between a rock and hard place, in that where they put the extra 2 pins is about the only logical place to put it, and if they had moved the stand off hole, it would not have been compatible with earlier designs.

The other three screws aren't enough?

Take a look at plastic mobo standoffs.

Or make your own.

Spend some time searching the net.