!tBPyYyjOQgVzlwFvEI:matrix.org

CadQuery Showcase

573 Members
3 Servers

Load older messages


SenderMessageTime
5 Dec 2023
@_discord_565948985630785578:t2bot.iobarnaby I decided to try using gridfinity baseplates for organising, structuring and easily storing electronics projects. started by making plates to hold a nucleo 64 and a breadboard, using the left over space for a little storage tray. I used ruudjhuu’s b3d gridfinity library to generate the gf-specific geometry 16:36:44
@_discord_565948985630785578:t2bot.iobarnaby
#%% Imports
from build123d import *
import gridfinity_build123d as gfb
from ocp_vscode import show, show_object, reset_show, set_port, set_defaults, get_defaults
set_port(3939)
set_defaults(axes=True, axes0=True)


#%% 1x Breadboard-60 Holder
with BuildPart() as bb1x60:
  base = gfb.Base(
    grid=[
      [True, True, True, True],
      [True, True, True, True]
    ],
    features=[gfb.MagnetHole()],
    align=(Align.MIN, Align.MIN, Align.MIN)
  )

  with BuildSketch(Location((0, 0, base.bounding_box().size.Z))) as spare_bin_base:
    RectangleRounded(bb1x60.part.bounding_box().size.X, 24.0, 4, align=(Align.MIN, Align.MIN))
    offset(amount=-1.0, mode=Mode.SUBTRACT)
  extrude(amount=10.0)
show(bb1x60)
bb1x60.part.export_stl('output/gf_electronics_bb1x60.stl')

#%% STM32 Nucleo-64
nucleo64_width = 70.0
pillar_height = 9.0

with BuildPart() as stm32nucleo64:
  base = gfb.Base(
    grid=[
      [True, True],
      [True, True]
    ],
    features=[gfb.MagnetHole()],
    align=(Align.MIN, Align.MIN, Align.MIN)
  )

  # Mounting pillars
  base_top = Location((0, 0, base.bounding_box().size.Z))
  with BuildSketch(base_top) as pillars_sk:
    
    # Top left hole as origin
    with Locations((26.5, ((base.bounding_box().size.Y - nucleo64_width) / 2) + 11)):
      with Locations([
        (0, 0),
        (1.3, 48.2),
        (52.1, 33)
      ]):
        Circle(radius=4)
        Circle(radius=2, mode=Mode.SUBTRACT)
  extrude(amount=pillar_height)

  wall_length = base.bounding_box().size.Y
  with BuildSketch(base_top) as walls_sk:
    add(base.faces().sort_by(Axis.Z)[-1])
    with Locations((base.bounding_box().size.X / 2, base.bounding_box().size.Y / 2)):
      Rectangle(wall_length, nucleo64_width + (1.0 * 2), align=(Align.CENTER, Align.CENTER), mode=Mode.SUBTRACT)
  extrude(amount=pillar_height + 2.0)  # flush with PCB

show(stm32nucleo64)
stm32nucleo64.part.export_stl('output/gf_electronics_stm32nucleo64.stl')
16:36:49
@_discord_565948985630785578:t2bot.iobarnaby (that code is what produced the parts I just printed, the nucleo holder works but would benefit from a few tweaks, in case anyone else wants to print something similar) 16:41:06
@_discord_127042246922076160:t2bot.iodeanzyne joined the room.18:09:50
@_discord_338815960473403392:t2bot.ioruudjhuu Great to see my work is usable. If you have any feedback, please create a gh issue, everything is welcome. Keep in mind that the library is in a very early stage of development (things can change a lot). I know my lib lacs documentation, but you might want to have a look at 'BaseEqual' for creating rectangular bases. 18:17:47
@_discord_565948985630785578:t2bot.iobarnaby there are definitely some confusing inconsistencies between the documentation and the actual code, but it was easy enough to figure out how it worked. I didn’t look at it long enough to figure out what the difference is between Base, BaseEqual and BaseBlock, as Base worked fine for what I needed 18:24:56
@_discord_565948985630785578:t2bot.iobarnaby * there are definitely some confusing inconsistencies between the documentation and the actual code, but it was easy enough to figure out how it worked, and it was clear from the recent activity that things were likely to change! I didn’t look at it long enough to figure out what the difference is between Base, BaseEqual and BaseBlock, as Base worked fine for what I needed 18:25:21
@_discord_761357630962663424:t2bot.iovalincius joined the room.19:36:54
@_discord_733440569333776606:t2bot.io.theidealist joined the room.22:36:48
6 Dec 2023
@_discord_716907695352971295:t2bot.ioMasahiro Wada joined the room.04:14:39
@_discord_1153621863461830678:t2bot.iozealous_axolotl_37267image.png
Download image.png
07:39:03
@_discord_1153621863461830678:t2bot.iozealous_axolotl_37267 cart wheel by buid123d 07:39:03
7 Dec 2023
@_discord_1139217082395930664:t2bot.iokayas_84934 joined the room.01:50:35
@_discord_223934063600336896:t2bot.ionaz6352 joined the room.03:03:51
@_discord_330929356258148352:t2bot.iobargle. joined the room.05:27:12
@_discord_843840960554860617:t2bot.ioarun6646 joined the room.11:22:32
@_discord_792386763833212949:t2bot.iomr.gh0s7 joined the room.20:01:43
10 Dec 2023
@_discord_121129249531756545:t2bot.ioakil joined the room.08:52:05
@_discord_160126007783849986:t2bot.iodashlambdaimage.png
Download image.png
15:50:58
@_discord_160126007783849986:t2bot.iodashlambdaimage.png
Download image.png
15:50:59
@_discord_160126007783849986:t2bot.iodashlambda And the switch cartridges are now done! Well, except for more fine-tuning the tolerances and angles and stuff, but that comes later.

Also got an absolute ton of code cleanup to do, I've been making a mess while iterating on the switches.
15:50:59
@_discord_515832171047550976:t2bot.iofelix.haeberle you are awesome 😎 16:11:43
@_discord_160126007783849986:t2bot.iodashlambdaimage.png
Download image.png
21:32:19
@_discord_160126007783849986:t2bot.iodashlambda With the switchboard and HP counters done, I just have two more mechanical features, some cleaning up with labels and retaining features, and aesthetic stuff left to do: 21:32:19
11 Dec 2023
@_discord_209043174960660490:t2bot.ioJern#4673 I am honestly blown away by this! This has got to be the most complex build123d assembly yet! Hope you are enjoying using build123d! 01:49:03
@_discord_187407503460532224:t2bot.ioralith joined the room.04:09:40
@_discord_160126007783849986:t2bot.iodashlambda To be honest, build123d with OCP-VSCode is absolutely my favorite CAD suite I've ever used by a very significant margin. It just feels right. 04:58:45
@_discord_309408702530846730:t2bot.iomatrix-t2bot joined the room.16:02:26
@_discord_693616433275469895:t2bot.iodkatelin joined the room.17:02:14
12 Dec 2023
@_discord_1183967389080100925:t2bot.iosherryjenks_34990 joined the room.03:04:30

Show newer messages


Back to Room ListRoom Version: 9