mrWheel / YAPP_Box

Yet Another Parametric Projectbox Box
https://willem.aandewiel.nl/index.php/2022/01/02/yet-another-parametric-projectbox-generator/
MIT License
267 stars 46 forks source link

Base PCB support with through-hole and sunken screw head? #110

Closed snhirsch closed 2 days ago

snhirsch commented 2 days ago

I am working on a box for a heavy power supply that must be mounted with machine screws from the bottom. Maybe I'm missing something, but no matter what I do I cannot get OpenSCAD to generate a complete through hole. It's creating a "pin" hole, but with a blind bottom. Tried increasing pin length in the hopes it would project through, but that's not working. Any suggestions or workarounds? A countersunk area for the screw head would be icing on the cake, but I could always mount feet as a workaround.

mrWheel commented 2 days ago

You can just make a round cutout on the places you want the screw holen. With ‘baseHookOutside’ and/or ‘baseHookInside’ you can re-enforce the screw holes.

snhirsch commented 2 days ago

Yes, but unfortunately I do not understand the syntax for the hook routines. Although the YAPP template itself is clear I'm far from an expert with OpenSCAD coding. I think I may have come up with a workaround involving bottom holes that are concentric with the support holes.

Thanks for getting back so quickly!

rosenhauer commented 2 days ago

Are you using pcbSupports or connectors. I think connectors might be more of what you are needing.

On Tue, Oct 1, 2024, 1:10 PM Willem Aandewiel @.***> wrote:

You can just make a round cutout on the places you want the screw holen. With ‘baseHookOutside’ and/or ‘baseHookInside’ you can re-enforce the screw holes.

— Reply to this email directly, view it on GitHub https://github.com/mrWheel/YAPP_Box/issues/110#issuecomment-2386655982, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBTUKBX3SKUZJYIUJ4YIFLZZLQRRAVCNFSM6AAAAABPGDJWWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBWGY2TKOJYGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

snhirsch commented 2 days ago

The connectors seem to always exist in top + bottom pairs. I would need them strictly on the bottom and located relative to PCB origin. My approach of "drilling holes" in larger generated PCB supports seems to have worked out well. Will need to take a close look in the slicer, but I think this will be fine. Thanks for coding such a marvelous template!