Electronic TARDIS (Doctor WHO) with light and sound

Presentation of the project:

I decided to make a project for fun with my children. They are fan of Doctor WHO.

I decided to print a TARDIS for them. I Choosed this one, with empty space inside to fill-in with electronic:
http://www.thingiverse.com/thing:37742

The author is countspatula

Pictures from Thingverse for the original project: (click to enlarge)

source01 source02 source03 source04

Here is my own electronic mix of this project:

I wanted light effects and sound effects (playing Doctor Who Tardis sound and music theme).

3D printing of the Tardis with STL file of the author: (click on pictures to enlarge)

This is my printing with SmartrapCore 3D printer. Infill 35%, 0.2mm layers, no support.

tardis_nu tardis_nu2 tardis_nu3

Electronic schematic: (click on pictures to enlarge)

circuit_tardis pro_mini

Donwload Arduino program and Sound WAV files used for the SD card, and the STL 3D model from countspatula:
http://fzip.li/6MCH

I uses the TMRpcm library for playing WAV files. But it seemed to be coded for 16MHz crystal Arduino, and playing two times too slow the WAV files. So I used Audacity to re-encode WAV files to play with a speed acceleration of 100% (so that I double the speed). Also, use a 32 000Hz rate to encode, else you will hear a noisy acute sound surimposed on your WAV file while paying. Use PCM 8 bit unsigned format to re-encode.

 

You must download and instal TMRpcm library to use my program:
https://github.com/TMRh20/TMRpcm/wiki

See the Arduino program at the end of this web page.

Electronic realization: (click on pictures to enlarge)

01 02 03

04

Electronic filled-in inside the Tardis: (click on pictures to enlarge)

This is the moment where we can say that Tardis is bigger from inside view than oyutside view: I could fill in with many electronic modules! ūüėČ

tardis_avec_electronique tardis_avec_electronique2 tardis_avec_electronique3

 

Now the test of use (in the dark, for a better light effect, but my camera isn’t good enough to have the full experience! ūüôā )

 A second baby Tardis printed with only 60% of the size of the original one, filled-in with only too static LEDs:

I glued diffuse translucid paper inside so that the light from inside gives a better effect through the windows: we can’t see the electronic inside, only light!

 

01 02 03 0401 05

As you can see all is solederd, since battery casing was too big. I pray not to change batteries so soon….

06 07 08 09

Comparison between the big tardis (with advanced electronic) and the baby one with only LED

1011

Arduino program for the electronic project of the big Tardis:

/*
TARDIS electronic light and sound project for the 3D printed Tardis from here:
http://www.thingiverse.com/thing:37742

See the project on this website:
https://pascelectric.wordpress.com/electronic-tardis-doctor-who-with-light-and-sound/

By Pascelectric
*/


#include <SD.h> 
#define SD_ChipSelectPin 4  
#include <TMRpcm.h>          
#include <SPI.h>


TMRpcm tmrpcm;   // create an object for use in this sketch
int i,sens,etape;

int vert=5;
int rouge=6;
int bleu=3;
int blanc=10;
int speaker=9;

void setup() {
  // put your setup code here, to run once:
  
  pinMode(rouge,OUTPUT);
  pinMode(vert,OUTPUT);
  pinMode(bleu,OUTPUT);
  pinMode(blanc,OUTPUT);  
  
  digitalWrite(bleu,HIGH);
  digitalWrite(rouge,HIGH);
  digitalWrite(vert,HIGH);
  
  
  digitalWrite(blanc,HIGH);
  
  tmrpcm.speakerPin = speaker; 
  SD.begin(SD_ChipSelectPin);
  tmrpcm.play("dec.ard");
  
  etape=1;
  i=255;
  sens=1;
}

void loop() {
  // put your main code here, to run repeatedly:

  if(!(tmrpcm.isPlaying())&&(etape<=6)) {      
      digitalWrite(speaker,LOW);   
      etape++;
      if (etape==2){
        tmrpcm.play("trans.ard");
        i=120;
        sens=1;
      }
      if (etape==3)
        tmrpcm.play("cont.ard");
      if (etape==4){
        tmrpcm.play("att.ard");
        i=100;
        sens=1;
      }
      if (etape==5)
        tmrpcm.play("them.ard");
      if (etape==6){
        i=255;
        sens=1;
      }
  }
  
  if (etape==1){  
      analogWrite(bleu,255);
      analogWrite(rouge,i);
      analogWrite(vert,i);
    
      if ((i==0)||(i==255))
          sens=-sens;
    
      i=i+sens;
      delay(1);    
  }
  
  
   if ((etape==2)||(etape==3)){  
      analogWrite(bleu,i);
      analogWrite(rouge,i);
      analogWrite(vert,i);
    
      if ((i==0)||(i==120))
          sens=-sens;
    
      i=i+sens;
      delay(3);    
  }
  
    if (etape==4){  
      analogWrite(bleu,i);
      analogWrite(rouge,255);
      analogWrite(vert,i);
    
      if ((i==0)||(i==100))
          sens=-sens;
    
      i=i+sens;
      delay(1);    
  }
 
 
     if (etape==5){  
      analogWrite(bleu,random(0,256)*random(0,2));
      analogWrite(rouge,random(0,256)*random(0,2));
      analogWrite(vert,random(0,256)*random(0,2));
      delay(10);    
  } 
  
     if (etape>=6){  
      analogWrite(bleu,100);
      analogWrite(rouge,100);
      analogWrite(vert,0);
      
      analogWrite(blanc,i);
    
      if ((i==0)||(i==255))
          sens=-sens;
    
      i=i+sens;
      delay(3);    
  } 

  
}

2 thoughts on “Electronic TARDIS (Doctor WHO) with light and sound

  1. Pingback: TARDIS Doctor WHO: electronic and 3D printing project | Electronic DIY Project by PASCELECTRIC

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s