I designed and 3D printed a Brushless Direct Current (BLDC) motor, and used an Arduino to control the motor. All parts of the motor, excluding magnets, solenoid wrapping wire, and hall effect sensors, were printed with a Makerbot Replicator 2. The video shows the completed working motor.
This instructable is available as a pdf here along with cad files and the program for motor control.
Motor control program for arduino:
Feel free to use the files, comment, change the design, or do whatever you please with this!