EEVblog Electronics Community Forum
Electronics => Beginners => Topic started by: PotatoBox on May 05, 2020, 12:01:43 am
-
So I'm making a basic linear power supply with a transformer and an lm317. I wasn't planning on wiring up the mains ground since I'm using a plastic enclosure but I need to drill holes for the mounting screws in the enclosure, thus exposing the metal screws on the outside of the enclosure. Should I wire up the mains ground to the mounting screws of the transformer? Should I also wire up the mains ground to the ground of secondary side of the transformer with all the lm317 circuitry?
-
All exposed metalwork, and the transformer core if its got an exposed core, should be grounded. Also, put a green binding post for ground next to the ones for the output, but leave the secondary side non-grounded, so you can choose whether or not to ground the output (and even what side of the output to ground) depending on your application.
-
All exposed metalwork, and the transformer core if its got an exposed core, should be grounded. Also, put a green binding post for ground next to the ones for the output, but leave the secondary side non-grounded, so you can choose whether or not to ground the output (and even what side of the output to ground) depending on your application.
Why would I need a mains ground connected to a separate output? What kind of projects would require this?
-
The reason to keep the ground separate on the secondary side is so that your output will be floating. This is essential when you want to connect two or more power supplies in series.(1)
You can choose to have it earth referenced by connecting either the positive or negative output terminal to the earth terminal.(2)
By hard wiring the earth to the secondary side, you remove that ability(1) and that choice(2)
-
The reason to keep the ground separate on the secondary side is so that your output will be floating. This is essential when you want to connect two or more power supplies in series.(1)
You can choose to have it earth referenced by connecting either the positive or negative output terminal to the earth terminal.(2)
By hard wiring the earth to the secondary side, you remove that ability(1) and that choice(2)
I don't plan on having two power supplies in series (I'm only building this single one) but how would you go about this?
-
Its safer. Also, in the future you'll likely have times come along where you'll find you need the extra voltage or current.
-
Its safer. Also, in the future you'll likely have times come along where you'll find you need the extra voltage or current.
How is it safer? Are you referring to the fact that the AC mains wiring (if the insulation is fraying) may come in contact to the secondary side of the transformer as well as the lm317 and essentially making its way to the output of the DC + and - binding posts?
-
Grounding exposed metalwork and the transformer core is for safety. If its a split bobbin transformer, (or otherwise has reinforced insulation that meets the safety requirements for a double-insulated device) there is no need to ground the secondary circuit, provided its impossible for any of the mains wiring to come in contact with the secondary side, (and visa-versa) even if any of the wires break at their terminations.
Bringing out the ground on a separate terminal that can be tied to either output terminal if required is for convenience and versatility, not safety.
-
Grounding exposed metalwork and the transformer core is for safety. If its a split bobbin transformer, (or otherwise has reinforced insulation that meets the safety requirements for a double-insulated device) there is no need to ground the secondary circuit, provided its impossible for any of the mains wiring to come in contact with the secondary side, (and visa-versa) even if any of the wires break at their terminations.
Bringing out the ground on a separate terminal that can be tied to either output terminal if required is for convenience and versatility, not safety.
I'm using a transformer that looks like this with an enclosure around it:
(https://sigma.octopart.com/13539645/image/RadioShack-273-1512.jpg)
Is the transformer enclosure connected to the core? Will I need to ground the transformer enclosure?
-
Is the transformer enclosure connected to the core?
Most probably yes, though it may not be a very good connection due to the oxide and/or varnish coating on the laminations.
Will I need to ground the transformer enclosure?
Yes, but simply grounding one mounting lug should be good enough if you use a ring terminal on the wire and a shakeproof washer and a Nylock nut on the bolt so the ground connection cant easily loosen due to vibration.
-
I'd definitely leave the secondary floating -- as others said, that's a feature, not a bug. As for grounding the transformer, I guess if you're using metal screws to hold it in place that are accessible outside the box, then you have little choice but to do it. But since you are using a plastic enclosure, consider using nylon screws, and then it doesn't matter.
-
Also this is a bit off topic but what would be a good way to restrain the power cord? I remember seeing these round rubber cots where you drill a hole into the enclosure and fit it and provides strain relief for the power cord. What are these called?
-
Your description sounds like a 'grommet'. These will protect the cable from the sharp edges of the hole but are not sufficient to secure the cable. The restraint needs to be able to prevent the cable from pulling out, being pushed in, or rotated (any of these can damage your internal wiring). A snug fitting P-clip screwed to the inside of the case works well.
Alternatively you could fit an IEC connector to the back of the case and use a standard plug-in mains lead. This is useful for storage, and for not tripping over the mains lead when carrying it around. ;)
P.S. You can get IEC panel connectors with built-in fuse holders (and switches) which can solve two problems in one.
-
Also this is a bit off topic but what would be a good way to restrain the power cord? I remember seeing these round rubber cots where you drill a hole into the enclosure and fit it and provides strain relief for the power cord. What are these called?
A "Heyco" strain-relief is pretty common:
(https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTaSisJUON1BKNMP98Qi7KqobWTLnIvnqdUQ1nAoUBrMyERAtzh&usqp=CAU)
But I do like the IEC power connectors with the built-in fuse.
-
Also this is a bit off topic but what would be a good way to restrain the power cord? I remember seeing these round rubber cots where you drill a hole into the enclosure and fit it and provides strain relief for the power cord. What are these called?
A "Heyco" strain-relief is pretty common:
(https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcTaSisJUON1BKNMP98Qi7KqobWTLnIvnqdUQ1nAoUBrMyERAtzh&usqp=CAU)
But I do like the IEC power connectors with the built-in fuse.
For years (going back to 1988) the box that held a 24V 50VA transformer "base station" for my temperature controlled soldering iron had one of those strain reliefs and a 3 metre cable.
I drilled a hole and installed an IEC inlet connector when I got fed up with having to loop and unloop the cable. (no built in fuse - already had that installed on the front panel).
If you have a permanent work bench - use a cable+strain relief, if the unit gets returned to a storage location (=shelf) after use, go for an IEC inlet.