# Automatic Dice Roller

## Overview

https://www.youtube.com/watch?v=zrratSbl44g

## Project Usage

This project allows people who need accessibility tech to "roll" the dice. Use it to play games like Yahtzee, left right center, math activities, war with dice, rock paper scissor dice and even bowling dice.

![3d_printing_hero-books-1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/524/medium640/3d_printing_hero-books-1.jpg?1520188744)

## Toys & Games&nbsp;

Just press the glowing arcade button to spin the platter! The twisty top snow globe easily comes off and you can put dice or whatever object (LEGO maybe?) you want on the platter to roll and spin. The platter spins pretty fast so you can get a good roll. Or use D20's to make a random number generator!

![3d_printing_hero-table-1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/522/medium640/3d_printing_hero-table-1.jpg?1520186933)

## Assistive Tech – Switch Adapted

This idea originally came from the ATMakers.org facebook group. A thread about adapting a dice roller featured some ideas and started the conversion about different design methods. Member, Brady Fulton, shared a concept he designed in Fusion 360 that I really liked and decided to base our design off his.&nbsp;&nbsp;

![3d_printing_hero-table-3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/523/medium640/3d_printing_hero-table-3.jpg?1520186991)

## Built for Project Lessons

Think of this project as an introduction to electronics and mechanical design. As an educator, this type of project could be useful to teach students how to approach problems and how they can solve them with design and engineering.

## Automatic Dice Rollers

These devices are available from online retailers. They all kinda look alike and have similar designs, a black cylindrical box with a cup and small button to make a green velvet platter spin. Our version is much more colorful, visually appealing and generally more fancy.

## Prerequisite Guides

If your new to electronics and soldering, I&nbsp;suggest walking through the following guides to get the basics. The Adafruit Excellent guide to soldering will walk you through process of learning how to use a soldering iron to make solid electrical connections.

- [Adafruit Guide to Excellent Soldering](../../../../adafruit-guide-excellent-soldering?view=all)
- [Collin's Lab: Soldering](../../../collins-lab-soldering)

![](https://cdn-learn.adafruit.com/assets/assets/000/051/462/medium800/3d_printing_parts.jpg?1520025690)

## Electronic Components

The VERTER 5V USB Buck-Boost, DC Motor and LED arcade button are the main electronic components used in this project.

### Part: DC Motor
quantity: 1
130 size
[DC Motor](https://www.adafruit.com/product/711)

### Part: Mini LED Arcade Button
quantity: 1
24mm Translucent Clear
[Mini LED Arcade Button](https://www.adafruit.com/product/3429)

### Part: VERTER 5V USB Buck-Boost
quantity: 1
500mA from 3V-5V / 1000ma from 5V-12V
[VERTER 5V USB Buck-Boost](https://www.adafruit.com/product/2190)

### Part: 9V battery clip
quantity: 1
with 5.5mm/2.1mm plug
[9V battery clip](https://www.adafruit.com/product/80)

### Part: Radial Ball Bearing
quantity: 1
608ZZ - Set of 4
[Radial Ball Bearing](https://www.adafruit.com/product/1178)

### Part: Alkaline 9V Battery
quantity: 1
Battery power for your portable project
[Alkaline 9V Battery](https://www.adafruit.com/product/1321)

### Part: DIY Snow Globe Kit
quantity: 1
Plastic 108mm Diameter
[DIY Snow Globe Kit](https://www.adafruit.com/product/3722)

### Part: TRS Jack Connector
quantity: 1
Panel Mount 1/8" (3.5mm)
[TRS Jack Connector](https://www.adafruit.com/product/3692)

## Hardware and Supplies

Just a few screws, wires and some handy supplies.&nbsp;

### Part: M2.5 x .45 x 5mm
quantity: 1
Flat Head Phillips Machine Screws
[M2.5 x .45 x 5mm](https://www.albanycountyfasteners.com/2-5-MM-x-45-Phillips-Flat-Head-Machine-Screw-p/1011-1002.htm)

### Part: M2.5 x .45 x 10mm
quantity: 1
Flat Head Phillips Machine Screws
[M2.5 x .45 x 10mm](https://www.albanycountyfasteners.com/2-5-MM-x-45-Phillips-Flat-Head-Machine-Screw-p/1011-1002.htm)

### Part: 26AWG Wire
quantity: 1
Silicone Cover Stranded-Core Wire - 25ft
[26AWG Wire](https://www.adafruit.com/product/2517)

### Part: Solder Wire
quantity: 1
Solder Spool - 1/4 lb SAC305 RoHS lead-free / 0.031" rosin-core - 0.25 lb / 100 g
[Solder Wire](https://www.adafruit.com/product/734)

### Part: Heat Shrink Tubing
quantity: 1
Multi-Colored Heat Shrink Pack - 3/32" + 1/8" + 3/16" Diameters
[Heat Shrink Tubing](https://www.adafruit.com/product/1649)

### Part: Mounting Putty Tack
quantity: 1
Loctite Fun-Tak Mounting Putty 2-Ounce
[Mounting Putty Tack](https://www.amazon.com/dp/B001F57ZPW/)

### Part: Velour Paper Sheets
quantity: 1
Textured surface for the rotating platter
[Velour Paper Sheets](https://www.amazon.com/gp/product/B001D8LGOM)

### Part: 20-sided Dice (optional)
quantity: 1
10 Pack of Random Color D20 Polyhedral Dice
[20-sided Dice (optional)](https://www.amazon.com/gp/product/B00QC5545S)

## Cool Tools!

These help make the project a smooth building experience. You don't need them all of them, but I recommend them.

### Part: Spudger
quantity: 1
Double Sided Prying Tool
[Spudger](https://www.adafruit.com/product/3434)

### Part: Wire Strippers
quantity: 1
Hakko Professsional Quality 20-30 AWG Wire Strippers - CSP-30-1
[Wire Strippers](https://www.adafruit.com/product/527)

### Part: Wire Cutters
quantity: 1
Flush diagonal cutters - CHP170
[Wire Cutters](https://www.adafruit.com/product/152)

### Part: Soldering Iron
quantity: 1
Adjustable 30W 110V soldering iron - XY-258 110V
[Soldering Iron](https://www.adafruit.com/product/180)

### Part: Panavise
quantity: 1
Panavise Jr. - PV-201
[Panavise](https://www.adafruit.com/product/151)

### Part: Helping Third Hands
quantity: 1
Helping Third Hand Magnifier W/Magnifying Glass Tool - MZ101
[Helping Third Hands](https://www.adafruit.com/product/291)

### Part: Ultimaker 2+
quantity: 1
3D Printer
[Ultimaker 2+](https://www.adafruit.com/product/2673)

![](https://cdn-learn.adafruit.com/assets/assets/000/051/467/medium800/3d_printing_hero-table.jpg?1520033291)

![](https://cdn-learn.adafruit.com/assets/assets/000/051/540/medium800/3d_printing_hero-books-4.jpg?1520202422)

# Automatic Dice Roller

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/051/541/medium800/3d_printing_circuit-breadboard.jpg?1520202491)

## Pick Your Circuit

I've come up with two different circuits that do the same thing but differ in cost and complexity. The circuit documented in this guide uses VERTER, a $10 Buck-Boost that does far more than needed in this build but makes wiring everything much easier.&nbsp;The less expensive version uses a diode and extra wiring to create the same functionality.

![](https://cdn-learn.adafruit.com/assets/assets/000/051/385/medium800/3d_printing_circuit-diagram.jpg?1519917294)

## Circuit&nbsp;Diagram – VERTER

In this circuit all of the components are connected to VERTER. The pins are labeled on the PCB and make it easy to wire up.

This provides a visual reference for wiring of the components. They aren't true to scale, just meant to be used as reference.

- 9V Battery negative (black wire) to&nbsp; VIN– on VERTER
- 9V Battery positive (red wire) to VIN+ on VERTER
- Switch to EN and G on VERTER
- LED anode (positive) to 5V on VERTER
- LED cathode (negative) to G on VERTER
- Motor blue wire to VOUT– on VERTER
- Motor red wire to Button
- Button to VOUT+ on VERTER

Primary: 

Warning: 

![](https://cdn-learn.adafruit.com/assets/assets/000/051/508/medium800/3d_printing_circuit-diode.png?1520131878)

## Circuit Diagram – Diode

This circuit shows how to use a diode to drop 9V (which will drop to 8V under load) to about 7V for powering the DC motor and LED. This method is less expensive but might cause more difficulty in wiring. This circuit is nice if you're looking for the most cost effective build and have intermediate experience soldering.&nbsp;

# Automatic Dice Roller

## 3D Printing

https://www.youtube.com/watch?v=zrratSbl44g

## What If I Don't Have A 3D Printer?

Not to worry! You can use a 3D printing service such as&nbsp;[3DHubs](https://www.3dhubs.com/)&nbsp;or&nbsp;[MakeXYZ](https://www.makexyz.com/)&nbsp;to have a local 3D printer operator 3D print and ship you parts to you. This is a great way to get your&nbsp;parts 3D printed by local makers. You could also try checking out your local Library or search for a Maker Space.

![](https://cdn-learn.adafruit.com/assets/assets/000/051/463/medium800/3d_printing_3d-parts.jpg?1520025867)

## Slice Settings

These parts have been tested and 3D printed on an Ultimaker 2+ and 3 using PLA filament. The parts were sliced using CURA 3.x with the following slice settings.

- 220C extruder temp
- 65c bed temp
- 0.2 layer height
- 0.38 line width
- 2 Wall Line Count – 0.4 nozzle
- 20% infill
- 70mm/s print speed

![3d_printing_cura-slice.png](https://cdn-learn.adafruit.com/assets/assets/000/051/526/medium640/3d_printing_cura-slice.png?1520189538)

## Design Source Files

The spool holder carousel assembly was designed in Fusion 360.&nbsp;This can be downloaded in different formats like STEP, SAT and more.

[Download Fusion 360 Source](https://a360.co/3ukBxNV)
## CAD Assembly

The parts are designed to be snap fitted together. Each piece has either a male or female connecting feature that tightly locks together. This makes the assembly much simpler as it doesn't need hardware or adhesives.&nbsp;

![3d_printing_cad-explode.gif](https://cdn-learn.adafruit.com/assets/assets/000/051/935/medium640thumb/3d_printing_cad-explode.jpg?1520872542)

## 3D Printed Parts

All of the parts are 3D printed with FDM type 3D printers using various colored filaments. All of the parts are separated into pieces to make 3D printing easier. Assembly is pretty easy and&nbsp;straight forward. Use the links below to&nbsp;download the STLs files.

![](https://cdn-learn.adafruit.com/assets/assets/000/051/531/medium800/3d_printing_3d-comps.png?1520190247)

## Design Source Files

The enclosure assembly was designed in Fusion 360.&nbsp;This can be downloaded in different formats like STEP, SAT and more. Electronic components like the DC motor, VERTER Buck-Boost, arcade button and more can be extracted from the Fusion 360 Archive.

[Download STLs from Thingiverse](https://www.thingiverse.com/thing:2816817)
[Download STLs from Youmagine](https://www.youmagine.com/designs/motorized-dice-roller)
[Download STLs from Pinshape](https://pinshape.com/items/43575-3d-printed-motorized-dice-roller)
## Rotational Motion

The 3D printed wheel is mounted to the shaft of the DC motor. A radial ball bearing is press fitted over the base. The platter is mounted over the outer ring of the bearing. When the wheel rotates, it turns the platters.

![3d_printing_rotation-spin.gif](https://cdn-learn.adafruit.com/assets/assets/000/051/934/medium640thumb/3d_printing_rotation-spin.jpg?1520871809)

# Automatic Dice Roller

## Switch

## Switch for VERTER

We'll need to connect a slide switch to the VERTER in order to turn the circuit on and off. We'll need to make two pieces of wire, about 3in length. I suggest using 26AWG silicone coated wires which is flexible stranded wire.

![3d_printing_switch-wires-3in.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/386/medium640/3d_printing_switch-wires-3in.jpg?1519947811)

## Prepping Wires

Next, we'll want to prep the wires in order to attach them to leads of the slide switch. Using wire strippers, remove a bit of insulation from the tips of each wire.&nbsp;

![3d_printing_switch-stripping.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/387/medium640/3d_printing_switch-stripping.jpg?1519947846)

## Tinning Wires

Tin the exposed wires by applying a small amount of solder. This will help to prevent the strands of wire from fraying when soldering to pins and leads. A third helping hand tool can assist by holding the wires in place while soldering.

![3d_printing_switch-tinning.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/388/medium640/3d_printing_switch-tinning.jpg?1519947896)

## Wires for Switch

Now we're ready to attach the wires to the leads of the slide switch. We only need two of the three leads so we can remove one, either the far left or right, but not the middle! Use a pair of flush diagonal cutters to snip the third lead off from the switch.

![3d_printing_switch-wires-prep.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/389/medium640/3d_printing_switch-wires-prep.jpg?1519947944)

## Solder Wires to Switch

I secured the body of the switch to third helping hands to make it easier to solder the wires onto the leads. Tinning the leads of the switch with a bit of solder will make it easier to attach the wires.&nbsp;

![3d_printing_switch-soldering.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/390/medium640/3d_printing_switch-soldering.jpg?1519947971)

## Connecting Switch to VERTER

Now we're ready to connect the wires from the slide switch to the VERTER board. We'll be attaching the wires from the switch to the EN (enable) and G (ground) labeled pins.

![3d_printing_switch-to-verter.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/391/medium640/3d_printing_switch-to-verter.jpg?1519948026)

## Tinning Pins on VERTER

I suggest using a Panavise tool to secure the board while soldering. Tinning the various pins with a bit of solder will make it easier to attach the wired connections.

![3d_printing_verter-tinning.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/392/medium640/3d_printing_verter-tinning.jpg?1519948061)

## Wired VERTER

Using the tip of the soldering iron, heat up the solder on the pin and insert one of the wires while the solder is molten.&nbsp; Repeat this process for the second pin. Double check your solder joints and ensure you have a solid connection.

![3d_printing_switch-verter-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/393/medium640/3d_printing_switch-verter-wired.jpg?1519948084)

# Automatic Dice Roller

## Power

## Powering VERTER

Next up we'll work on hooking up the power source to the VERTER board. A 9V battery clip will connect to the voltage in and ground pins on the VERTER board.

![3d_printing_verter-to-bat.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/394/medium640/3d_printing_verter-to-bat.jpg?1519948144)

## Prep Battery Clip

The 9V battery clip includes a DC barrel jack. We'll need to remove it and prep the wires. Use wire cutters to snip off the connector leaving as much wire as you can. Like the slide switch, remove a bit of insulation from the tips of each wire and tin them with a bit of solder.

![3d_printing_bat-clip-prep.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/396/medium640/3d_printing_bat-clip-prep.jpg?1519948198)

## Soldering Wires to VERTER

Now we can solder the wires from the 9V battery clip to the voltage and ground pins on the VERTER board. THe red wire goes into the positive(+) labeled pin while the black wire goes to the negative (–) pin. I used a panavise Jr. to secure the board in place while soldering the wired connections.

![3d_printing_verter-bat-wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/397/medium640/3d_printing_verter-bat-wiring.jpg?1519948235)

## Wired VERTER

Double check your work and ensure you have solid solder joints. The should look like the photo with similar wire lengths. Colored wires helps tell the connections apart.

![3d_printing_verter-bat-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/398/medium640/3d_printing_verter-bat-wired.jpg?1519948281)

## Testing 9V Battery

Now we can test out the switch by installing a 9V battery into&nbsp;the 9V battery clip. Use the slide switch to test the power. The green LED should be lit on VERTER when powered on. If not, double check your work and ensure you have a fully charged 9V battery.

![3d_printing_bat-test.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/399/medium640/3d_printing_bat-test.jpg?1519948317)

# Automatic Dice Roller

## Motor

## Wires for DC Motor

The DC motor includes wires but they are not long enough to reach the circuit when installed. So we'll need to remove these and add some longer ones. The ground wire should be about 4 inches long. The voltage wire should be about 6 inches in length.

![3d_printing_motor-wires.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/400/medium640/3d_printing_motor-wires.jpg?1519948378)

## Remove Wires

You can remove the wires from the motor by heating up the solder joints with the tip of the iron. You can keep note of the polarity if you'd like. The DC motor will rotate in the opposite direction if the polarity is reversed.&nbsp;I used a panavise jr. to secure the DC motor in place while soldering.&nbsp;

![3d_printing_motor-remove-wires.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/401/medium640/3d_printing_motor-remove-wires.jpg?1519948419)

## New Wires for Motor

Now we can attach the new longer wires to the DC motor. Note the orientation of the wires, they're attached horizontal instead of vertical like the original wires. Having the wires in this orientation makes the assembly easier.

![3d_printing_motor-wired-6in-pos.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/402/medium640/3d_printing_motor-wired-6in-pos.jpg?1519948454)

## Connect Ground from Motor

The ground (black) wire can now be soldered to the negative pin on VERTER. This is our first connection for the motor. The positive red wire will be connected to the arcade button in the next page.&nbsp;

![3d_printing_motor-gnd-wired-4in.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/403/medium640/3d_printing_motor-gnd-wired-4in.jpg?1519948504)

# Automatic Dice Roller

## Button

## Wires for Arcade Button

The arcade button will need three new pieces of wire. These should be about 4 inches in length. I picked 2 red colored wires and a single black one. A red and black wire pair will connect the LED from the button to VERTER. The single red wire will connect to the motor and VERTER.

![3d_printing_arcade-wires.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/404/medium640/3d_printing_arcade-wires.jpg?1519948630)

## LED Button Connections

We'll need to familiar ourselves with the electrical leads on bottom of the arcade button. Total of four, 2 sets of 2. The lower two leads are for the embed LED. The upper two leads are for the momentary switch. Use icon in the center as a visual reference for the correct orientation.

- Anode(+) on the RIGHT
- Cathode(–) on the LEFT

![3d_printing_arcade-wires-order.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/405/medium640/3d_printing_arcade-wires-order.jpg?1519948661)

## Tinning Button

I tinned the four leads of the arcade button by adding a bit of solder to each. This just makes it easier to attach the wires to them. I was able to secure the button to the jaws of the&nbsp; panavise jr. so it was stable while soldering.

![3d_printing_arcade-tinning.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/406/medium640/3d_printing_arcade-tinning.jpg?1519948717)

## Wired LED

Attach the red and black wires to the leads that are connected to the embedded LED. The anode (positive) connection is the one on the right while the cathode (negative) is on the left when referencing the previous photo with the wire lengths.

![3d_printing_arcade-led-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/407/medium640/3d_printing_arcade-led-wired.jpg?1519948754)

## Add Motor Wire

Now we can attach the single wire to one of the two remaining electrical leads. It doesn't matter which one since we'll be connect the motor to the remaining lead.

![3d_printing_arcade-motor-wire.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/408/medium640/3d_printing_arcade-motor-wire.jpg?1519948798)

## Button Box

Before we hook up these wires to the motor and board, we'll need to panel mount the body of the arcade button to the button box. Grab em' and get ready to install it!

![3d_printing_arcade-box.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/409/medium640/3d_printing_arcade-box.jpg?1519948841)

## Install Button to Box

Start by inserting the wires from the arcade button through the top of the bottom box. Them press the body through the hole until the flange is flush with the surface of the box. It should have a loose fit, so no need to screw it in.

![3d_printing_arcade-box-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/410/medium640/3d_printing_arcade-box-install.jpg?1519948870)

## Installed Button

Now grab the included plastic hex nut and thread the wires through the nut while fastening it onto the threading of the arcade button. Twist to screw the hex nut until its fully tightened the arcade button to the box.

![3d_printing_arcade-box-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/411/medium640/3d_printing_arcade-box-installed.jpg?1519948919)

## Install Box to Frame

Next up we'll work on attaching the frame to the button box. I used two short M2.5 sized flat Phillips machine screws and hex nuts to join and secure the two parts together. You can optionally use glue or other adhesives if you'd like.

![3d_printing_arcade-box-to-frame.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/412/medium640/3d_printing_arcade-box-to-frame.jpg?1519948959)

## Install Hardware

Line up the holes on the side of the frame and button box. Then, while holding the two parts together, I inserted the screws through the inside of the frame while fastening with a screwdriver. I held a hex nut on the tip of my index finger on the other side of the box while fastening. Repeated the process for the second screw.

![3d_printing_aracde-box-screws.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/413/medium640/3d_printing_aracde-box-screws.jpg?1519949011)

## Secured Button Box

Here's the two pieces secured together with machine screws and hex nuts. I think it works very well and you don't have wait for glue to dry so thats nice.&nbsp;

![3d_printing_arcade-box-frame-washer.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/414/medium640/3d_printing_arcade-box-frame-washer.jpg?1519949041)

## Solder Motor Wire to Button

With the arcade button now panel mounted to the box, we can continue to work on wiring up the components. We'll need to connect the red positive connection from the DC motor to the last available lead on the arcade button – should be next to the single red wire.

![3d_printing_arcade-wiring-motor.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/415/medium640/3d_printing_arcade-wiring-motor.jpg?1519949132)

## Connect Button to VERTER

Now we can connect the single red wire from the arcade button to the positive connection on VERTER.

![3d_printing_arcade-verter.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/416/medium640/3d_printing_arcade-verter.jpg?1519949173)

Connect LED to VERTER

Next up we can connect the voltage and ground wires connected to the LED on the button to the **5V** and **G** labeled pins on VERTER. The 5V pin voltage pin connects to the positive (anode) connection. The G (ground) pin connects to the negative (cathode) connection.

![3d_printing_LED-verter.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/417/medium640/3d_printing_LED-verter.jpg?1519949246)

## Test Circuit

Now we can test the circuit we have so far. Turning on the slide switch should power on VERTER and the LED in the arcade button. If not, double check your work and ensure you have solid solder joints.&nbsp;

![3d_printing_test-circuit.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/418/medium640/3d_printing_test-circuit.jpg?1519949282)

# Automatic Dice Roller

## TRS Jack

## Wires for TRS Jack

We'll need two wires to connect the TRS Jack. These should be about 4 inches in length. Just like our previous wires, using wire strippers, remove a bit of insulation from the tips of each wire and add a bit of solder to tin them.

![3d_printing_TRS-wires.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/425/medium640/3d_printing_TRS-wires.jpg?1520008924)

## Wiring TRS Jack

Two of the three leads on the jack will need to be bridged together in order to properly connect to AT switches. Insert a wire through the hole of one lead and thread it through another.

![3d_printing_TRS-jump.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/426/medium640/3d_printing_TRS-jump.jpg?1520009235)

## Solder Ring to Tip

We'll use a bit of solder to connect the wire to both leads on the jack. A bit of extra wire may be helpful. Try keeping the jack stable while soldering. Holding the wire with third helping hands might also be helpful.&nbsp;&nbsp;

![3d_printing_TRS-solder.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/427/medium640/3d_printing_TRS-solder.jpg?1520009327)

## Solder Wire to Sleeve

Now we can attach the second wire to the remaining lead on jack using a bit of solder.&nbsp;

![3d_printing_TRS-solder-2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/428/medium640/3d_printing_TRS-solder-2.jpg?1520009388)

## Check Solder Joints

Thoroughly inspect the solder joints and see if they're solid. Double check the leads to ensure the correct ones are bridging.&nbsp;

![3d_printing_TRS-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/429/medium640/3d_printing_TRS-wired.jpg?1520009448)

## TRS Jack to VERTER

Connect one of the wires from the jack to the positive pin on VERTER. I'm using the secondary pin on the voltage output. This pin arrangement is typically for USB.

![3d_printing_TRS-VERTER.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/430/medium640/3d_printing_TRS-VERTER.jpg?1520009535)

## Solder TRS Jack to VERTER

A bit of solder here to seal the deal.

![3d_printing_TRS-VERTER-soldered.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/431/medium640/3d_printing_TRS-VERTER-soldered.jpg?1520009590)

## Connect TRS Jack to Motor

Now we can connect the second wire on to the jack to the motor. This wire will need to share a connection with the lead that has&nbsp;a wire connecting to the arcade button. Soldering to the existing lead might cause the first wire to come loose so you might need to hold on to both of them while soldering.

![3d_printing_TRS-motor-wired.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/432/medium640/3d_printing_TRS-motor-wired.jpg?1520009714)

## Test TRS Jack Circuit

With everything wired up now we can test out the circuit. The LED should light up and motor spin when pressing the button. To test the jack, you can connect a regular pair of headphones or 1/8 audio cable and see if that makes the motor spin. If everything is good, we start putting it in the enclosure!

![3d_printing_TRS-circuit-test.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/459/medium640/3d_printing_TRS-circuit-test.jpg?1520015089)

# Automatic Dice Roller

## Assembly

## Install TRS Jack

Panel mount the jack to the frame. You'll want to remove the hex nut from the jack first. Then, insert the tip of the jack through the hole on the inside of the frame. If it's too tight to fit all the way through, use a filing tool to sand. Use the hex nut to secure the jack to the frame.

![3d_printing_TRS-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/433/medium640/3d_printing_TRS-install.jpg?1520009782)

## Secure TRS Jack to Frame

Use a pair of pliers to grasp onto the hex nut and fasten tightly. The nut should have a good hold on the frame and jack. Avoid twisting up the wires on the other end of the jack.

![3d_printing_TRS-hexnut.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/434/medium640/3d_printing_TRS-hexnut.jpg?1520009836)

## Install VERTER to Base

Place the VERTER PCB over the standoffs on the base. Line up the mounting holes near the battery connections with the holes in the standoffs. Insert two M2.5 x 5mm flat Phillips screws into the mounting holes and fasten until fully tight.

![3d_printing_VERTER-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/435/medium640/3d_printing_VERTER-install.jpg?1520009882)

## Installing Switch&nbsp;

Insert the body of the slide switch into the switch holder at an angle and firmly press down. The actuator should protrude through the opening. The switch should have a snug fit and holds in place.

![3d_printing_switch-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/436/medium640/3d_printing_switch-installed.jpg?1520009925)

## Installing DC Motor

Press the body of the motor into the motor mount on the base. The leads should be oriented with the cut away so they don't intersect with the mount.

![3d_printing_motor-installing.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/437/medium640/3d_printing_motor-installing.jpg?1520009982)

## Installed DC Motor

The leads should be facing the opening so the wires should be fine. The motor should have a decent hold once in the mount but it should be easy to remove it as well.

![3d_printing_moto-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/438/medium640/3d_printing_moto-installed.jpg?1520010033)

## Install Bottom Cover to Frame

Now we can joint the base (bottom cover) to the frame. Line up the nubs on the frame with the indentations on the lip of the base. Firmly press them together until they click into place.&nbsp;

![3d_printing_frame-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/439/medium640/3d_printing_frame-install.jpg?1520010080)

## Install Battery to Clip

We can connect the 9V battery to the battery clip, if we haven't already. Be sure to fully seat the electrodes of the battery to the clip, they should click when fully connected.

![3d_printing_bat-connect.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/440/medium640/3d_printing_bat-connect.jpg?1520010140)

## Mounting Battery

I added a piece of mounting tack to the battery so I can stick it to the base. This prevents the battery from moving around inside the enclosure. You can optionally use double-stick tape or similar.&nbsp;

![3d_printing_bat-tack.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/441/medium640/3d_printing_bat-tack.jpg?1520010191)

## Secured Battery

There's just enough room on one side of the base for the 9V battery to fit. Just be sure to position the wires so they are not being kinked from the battery.

![3d_printing_bat-secured.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/442/medium640/3d_printing_bat-secured.jpg?1520010248)

## Install Bearing

Now we can install the radial ball bearing to the base. The inner ring of the bearing should press fit into the nub on the top of the platform. It should have a snug fit so you may need to firmly press down on it to fully seat it.

![3d_printing_bearing-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/443/medium640/3d_printing_bearing-install.jpg?1520010293)

## Install Wheel to DC Motor

The wheel should be press fitted onto the shaft of the DC motor. There's a small hole in the center that should allow the shaft to be inserted through. The top surface of the wheel should be lined up with the top of the shaft.

![3d_printing_wheel-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/444/medium640/3d_printing_wheel-install.jpg?1520010362)

## Installed Wheel

The diameter of the wheel may shrink during the cooling process after 3d printing, so I purposely designed the wheel slightly larger. Here I'm using a sticker label to note the&nbsp; diameter of the wheel in CAD, not in physical space.

![3d_printing_wheel-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/445/medium640/3d_printing_wheel-installed.jpg?1520010402)

## Cover and Cap

The cap snaps on top of the cover. The inner nubs on the cover will click into the indentations on the edge of the cap.&nbsp;

![3d_printing_top-covers.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/446/medium640/3d_printing_top-covers.jpg?1520010481)

## Installing Cap to Cover

You'll need to firmly press the two parts together to get them to snap fit together. Just be sure the features are lined up. I found fitting them at an angle first works better than trying to connect both nubs are the same time.

![3d_printing_top-cover-installing.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/447/medium640/3d_printing_top-cover-installing.jpg?1520010542)

## Installing Cap to Frame

Now we can fit the cover/cap onto the top of the frame. Line up the indentations on the side of the lip on the cover with the nubs on the frame. Firmly press them together to click them together. Lots of snap fitting parts here!

![3d_printing_cover-frame-installing.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/448/medium640/3d_printing_cover-frame-installing.jpg?1520010603)

## Installed Cap

The cover/cap should be flush with the frame. The front facing side of the frame features a cutaway – This allows you to pop off the cover when you need to change the battery. You can use your finger nail or a prying tool to remove the cover.

![3d_printing_cover-frame-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/449/medium640/3d_printing_cover-frame-installed.jpg?1520010635)

## Bottom Cover for Button Box

Now we can fit the button box cover over the button box. It's got a short nub on the box so you can easily press fit the bottom cover.

![3d_printing_bot-cover-install.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/450/medium640/3d_printing_bot-cover-install.jpg?1520010696)

## Installed Bottom Cover

Here's the bottom cover installed, it's flush with the button box with a very slight gap between the two parts. The tolerances should be pretty snug so theres very little wiggle room.&nbsp;

![3d_printing_bot-cover-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/451/medium640/3d_printing_bot-cover-installed.jpg?1520010741)

## Using Velvet on Platter

When the platter spins, the surface needs to be able to toss dice around. The surface of the platter as is straight off the printer will be fairly smooth so it won't be able to do much to the dice. I cutout a piece of velvet/velour paper and stuck it to the top surface of the platter. This works well and gives the surface a texture. I used scissors to cut out a circular piece using the platter as a template. Secured with double-sided scotch tape.

![3d_printing_platter-velvet.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/452/medium640/3d_printing_platter-velvet.jpg?1520010766)

## Installing Platter

Now we can fit the platter over the outer ring of the radial ball bearing. It should have a fairly snug fit but should be easy to remove and pop off as well. Firmly press down on the platter to fully seat it onto the bearing.

![3d_printing_platter-installing.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/453/medium640/3d_printing_platter-installing.jpg?1520010811)

## Installed Platter

Spin the platter with your finger to test it. The platter should rotate evenly, without too much wobble. If there's a bit of wobble, inspect the inside cavity – You may need to clean out any spring or plastic bits that may have formed during the 3D printing process. Use sand paper or filing tools as necessary.

![3d_printing_platter-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/454/medium640/3d_printing_platter-installed.jpg?1520010849)

## Rotating Platter

Now it's time to test it out! Power on the circuit with the slide switch and press the arcade button to get the platter going. It should spin fairly fast. If you find the platter will not spin, the wheel must be stuck. Give it a turn and feel how "loose" the platter can rotate. If its hard, you may need to print the wheel slightly smaller to minimize the friction between the platter and the wheel.

![3d_printing_platter-test.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/455/medium640/3d_printing_platter-test.jpg?1520010888)

## Installing Snow Globe to Cap

If everything is working properly, you can secure the snow globe onto the cap by twisting it on. The thread on the cap should mate nicely with the snow globe.&nbsp;

![3d_printing_globe-installing.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/456/medium640/3d_printing_globe-installing.jpg?1520010913)

## Secure Globe to Cap

The thread on the snow globe requires 1.5 revolutions to be fully fastened.&nbsp;

![3d_printing_globe-installed.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/457/medium640/3d_printing_globe-installed.jpg?1520010947)

## Testing with Dice

The DC motor will struggle to rotate the platter with too much weight. I've tested with 4-5 dice (d20 type) which is ~22 grams in weight. I tried fitting 7 D20 dice (38g) and it struggled to rotate. When there's too much weight the motor simply cannot handle the load. But for most use cases, it should be fine!

![3d_printing_globe-testing.jpg](https://cdn-learn.adafruit.com/assets/assets/000/051/458/medium640/3d_printing_globe-testing.jpg?1520010998)


## Featured Products

### DC Toy / Hobby Motor - 130 Size

[DC Toy / Hobby Motor - 130 Size](https://www.adafruit.com/product/711)
These are standard '130 size' DC hobby motors. They come with a wider operating range than most toy motors: from 4.5 to 9VDC instead of 1.5-4.5V. This range makes them perfect for controlling with an Adafruit Motor Shield, or with an Arduino where you are more likely to have 5 or 9V...

Out of Stock
[Buy Now](https://www.adafruit.com/product/711)
[Related Guides to the Product](https://learn.adafruit.com/products/711/guides)
### Mini LED Arcade Button - 24mm Translucent Clear

[Mini LED Arcade Button - 24mm Translucent Clear](https://www.adafruit.com/product/3429)
A button is a button, and a switch is a switch, but these translucent arcade buttons are in a class of their own. Particularly because they have **LEDs built right in!** That's right, you'll be button-mashing amidst a wash of beautiful light with these lil'...

In Stock
[Buy Now](https://www.adafruit.com/product/3429)
[Related Guides to the Product](https://learn.adafruit.com/products/3429/guides)
### VERTER 5V USB Buck-Boost - 500mA from 3V-5V / 1000ma from 5V-12V

[VERTER 5V USB Buck-Boost - 500mA from 3V-5V / 1000ma from 5V-12V](https://www.adafruit.com/product/2190)
Convert just about any battery pack to 5V with VERTER - our fresh new Buck-Boost power converter. VERTER can take battery voltages from 3-12VDC and output a nice 5V DC, which makes it a perfect universal power supply for your portable project! Where Verter really shines is when you have a...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2190)
[Related Guides to the Product](https://learn.adafruit.com/products/2190/guides)
### 9V battery clip with  5.5mm/2.1mm plug

[9V battery clip with  5.5mm/2.1mm plug](https://www.adafruit.com/product/80)
I found these high-quality battery clips. They're molded plastic so they won't tear like cheap clips, and they cover the battery terminals to prevent shorts.

Comes with a 5.5mm/2.1mm center-positive barrel connector, assembled!

Battery not included.

<img...></img...>

In Stock
[Buy Now](https://www.adafruit.com/product/80)
[Related Guides to the Product](https://learn.adafruit.com/products/80/guides)
### Alkaline 9V Battery

[Alkaline 9V Battery](https://www.adafruit.com/product/1321)
Battery power for your portable project! These batteries are high quality at a good price and work fantastic with any of the kits or projects in the shop that use 9V.

These batteries are Alkaline (MnO2) chemistry, with a voltage range of 9.6V (fresh) to 4.8V (dead). The mAh capacity...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1321)
[Related Guides to the Product](https://learn.adafruit.com/products/1321/guides)
### Radial Ball Bearing 608ZZ - Set of 4

[Radial Ball Bearing 608ZZ - Set of 4](https://www.adafruit.com/product/1178)
Rollin' rollin' rollin', you can now roll around smooth as silk with these radial bearings. Often referred to as "skate bearings" They're good for supporting a rotating rod or as a wheel hub. However, these are higher quality, meant for continuous use so they'll...

In Stock
[Buy Now](https://www.adafruit.com/product/1178)
[Related Guides to the Product](https://learn.adafruit.com/products/1178/guides)
### DIY Snow Globe Kit

[DIY Snow Globe Kit](https://www.adafruit.com/product/3722)
Not merely a snow globe, but a _show_ globe! This custom container is durable, clear and round, with a large flat screw-on top and a press-fit rubber stopper. The stopper makes a nice seal, and is also _hollow_ which means you can put (you guessed it...) electronics inside! This...

In Stock
[Buy Now](https://www.adafruit.com/product/3722)
[Related Guides to the Product](https://learn.adafruit.com/products/3722/guides)
### Panel Mount 1/8" / 3.5mm TRS Audio Jack Connector

[Panel Mount 1/8" / 3.5mm TRS Audio Jack Connector](https://www.adafruit.com/product/3692)
What _is_ this TRS bit? **T** urtle **R** ock **S** tudios? **T** ransmission **R** aman **S** pectroscopy? Not quite, more...

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

## Related Guides

- [Energy Budgets](https://learn.adafruit.com/energy-budgets.md)
- [5" Display Kippah Portable Raspberry Pi](https://learn.adafruit.com/portable-kippah-pi.md)
- [Coffee Rater](https://learn.adafruit.com/coffee-rater.md)
- [Espresso Water Tank Meter](https://learn.adafruit.com/espresso-water-tank-meter.md)
- [Make a Zelda Master Sword with the RP2040 Prop-Maker Feather](https://learn.adafruit.com/master-sword-rp2040.md)
- [Car Qi Charger](https://learn.adafruit.com/tesla-qi-charger.md)
- [JOY Controller for Adafruit Feather](https://learn.adafruit.com/joy-controller-feather.md)
- [Gravity Falls Memory Gun](https://learn.adafruit.com/gravity-falls-memory-gun.md)
- [Halo Energy Sword RP2040](https://learn.adafruit.com/halo-energy-sword-rp2040.md)
- [MIDI Laser Harp with Time of Flight Distance Sensors](https://learn.adafruit.com/midi-laser-harp-time-of-flight-sensors.md)
- [Webcam Cover-Up Lego brick with Adabot Mini Fig](https://learn.adafruit.com/lego-webcam-cover.md)
- [LED Matrix Scoreboard](https://learn.adafruit.com/led-matrix-scoreboard.md)
- [Overhead Camera Rig](https://learn.adafruit.com/overhead-camera-rig.md)
- [Ableton Live MacroPad Launcher](https://learn.adafruit.com/ableton-live-macropad-launcher.md)
- [3D Printed Starro Face Mask](https://learn.adafruit.com/3d-printed-starro-face-mask.md)
