I'm not sure what circuit boards look like, but other metal bits, if there are holes in them (or if not, drill holes), you can attach with small nuts and bolts, with the flat part of the bolt on the inside. I just did this with a pair of chaps that I needed to attach a belt to. I took a 2" piece of metal strapping (the kind with the holes in it used to hold up gutter downspouts and myriad other uses), bent it in half, put a D ring in the crease, poked a small hole through the material and belt (sturdy velveteen and repurposed vinyl belt), pushed the bolt through, put the metal piece on the right side of the fabric, put on a couple washers for added decoration, screwed the nut on tight. Now I can clip my nalgene to my pants with a caribiner! Or hang other things from my D rings.
Got any old bicycle inner tubes lying around? I made a corset out of them, and have plans to make other things - rubber tubes are very versatile

Sews pretty well, too...or you could probably rivet it together.