Тёмный
No video :(

ESP8266 Internet Clock 

John Rogers
Подписаться 748
Просмотров 42 тыс.
50% 1

Stay on time! Use the ESP8266 to build an inexpensive and accurate led matrix clock!
code: github.com/K1W...
UPDATE: code has been enhanced to use NTP, thanks to contribution from Github User
lequan81
Clock now supports full setup via WifiManager! No more hardcoding wifi creds or timezone setting!

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 110   
@sidenius9112
@sidenius9112 3 года назад
Works with little effort in short time. Cool! Thanks for designing and sharing!
@MotiveRust
@MotiveRust 4 года назад
Have solved the Board Manager 2.6.3 compile issue with the updatetime() subcommand.. In the Define Vars section add the following line: int epoch; on the updatetime() function change the following line: long epoch = round( curEpoch + 3600 * ( utcOffset + summerTime ) + 86400L ) % 86400L; to the following: epoch = (long)round( curEpoch + 3600 * ( utcOffset + summerTime ) + 86400L ) % 86400L; This ino will now compile with the latest board manager for the ESP8266 and work as before.
@barnagy
@barnagy 4 года назад
THX!
@lipwoon
@lipwoon 4 года назад
Summarise all the errors and added my cosmetics changes: *[1] compiling error* _Wrong:_ long epoch = round( curEpoch + 3600 * ( utcOffset + summerTime ) + 86400L ) % 86400L; _Correct:_ long epoch = (long)round( curEpoch + 3600 * ( utcOffset + summerTime ) + 86400L ) % 86400L; *[2] Show/Hide the date display. Wished it was the same thick fonts as the clock. If anyone knows how, pls let me know.* _To show the date, remove the "//" for these 2 lines_ printStringWithShift(date.c_str(),40); delay(2000); *[3] Date change to short date.* _Long date: THU, 06 AUG 2020_ date = " "+line.substring(6, 22); _Short date: THU, 06 AUG_ date = " "+line.substring(6, 17); *[4] if you're using ICSTATION version of MAX7219 hardware (I am) then u have to change this in the file "max7219.h". Other versions of MAX7219 are FC16 and PAROLA. You will know which version you have when you experiment with the sample examples in MAX_PAROLA inside Arduino program.* _For ICSTATION hardware, inside "max7219.h"_ Change: #define ROTATE 90 To: #define ROTATE 270 *[5] There's 2 clock functions inside. showSimpleClock() is for 8x32 matrix, showAnimClock() is for 8x56 matrix while animating the seconds moving. Both will looked the same on 8x32 matrix coz the seconds got truncated.* *[6] Remove prefix "0" if hour's first digit is "0"* Change: showDigit(h/10, 0, dig6x8); To: if (h/10 > 0) showDigit(h/10, 0, dig6x8); *[7] Adjust LED intensity according to different times.* _// Adjusting LED intensity._ _// 12am to 6am, lowest intensity 0_ if ( (h == 0) || ((h >= 1) && (h =18) && (h = 13) && (h
@mrwizworks
@mrwizworks 4 года назад
Hi and thanks for your feedback. Please feel free to submit this as a pull request and I'll be happy to test it and merge it into the project. :)
@mrwizworks
@mrwizworks Год назад
Code has been updated to use NTP - link to code is in the description. Looking for further improvements: 1) set wifi credentials and utcOffset via WifiManager and set in EEPROM.
@mrwizworks
@mrwizworks 7 лет назад
Sorry for the wait folks. Code for this is now linked in the vid description. The clock uses json calls to google to get it's time which is pretty accurate. I have 2 things I would like help on from the community: 1) change time source to be NTP derived, and 2) implement the WiFiManager library so wifi credentials do not have to be stored. I didn't have time to implement those 2 things when I built/published this, but perhaps we could work together?
@ernestnagel1426
@ernestnagel1426 6 лет назад
Hi John. Where can I download the code for this clock. I am just starting out in the Arduino world .
@frodemolland6249
@frodemolland6249 5 лет назад
ftp.wizworks.net:7075/Misc%20Arduino/ESP_LEDMatrix_clock.zip
@nrmgraff97
@nrmgraff97 7 лет назад
Cool idea! (the clock), but also it's funny that i thought a while ago the same as you, about doing something like that to piss off annoying drivers , they would freak out reading things directed specifically to them :p
@mrwizworks
@mrwizworks Год назад
UPDATE: link to code in description. Just pushed the latest commit today and here are new features: No more hard coding wifi creds or timezone! You can now flash to your favorite ESP8266 board, and setup is done via WifiManager! Set Wifi and Timezone UTC offset via any wifi capable mobile device! Whole and partial hour timezones are supported!
@pavloskairis9994
@pavloskairis9994 5 лет назад
to show scroll date, uncomment lines 80,81 Line 64 setup your timezone
@mrwizworks
@mrwizworks 5 лет назад
there is a bug (somewhere) whereby the date does not properly calculate for -4 GTM and so on a late saturday night, the date will actually say "SUN" and be one day ahead. 4 hours before midnight, the date renders fine. The clock needs improvements, so I'm looking for contributors on the project. :D
@lipwoon
@lipwoon 4 года назад
@@mrwizworks I found the bug to be due to time/date was fetched from a HTTP source residing at GMT=0. If residing outside GMT=0, the date will be wrong at certain times of the day.
@mrwizworks
@mrwizworks 4 года назад
@@lipwoon please feel free to submit a pull request with a fix. I'll merge it into the code.
@lipwoon
@lipwoon 4 года назад
Something to improve next.... I setup a wireless hotspot but turn OFF the internet access. Power up the clock, clock starts up, gets connected but starts time at 8:00. It should have shown a get time error coz e.g power trip will cause the time to be wrong.
@m00st
@m00st 7 лет назад
Thanks for the nice video. Had a spare NodeMCU and a MAX7219 laying around, this will make a cool deskclock. Now I need to print a case..
@ananddhuru9580
@ananddhuru9580 7 лет назад
Or, cut out the bottom of a wine bottle and stuff the project in it.
@Dancopymus
@Dancopymus 2 года назад
I liked the Clock, but the following is happening: Often, instead of the fourth digit, that is, the second digit of the seconds, it shows a completely filled square. Could it be a matter of food? Well, I'm feeding the Display Matrix through Nodemcu and this is connected to the PC's usb port.
@yupingliao4078
@yupingliao4078 11 месяцев назад
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
@sanu7210
@sanu7210 4 года назад
fonts problem , code not compile stacked in this line #include "fonts.h", error Arduino: 1.8.12 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200" ESP8266-8x32-Matrix-clock:19:19: fatal error: fonts.h: No such file or directory #include "fonts.h" ^ compilation terminated. exit status 1 fonts.h: No such file or directory Board at COM3 is not available This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@wl11lm
@wl11lm 4 года назад
put the fonts.h archive with the .ino document. ;)
@Vagubando
@Vagubando Год назад
Can you tell me what needs to be changed or added to the sketch in order to register two access points (that is, two WiFi networks)? If one doesn 't work , will it connect to the other by itself ?
@frodemolland6249
@frodemolland6249 5 лет назад
Hmm got it running now, but its wrong with many hours :) does have to stay on for a while to update?
@adamjerzyporebski7044
@adamjerzyporebski7044 6 лет назад
Working good with nodeMCU v3, thank You.
@pascualpalacios7099
@pascualpalacios7099 8 месяцев назад
Hello, can you modify the code to add the ds18b20 sensor to show the temperature?
@perboye7390
@perboye7390 7 лет назад
great work, share the code please
@CATips
@CATips 4 года назад
Great project 🤝🤝🤝 How we can set india time accurately?
@chulmin6082
@chulmin6082 6 лет назад
Is it enough current to supply to matrix module when use usb with power source ?
@markalansmithuk
@markalansmithuk 7 лет назад
Very nice. Would you be able to share a link for the display, please? Also interested to see the source - did you find a library to render the graphics with scrolling, or write it yourself?
@mrwizworks
@mrwizworks 7 лет назад
Hi Mark, this is the display I used: www.gearbest.com/raspberry-pi/pp_391811.html?currency=USD&vip=988995&gclid=Cj0KEQjwioHIBRCes6nP56Ti1IsBEiQAxxb5G8KLSzT1MPQlIrkZbqsQMSYwr0itn3f1WpHYyVzY4ioaAsfm8P8HAQ Source code is now in the video description. Cheers.
@alnoorratansi9364
@alnoorratansi9364 6 лет назад
Great project, how many times does it fetch time from the internet ?.
@norberthartmann5075
@norberthartmann5075 6 лет назад
the best clock !!!
@jk1668
@jk1668 6 лет назад
The time is correct but date is one day ahead, how can we fix this? Thanks!
@mrwizworks
@mrwizworks 5 лет назад
looking for help on this... any volunteers? code is now on github for easy collaboration (see link in description)
@TheOsx86
@TheOsx86 6 лет назад
Would it still work, if I daisy chain another 4 matrix in?
@psrao6906
@psrao6906 5 лет назад
Sir clock is working fine but date and day must change at midnight 12.00 but it changing at morning 5.30am resolve
@mrwizworks
@mrwizworks 5 лет назад
feel free to contribute a resolution, I have shared the code on Github: github.com/K1WIZ/ESP8266-8x32-Matrix-clock
@psrao6906
@psrao6906 5 лет назад
Sir u have done copy paste. nothing has changed
@kubad53
@kubad53 3 года назад
Can you do tutorial pls? I have problem with library and program at all
@dartfrogdk
@dartfrogdk 7 лет назад
very interested in code, very nice work
@kimolieira
@kimolieira 6 лет назад
Hi friend, thank you for sharing. I downloaded your project but here is not happening the date Do you know what it can be?
@vasanthchandrasekaran907
@vasanthchandrasekaran907 11 месяцев назад
Hello how to set 12hrs
@srivatsavsadasivuni6552
@srivatsavsadasivuni6552 6 лет назад
code link in the description is not working, Kindly share the code via mail or by any other link. Thank you
@el_mario_reus
@el_mario_reus 2 года назад
hi there, you have any code for the ws2812?
@rc3d490
@rc3d490 5 лет назад
broken link. please update it.
@uliklaassen
@uliklaassen 5 лет назад
hello ... use http instead https
@mrwizworks
@mrwizworks 5 лет назад
Code is now up on github. See link in description
@hojo7258
@hojo7258 7 лет назад
Great time piece, Can I view the code please?
@jromhek2070
@jromhek2070 4 года назад
I have this problem that the actual time is 04:02 and in the matrix it shows 204 and the last digit to the right is missing ( so it is mixed numbers places and one digit is missing ) any ideas about the cause and how to fix it (any volunteers) , thanks
@jromhek2070
@jromhek2070 4 года назад
At last I found the solution : change a number inside library max7219.h file from #define ROTATE 90 to #define ROTATE 270 and turn the matrix upside down so wires to your left hand .
@lipwoon
@lipwoon 4 года назад
@@jromhek2070 You are truely a life saver. Ytd the entire day I was still searching the Github how to resolve this.
@zepultula
@zepultula 5 лет назад
Thank you
@robertrobarco5882
@robertrobarco5882 5 лет назад
long epoch = round(curEpoch + 3600 * (utcOffset+summerTime) + 86400L) % 86400L; exit status 1 invalid operands of types 'double' and 'long int' to binary 'operator%'
@mrwizworks
@mrwizworks 5 лет назад
Hi robert, go to the code link in the description and read my NOTE on the README file. The solution is there.
@steve8939123
@steve8939123 4 года назад
Hi, I am getting the same errors, did you find a solution? I did as John Rogers said and downgraded the ESP8266 board but that didn't help. I am using Arduino IDE 1.8.10
@andreaszwiersch447
@andreaszwiersch447 3 года назад
cast it with = (long) for newer IDE versions
@erykauer4039
@erykauer4039 6 лет назад
Fajny zegar. Dziękuje za polskie znaki.
@StephenMannUSA
@StephenMannUSA 6 лет назад
Would really like to see the code.
@CATips
@CATips 4 года назад
Please send code sir
@HattoKunNet
@HattoKunNet 6 лет назад
Thank you so much..
@loopymind
@loopymind 6 лет назад
could you change the URL to HTTP and not HTTPS, your sever doesn't support it
@SergioPendola
@SergioPendola 6 лет назад
ciao john, come faccio a visualizzare il fuso orario dell'italia? grazie mille
@fabriziocroce1248
@fabriziocroce1248 5 лет назад
guarda variabile UTC
@yurisullcaccori6419
@yurisullcaccori6419 5 лет назад
Ciao prova con questo float utcOffset = +2; (prima era -4)
@MMphego
@MMphego 7 лет назад
Please share code and where you got the display.
@btcsys
@btcsys 5 лет назад
Display: max7219. $8 on ebay
@nimeshchathuranga99
@nimeshchathuranga99 7 лет назад
cant download that code.its not working
@mateusz2287
@mateusz2287 6 лет назад
can you describe the pins ? Please.
@pavloskairis9994
@pavloskairis9994 5 лет назад
for nodeCMU v3 #define DIN_PIN 7 // D7 #define CS_PIN 8 // D3 #define CLK_PIN 5 // D5
@Mrdivxxx
@Mrdivxxx 8 месяцев назад
Can you add dht22 sensor in code please 😊
@mrwizworks
@mrwizworks 8 месяцев назад
The code is public, you are free to add such code yourself.
@daveschmidt132
@daveschmidt132 6 лет назад
Hi John, looks like your file server isn't working again. Can you please repost your code? Thanks.
@daveschmidt132
@daveschmidt132 6 лет назад
Nevermind, got it from the post below.
@10dragon456
@10dragon456 5 лет назад
link broken, could you update?
@gur316
@gur316 7 лет назад
Very nice project i made the clock and working fine the only thing date month and year is not showing please let me how to put the code for date month and year thanks Gur
@gibson010
@gibson010 7 лет назад
same here
@gibson010
@gibson010 7 лет назад
find the following lines in the code: printStringWithShift(date.c_str(),50); delay(2000); remove the coment // in front and you shall have the date.
@norberthartmann5075
@norberthartmann5075 6 лет назад
verry nice, // better ?? #define DIN_PIN 13 // D7 - FIX #define CS_PIN 12 // D6 #define CLK_PIN 14 // D5 - FIX
@davet2667
@davet2667 6 лет назад
Out of interest - why?
@norberthartmann5075
@norberthartmann5075 6 лет назад
in the sketch is CS_PIN 0 ... :-) ( in my version )
@nimeshchathuranga99
@nimeshchathuranga99 7 лет назад
can i have the code plz
@curiosoporlaciencia
@curiosoporlaciencia 7 лет назад
Cant download that code not working thanks.
@mrwizworks
@mrwizworks 7 лет назад
Sorry you are having trouble downloading the code. My webserver is undergoing maintenance. Try again in a few days.
@mintakhabalam
@mintakhabalam 5 лет назад
still not working
@biezom9418
@biezom9418 3 года назад
Error fonts.h Sir !
@deniker1
@deniker1 6 лет назад
still not able to get the code....
@frodemolland6249
@frodemolland6249 5 лет назад
works now if you still need it, remove S from https
@Andrewfigura
@Andrewfigura 6 лет назад
How can you change time zone, I got this working but it is 4 hours ahead!
@nelsonpapas6323
@nelsonpapas6323 6 лет назад
float utcOffset = +2; or -2 or whatever...
@HattoKunNet
@HattoKunNet 6 лет назад
Nelson Papas Date is not present in my time zone. How to solve
@kroome8
@kroome8 7 лет назад
nice ....
@AgarRafa
@AgarRafa 7 лет назад
Saludos desde Colombia.Me puedes dar el codigo por favor
@MICKAGAMER
@MICKAGAMER 6 лет назад
Code ? Link Broken ...
@HattoKunNet
@HattoKunNet 6 лет назад
Try this ( change https to http ) => ftp.wizworks.net:7075/Misc%20Arduino/ESP_LEDMatrix_clock.zip
Далее
Internet Desk Clock with ESP8266 - Without RTC
2:52
Просмотров 3,4 тыс.
ФОТОГРАФИЯ ЦЕНОЙ ЖИЗНИ
32:38
Просмотров 1,7 млн
#21 4-in-1 Matrix Uhr mit Wetter
17:16
Просмотров 49 тыс.
Clock Kit Build (#140)
41:12
Просмотров 11 тыс.
NODEMCU ESP8266 Jam digital dot matrix MX7219
5:03
Просмотров 20 тыс.
ESP8266 Led Matrix Clock, Weather, News, Bitcion
9:34