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. Development
  3. Real Time Clock with Display Example

Real Time Clock with Display Example

Scheduled Pinned Locked Moved Development
displayrtc
12 Posts 7 Posters 6.2k Views 2 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #1

    Put together a new example inspired by @gregl for the RTC module.
    Also added a display to show date, time and temperature.

    http://www.mysensors.org/build/display

    https://codebender.cc/sketch:48371

    cadetC 1 Reply Last reply
    0
    • greglG Offline
      greglG Offline
      gregl
      Hero Member
      wrote on last edited by
      #2

      Nice Hek.
      Can you explain the values here?
      (0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE)

      I know the 0x27 is the i2c address - but the others are foreign to me, and i cant find the doco/wiki for that lib...or at least that version of the lib!

      1 Reply Last reply
      0
      • korttomaK Offline
        korttomaK Offline
        korttoma
        Hero Member
        wrote on last edited by korttoma
        #3

        I was thinking the same thing as @GREGL
        I'm using the following to initialize my LCD:

        LiquidCrystal_I2C lcd(0x27,20,4);
        lcd.init();

        Don't think I'm using the same Lib either.

        • Tomas
        1 Reply Last reply
        0
        • greglG Offline
          greglG Offline
          gregl
          Hero Member
          wrote on last edited by gregl
          #4

          I was just poking around on codebender and found the lib..but none of the examples use all these params.

          IIRC ,I use a different lib...as my i2c lcd controllers are pretty old..byvac from memory.

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #5

            Found the new liquidcrystal library while searching my display Funduino/1602.

            The parameters are:

            addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
            

            https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads

            Example:
            http://jaredstemen.blogspot.se/2014/01/getting-funduino-1602-lcd-to-print.html

            1 Reply Last reply
            0
            • korttomaK Offline
              korttomaK Offline
              korttoma
              Hero Member
              wrote on last edited by
              #6

              Tried the lib out in my setup and it seems to be working just fine so I think I will use that one to so that I can be on the same page as @hek

              • Tomas
              hekH 1 Reply Last reply
              0
              • korttomaK korttoma

                Tried the lib out in my setup and it seems to be working just fine so I think I will use that one to so that I can be on the same page as @hek

                hekH Offline
                hekH Offline
                hek
                Admin
                wrote on last edited by
                #7

                @korttoma

                I has been checked in to master.

                https://github.com/mysensors/Arduino/tree/master/libraries/LiquidCrystal

                1 Reply Last reply
                0
                • bjornhallbergB Offline
                  bjornhallbergB Offline
                  bjornhallberg
                  Hero Member
                  wrote on last edited by bjornhallberg
                  #8

                  These OLED displays seem pretty cool also if the quality is ok and the library doesn't eat up too much space:
                  https://www.youtube.com/watch?v=mMiMNTv25Bw
                  A lot more information being displayed in a much smaller package. Price is similar to the 16x2 LCD and they run on 3.3-5V apparently. Available as I2C also.

                  marceltrapmanM 1 Reply Last reply
                  0
                  • greglG Offline
                    greglG Offline
                    gregl
                    Hero Member
                    wrote on last edited by
                    #9

                    Hey maybe i can use this with the microview http://forum.mysensors.org/topic/48/idea-s-microview/

                    1 Reply Last reply
                    0
                    • bjornhallbergB bjornhallberg

                      These OLED displays seem pretty cool also if the quality is ok and the library doesn't eat up too much space:
                      https://www.youtube.com/watch?v=mMiMNTv25Bw
                      A lot more information being displayed in a much smaller package. Price is similar to the 16x2 LCD and they run on 3.3-5V apparently. Available as I2C also.

                      marceltrapmanM Offline
                      marceltrapmanM Offline
                      marceltrapman
                      Mod
                      wrote on last edited by
                      #10

                      @bjornhallberg said:

                      These OLED displays seem pretty cool also if the quality is ok and the library doesn't eat up too much space:
                      https://www.youtube.com/watch?v=mMiMNTv25Bw
                      A lot more information being displayed in a much smaller package. Price is similar to the 16x2 LCD and they run on 3.3-5V apparently. Available as I2C also.

                      I have a couple of these (I2C) and they are great.
                      I have tried to use them together with a temp sensor but I failed doing so.
                      I was able to compile and upload the sketch but due to a lack of patience I did not investigate why it failed.
                      My gut feeling is that the problem was the use of too many string values...

                      Fulltime Servoy Developer
                      Parttime Moderator MySensors board

                      I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                      I have a FABtotum to print cases.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        Rek
                        wrote on last edited by
                        #11

                        I have a couple of these OLED displays on order, will see if I can get them working with the sensors.

                        1 Reply Last reply
                        0
                        • hekH hek

                          Put together a new example inspired by @gregl for the RTC module.
                          Also added a display to show date, time and temperature.

                          http://www.mysensors.org/build/display

                          https://codebender.cc/sketch:48371

                          cadetC Offline
                          cadetC Offline
                          cadet
                          wrote on last edited by cadet
                          #12

                          @hek said in Real Time Clock with Display Example:

                          http://www.mysensors.org/build/display

                          Hi

                          Can you modify code for adding temp sensor to GW.
                          And may be display day of week.
                          Thank you.

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


                          11

                          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