Pages: [1]   Go Down
Author Topic: DHARMA Alarm Clock Project?  (Read 983 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Greetings, Everyone!



I'd like to build a clock like the one in the picture. If you can't tell, it is a flip-clock with an alarm that can be set, like a normal clock. However, in order to deactivate the alarm, you have to input a correct sequence of numbers into the keyboard, and it appears on a small LCD readout on the top of the machine.

(If you are familiar with the Television show 'LOST', I am trying to make an alarm clock that is visually similar to the machine in the 'Hatch')

A video of what I am trying to accomplish can be found here:



The hardware isn't a problem; I've already built most of it.

Software-wise, I've seen Arduino boards used for similar projects, but I'm still very new to the technology, and I'm not quite sure where to start. Any advice/wisdom would be appreciative.

Thank you!
 
Logged

Ayer, Massachusetts, USA
Offline Offline
Edison Member
*
Karma: 54
Posts: 1848
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I saw a kickstarter project that was similar to this (ramosclock).  Since I never watched Lost, I imagine that was the inspiration for that as well.  Or just people like my daughter and I that annoy everybody around us because it takes so long to wake up.  smiley-evil

Any way, it is generally useful to try and break the project down into several smaller steps, and do them in sequence.  Given you've built most of the hardware, it is hard to say where to begin.  Maybe, you could describe what you've built, and what needs to be done in the Arduino.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



I saw a kickstarter project that was similar to this (ramosclock).  Since I never watched Lost, I imagine that was the inspiration for that as well.  Or just people like my daughter and I that annoy everybody around us because it takes so long to wake up.  smiley-evil

Any way, it is generally useful to try and break the project down into several smaller steps, and do them in sequence.  Given you've built most of the hardware, it is hard to say where to begin.  Maybe, you could describe what you've built, and what needs to be done in the Arduino.

I'm looking for an alarm that goes off at a specific time every 24 hours, outputting a sound to a loudspeaker.

I'd then like to have the alarm sequence reset whenever a push-button switch is triggered. (as in, the button will deactivate the loudspeaker)

Logged

Fort Lauderdale, FL
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6144
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That starts to break your project down to blocks:

- keep track of time
- detect alarm time
- create noise
- mechanically advance clock
- read input from keyboard

Work on those and add to the list as you find others.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.c

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18801
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sounds to me like the keypad stuff (get a 10 digit keypad) and the "password" library (or do it yourself).
Logged


0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

In pseudo-code, your sketch should do something like this:

if (current time == alarm time)
{
   set alarm ON;
}
...
if (alarm is ON)
{
       read keyboard characters into buffer;
       if (the buffer contains expected string)
       {
            set alarm OFF;
            empty the buffer;
        }
}

Logged

Pages: [1]   Go Up
Jump to: