GithubHelp home page GithubHelp logo

magic_box's Introduction

Magic Box of Transmutation

Example video: https://www.youtube.com/watch?v=79AKvBjL8Qg

The STEP file is included in case you want to make your own remixes.

Additional Parts

It requires the Arduino Starter Kit: https://www.amazon.com/gp/product/B009UKZV0A/

And a small breadboard: https://www.amazon.com/gp/product/B07KGQ7H8B/

Some jumper cables are helpful: https://www.amazon.com/gp/product/B01EV70C78/

Printing Guide

This has three parts to print: Top, Bottom, and Spinner. The STL files to import into your slicer are provided.

CAD Preview

I'd recommend orienting the parts as shown below on the printer bed so that the quality of the connecting bottom of the spinner is as high as possible:

Print Guide

I used 0.2 mm layer height on a Prusa i3 and had good results.

Assembly Guide

Insert the servo motor into the housing, pulling the wires through the hole. Use hot glue all around the housing to rigidly fix the motor in the housing.

Insert the Arduino into the bottom, and screw it in with M3 screws that are 4-6 mm long, or just let it sit on the bottom.

Insert the kit's phototransistor into the 5 mm circular hole in the top, and hot glue it into place from inside the case.

Place the cross-shaped white stepper motor adapter into the bottom of the spinner (it should have a tight fit). Use the two tiny metal screws in the stepper motor box to screw it into the spinner securely.

The Arduino kit recommends adding a 100 uF capacitor between power and ground due to the motor current draw. It also needs a 10 kOhm resistor between the photoresistor negative lead and ground. This stuff is all covered in the Arduino kit book, so glossing over it here.

The code assumes that the photoresistor is connected to A0, and the motor PWM (white) pin is connected to D13.

I kind of just mashed everything into the Arduino side of the case to avoid having the wires rub against the spinner:

Build Guide

Programming Guide

The source code is under magic_box.ino.

Just drop it into the Arduino IDE and upload it.

You probably need to hand-rotate the spinner a bit until its position is aligned with the hole in the top of the case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.