Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. OpenHardware.io
  3. 💬 Smart Alarm Clock

💬 Smart Alarm Clock

Scheduled Pinned Locked Moved OpenHardware.io
alarmled ring lightspeakerdomoticzmysensorsclock
37 Posts 10 Posters 9.8k Views 12 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • petewillP petewill

    Cool project! I may need to build one of these myself. I have so many things on the project list and never enough time :(

    micahM Offline
    micahM Offline
    micah
    wrote on last edited by
    #9

    @petewill

    Don't we all have a list that is too long.

    1 Reply Last reply
    0
    • micahM Offline
      micahM Offline
      micah
      wrote on last edited by
      #10

      Eventually I'm going to make a case/enclosure for it.

      I don't want to make it boring, like a basic alarm clock rectangle.... instead I want to build it into something... kinda like this stereo in a mannequin I found on Pinterest
      alt text

      or like this clock in an NES
      alt text

      Although since it's for kids I'll probably use a toy dinosaur or something

      1 Reply Last reply
      0
      • micahM Offline
        micahM Offline
        micah
        wrote on last edited by
        #11

        I've finally settled on an enclosure design for my first (of 3) clock. This one is for my 10 year old son, I think he's going to love it.

        I originally found this on pintrest....

        fake bomb clock
        Fake bomb clock

        I'm going to use the bomb idea but modify it to fit all my existing design elements.

        I'm currently awaiting some parts from aliexpress and I'm still trying to find materials for the dynamite sticks. Hopefully I'll have everything I need soon so I can start to build it

        mfalkviddM 1 Reply Last reply
        4
        • micahM micah

          I've finally settled on an enclosure design for my first (of 3) clock. This one is for my 10 year old son, I think he's going to love it.

          I originally found this on pintrest....

          fake bomb clock
          Fake bomb clock

          I'm going to use the bomb idea but modify it to fit all my existing design elements.

          I'm currently awaiting some parts from aliexpress and I'm still trying to find materials for the dynamite sticks. Hopefully I'll have everything I need soon so I can start to build it

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #12

          @micah very cool idea. Just don't bring it when you travel by air ;-)

          1 Reply Last reply
          1
          • ben999B Offline
            ben999B Offline
            ben999
            wrote on last edited by ben999
            #13

            Awesome! I like that!

            I have ordered some parts to have a go myself with Nokia 5110 screen and rotary encoder :)

            May i have a look at your .ino file please ? Pretty sure i am not able to start from scratch...

            1 Reply Last reply
            0
            • N Offline
              N Offline
              Newzwaver
              wrote on last edited by
              #14

              How do you transfer this to the arduino?

              1 Reply Last reply
              0
              • N Offline
                N Offline
                Newzwaver
                wrote on last edited by
                #15

                Hi Can someone point me in the direction of the Ardunio code for this project? I have everything built and can get any code to work with the liquid crystal lib?

                mfalkviddM 1 Reply Last reply
                0
                • N Newzwaver

                  Hi Can someone point me in the direction of the Ardunio code for this project? I have everything built and can get any code to work with the liquid crystal lib?

                  mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #16

                  @Newzwaver are the files in the sources tab insufficient? If so, could you clarify what is missing?

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    Newzwaver
                    wrote on last edited by
                    #17

                    thanks for the reply and I might be missing it but the Arduino file is not posted under the code tab.

                    mfalkviddM 1 Reply Last reply
                    0
                    • N Newzwaver

                      thanks for the reply and I might be missing it but the Arduino file is not posted under the code tab.

                      mfalkviddM Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by mfalkvidd
                      #18

                      @Newzwaver could you be a bit more specific? Which file is missing?
                      0_1507127389644_IMG_5952.PNG

                      There should be some file ending in .ino? So that's what is missing?

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        Newzwaver
                        wrote on last edited by
                        #19

                        Yes the file ending in .ino is missing as you can see by your post above.

                        1 Reply Last reply
                        1
                        • mfalkviddM Offline
                          mfalkviddM Offline
                          mfalkvidd
                          Mod
                          wrote on last edited by
                          #20

                          Thanks. Hopefully micahbowerbank kan reply.

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            Newzwaver
                            wrote on last edited by
                            #21

                            SO does anyone have any code for this project? I need the arduino code. Thanks in advance, excellent project btw.

                            1 Reply Last reply
                            0
                            • micahM Offline
                              micahM Offline
                              micah
                              wrote on last edited by
                              #22

                              Hey everyone.

                              Sorry, had a computer crash and file loss issue a few months ago.

                              I can't find my final code file, but I did find an older version (incomplete) called ClockRebuild.ino and I uploaded it to the project.

                              Hopefully that helps

                              One day I'll come back and truly finish this project, life just keeps getting in the way

                              1 Reply Last reply
                              1
                              • N Offline
                                N Offline
                                Newzwaver
                                wrote on last edited by
                                #23

                                Thanks for the arduino code, i will give it a shot.

                                1 Reply Last reply
                                0
                                • dbemowskD Offline
                                  dbemowskD Offline
                                  dbemowsk
                                  wrote on last edited by
                                  #24

                                  I am just curious why you did your switch board the way you did? You can do a similar style switch setup using all the same value resistors. Then you don't have to buy so many different resistor values. Something like this:
                                  0_1508986754912_upload-8f7eb5ee-6fac-4bb8-8ef7-c5a3c6f82e0c

                                  In this approach, whichever button you press, the resistor values, being in series, add up giving you a different voltage on your analog pin. With your approach, you use different resistor values on each switch which gives you your different voltage. My approach is only slightly different than yours. I am just wondering if there is an advantage one way or another.

                                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                  Nca78N 1 Reply Last reply
                                  2
                                  • dbemowskD dbemowsk

                                    I am just curious why you did your switch board the way you did? You can do a similar style switch setup using all the same value resistors. Then you don't have to buy so many different resistor values. Something like this:
                                    0_1508986754912_upload-8f7eb5ee-6fac-4bb8-8ef7-c5a3c6f82e0c

                                    In this approach, whichever button you press, the resistor values, being in series, add up giving you a different voltage on your analog pin. With your approach, you use different resistor values on each switch which gives you your different voltage. My approach is only slightly different than yours. I am just wondering if there is an advantage one way or another.

                                    Nca78N Offline
                                    Nca78N Offline
                                    Nca78
                                    Hardware Contributor
                                    wrote on last edited by
                                    #25

                                    @dbemowsk said in 💬 Smart Alarm Clock:

                                    In this approach, whichever button you press, the resistor values, being in series, add up giving you a different voltage on your analog pin. With your approach, you use different resistor values on each switch which gives you your different voltage. My approach is only slightly different than yours. I am just wondering if there is an advantage one way or another.

                                    I guess it is useful in the case when user pushes more than one button ?

                                    dbemowskD micahM 2 Replies Last reply
                                    0
                                    • Nca78N Nca78

                                      @dbemowsk said in 💬 Smart Alarm Clock:

                                      In this approach, whichever button you press, the resistor values, being in series, add up giving you a different voltage on your analog pin. With your approach, you use different resistor values on each switch which gives you your different voltage. My approach is only slightly different than yours. I am just wondering if there is an advantage one way or another.

                                      I guess it is useful in the case when user pushes more than one button ?

                                      dbemowskD Offline
                                      dbemowskD Offline
                                      dbemowsk
                                      wrote on last edited by
                                      #26

                                      @Nca78 said in 💬 Smart Alarm Clock:

                                      I guess it is useful in the case when user pushes more than one button ?

                                      I hadn't thought about that, but you are right. In my example, you couldn't press more than one button.

                                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                      1 Reply Last reply
                                      0
                                      • Nca78N Nca78

                                        @dbemowsk said in 💬 Smart Alarm Clock:

                                        In this approach, whichever button you press, the resistor values, being in series, add up giving you a different voltage on your analog pin. With your approach, you use different resistor values on each switch which gives you your different voltage. My approach is only slightly different than yours. I am just wondering if there is an advantage one way or another.

                                        I guess it is useful in the case when user pushes more than one button ?

                                        micahM Offline
                                        micahM Offline
                                        micah
                                        wrote on last edited by
                                        #27

                                        @Nca78
                                        exactly correct.

                                        I originally went with the same resistor value so that it was easy. But then when I thought about how many button combinations I wanted (thinking about a real clock where you hold down the alarm set button then press the hour button) I went with different values.

                                        My implementation still isn't perfect, since I'm a bloody amateur... lol. I think 1 or 2 of the combinations I never got working.

                                        But for the most part it accomplished what I wanted... provided many buttons and combinations on a single input pin, since I was quickly running out of them

                                        1 Reply Last reply
                                        0
                                        • micahM Offline
                                          micahM Offline
                                          micah
                                          wrote on last edited by
                                          #28

                                          I found a library online.... #include <AnalogMatrixKeypad.h>

                                          I made some modifications (although I can't quite remember what they were), I think about the number of buttons, or combinations, or target values.

                                          But generally the library provided the 1 wire, resistor ladder and debouncing functionality I needed

                                          dbemowskD 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          12

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular