Guide · Video 6:00
How to design a case for your electronics with AI, around the real board
To design a case for your electronics with AI, give the AI the real parts: the 3D file (STEP file) of your circuit board from the manufacturer, or a datasheet with dimensions for parts that have none. In SOMA, SOMA AI places these parts as references and designs the case around them, with openings, screw posts and parameters you can change. Then you check the fit with a section view and export 3MF files for printing. Measure the important openings and print a test piece, because the AI can still get a detail wrong.
Plays from YouTube when you click it (privacy). Or watch it on YouTube.
What you need
- SOMA, free and open source, for Windows, macOS or Linux.
- A sign-in for SOMA AI: a ChatGPT Plus or Pro plan, or an API key from Anthropic (Claude), OpenAI, Google Gemini, OpenRouter or OpenCode. SOMA is free, the AI runs on your plan or key. The cheapest way to start is an OpenCode Go subscription for about $10 a month.
- A STEP file of your circuit board. Many manufacturers offer one on the product page; the video uses the reSpeaker XVF3800 with a XIAO ESP32S3 from Seeed Studio's wiki.
- For parts without a 3D file: the datasheet with a dimensioned drawing, as a PDF. The video uses the datasheet of a Visaton FRS 5 X speaker.
- A 3D printer or a printing service for the finished case.
Step by step
1Get the 3D file of your board
Look for the 3D file of your board on the manufacturer's page, often under Resources or Downloads. It is usually a STEP file (.step or .stp). In the video it is the reSpeaker XVF3800 from Seeed Studio: four microphones, a ring of twelve LEDs, two buttons and a small XIAO ESP32S3 on the back.
Check the license on the page before you share a model that contains the file. Seeed publishes the file on its wiki under Creative Commons.
2Import the board and the datasheet
Start a new model and click Import at the top. Add the board's STEP file and the speaker's datasheet. SOMA puts them into the model's inputs folder, where SOMA AI can use them.
Click the STEP file in Files to look at it in the 3D view: you see the LED ring on top, and underneath the XIAO and the connectors. Back to model returns to your model.
Very detailed board files make every build slow. For the video the board file was trimmed before the import: small components became simple blocks of their size.

3Let SOMA AI place the parts
Open the SOMA AI tab and pick a model; the video uses GPT-6.1 Sol. First ask only to bring the parts into the model. SOMA AI reads the STEP file and the datasheet, measures both parts and places them: the board on top, the speaker below it, facing forward. In the video this took about 3 minutes.
The speaker has no 3D file, so SOMA AI builds it from the datasheet's dimensions and mounting holes. The structure tree lists the board with its parts, and the speaker. Both are references: see-through, used to design around, and never printed.
inputs/respeaker-xvf3800.step is the board of my voice assistant, and the PDF is the datasheet of my speaker. Load the board as a reference, centered, LEDs facing up. Build the speaker from the datasheet as a reference too, below the board, facing forward.

4Describe the case and answer the questions
Now describe the case the way you would tell a friend: the shape, what must stay reachable, how it is held together and how you will print it. Name the parts that need openings and say which values you want to change later.
The last sentence asks SOMA AI to ask first. In the video it asks two questions at once: a compact size around the parts or your own dimensions, and M3 screws with heat-set inserts, captive nuts or screws into plastic. Click your answers and send them.
Now design a 3D printable case for my smart speaker around them, a round tower. On top: holes above the four microphones, and a separate light ring above the LED ring that I print in white. In front: a grille for the speaker. Keep the two side buttons pressable and leave openings for the USB-C ports and the audio jack. Screw the board onto posts at its four holes and the speaker onto the front, with standard screws, and close the case with screws from below. It should print without supports. Make the wall thickness, the grille holes and the height parameters. Ask me about anything that is unclear before you start.

5Let SOMA AI design the case
Then SOMA AI works through it step by step. SOMA builds the model after every change, and SOMA AI looks at pictures of its own result to check it. In the video this took about 39 minutes.
The result is a round tower, 113.8 mm in diameter and 114 mm tall: the tower, a top cover, the front grille, the base and the white light ring, plus standard screws and heat-set inserts. The board and the speaker stay inside as references.

6Check that everything fits
Click Section above the 3D view to cut the case open. These tools only change the view, not the model. In the video the board sits right under the top, and the speaker right behind its grille.
Click Explode to pull the parts apart and see how the case goes together: the light ring and the cover on top, the grille in front, the base below, all held by screws in heat-set inserts.

7Show a change with Mark up
To hang the speaker on the wall, turn the model to the back, click Mark up and draw the keyhole where you want it: in the video a circle for the screw head, a slot above it, an arrow and a short note.
Send to agent puts the picture into SOMA AI's input. Add one sentence and send it. After about 14 minutes the keyhole is on the back, right where it was drawn: an 8.8 mm head opening and a 4.6 mm neck, reinforced on the inside.
Add a keyhole slot here, so I can hang the speaker on a screw in the wall.

8Change sizes with sliders
Because the prompt asked for parameters, the main sizes are in the Parameters tab on the left: in the video the wall thickness, the grille hole width and the overall height.
Open a row and drag its slider, and SOMA rebuilds the model, without the AI. Reset all brings back SOMA AI's values.

9Export for your slicer
Click Export, keep All parts and choose 3MF. You get one file per printed part, ready for the slicer. The board, the speaker and the screws stay out.

Tips
- Place the parts first, then design the case. When the board and speaker sit where you want them, SOMA AI has a fixed frame to design around.
- The real file beats your description. In the video the prompt asked for posts at four holes; SOMA AI noticed that the board has only three mounting holes and used all three.
- Mention everything you need to reach from outside: buttons, ports, LEDs, microphones, cables. What you do not mention may end up closed.
- End a long request with "Ask me about anything that is unclear before you start." SOMA AI then asks its questions at once, before it spends time on the model.
- This was a simple example, made quickly. With more time and planning you can go much further: the end of the video shows a detailed smart speaker with a fabric cover held by piping, several circuit boards and an LED ring, also designed in SOMA and built.
- For general printing rules for cases (wall thickness, clearances, screws, lids), see the guide How to design a 3D printed enclosure with AI.
Related guides
- How to design a 3D model with AI (no CAD skills needed)
- How to use AI for CAD
- How to design a 3D printed enclosure with AI
Transcript of the video
I want my own smart speaker: a voice assistant that runs at home. The electronics are on my desk. What's missing is a case. Today I'll show you how SOMA AI designs that case around the real board and speaker, with mic holes, a light ring and a grille, ready to print. No CAD knowledge needed.
We use SOMA. It's free and open source, and you can download it at somacad.app. SOMA itself is free. For SOMA AI, you bring your own AI: a ChatGPT subscription or an API key.
The heart of it is the reSpeaker XVF3800 from Seeed Studio: four microphones, a ring of twelve LEDs, two buttons, and a small XIAO ESP32-S3 on the back.
Seeed publishes a 3D file of the board on its wiki, under Creative Commons. They even have a flat case for it, but I want one with a speaker inside. So we download the 3D file.
In SOMA, we start a new model and import two files: the board's STEP file, and the datasheet of my speaker, a Visaton FRS 5 X.
Click the STEP file, and SOMA shows the board, with the LED ring on top.
Underneath sit the XIAO and the connectors.
For the speaker there's no 3D file. But the datasheet has every dimension we need.
Everything is prepared. Now we build it with SOMA AI: I click its tab, and pick the model, GPT-6.1 Sol.
First, I ask it to bring in the board, and to build the speaker from its datasheet.
SOMA AI reads the STEP file and the datasheet, measures both parts, and places them: the board on top, the speaker below it, facing forward. Here they are. The structure tree lists the board with its parts, and the speaker. Both are references: see-through, and never printed.
Now the case. I describe it the way I'd tell a friend: holes above the microphones, a light ring above the LEDs, a grille for the speaker, buttons and ports reachable, screws that match the board, and easy to print.
Before it starts, SOMA AI asks what is still open. I click my answers and send them.
Then it works through it step by step. SOMA builds the model after every change, and SOMA AI looks at pictures of its own result to check it.
And here's my smart speaker.
The structure tree shows what it made: the tower, a top cover, the front grille, the base and the white light ring, plus standard screws and heat-set inserts. The board and the speaker are still inside, as references.
To check the fit, SOMA has tools that only change the view. Section cuts the case open: the board sits right under the top, and the speaker right behind its grille.
A nice detail: SOMA AI noticed that the board has only three mounting holes, not four, and used all three.
Explode, another view tool, shows how it goes together: the light ring and the cover on top, the grille in front, the base below, all held by screws in heat-set inserts.
I'd like to hang it on the wall. So I turn it around, click Mark up, and draw where the keyhole should go. A circle for the screw head, and a slot above it. Then an arrow, and a short note that says what it is.
Send it to SOMA AI, with one sentence.
And there's the keyhole on the back, right where I drew it.
SOMA AI also turned the main sizes into parameters. You find them in the Parameters tab. A thicker wall, bigger grille holes: drag a slider, and the model rebuilds. The agent isn't even involved.
Reset all brings back SOMA AI's values.
Finally, Export. All parts as 3MF: one file per printed part, ready for the slicer. The board, the speaker and the screws stay out.
From a board on my desk to a case that's ready to print, without drawing a single line.
This was a simple example, made quickly to show how SOMA works. With more time and planning, you can design something like this: a smart speaker with a fabric cover held in place by piping, several circuit boards, and an LED ring. Also designed in SOMA.
And here it is, built.
Under the lid sit the boards and the LED ring. Below, the printed shell, with the fabric held in its groove. Get SOMA for free at somacad.app.
Board 3D file: "ReSpeaker XVF3800 3D File" by Seeed Studio, https://wiki.seeedstudio.com/respeaker_xvf3800_introduction/ (Seeed wiki content under CC BY-SA 4.0, https://wiki.seeedstudio.com/License/). Trimmed for the video (small components replaced by blocks of their size). Speaker dimensions: datasheet "FRS 5 X - 8 Ohm" by VISATON GmbH (https://www.farnell.com/datasheets/2330028.pdf). Product names belong to their owners, no endorsement. Voice: Kyutai Pocket TTS. Music: "Inspirational Technology" by AtlasAudio (Pixabay). Sounds: Kenney Interface Sounds (CC0).
Questions
Where do I find a 3D model of my circuit board?
Look on the manufacturer's product page or wiki, often under Resources, Downloads or CAD files. Many makers of development boards publish a STEP file for exactly this use, designing a case around the board. If you designed the board yourself, your PCB design program can usually export a STEP file.
What if a part has no 3D file?
Use its datasheet. A dimensioned drawing in the datasheet is enough for the AI to build a simple stand-in with the right outer size and mounting holes. In the video the speaker was built this way from its datasheet. Check those dimensions against the real part before you print.
Will the circuit board end up in my print files?
No. In SOMA the board and other imported parts are references: they are shown see-through so the case can be designed around them, but exporting all parts leaves them out, and the standard screws too. Only the printed parts of the case become files.
How do I know the board fits before I print?
Cut the model open with a section view and look at the board on its posts, the connectors in their openings and the gaps around them. Use Measure for the openings that matter. For a large case, print a small test piece first, for example the part with the ports.
How long does SOMA AI take?
In the video SOMA AI took about 3 minutes to place the parts, 39 minutes for the case and 14 minutes for the keyhole. The video shows its work sped up. You can watch it work, or do something else in the meantime.
Can I change the case later without the AI?
Yes, for the values SOMA AI turned into parameters, such as wall thickness, grille hole width or height. You change them with sliders in the Parameters tab and the model rebuilds. For anything else, describe the change or draw it on the model with Mark up and send it to SOMA AI.
Try it
SOMA is free and open source, and SOMA AI is built in: describe what you need, no CAD or coding skills needed.