// Get time in seconds. long time = (runTime) / 1000; //////////change this value to speed up or slow down the clock

// Set time based on offset.. // long hbump = 60*60*clockHourSet; long hbump = 60*60*clockHourSet; long mbump = 60*clockMinSet; time += mbump + hbump;

// Convert time to days,hours,mins,seconds long days = time / DAYS; time -= days * DAYS; long hours = time / HOURS; time -= hours * HOURS; long minutes = time / MINS; time -= minutes * MINS; long seconds = time;

// Set time based on offset.. // long hbump = 60*60*clockHourSet; long hbump = 60*60*clockHourSet; long mbump = 60*clockMinSet; time += mbump + hbump;

// Convert time to days,hours,mins,seconds long days = time / DAYS; time -= days * DAYS; long hours = time / HOURS; time -= hours * HOURS; long minutes = time / MINS; time -= minutes * MINS; long seconds = time;

I went out to my local radioshack and bought a bunch of switches/toggles for the alarm section. I'm not very good with coding, or the arduino, but I think I can get most of it working. Just a couple gray areas I have no idea how to get going.

Emblazed, would you be willing to help me out on here, or via email? I can post what I have figured out thus far.

I ordered a set of those dupont connectors, they work great for a few connections but they don't do very well fitting 20 or so connections side by side on the cathode pins. You could probably make it work by shaving a little of the sides of them, but it still might be tight.

I'm not sure if I have a bad tube or something is messed up in the wiring or one of the chips. I have one tube that will always display the digit 2 and 5 at the same time no matter what socket it's in. If I plug it into another socket, other tubes will start doing the same thing. If that tube is left out, all the other ones work great.

I thought about using it for the first digit for the hours so it would only display 0 and 1, but doing that, it makes some of the other tubes display 2 and 5 at the same time. I guess I don't really understand how this could happen even if the tube was bad, how it would "short" out other tubes.

The second would be a tad more difficult. I haven't put the kit together yet but I am hoping there are enough ports left open to add an alarm clock function. One button to view/set the alarm. Two buttons to change hour/min. One switch to turn the whole function on and off, possibly a snooze function as well. To those who know about this than I do: is this feasible? I think it would add a ton of 'actual' functionality to it other than being a pretty $150 clock.

Edit: The more I think about it, a dimmer would be pretty nice too for bedroom use, not sure if that's possible though.