# Trellis 3D Printed Enclosure

## Overview

http://www.youtube.com/watch?v=MW0JLxRgJ1Q

![](https://cdn-learn.adafruit.com/assets/assets/000/013/048/medium800thumb/3d_printing_trellis.jpg?1448311455)

Make your next project with Trellis, Adafruit open-source button platform. Customize and 3D Print our enclosure to fit your project. Our 4-piece design fits the Trellis Driver PCB, Elastometer button keypad, and the Arduino. Great for mini-handheld music, game or keyboard controllers.

## Parts

- [Trellis Driver PCB](http://www.adafruit.com/products/1616)  
- [Elastometer Keypad](http://www.adafruit.com/products/1611 "Link: http://www.adafruit.com/products/1611")
- [3mm Diffused LEDs](http://www.adafruit.com/category/37_90)
- [Arduino](http://www.adafruit.com/products/50)

## Tools & Supplies

- [3D Printer](http://www.adafruit.com/products/1292)  
- [Calipers](http://www.adafruit.com/products/294)  
- [Soldering Iron](http://www.adafruit.com/category/8_84)  
- [Helping Third Hand](http://www.adafruit.com/products/291)  
- [Panavise Jr.](http://www.adafruit.com/products/151)  
- [Super Scissors](http://www.adafruit.com/products/1599)  
- [Flat Pliers](http://www.adafruit.com/products/1368)  
- [Male Jumper wires](http://www.adafruit.com/products/758)

![](https://cdn-learn.adafruit.com/assets/assets/000/013/045/medium800/3d_printing_apart.jpg?1388122744)

# Trellis 3D Printed Enclosure

## Modeling

## 123D Design
Our enclosure was designed in Autodesk's 123D Design. It's a great way to get into 3D modeling parts for your 3d printed electronic projects. You can download the app for free on Autodesk's website. You can download our 123D file to modify the design to fit a different micro-controller.   

## Customize
The 123D file has all of the individual objects that are used to boolean the 4-parts. You can modify these pieces to fit different I-O ports and micro-controllers. The trellis supports up to 8x8 tiles so you can modify the enclosure to fit a 64 button keypad!  
[Download 123D File](http://www.thingiverse.com/thing:211447/#files)
![](https://cdn-learn.adafruit.com/assets/assets/000/013/049/medium800/3d_printing_case-123d.jpg?1388123825)

## Measuring Parts
Measuring your shapes will help you determine how well your part will fit your components. To measure the length and height of your object, select a desired outline while the object is selected. With the line selected, choose the Measure option in the top menu to pull out the measurement panel. Scroll down to see the length of your line.  
![](https://cdn-learn.adafruit.com/assets/assets/000/013/055/medium800/3d_printing_123d-measure.png?1388124609)

## Modifying Objects
To modify an object, click on the shape to select it. It should have a highlighted blue stroke around the object. While selected, click on a desired face to bring up the gear settings. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/054/medium800/3d_printing_123d-press-pull.png?1388124580)

With the face selected, select the press/pull option under the gear icon. Type in a value in millimeters or drag the arrow handle to tweak the size of the shape.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/059/medium800/3d_printing_123d-values.png?1388124748)

## Boolean Parts
Once you have made your desired modifications and measured your objects, you will need to subtract the shapes to the objects to make the parts. To do this, you will need to select the combine option in the top menu. Click on the icon to the right of the floating combine options menu and change the mode from join to subtract.![](https://cdn-learn.adafruit.com/assets/assets/000/013/056/medium800/3d_printing_123d-subtract.png?1388124649)

Now select the object you want to become the part first and then select the object you wish to be used to cut (subtracted) your part. You can hold down the shift key to select multiple objects. Remember, the first object that was select will be the main part, everything select after that will be subtracted from the first shape.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/058/medium800/3d_printing_123d-boolean.png?1388124687)

To accept and apply the subtract boolean operation, click on an empty area on the grid.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/060/medium800/3d_printing_123d-part.png?1388124822)

## Save & Export
You can save and export your parts as an STL file. You can find the export STL option under the 123D Design file menu and selecting export STL. We recommend printing each piece individually so that you minimize the changes of a failed print (If you print out a set and something goes wrong, all your pieces will go bad, and thats no bueno!). To save out each part out of 123D, you can temporally delete the parts and leave one to export the STL individually outside of the set. Just remember to undo (cmd/cntrl+Z that baby!) after the export. Repeat for each part. Now onto slicing!  
# Trellis 3D Printed Enclosure

## 3D Printing

![](https://cdn-learn.adafruit.com/assets/assets/000/013/050/medium800/3d_printing_printed-parts.jpg?1388123914)

# Printing Techniques
**Build Plate Preparations**  
There's a great [video tutorial](http://www.youtube.com/watch?v=VDnBXpFa7DY) by Dr. Henry Thomas who demonstrations a great technique for preparing acrylic build plates for awesome prints. Wipe down the plate with a paper towel lightly dabbed in acetone. Use another paper towel and apply a tiny dab of olive oil. Wipe down the plate so a small film of oil is applied, this will allow the parts to come off the plate easier.  
  
**Live Level**  
We recommend going raft-less for each piece because it will have the best quality result. Each piece will require a well leveled platform. We tend to "live level" our prints, meaning we adjust the build plates thumb screws while the print is laying down filament. This way we can make adjustments directly and improve the leveling by seeing how the extruders are laying down the first layer onto the build plate. We recommend watching the first layer so that you get a more successful print. If you see the layers aren't sticking or getting knocked off, you can always cancel print, peel it off and try again. ## Test for Tolerances
You will need to test your modifications to see if your components fit your enclosure. The bottom cover mount holes were laid out to fit most arduino PCBs, but you can easily change the design to support your choice of micro-controller. The frame was designed to fit a 2.1 power jack and a USB-A type port. ## Filament Material
You can use PLA or ABS material, our design should work with most filament types. Choose your favorite color of filament to make your design unique to your project. [Download STLs](http://www.thingiverse.com/thing:211447/#files)
# Trellis 3D Printed Enclosure

## Assembly

## LEDs
Get creative and choose a colored pattern for your LEDs. The long terminal pin of the LED goes to the +positive pin on the Trellis PCB. Ensure your LEDs are correctly positioned to the PCB before soldering. It's also nice to check to see if your LED work by keeping a rechargeable [coin cell battery](http://www.adafruit.com/products/1572) for testing.  
![](https://cdn-learn.adafruit.com/assets/assets/000/013/053/medium800/3d_printing_positive.jpg?1388124479)

![](https://cdn-learn.adafruit.com/assets/assets/000/013/067/medium800/3d_printing_panavise-pcb.jpg?1388126493)

## Soldering
 For a clean soldering process, try to soldering the LEDs one by one, and then cutting the access terminal pins from the LEDS. For a more comfortable process, use a [Panavise Jr.](http://www.adafruit.com/products/151) to keep the Trellis PCB in place while your solder. A [Third Helping hand](http://www.adafruit.com/products/291) can assist you in holding the terminal pins of the LEDs in place while your solder. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/068/medium800/3d_printing_helper-leds.jpg?1388126556)

![](https://cdn-learn.adafruit.com/assets/assets/000/013/071/medium800/3d_printing_solder-leds.jpg?1388127071)

The Trellis uses 5 connections that can connect to the arduino or similar micro-controller. We recommend using jumper wires for connecting to the arduino.  
  
To ensure the jumper wires don't get in the way inside of the enclosure, we need to:

1. Remove the protective guard from both sides of the jumper wires (x-acto knife helps)
2. Trim one side of the jumper wire pin, leaving a small piece for the Trellis connections

Solder the short pin end of the jumper wire to each of the connection fingers on the Trellis PCB. You can color code these wires for a organization sake.   
![](https://cdn-learn.adafruit.com/assets/assets/000/013/051/medium800/3d_printing_jumper-cover.jpg?1388124223)

![](https://cdn-learn.adafruit.com/assets/assets/000/013/069/medium800/3d_printing_cut-jumpers.jpg?1388126696)

You will need to carefully bend the long pin ends of the jumper wires so that they can fit into the arduino headers without getting in the way of the Trellis PCB.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/070/medium800/3d_printing_jumpers-bend.jpg?1388127032)

Use small pieces of electrical tape to protect the exposed pins on the long jumper pins.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/052/medium800/3d_printing_cover.jpg?1388124375)

Below is a list of which pins will go from the Trellis PCB to the Arduino.

- **5V** goes to the 5V power pin on the Arduino  
- **GND** goes to and GND ground pin
- **SCL** goes to the I2C clock pin, on an Uno this is also known as A5
- **SDA** goes to the I2C data pin, on an Uno this is also known as A4
- We connect the **INT** interrupt pin to A2 - this pin isn't used in our demo code so you can leave it unconnected if you wish.
![](https://cdn-learn.adafruit.com/assets/assets/000/013/072/medium800/3d_printing_solder-trellis.jpg?1388127136)

![](https://cdn-learn.adafruit.com/assets/assets/000/013/057/medium800/3d_printing_connections.jpg?1388124648)

## 3D Printed Parts
The micro controller will be mounted to the bottom cover. Place the controller on top of the bottom cover and align up the mount holes to see if it fits your micro-controller. Use screws to secure the micro-controller in place. ![](https://cdn-learn.adafruit.com/assets/assets/000/013/065/medium800/3d_printing_3dp-mount.jpg?1388126084)

Place the frame on top of the bottom cover and gently fit the IO ports of the micro-controller into the holes of the frame. The frame has a lip that should be closer towards the top. The frame tightly snaps to the bottom cover.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/061/medium800/3d_printing_3dp-frame.jpg?1388126002)

Lay the Trellis PCB on top of the tray. It should tightly snap onto the tray, exposing the connection fingers. You may need to press down the Trellis PCB to snap into the tray

![](https://cdn-learn.adafruit.com/assets/assets/000/013/062/medium800/3d_printing_3dp-tray.jpg?1388126020)

Carefully place the tray on top of the frame. The Trellis PCB should be above the micro-controller, with just enough room for the jumper wires.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/063/medium800/3d_printing_3dp-traybox.jpg?1388126039)

Add the Elastometers keypad to the top of the Trellis PCB. Align up the keypad so the pins fit into the holes of the Trellis PCB.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/066/medium800/3d_printing_3dp-elasto.jpg?1388126296)

Fit the top cover into place and snap it into to close the enclosure. You may need to use flat head on the frame to securely snap the cover onto the frame.

![](https://cdn-learn.adafruit.com/assets/assets/000/013/064/medium800/3d_printing_3dp-topcover.jpg?1388126066)

For a tutorial on installing the Trellis Arduino Library, follow the [introduction to Trellis guide](http://learn.adafruit.com/adafruit-trellis-diy-open-source-led-keypad/connecting "Link: http://learn.adafruit.com/adafruit-trellis-diy-open-source-led-keypad/connecting") for installation instructions and a demo sketch.

[Introducing Trellis](http://learn.adafruit.com/adafruit-trellis-diy-open-source-led-keypad)

## Featured Products

### Adafruit Trellis Monochrome Driver PCB for 4x4 Keypad & 3mm LEDs

[Adafruit Trellis Monochrome Driver PCB for 4x4 Keypad & 3mm LEDs](https://www.adafruit.com/product/1616)
 **This item is just for the Trellis driver PCB assembly: LEDs and buttons not included.** Trellis is an open source backlight keypad driver system. It is easy to use, works with any 3mm LEDs and eight tiles can be tiled together on a shared I2C bus.  
  
This PCB is...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1616)
[Related Guides to the Product](https://learn.adafruit.com/products/1616/guides)
### Silicone Elastomer 4x4 Button Keypad - for 3mm LEDs

[Silicone Elastomer 4x4 Button Keypad - for 3mm LEDs](https://www.adafruit.com/product/1611)
So squishy! These silicone elastomer keypads are just waiting for your fingers to press them. Go ahead, squish all you like! (They're durable and easy to clean, just wipe with mild soap and water) These are just like the light up rubber buttons you find on stuff like appliances and tools,...

In Stock
[Buy Now](https://www.adafruit.com/product/1611)
[Related Guides to the Product](https://learn.adafruit.com/products/1611/guides)
### Adafruit METRO 328 Fully Assembled - Arduino IDE compatible

[Adafruit METRO 328 Fully Assembled - Arduino IDE compatible](https://www.adafruit.com/product/50)
We sure love the ATmega328 here at Adafruit, and we use them&nbsp;_a lot_&nbsp;for our own projects. The processor has plenty of GPIO, Analog inputs, hardware UART SPI and I2C, timers and PWM galore - just enough for most simple projects. When we need to go small, we use a <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/50)
[Related Guides to the Product](https://learn.adafruit.com/products/50/guides)
### Diffused White 3mm LED (25 pack)

[Diffused White 3mm LED (25 pack)](https://www.adafruit.com/product/778)
Need some indicators? We are big fans of these diffused white LEDs, as featured in the LoL shield. They are really bright so they can be seen in daytime, and from any angle. They go easily into a breadboard and will add that extra zing to your project.

- Pack of 25 diffused white...

In Stock
[Buy Now](https://www.adafruit.com/product/778)
[Related Guides to the Product](https://learn.adafruit.com/products/778/guides)
### MakerBot Adafruit Edition

[MakerBot Adafruit Edition](https://www.adafruit.com/product/1292)
[Please see our post](https://www.adafruit.com/blog/2013/11/27/breaking-news-stratasys-sues-afinia-ramifications-for-the-desktop-3d-printing-industry/) - Is Adafruit going to continue to sell Stratasys/MakerBot products and use their services? **We do not know yet.**...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1292)
[Related Guides to the Product](https://learn.adafruit.com/products/1292/guides)
### Mitutoyo - Absolute Digimatic Digital Calipers, 6 in.

[Mitutoyo - Absolute Digimatic Digital Calipers, 6 in.](https://www.adafruit.com/product/294)
The most useful tool we've ever laid our hands on. &nbsp;We thought we'd use them just for electronics but then we got our hands on these calipers and had so much fun we started measuring&nbsp;_everything._

They're indestructible - which is good because we don't...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/294)
[Related Guides to the Product](https://learn.adafruit.com/products/294/guides)
### Adjustable 30W 110V soldering iron

[Adjustable 30W 110V soldering iron](https://www.adafruit.com/product/180)
This 'pen-style' soldering iron is just about the best entry-level tool I've seen. It's not as powerful as a Weller WES51 but it _is_ self-contained and easy to use. With proper care, it will last for many years. Turn it off when not in use, clean the plated tip with a...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/180)
[Related Guides to the Product](https://learn.adafruit.com/products/180/guides)
### Hakko Precision Flat Pliers

[Hakko Precision Flat Pliers](https://www.adafruit.com/product/1368)
These Italian-made Hakko pliers are excellent for any precision work. The nose is flattened and fairly short to provide excellent control. The inside of the jaws is also flattened so they won't leave ridge-marks. And the grips are ultra comfy too, you can use these all days with no...

In Stock
[Buy Now](https://www.adafruit.com/product/1368)
[Related Guides to the Product](https://learn.adafruit.com/products/1368/guides)

## Related Guides

- [Sending an SMS with Temboo](https://learn.adafruit.com/sending-an-sms-with-temboo.md)
- [Adafruit 16-channel PWM/Servo Shield](https://learn.adafruit.com/adafruit-16-channel-pwm-slash-servo-shield.md)
- [Adafruit VS1053 MP3/AAC/Ogg/MIDI/WAV Codec Breakout Tutorial](https://learn.adafruit.com/adafruit-vs1053-mp3-aac-ogg-midi-wav-play-and-record-codec-tutorial.md)
- [Ladyada's Learn Arduino - Lesson #0](https://learn.adafruit.com/ladyadas-learn-arduino-lesson-number-0.md)
- [Adafruit Data Logger Shield](https://learn.adafruit.com/adafruit-data-logger-shield.md)
- [Adafruit AirLift Shield - ESP32 WiFi Co-Processor](https://learn.adafruit.com/adafruit-airlift-shield-esp32-wifi-co-processor.md)
- [Star Trek Soundboard with NeoTrellis](https://learn.adafruit.com/star-trek-sound-board-with-neotrellism4.md)
- [2.8" TFT Touchscreen](https://learn.adafruit.com/2-8-tft-touchscreen.md)
- [Adafruit INA219 Current Sensor Breakout](https://learn.adafruit.com/adafruit-ina219-current-sensor-breakout.md)
- [Deciphering Strange Arduino Code](https://learn.adafruit.com/deciphering-strange-arduino-code.md)
- [Ladyada's Bento Box](https://learn.adafruit.com/lady-adas-bento-box.md)
- [Arduino "Hunt The Wumpus"](https://learn.adafruit.com/arduino-hunt-the-wumpus.md)
- [Mini UNTZtrument: 3D Printed MIDI Controller](https://learn.adafruit.com/mini-untztrument-3d-printed-midi-controller.md)
- [Portable Trellis Sound Board](https://learn.adafruit.com/portable-trellis-sound-board.md)
- [Babel Fish](https://learn.adafruit.com/babel-fish.md)
