Memory Puzzle Alarm Clock

1,495

24

9

Introduction: Memory Puzzle Alarm Clock

About: I am a 27 years old embedded system programmer. I am into music (blues harmonica and electric guitar), linux, DIY systems.

This is an Alarm Puzzle Clock which means there is a little memory game you have to solve to stop alarm ringing!

As a summary, this clock is for who is being snazzy on mornings. It has 3 LEDs which when you press any of the buttons, the alarm will be silenced and 3 LEDs will give you a random pattern and one minute to enter it.

Supplies

- 2 Arduino Pro Mini

- Red, green and blue LEDs

- Red, green and blue buttons

- EC11 Rotary Encoder

- Speaker

- Some cables, stripboard, headers

- 3D printed parts

Tools

- Soldering Iron and solder

- Stripboard

Step 1: How Is It Works?

You need to use rotary encoder (ec11) to adjust and press it's button to settle it.

At the first start, it will wait you to adjust clock's hour and then minute.

When you adjust that, clock will start to work and you will be allowed to adjust alarm. Every time you pressed the encoder's button, you will jump the next section as alarm's hour, minute and difficulty.

Difficulty works as; 4, 7 and 9 LED blinks for you to remember and you will have one minute to enter it again.

If you can't or don't, the pattern will change and the alarm will ring again.

Step 2: Design

It is a mini game basically (and I learned in the process it's called Simon Memory Game) for this reason I want it to looks like a classic game console.

I added f3d and stl files, you can edit or print freely.

Step 3: Circuit and Code

Circuit is not complicated. I powered one Arduino Pro Mini with 9V battery and connected the other with I2C and give it power with VCC pins, used LCD with I2C module. Used 10K ohm resistors on buttons and 330 ohm with LEDs.

I shared the codes on my Github page.

Libraries

Rotary

DS1302 (Real Time Clock)

LiquidCrystal_I2C

PCM (I used PCM because I didn't have any chance to buy an amplifier, you can use an amplifier for more sound. I added the original wav file if you want to use that way.)

Clocks Contest

Participated in the
Clocks Contest

Be the First to Share

    Recommendations

    • Summer Fun: Student Design Challenge

      Summer Fun: Student Design Challenge
    • Water Speed Challenge

      Water Speed Challenge
    • Stone, Concrete, Cement Challenge

      Stone, Concrete, Cement Challenge

    9 Comments

    0
    Twilightsky01
    Twilightsky01

    8 months ago

    Sir, if I use ESP 32 Devkit V1 what should be the changes in the programming part?
    Can you help me with the code?I want to run the same functionality but using esp 32
    Thank you.

    0
    Twilightsky01
    Twilightsky01

    10 months ago

    Sir ,I liked your idea and wanted to make this type of clock. So sir can I know what ohms of resistor you have used?
    And is it possible to use ESP 32 board instead of arduino board?
    thank you

    0
    kemalicecek
    kemalicecek

    Reply 9 months ago

    Hey there, sorry for late reply.
    I used 1k for buttons and 330ohms for LED's and yes you can use ESP32, and it may be more easier because of the dual core. I used Arduino because I didn't have at ant it was lockdown times.

    0
    atasupasa
    atasupasa

    1 year ago

    I love it!!!

    0
    kemalicecek
    kemalicecek

    Reply 1 year ago

    Thanks

    0
    muratsahar
    muratsahar

    1 year ago

    Perfect, this is a product which I was looking for years. I'd like to buy it.

    0
    kemalicecek
    kemalicecek

    Reply 1 year ago

    I don't know, will it be in market but you can do it one for yourself :)

    0
    kemalicecek
    kemalicecek

    Reply 1 year ago

    Thank you!