• Attn: If you were on the old forum, you may have to reset your password!

Raspberry PI/Jessie/Nodejs/Javascript based Tardis Clock

jorwick said:
Interesting. Yes I would be very interested in seeing what he did and what he used,and appreciate it very much if you can come up with a link/contact I can pursue..
I'm still trying to excavate that Facebook page. I used to have a personal contact e-mail for him, but that card is somewhere in the ether. (I put it in the worst possible place one could think of... one of my 2nd Doctor's coat pockets! Last time I went looking for something I'd left in one of them I'd found Jimmy Hoffa instead!) I've e-mailed a friend of mine that helps run Timegate asking him for some help tracking the TARDIS owner down.

(On another note, I've also asked him if he could put a bug in someone's ear - I won't mention names here - but this person is going to be a guest of honor at Timegate 2016 this May, and he just happens to be a big wig with Big Finish! The bug for the ear? The possibility of Big Finish working something out so their version of the McGann sonic can be made available like the Character Options sonics.)

jorwick said:
I wonder if he benefited from the Lobby walls reflecting the subwoofer wave..
I doubt it. Just take a look at this photo from when I was at Timegate 2013:
Lobby.jpg
Aside from all of those people, there are chairs, sofas, tables, half-walls, steps, carpeting, more walls under that overhang that makes up that really high ceiling, pillars running along the edge of that overhang... Basically a lot of stuff! And from where this photo was taken, the sound coming from that TARDIS (2010 interior hum, mostly; he only activated the Mat/Demat sounds once in a while) could be heard just as clearly as if you were standing right next to the Old Girl; and when you were, there was no discernible difference in sound volume! It was amazing! You'd think that if you could hear that TARDIS from across this crowded lobby, with all the noise from those people talking, that it would deafen you if you got right up against her. But that wasn't the case.

jorwick said:
There is a LOT of BASS in those effects. so adding a decent subwoofer would probably do wonders at making this thing heard- especially in an enclosed space..
Well, the subwoofer was attached to the underside of the TARDIS' floor, and mostly gave the Old Girl a "rumbling" feeling when you touched her or stood inside.

jorwick said:
Use an AMP like this and a large enough speaker.. if you can build up a large enough pressure inside the box and then let it escape somewhere,   it  would just act like a big subwoofer enclosure..
When I heard the owner talking about the sound system, he said the subwoofer was also a transducer, attached to the center under the TARDIS floor, and like I mentioned, it didn't really put off much sound; it was intended to create that feeling of vibration. (As Ian Chesterton said in the first episode when he touched the TARDIS: "It's alive!")

jorwick said:
Do you recall hearing highs (not that 10K is high-) really easily too? Higher frequencies tend to be very directional... so I would expect people standing in the way would affect them(  but then a lobby might allow for a good ceiling reflection...
The hum coming from the TARDIS had the 2010 version, which had the late Classic Series TARDIS interior hum in it, with some 2005/2010 overtones added, and as anyone knows the Classic version, especially from the Davison era, had some highs in it. Everything came through just fine, like this entire TARDIS was one large resonance cabinet - which she probably was - but the sound was the same level whether the door was open or shut.

As for people in the way affecting the sounds? Nope. That Old Girl was a presence you couldn't ignore; you heard her no matter where you were, even while eating in the attached restaurant; granted the restaurant's front wall was a wide open entrance to the lobby, but you still heard her at your table! :o

jorwick said:
Yes, I an definitely interested in finding out how  he did it...  though I rather suspect it wasn't cheap and he had some pretty good Amps inside..
It's going back almost three years now, and my memory isn't that sharp (short-term - no problems with the long-term; I just have to get things passed the short-term and into long-term to make them safe)... where was I? Oh yeah... Going back to that Timegate: All of his electronics for the sound, including the amps, was located on a board that fit inside the rear walls Police Box sign. So if he did have some good amps, they were also some good and small ones. The plank everything was mounted to was about 3.5 feet wide (not as wide as the TARDIS' Police Box sign), and when he folded it down it was about 8 inches wide, though not all of it was covered with electronic circuit boards. So everything was very compact. It even controlled the window lighting (which isn't on in the above photo).

Once I hear back from my friend about the contact info, I'll certainly pass it on. The Facebook page I'll post, but if I do manage to unearth that e-mail contact I'll PM you with it.

jorwick said:
unfortunately the spousal unit has already approved one expensive speaker project and she is unlikely to approve another..
They never do, my friend; they never do! :-\ ;) :)

Dino.
 
Jorwick, thanks to deck5 posting here (http://tardisbuilders.com/index.php?topic=6545.0) I've been able to locate that Facebook page for that TARDIS from Timegate! The owner is located in Georgia (the US, not Russia), and his Facebook page us here: https://www.facebook.com/FourInTheTARDIS/. He does an great 11th Doctor and his wife is a magnificent River Song. I'm sure you can contact them via the Facebook page to ask him about the amazing sound system he uses. I hope this helps.

Dino.
 
Okay  so its not yet pretty but here are the basic instructions to download my app onto a Raspberry PI.  I don't have a PI 2 to test with, but it should largely be the same.  This does work for Raspberry Pi rev2 and Raspberry Pi B+ for sure because I have tried it. Still,  if you have any issues please post here or Private Message me.

Instructions for TARDIS CLOCK LOAD


I am assuming here you have downloaded NOOBS and installed the JESSIE distributed of Raspbian. This should all work on Wheezy with some coaxing, but I haven't tested it, and JESSIE is superior in many ways anyway - most importantly non root GPIO access...

The words in Italics are what you should type throughout the instructions

Login as user pi and password raspberry

pi@raspberrypi:~ $sudo raspi-config

In the advanced menu chose audio and set it to use the 3.5 audio jack

exit the menu and reboot

Log back in  and update everything to current versions. This step bassicall

pi@raspberrypi:~ $sudo apt-get update
pi@raspberrypi:~ $sudo apt-get upgrade
pi@raspberrypi:~ $sudo apt-get dist-upgrade

Install Pi Blaster    ( provides Dimable lights by providing software based Pulse Width Modulation (PWM) - this version uses channels 0, 1,2,3 instead of GPIO 17 ,27 etc.. if you use another version you will need to modify the javsacript to suit...

pi@raspberrypi:~ $git clone https://github.com/mwilliams03/pi-blaster.git
pi@raspberrypi:~/pi-blaster $cd pi-blaster
pi@raspberrypi:~/pi-blaster $make pi-blaster
pi@raspberrypi:~/pi-blaster $sudo make install

This last command builds a service that automatically starts. You will need to Modify it so it only affects the correct pins and uses -PCM (otherwise you cant use onboard sound)
to do that:

pi@raspberrypi:~/pi-blaster $sudo  nano /etc/init.d/pi-blaster

Modify the line
DAEMON_ARGS=""

to be

DAEMON_ARGS="17 27 -p"

to exit Nano,  use cntrl X ,answer the questions with a Y (if there are any)  and hit return to confirm file name. Remeber that because while you will use NANO trhough out the rest of the install, I won't remind you how to save and exit.

pi@raspberrypi:~/pi-blaster $sudo reboot

Log back in

Now test the pi-blaster installation

1) Check to see if the pi-blaster process is running   - you should see the paramters you entered(17 27 -p) for example:

pi@raspberrypi:~ $ ps aux | grep pi-blaster
root       368  0.0  0.1   1896   704 ?        Ss   01:58   0:00 /usr/sbin/pi-blaster 17 27 -p


To manually start pi-blaster:

pi@raspberrypi:~ $ sudo ./pi-blaster 17 27  -p

To manually kill pi-blaster

pi@raspberrypi:~ $ sudo killall pi-blaster

If you have your Circuit built, or even if you just have a LED on a bread board ( Pin to 100-270 OHM resitor- resistor to LED - LED to ground)
You can manually play  with pins from the command line :

   To set pin1 to a PWM of 20%
pi@raspberrypi:~ $   echo "0=0.2" > /dev/pi-blaster
   To completely turn off pin0:
pi@raspberrypi:~ $   echo "0=0" > /dev/pi-blaster
   To completely turn on pin1:
pi@raspberrypi:~ $   echo "1=1" > /dev/pi-blaster
   
You can also control individual GPIO pinn used by ON/OFF using:

pi@raspberrypi:~ $gpio mode 0 out
pi@raspberrypi:~ $ gpio write 0 1
pi@raspberrypi:~ $ gpio write 0 0

GPIO will not do anything to PINS you have assigned to pi-blaster ( about GPIO 17, 27 --physical pins 11,13) - if you want to play with GPIO you will have to kill pi-blaster first.
Or use pins Pi-Blaster isn't using
   
 
Install I2C  ( i2c controlled AMP or Clock)

pi@raspberrypi:~ $ sudo raspi-config
In the advanced menu enable I2C  and set it to activate

exit and reboot

pi@raspberrypi:~ $ sudo apt-get install i2c-tools

pi@raspberrypi:~ $ sudo nano /boot/config.txt

add or un-comment the lines

set dtparam=i2c1=on
dtparam=i2c_arm=on

to the file if not already done

pi@raspberrypi:~ $ sudo nano /etc/modules

add the line
i2c-dev

at the end of the file if it does not already exist

To test i2c installation

pi@raspberrypi:~ $ sudo i2cdetect -y 1
    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Any connected devices will appear with their  address above.  For example , with the MAX AMP connected to the i2c bus and powered,  you should see


    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- 4b -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

You can write to the address  to change the volume by using the following

This sets volume on amp to 100%)
pi@raspberrypi:~ $ i2cset 1 0x4b 0x3f
This sets Volume to 0
pi@raspberrypi:~ $ i2cset 1 0x4b 0x00

If you have a sound file on the system, and the audio is connected to the amp, and speakers are pluged in you can use

pi@raspberrypi:~ $aplay <soundfile_name>

where <soundfile_name> is the path and name of your wav file.  The Distribution contains such files in the /home/pi/tardisClock/Sounds  directory  so you can return here to test fomr command line once you finish the installation if you don't already have a sound file on the system.

INstalling a RTC

 - you need to identify the chipset your RTC uses and modify the below to match , changing pcf2137  to the clock you are using
The clock I bought was a ds3231

Edit the file /boot/config.txt

pi@raspberrypi:~ $ sudo nano /boot/config.txt

If you see the file /boot/overlays/i2c-rtc-overlay.dtb. To enable this add the following line to /boot/config.txt:

dtoverlay=i2c-rtc,pcf2127

If you see the file /boot/overlays/pcf2127-rtc-overlay.dtb. To enable this add the following line to /boot/config.txt:

dtoverlay=pcf2127-rtc

After restarting your Raspberry Pi the RasClock should be recognised and you can control it with the hwclock command.
------
2. Edit the file /lib/udev/hwclock-set

pi@raspberrypi:~ $ sudo nano /lib/udev/hwclock-set


   Comment out or remove the three lines

if [ -e /run/systemd/system ] ; then
   exit 0
fi

AND

Comment out or remove the two lines which contain --systz
-----
pi@raspberrypi:~ $ sudo hwclock -w

To read the time from the clock module:

pi@raspberrypi:~ $sudo hwclock -r

To copy the time from the clock module to the system:

pi@raspberrypi:~ $ pi@raspberrypi:~ $




Installing the latest node.js  
- requires removing node red  

pi@raspberrypi:~ $sudo apt-get remove nodered
pi@raspberrypi:~ $sudo apt-get remove nodejs nodejs-legacy

For ARM6 based boards ( PI rev 1 Pi A , PI B+)

pi@raspberrypi:~ $wget http://node-arm.herokuapp.com/node_archive_armhf.deb
pi@raspberrypi:~ $sudo dpkg -i node_archive_armhf.deb
pi@raspberrypi:~ $sudo apt-get install build-essential python-dev python-rpi.gpio

For PI2 and Zero

pi@raspberrypi:~ $curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
pi@raspberrypi:~ $sudo apt-get install -y build-essential python-dev python-rpi.gpio nodejs
pi@raspberrypi:~ $sudo npm cache clean

Install NPM


pi@raspberrypi:~ $sudo apt-get install npm

pi@raspberrypi:~ $git clone git://github.com/jorwick/tardisClock

pi@raspberrypi:~ $cd /home/pi/tardisClock

pi@raspberrypi:~ $npm install

o

To Start tardis clock

node /home/pi/tardisClock/TARDISclock.js

Ctnl-C to quit.


-------------------- to run tardisClock as a service started automatically at boot

create a file called TARDISCLOCK.service

sudo nano /etc/systemd/system/TARDISCLOCK.service

Place the following text in that file.
[Unit]
Description=TARDISCLOCK
after=network.target

[Service]

WorkingDirectory=/home/pi/tardisClock
ExecStart=/usr/local/bin/node /home/pi/tardisClock/TARDISclock.js
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=TARDISCLOCK
User=root
Group=root
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target


---> then ctrl-x to exit nano, and answer y to save

then  activate the service using

pi@raspberrypi:~ $sudo systemctl daemon-reload && sudo systemctl enable TARDISCLOCK.service

to stop the service manually

pi@raspberrypi:~ $sudo systemctl stop TARDISCLOCK

to start it manually use

pi@raspberrypi:~ $sudo systemctl start TARDISCLOCK
 
Yeah, well, the point is you don't need to  understand it.  If you can type it in , my understanding becomes your TARDIS lights and sound project.. all you would do after you type all of this in is interact with it via the web interface.  I can probably write a script to do 90%  of this..  so I can get the install down to a few lines.. I think.. I just haven't done that yet. ( It is after all my first software distro and I am still learning the right ways to package everything up)    But if anyone wants to get started,  they can...
 
Jorwick, when you come up with a Plug & Play version, count me in. But there is no way that I would attempt this project. I'm with Dino, my old brain just couldn't handle it.  :)


Greg
 
Bob's your Uncle said:
Jorwick, when you come up with a Plug & Play version, count me in. But there is no way that I would attempt this project. I'm with Dino, my old brain just couldn't handle it.  :)

I did write a script, so there will be some improvement.. however,  Some of the " go find this in a file and comment it out" stuff  is probably unwise to have scripted - people who actually know what they are doing will edit those files and change them  and I can't assume they will always look the same.. I can investigate what it takes to do an app-get package...

In the meantime I could do is post  a 4-5 Gig Image File -  basically a copy of my "hard drive"  - in this case the Flash Card you put into the PI..  and you can use a free programs like SDFormatter and  win32diskimager  to prepare and "burn" the image to the card - just like you do with a CD.  Then pop the card in and "Bob's your Uncle" ( sorry couldn't resist)  -- you  have working software.  Of course,  someone still needs to do the hardware wiring.. First you format the card ( erasing the partitions)  and the nyou psuh the image onto it and then put it into the PI and boot.

Is the SD image  something "brain dead"  enough to make people happy for now? If so, I will look into finding a place to host the current image..
 
galacticprobe said:
Jorwick, thanks to deck5 posting here (http://tardisbuilders.com/index.php?topic=6545.0) I've been able to locate that Facebook page for that TARDIS from Timegate! The owner is located in Georgia (the US, not Russia), and his Facebook page us here: https://www.facebook.com/FourInTheTARDIS/. He does an great 11th Doctor and his wife is a magnificent River Song. I'm sure you can contact them via the Facebook page to ask him about the amazing sound system he uses. I hope this helps.

Dino.

And Four in the TARDIS replied:

"Surface transducers on the 1/4" thick walls (2 per wall and 2 on the roof, 8 total) and Aura bass transducer in the 1/2" thick floor. 200W max range sub amp for the bass, and a 4x45W for the main sound. Everything runs off 12 volts DC and we run 4 12v 12ah SLA batteries to power sounds and lights. Everything full blast will kill the batteries after about 4 hours. Just the main sound no base and it will run for about 12 hours and drop about 2 volts per battery seeing as it is just the hum and not a solid peak sound."


So  1/4 inch walls probably do a lot for this.., mine are 1/2 and I don't dare go any thinner with the livestock around..  But I went ahead and ordered a couple of Dayton Audio DAEX32EP-4 Thruster 32mm Exciter 40W 4 Ohm (it sounds so dirty doesn't it?)  and a fell set of Dayton Audio DAEX25FHE-4 Framed High Efficiency 25mm Exciter 24W 4 Ohm - one for each wall - giving me one large exciter and one small on each wall, and  will experiment with  a couple of cheap 45W amps (TDA7492 Digital Audio Amplifier Board 2x50W -http://www.ebay.com/itm/TDA7492-D-Class-High-Power-Digital-Amplifier-Board-2x50W-AMP-Board-with-Radiator-/141267388674?pt=US_Amplifier_Parts_Components&hash=item20e4314902) that were on sale for  $10 each.  I Might even be able to get them into the Case if I pull my little Amp out of there..  I still like my little AMP,  and I think it would be perfect for an indoor setup. But outside it just isn't carrying  as far as I had hoped. I am hoping adding additional transducers and running at 4 OHM  will make this more impressive.


 
Jorwick, I'm glad Four In The TARDIS was able to help you out. (They seemed like a really friendly bunch - at least the 11th Doctor owner and his River Song wife were; they let fans - and Colin Baker - have pretty much free run of that TARDIS the whole weekend, and answered any questions that were asked.)

As for the power for that sound system, while they had to run off of batteries (location: no outlets near where they set up), you could probably find one of those UPSes (Uninterruptible Power Supplies) that takes regular house power in and puts out +12 volts from its batteries. Then you wouldn't have to worry about the batteries running down, unless you have a blackout; then you'd probably get about 30 minutes from the batteries because those UPSes are small. But it is good once in a while to run the batteries down to exercise them, otherwise they develop what's called "battery memory", and think they don't need to hold much of a charge. Then if the power goes out the batteries only last a few minutes. It's one reason why we had a battery conditioner for the handheld radio batteries on my ship; the radios were always in the charger so they were "at the ready" at any time. So once a week we'd switch out the batteries and put them in the conditioner, which would run the batteries all the way down, give us a numerical value as to the battery's charging power, and then recharge the battery. Low numbers meant the battery only held a light charge, so any battery showing less than 100 was replaced. The average reading on a good battery was 750.

Anyway, I hope some of that babbling helped.

Dino.
 
jorwick said:
Assuming its the former, and I didn't miss the boat,  I would like to announce the Super scaled down , super easy, el-cheapo version.. (Schematic below)

You will need:

1) A Raspberry Pi v1 or v2 with  SD card ~ $40US
2) 2 Sparkfun kits (simple soldering ) ~ $8 US
3)300 LED strip lights ( which you can wrap around a wood cylinder to create your  light - at this point I am wondering why I didn't do that to begin with...  my fancy DC bulbs are not required. ) ~ $8 US for non-water proof reel of 300 lights...
4) 12v 2-5  amp power supply ~ $6-10 US
5) $10 WiFI USB dongle ( optional - doing wired Ethernet is free)


So if you provide your own amp and  speakers ( and maybe an enclosure, just to be safe - it could be a tupperware type container..)  and control via the web instead of physical buttons - this project is about $75 US... and you can turn off the clock if you think that is lame..  You don't need to have the automatic light sensor (but adding it is about $2 and 4 solder welds)  You don't need the physical buttons (but its about $2 to and 32 solder welds to add them) , or the real time clock or the fancy little i2c controlled AMP, - you  just that old boom box from the local garage sale and an internet connection.. ..  You might even have the power supply lying around from something else old, broken or forgotten. Depending on what you can scavenge, this could be a $50-60 US project, that would take a single weekend of work to complete. And you would have a full blown effects machine you can control from your phone. Come on - you built your own TARDIS. Its big. Its beautiful. It should talk.

I mean  its all good with me--  I got some useful learn'in  about Javascript and such , so it wasn't wasted effort.  I just want to give something back to the community if I can.. I certainly drew lots of inspiration and useful know how from here ( and I still slobber over TARDISGirl's machine) , and this looked like something there  wasn't -yet - an easy solution for. Every TARDIS deserves working sound and lighting effects.  Especially Yours. Because lets face it. YOUR  TARDIS is way cooler than mine. Mine covers a well and  it wasn't put together like furniture. It was put together in hope of withstanding Yaks rubbing against it. . Its not a work of art like the other stuff I see on here. Let my ugly TARDIS guts power your work of art? Please?

View attachment 121553

Jorwick,

I just wanted to let you know that I am shortly going to begin the process of ordering all the parts necessary for your design and assembling it to use in our nearly completed TARDIS build. Your post was what inspired me to register for this forum. Your design is by far the best I have seen and will save me a lot of time since I will not have to start from scratch. I have some electrical and computer background so I hope that I don't have many issues putting it all together. I really like the enclosure for the electronics in your original post, along with the button controls, but I think I will use the light solution you have posted later. I also would like to stick with all PCB instead of the breadboard. Ultimately I would like to have manual controls in the tardis along with remote/wifi/phone controls, though the real time clock isn't something I necessarily need for what we are trying to do.

I would really like a method of communicating with you directly as I work on putting this all together. I have no experience with raspberry pi so I might run into some growing pains there. I looked for a way to PM you through the forum but was unable to find one, or a way to contact you via e-mail. Would you mind me communicating with you directly, and how would you like me to go about it?

Thank you for all your hard work. I can't wait to assemble what you have designed!

edit: Wonderful, it looks like the PM icon popped up after I made my first post on the forum.
 
I like this idea for the sound effects, but the clock stuff with the theme song and the interior light doesn't seem right. It might be good for a model build, but  for a full size build, I think some people just want the demat/mat and cloister bell (what is the cloister bell from anyways, IDK ???) To be able to play at the press of a button and the top light to flash . Why is it so hard to find something like that, I guess because TV effects :P. Maybe one day you could do something like this, and if you did that would be Fantastic (also after the demat and mat sounds play, I would like to see the light stay on until you press another button or  something). But for now this a neat idea, good job.

Hope this paragraph isn't enough for you to handle, Roger

P.S. is there an off button

 
pizzaroger123 said:
...and cloister bell (what is the cloister bell from anyways, IDK ???)
The Cloister Bell is a 'something-really-extremely-bad-is-about-to-happen' warning alarm the TARDIS sounds when that impending doom is fast approaching. It was first used in Tom Baker's (Doctor 4) final story, "Logopolis", and the sound of it has remained unchanged since. It even appeared in the 1996 TV Movie and is still being used with Peter Capaldi (Doctor 12).

pizzaroger123 said:
P.S. is there an off button
Who would want to turn a TARDIS off? :o (It's almost like murder; a TARDIS is alive, after all. ;) ;D)

Dino.
 
pizzaroger123 said:
I like this idea for the sound effects, but the clock stuff with the theme song and the interior light doesn't seem right. It might be good for a model build, but  for a full size build, I think some people just want the demat/mat and cloister bell (what is the cloister bell from anyways, IDK ???) To be able to play at the press of a button and the top light to flash . Why is it so hard to find something like that, I guess because TV effects :P. Maybe one day you could do something like this, and if you did that would be Fantastic (also after the demat and mat sounds play, I would like to see the light stay on until you press another button or  something). But for now this a neat idea, good job.

Hope this paragraph isn't enough for you to handle, Roger

P.S. is there an off button

I have already started using it as a clock when I am outside, but of course you just turn on "silent" mode for the clock at all hours, and its no longer a clock. Then you can just use the demat/mat/cloister.  Don't want to do themes? Well don't hit the themes button :)  Basically you just don't use any features you don't want.

If you don't want to use the light sensor - or don't hook one up- the CPU just thinks its always dark then. Don't want interior lights, don't hook them up.  Don't want a given button - don' hook it up  ( The button would still appear on the web page.. but see below..)

In the next iteration I will add

1)  third output for separate control of the Interior light and the Sign box lights
2) Grid allowing user to set Light states for all three light outputs ( Top light, interior light, Signboxes)  in Silent mode, when its "dark" ( light sensor activated)  and when its "light" and then it will just set it to that state when its done doing something
3) Allow user to define what Audio File will play and what the lights will do ( damped sinusoidal ( with params)  or flicker (with params) or off/on at DIM level   when a given button input is pressed ( which will include the option to do nothing.  The Damped Sinusoidal function  will allow you to set  phase, period, max duration, decay speed, amplitude and slope. With 0 in the correct parameters you can also get a straight sinusoid , a sinusoid that varies from 80% to 20%  or whatever.  The flicker is basically just a timer parameter for the max of  often each level should be used.
4) add in a button option to simply do Toggle off on. Press button once, light comes on. Press it again it goes off.  No sounds.
5) Dynamic web page generation such that state is more obvious and only defined buttons show up.

It seems to me that this  would satisfy 98%  of what people have told me they would want this to do.

So  in your case, you would log in via the Web page, set all hours to silent mode, set the top light at whatever dimmer value you want during that mode ( 0-100%)  and then set up a button for demat, materialization and cloister - using whatever files  you saw fit to upload for those sounds ( or use the ones provided) - and set up  the top light to run during those effects  as you saw fit.   Of course You wouldn't bother hooking up the Transistors for interior and sign boxes, and just run the top light.


However, I know that a number of people do  use interior lighting, signbox lighting or both as well at a top light.
As long as you aren't drawing more than 60 Amps on  a transistor (you will need a heatsink if you do) and your power supply can give you the amperage you want..   then any 12 volt light source will do. The Strip LEDS are very cheap of course, and would make a good choice for one or all of these.   The stepdown chip allows the PI to run off of the 12 Volts too, so you can run this off of a car battery or whatever 12 volt source seems best to you. You could of course install a power switch on your power leads, giving yourself an "Off button" if you wanted it.  Its undocumented at the moment, but hitting the cloister bell button in the current code while any effect is running will cancel it.  In te next version, I think that sort of toggle would just be built into each and every one of the buttons.
 
Diophantine volunteered to be a guinea pig for me, and actually forced me to test and refine.  The New Procedure to load this - from the very beginning -  is:

LOAD the OS.

1. First download the lastest NOOBS zip file for Jessie  at https://www.raspberrypi.org/downloads/noobs/
2. Download and install SDFormatter  (or similar  utility) from https://www.sdcard.org/downloads/formatter_4/eula_windows/
3. Insert your SD card into your PC  and format it to its full size. In SDFormatter, choose the option button and select “Format Size Adjustment” to ON. Then format the card
4. Use  winzip or similar utility to unzip the NOOBs zip file onto the SD CARD.
5. Remove the SD card from your PC , put it into your PI ( with the power off ) and boot.
6. At the menu , Select Raspian install, and select your region at the bottom. Then click “install” at the top left. In about 30 Minutes the install will complete and you can click the popup window to reboot.

Load The TARDIS Clock

1) After reboot the Pi should boot into the GUI.  Right Click on the speaker at the top left and select analog. This directs audio output to the mini-jack
2) Go to preferences, and set the system to boot to CLI ( There is some incompatibility with pi-blaster that prevents the GUI from booting. (If you think you need the GUI load VNC).Also turn on i2c, exit the menu and when asked click yes to reboot.
3) The next time it boots it should boot only to the command line  At the command line type Verify you are in the PI home directory

pi@raspberrypi:~ $ pwd
/home/pi

4) type the following to copy the TardisClock application , web pages and sound files down from the git repository. This takes around 10 minutes

pi@raspberrypi:~ $ git clone git://github.com/jorwick/tardisClock

5) Enter the newly created directory tardisClock

pi@raspberrypi:~ $ pi@raspberrypi:~ $ cd /tardisCock

6) Run the Install Script in that directory with root permissions. This will update Jessie with any fixes, load and install pi-blaster  (for PWM led control) , load the required node.js modules and build a tardisclock service. When complete the script will automatically reboot the machine, and when it boots back up, your TARDISclock should be running.This takes about an hour.

pi@raspberrypi:~ $ pi@raspberrypi:~ $ sudo ./installScript.sh

7) reboot

pi@raspberrypi:~ $ pi@raspberrypi:~ $ sudo reboot

8) find out what your ip address is using ifconfig.  The HTML control page will be at http://<ip address> :8080  - in the example below it would be http://192.168.0.43:8080

pi@raspberrypi:~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:3c:40:64
         inet addr:192.168.0.43  Bcast:192.168.0.255  Mask:255.255.255.0
         inet6 addr: fe80::cbc6:b07:4e9d:62ef/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:275897 errors:0 dropped:0 overruns:0 frame:0
         TX packets:133016 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:393553212 (375.3 MiB)  TX bytes:10803791 (10.3 MiB)

You should now have a working copy of TardisClock - wire and enjoy.
So is that plug and play enough?


  Dio also has a special occasion coming up and I have committed to make enhancements before then.. watch this space.

Mind, this script does not enable the RTC module. That will need to be done separately.. but then if you have an IP connection, you don't really need it. The Pi will set the time via NTP..
 
Back
Top