Big 32x16 LED Internet Clock on ESP8266

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.พ. 2018
  • This version of ESP8266 based clock is really simple.
    Features:
    - no RTC necessary
    - time and date are taken from google.com and are updated every 10 minues
    - summer time automatic calculation (works at least in Europe)
    - 2 cheap MAX7219 LED Matrix modules used
    - D1 mini
    - simplest possible source code
    - 3 "clock faces" available
    - more features can be added (look at my other LedMatrix videos)
    Source code is available here:
    drive.google.com/drive/folder...
    Watch also my other ESP8266 based "smart" displays:
    • ESP8266 and 2.4" 8-bit...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 81

  • @engr.hossain
    @engr.hossain 3 ปีที่แล้ว +2

    I just finished your clock, working fine. Excellent code indeed. For making, I used a spare Esp-01 module (8 Pin module) from my stock. Since I live in a timezone of GMT+6 and DST is not implemented here, I removed the summertime corrections. Thanks for sharing.

    • @engr.hossain
      @engr.hossain 3 ปีที่แล้ว

      Here is my making. Socketed the MCU within the LED panel data port.
      imgur.com/a/CvOm7mp

    • @SMRaihanulHasannaheun
      @SMRaihanulHasannaheun 3 ปีที่แล้ว

      would you mind sharing your code, i m also looking for gmt+6

    • @engr.hossain
      @engr.hossain 3 ปีที่แล้ว +2

      @@SMRaihanulHasannaheun Open the code with Notepad++ and modify it according to below instruction (expand the entire comment):
      .....
      Line 57: long utcOffset = 1 -> change to long utcOffset = 6
      Line 61: int summerTime; -> Remove this line
      Line 277: summerTime = checkSummerTime(); -> Remove this line
      Line 321 - Line 335: -> Remove these lines
      and save the modifications before compile into the Arduino IDE.

  • @davebeckham5429
    @davebeckham5429 6 ปีที่แล้ว +1

    Excellent. Keep up the good work cbm80amiga. Thanks for sharing.

  • @radzfaz6121
    @radzfaz6121 3 ปีที่แล้ว +2

    Schade. Ich habe alles gemacht wie beschrieben und jetzt kann ich den Sketch nicht kompilieren. Fehler:
    exit status 1
    invalid operands of types 'double' and 'long int' to binary 'operator%'
    Swap these lines. At the very end of the sketch.
    long curEpoch = localEpoc + ((millis() - localMillisAtUpdate) / 1000);
    long temp_value_2 = round(curEpoch + 3600 * (utcOffset+summerTime) + 86400L);
    long epoch = temp_value_2 % 86400L;
    h = ((epoch % 86400L) / 3600) % 24;
    m = (epoch % 3600) / 60;
    s = epoch % 60;

  • @RafaelRodriguez-nu4yz
    @RafaelRodriguez-nu4yz 5 ปีที่แล้ว +1

    Gracias por tu video. Quiero preguntarte como hago para colocar la hora de mi país Colombia. Gracias nuevamente
    Thanks for your video. I want to ask you how I do to place the time of my country Colombia. Thank you again

  • @leoosga8737
    @leoosga8737 6 ปีที่แล้ว

    I'm very happy to be able to use your code thanks for sharing, I'm compiling a code in ap text mode and I need help for bigger fonts like your large numbers. I need large text letters can you help me?

  • @javierpallalorden
    @javierpallalorden 6 ปีที่แล้ว +1

    Nice clock!

  • @supravatdas7689
    @supravatdas7689 2 ปีที่แล้ว

    I couldn't able to adjust Indian IST by changing offset to 5.30 in code the time showing 30 minutes ahead that is if time is 11.00 it showing 11.30? How to solve this problem?

  • @alodas663
    @alodas663 2 ปีที่แล้ว

    I have change offset for India 5.30 but the time is showing 30 minutes ahead please help?

  • @424chinimilliganesh8
    @424chinimilliganesh8 2 ปีที่แล้ว

    can i get scrolling text on this 16*32,if yes i need the code .so that i can integrate with my own project over wifi-thanks in advance

  • @supravatdas7689
    @supravatdas7689 2 ปีที่แล้ว

    I couldn't able to adjust Indian IST by changing offset to 5.30 in code the time showing 30 minutes ahead that is if time is 11.00 it showing 11.30? How to solve this problem? Please reply me?

  • @yupingliao4078
    @yupingliao4078 8 หลายเดือนก่อน +1

    Hello author, I thank you 👍very much for sharing your great clock, I have made one, in the code I will change it to Taiwan time

  • @davebeckham5429
    @davebeckham5429 6 ปีที่แล้ว +1

    Hi cbm80amiga,
    "double utcOffset =" has been changed to "float utcOffset =" in order to read the minutes.

    • @cbm80amiga
      @cbm80amiga  6 ปีที่แล้ว +1

      If you live in a country which has non integer time zone offset it will work better, but for Europe int should be enough :)

  • @fishingpals7555
    @fishingpals7555 ปีที่แล้ว

    I really liked this clock, but I discovered that the date display has problems. The time display is good, but the UTC offset is not accounted for when displaying the date (drawTime2). The code appears to fetch the time every 10 minutes, and it uses the UTC offset to display the local time properly. But the date shown will change according to GMT date only. So, if you're behind GMT time by 4 hours, the date will change at 8 PM each night (4 hours early).

    • @cbm80amiga
      @cbm80amiga  ปีที่แล้ว

      Date calculation is actually too much simplified, in Europe it works almost ok. You have to fix it when time zone offset is added.

  • @jimmybuttani3906
    @jimmybuttani3906 3 ปีที่แล้ว

    The project is working perfectly. I would just like to make a small modification. I would like the time to be displayed only on the top display and the date on the bottom display and not switch from one display to another.
    I'd love to hear from you.
    Thank you so much in the meantime

    • @cbm80amiga
      @cbm80amiga  3 ปีที่แล้ว

      You can freely change it for your needs, the code is available on my GoogleDrive

  • @davebeckham5429
    @davebeckham5429 6 ปีที่แล้ว +1

    Will you be adding the functionality of weather 👌as available in your previous projects. Many thanks.

    • @cbm80amiga
      @cbm80amiga  6 ปีที่แล้ว +1

      I don't know, probably not. Everybody can use my previous projects source code to add extra features :)

    • @AnthonyClarke1965
      @AnthonyClarke1965 6 ปีที่แล้ว +1

      I've done this, very simple reading a local DHT Sensor (not sure if you meant that!)
      github.com/anthonyjclarke/ESP_LEDMatrix_32x16_Clock_NTP_TEMP

    • @davebeckham5429
      @davebeckham5429 6 ปีที่แล้ว +1

      Changes have been done and checked. Working like charm. Many thanks Anthony Clarke.

    • @AnthonyClarke1965
      @AnthonyClarke1965 6 ปีที่แล้ว +1

      DAVE BECKHAM great to hear! I'm going to add newer sensor support. Having issues with my DHT22's. Probably fakes from eBay 😒

    • @massimilianoamore6690
      @massimilianoamore6690 6 ปีที่แล้ว

      Anthony please could you help me to setup (modify) the code to display the correct time here in Italy ? Now when I power on the clock it will show a +8 time & Date. Thanks in advance for your support.

  •  5 ปีที่แล้ว

    Hej
    Jest problem z kodem
    przy kompilacji wyskakuje
    ESP_LEDMatrix_32x16_Clock_cleaned\ESP_LEDMatrix_32x16_Clock_cleaned.ino: In function 'void updateTime()':
    ESP_LEDMatrix_32x16_Clock_cleaned:340:75: error: invalid operands of types 'double' and 'long int' to binary 'operator%'
    exit status 1
    invalid operands of types 'double' and 'long int' to binary 'operator%'
    linia 340 long epoch = round(curEpoch + 3600 * (utcOffset+summerTime) + 86400L) % 86400L;

  • @nicolassilva5341
    @nicolassilva5341 3 ปีที่แล้ว

    Hi, I wanted to use your code, but I'm using an arduino nano to display the text I want instead of a esp8266, what's the modifications I have to do to your code??
    Thanks in advance

    • @nicolassilva5341
      @nicolassilva5341 3 ปีที่แล้ว

      Because I can write text with a 32x8 matrix, but don't know how to do with a 32x16 matrix like yours

    • @cbm80amiga
      @cbm80amiga  3 ปีที่แล้ว

      You have to remove all ESP specific internet stuff, the rest should work without any changes. I assume you want to use RTC module.

    • @nicolassilva5341
      @nicolassilva5341 3 ปีที่แล้ว

      @@cbm80amiga What I want is to display the text that I want only using arduino nano without RTC module.
      For example, I want to display "Merry Christmas" on a 32x16 display

  • @jimmybuttani3906
    @jimmybuttani3906 3 ปีที่แล้ว

    Thank you for your answer but unfortunately I misspoke. I told you that the whole works well because I realized it but I wanted to make the small modification that I told you about in my previous message. I am not a programming specialist which is why I am asking for your help.
    Thank you so much

  • @ProbablePeople
    @ProbablePeople 5 ปีที่แล้ว

    Do you sell it?

  • @pixelardigital9130
    @pixelardigital9130 ปีที่แล้ว

    Hi, friend, I was testing your code and it gave me the following error: invalid operands of types '__gnu_cxx::__enable_if::__type' {aka 'double'} and 'long int' to binary 'operator%'
    -- can you help me, what was the error? Thank

    • @cbm80amiga
      @cbm80amiga  ปีที่แล้ว

      Try to use IDE 1.6.0, maybe it helps

  • @pedrossare
    @pedrossare 2 ปีที่แล้ว

    hello. great project. i wanted to try your program with arduino nano, could you give me some indication if possible? Thanks in advance

    • @cbm80amiga
      @cbm80amiga  2 ปีที่แล้ว

      For AVR Arduinos you need to use extra RTC module. There is such project on my channel too. But I don't support it anymore.

  • @pixelardigital9130
    @pixelardigital9130 ปีที่แล้ว

    Good morning, friend, your watch is great but if the watch stays at 00:00:01 and doesn't move, can you help me? I'm in Colombia where the time zone should be -5 Thank you 👍👍👍👍👍

    • @cbm80amiga
      @cbm80amiga  ปีที่แล้ว

      It seems that it doesn't read time from google.com. Time zone offset can be changed in the code.

  • @SMRaihanulHasannaheun
    @SMRaihanulHasannaheun 3 ปีที่แล้ว

    any way to increase brightness?

    • @cbm80amiga
      @cbm80amiga  3 ปีที่แล้ว

      You can change brightness in the code. By default it is set to 1 (AFAIR) - minimum value

  • @pkphone7390
    @pkphone7390 ปีที่แล้ว

    how to change the font size to match 32 x 32 display type

    • @cbm80amiga
      @cbm80amiga  ปีที่แล้ว

      You need probably different font.

    • @pkphone7390
      @pkphone7390 ปีที่แล้ว

      @@cbm80amiga thank you sir

  • @jamsjamsen644
    @jamsjamsen644 4 ปีที่แล้ว

    Arduino: 1.8.9 (Mac OS X), Board: "LOLIN(WEMOS) D1 R2 & mini,
    exit status 1
    invalid operands of types 'double' and 'long int' to binary 'operator%'

    • @menonsans
      @menonsans 4 ปีที่แล้ว +1

      Changing
      "long epoch = round(curEpoch + 3600 * (utcOffset+summerTime) + 86400L) % 86400L;"
      to
      "long epoch = fmod(round(curEpoch + 3600 * (utcOffset+summerTime) + 86400L), 86400L);"
      Results in zero compilation error. I'm yet to upload and run the code on hardware
      (had similar error on Arduino 1.8.10 (Win10)
      Update : it works fine with the above modification/change. The "%" symbol was obviously triggering the error

    • @awaisjatt1499
      @awaisjatt1499 4 ปีที่แล้ว

      @@menonsans you are the great

    • @awaisjatt1499
      @awaisjatt1499 4 ปีที่แล้ว

      plece 1 more help? how to set manually time format. for using push button. plece reply. thnx. love u

    • @awaisjatt1499
      @awaisjatt1499 4 ปีที่แล้ว

      @@menonsans and how to set 12h format

    • @menonsans
      @menonsans 4 ปีที่แล้ว

      @@awaisjatt1499 This comes from an NTP server hence I think the time will always be in 24hr format. Since I like times in this format I have not looked into changing format..

  • @AnthonyClarke1965
    @AnthonyClarke1965 6 ปีที่แล้ว

    @cbm80amiga I dont see your quoted "capacitor between VCC and GND", is this only for NodeMCU? not Wemos? Seeing some reliability issues, after a few hours LED panel blank, have to reset, so trying a 220uf across vcc and gnd now

    • @cbm80amiga
      @cbm80amiga  6 ปีที่แล้ว +1

      If you use reliable power supply I think this capacitor is not necessary but with cheap Chinese "Apple style" adapters sometimes ESP8266 resets due to lack of enough current, so extra capacitor could help. This capacitor is necessary mainly for ESP01 modules where there are almost no extra components.

    • @AnthonyClarke1965
      @AnthonyClarke1965 6 ปีที่แล้ว

      Good point, interestingly, build out on a beadboard with a cap across power, and a 1nf close to board across Vcc and Gnd (much info on internet) and as I wake this morning it has remained operating! Same PSU! When I do "final" build will include Caps!

    • @cbm80amiga
      @cbm80amiga  6 ปีที่แล้ว +1

      Is 1nF enough? Usually people use at least 100uF. With simple clock it is not crucial because even when it resets you will not notice this :) By the way - in the past I had problems with my KODI/Info display project where I used older style 8x8 matrices which were connected together using provided "dupont" cables. Issues stopped when I soldered everything together.

    • @AnthonyClarke1965
      @AnthonyClarke1965 6 ปีที่แล้ว

      Interesting, I think that may have been the issue - Dupont cables, been running 2 days now, no issue. Re Capacitor, there are 2, I've done what was suggested here : internetofhomethings.com/homethings/?p=396

  • @wksobhani
    @wksobhani 6 ปีที่แล้ว

    how to set am/pm?

    • @bluemaz6
      @bluemaz6 5 ปีที่แล้ว

      It's an internet clock, should be automatic once an internet connection has been established and the correct 'utcoffset' has been enter for your timezone.

  • @awaisjatt1499
    @awaisjatt1499 2 หลายเดือนก่อน

    Please make 12 hours formate

  • @alodas663
    @alodas663 2 ปีที่แล้ว

    how to display indian time?

    • @cbm80amiga
      @cbm80amiga  2 ปีที่แล้ว

      Change time offset in the code

  • @EnergeticWaves
    @EnergeticWaves 4 ปีที่แล้ว

    I thought esp8266 was all 3.3 and thus could not drive 5v leds

    • @cbm80amiga
      @cbm80amiga  4 ปีที่แล้ว

      MAX modules work well at 3.3 and 5V

  • @ahmadjunaedi7542
    @ahmadjunaedi7542 3 ปีที่แล้ว

    i need fonts.h library

    • @cbm80amiga
      @cbm80amiga  3 ปีที่แล้ว

      Look at my github

  • @alodas663
    @alodas663 ปีที่แล้ว

    I couldn't able to adjust Indian IST by changing offset to 5.30 in code the time showing 30 minutes ahead that is if time is 11.00 it showing 11.30? How to solve this problem? Please reply me?

    • @cbm80amiga
      @cbm80amiga  ปีที่แล้ว

      Maybe try to change time/offset variable to float.