Pages: [1]   Go Down
Author Topic: building star trek door help with sound  (Read 1374 times)
0 Members and 1 Guest are viewing this topic.
Utah
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i built a slideing electric door but i want to play a mp3 or i can convert to something else. it needs to  play instantly cause i hit the open button, and door starts to move, so i need it to play then to, and other code needs to run when it is playing. where do i start?
Logged

Toronto, Canada
Offline Offline
Edison Member
*
Karma: 2
Posts: 1234
"Keep it R.E.I.L. - "Research, Experiment, Investigate and Learn"
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That is a cool project. 

The door open and make "Shuuuts" .

May need :

Motor to open / close  the door. Relay control, the ends switches

A button to open and close  OR  a beam of light when brake, open or close.

Arduino UNO is fine.

For the sound, see one of the code examples in your IDE, the tone example. A transistor circuit will be use.

That it, in my opinion.

 
Logged

Utah
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks i have the working proto type.
Built with a bidirectional motor pushing/ pulling a slideing door.
tack switches to know when door is shut/ open.
a single open close true/false state push button to decide open or close.
and i use my changed version of the "melody" tutorial to run the "doorbell"
the sound for the door is complicated.
it can't be a MIDI or something to play on a pezio like the doorbell.
do i need to get a wav or mp3 shield/sd reader?
or is their something similar that can get me the same realisim
Logged

Global Moderator
Netherlands
Online Online
Shannon Member
*****
Karma: 227
Posts: 14026
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice project! are you building the federation HQ?

An MP3 shield enables you to play any sound, - youtube has enough sound samples from startrek too choose form - or you sample from a DVD?

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Utah
Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks. I know mp3 can play it. but how muchof a delay will their be? the delay is my worry.
will it play with the door or will the door start moveing before the sound plays? (door moves approc 10ms after button press. i could change it but i want it to be responsive.

and HQ? no just my little bros bedroom Turbolift door,  viewscree, replicator, console, and a med-bed?
Logged

Belgium
Offline Offline
Jr. Member
**
Karma: 1
Posts: 63
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

using this mp3 shield http://iprototype.nl/products/arduino/shields/mp3-player mp3's play instantly, no delay using Bill Porter's lib.
http://www.billporter.info/sparkfun-mp3-shield-arduino-library/
Logged

Pages: [1]   Go Up
Jump to: