Тёмный

Multi Mode Digital Clock 

Jörg Baumann
Подписаться 134
Просмотров 24 тыс.
50% 1

This is an Arduino driven digital clock with 6 modes of displaying the time. Even temperature is displayed.
Hardware:
4 x cheap MAX7219 Dot Matrix Modules, 1 x DS18B20 temperature sensor, 1 x DS3231 realtime-clock and 1 x Arduino Nano.
For further information take a look at my (German) page at:
arduino.joergeli.de/digiclock/...

Наука

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

 

7 ноя 2016

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 126   
@engr.hossain
@engr.hossain 5 лет назад
I was actually redirected from Nick's page, as seen your improvised clock in the comment section. Thanks, you did a massive overhaul in the entire code with addition of great features. Especially liked the LDR brightness control and digital temperature sensor portions. After read your blog post, I finally made one, with standalone AVR (Atmega328PU) in a custom made PCB. - Translated most of the German part as English, except the word clock portion. Seems, it uses different convention for representation than that of English. - Removed DST code, since not used in my geographic location. Thanks once again, for sharing your research work & code with us.
@jorgbaumann7123
@jorgbaumann7123 5 лет назад
Thanks for your comment, enjoy your clock. Jörg
@marlonragusta3645
@marlonragusta3645 3 года назад
AWESOME PROJECT!!!i build one for my table clock using nano, also added some features such as EEPROM,ALARM function and DHT22 temp interface since i do not have ds18b20 sensor, big thankss!!!
@udomsaktawonchaianon8157
@udomsaktawonchaianon8157 6 лет назад
เป็นโปรเจ็คที่ดีมาก ขอบมากเลย Good Project
@jorgbaumann7123
@jorgbaumann7123 6 лет назад
Thank you
@EvilChamber
@EvilChamber 2 года назад
exit status 1 'class DateTime' has no member named 'dayOfWeek'; did you mean 'dayOfTheWeek'?
@burhanej
@burhanej 3 года назад
Best clock ever seen on RU-vid, hatsoof I wander if you may add alarm to it
@marlonragusta3645
@marlonragusta3645 3 года назад
you can add two alarm if you are using ds3231 , simply make an alarm function then add it to the void loop
@electronicsideas1361
@electronicsideas1361 2 года назад
works fine . the problem is its vertical clock how to make it horizontal???
@pascualpalacios7099
@pascualpalacios7099 Год назад
Hello, it shows me the temperature on the screen 4 times, I want it to only appear 1 time which line I have to modify.
@davidkinuthia1052
@davidkinuthia1052 Год назад
finally its working thanks kudos
@djtur1
@djtur1 2 года назад
Hi I have ws2812b flexible rgb 8x32 dot matrix led panel. Can you make a clock video about it?
@Dancopymus
@Dancopymus 4 года назад
Very cool! I read that the Matrix you are using are the Generic ones, so they are rotated 90 degrees! Where should I change the code to use Matrix FC-16 (from ebay)? Thanks
@jorgbaumann7123
@jorgbaumann7123 4 года назад
Yes, two buttons. Take a look at arduino.joergeli.de/digiclock/digiclock.php, there you can see the circuit-plan.
@jhoncrak772
@jhoncrak772 6 лет назад
Can help you to make the code with the sensor DHT22/11 Tanks.
@telkuro9560
@telkuro9560 2 года назад
it's work very well, i am from Indonesia, good job Bro
@jorgbaumann7123
@jorgbaumann7123 2 года назад
I'm glad that it works.
@gauravshrivastava773
@gauravshrivastava773 7 лет назад
Wonderful.... It's amazing.. I will change my clock to this as soon as possible.. Can we use temp sensor with lm35?
@jorgbaumann7123
@jorgbaumann7123 7 лет назад
Gaurav Shrivastava It's possible, but I would not do that, because you have to change a lot of the code.
@pascualpalacios7099
@pascualpalacios7099 2 года назад
I have 1 MAX7219 LED module (4 in One), it comes out at 90º, which line do I have to modify the set rotation so that it comes out horizontally, can you tell me please
@jorgbaumann7123
@jorgbaumann7123 2 года назад
Please look in the comments here from Eudacio Silva and/or The Hoss.
@pascualpalacios7099
@pascualpalacios7099 2 года назад
Hello, thank you Jörg Baumann and Eudèco Silva for sharing your information.
@vicesde
@vicesde 7 лет назад
Hello, the temperature sensor DS18B20 could be changed by a DHT 22? Thank you.
@jorgbaumann7123
@jorgbaumann7123 7 лет назад
Victor M. Estefano Defrias Hi Victor, I think it's possible to use the DHT22, because it uses only one pin at the arduino. Of course you have to alter my sketch in the section "char measure_Temp()". For example, a sketch for the DHT22 you can find at: fluuux.de/2012/10/arduino-temperatur-und-luftfeuchtigkeit-mit-dem-dht22-prufen/
@jorgbaumann7123
@jorgbaumann7123 5 лет назад
@Ady Sos Hi, unfortunaly I don't have his sketch. But surely you can find similar sketches on the internet. Simply search for "arduino DHT22". Jörg
@GSDHANI
@GSDHANI 3 года назад
@@jorgbaumann7123 this site does not exists
@jorgbaumann7123
@jorgbaumann7123 3 года назад
@@GSDHANI That was not my site, it was only an example, how to read the DHT22 with Arduino. There are lots of other DHT22 example sites on the net, use a search engine.
@eudeciosilvaOficial
@eudeciosilvaOficial 5 лет назад
Hello. I have assembled this project, and the text inverted. I need to rotate the text 90 degrees counterclockwise. You could help me? thank you.
@jorgbaumann7123
@jorgbaumann7123 5 лет назад
Hi, please look at the comment from "The Hoss". He had also a problem, but with 180 degrees rotated chars He fixed it -> look at his modification-code. Perhaps it also helps with your 90 degrees problem? Jörg
@eudeciosilvaOficial
@eudeciosilvaOficial 5 лет назад
@@jorgbaumann7123 Thanks for answering me. I made the suggestions of "The Hoss" and did not solve my problem. I also looked at various suggestions from others on the blog and also did not solve. I would like to send a photo of the display, to see if you could help me. My email is eudeciogs@hotmail.com. Thank you.
@eudeciosilvaOficial
@eudeciosilvaOficial 5 лет назад
I solved the display problem. I changed the display order to 3.2,1,0 and changed the line lc.setLed (address, 7-y, x, true). Normalized, I will now see why the temperature is wrong is undercutting -127 ° C. I use the DS3231.
@jorgbaumann7123
@jorgbaumann7123 5 лет назад
@@eudeciosilvaOficial Hi, glad to hear, that you solved it. Problem occured, because there are different types of MAX72xxx-modules on the market. When DS18B20 shows -127 degrees, will mean, there is a problem with the connection to sensor. Please check your wiring to the sensor. Jörg
@eudeciosilvaOficial
@eudeciosilvaOficial 5 лет назад
I forgot to mention that I do not have the DS18B20 sensor, I'm only using the DS3231. I will study your program to change the temperature for this sensor, Eudecio.
@qsdrfghgujfddyffguff
@qsdrfghgujfddyffguff 4 года назад
Joergeli clock mirror image I did many changes but mirror display .pls tell me code changes
@jorgbaumann7123
@jorgbaumann7123 4 года назад
You probably are using other Matrix-Modules than mine. Please read the comments here, where other users have similar problems ( rotated 90 degrees, rotated 180 degrees, etc.) Perhaps the answer (and code) from The Hoss (2 years ago) can solve your problem?
@kypsalmon4203
@kypsalmon4203 4 года назад
I finish work many thanks ^^
@jorgbaumann7123
@jorgbaumann7123 4 года назад
You are welcome
@qsdrfghgujfddyffguff
@qsdrfghgujfddyffguff 4 года назад
90 degrees to 180 pls
@bosnahercegovina
@bosnahercegovina 6 лет назад
Where I can buy this clock? It's looking amazing by the way.
@jorgbaumann7123
@jorgbaumann7123 6 лет назад
Bosna Hercegovina Sorry, but there is no shop where you can by the clock. You can only do it yourself, if you are familar with Arduino. Take a look at my (german) Homepage, there is a description: arduino.joergeli.de/digiclock/digiclock.php
@manotoshjana6353
@manotoshjana6353 3 года назад
Approx price rates
@pascualpalacios7099
@pascualpalacios7099 2 года назад
I have a problem with the clock, it shows me an hour of +, I make the adjustment DS1307rtc set time, how can I solve it
@jorgbaumann7123
@jorgbaumann7123 2 года назад
In Germany we have daylight saving time at the moment, which means 1 hour is added. If in your country there is no DST, remove the DST-code from the sketch.
@pascualpalacios7099
@pascualpalacios7099 2 года назад
@@jorgbaumann7123 Hi, I'm from Spain. It should work. Can you tell me which line I have to modify?
@jorgbaumann7123
@jorgbaumann7123 2 года назад
@@pascualpalacios7099 It's long ago, since I made the sketch ;-) So I'm not shure, if this simple workaround works: Replace all! the code from line 2415 to 2424: // European Daylight Savings Time calculation by "jurs" for German Arduino Forum // input parameters: "normal time" for year, month, day, hour and tzHours (0=UTC, 1=MEZ) // return value: returns true during Daylight Saving Time, false otherwise { if (month10) return false; // keine Sommerzeit in Jan, Feb, Nov, Dez if (month>3 && month=(1 + tzHours + 24*(31 - (5 * year /4 + 4) % 7)) || month==10 && (hour + 24 * day)
@barot67
@barot67 Год назад
Hello, I have the same problem +1 HOUR...Did you resolve it?. How?..Thank you
@soumojitash3972
@soumojitash3972 7 лет назад
I have a tried the nick's led code and its working, but I when I try your code the the matrix not display it properly, I change something in nicks code to work for me, so I do change in the plot section of you code, but still i get mirrors display, pls hlp, by the way I have the $ connected modules
@jorgbaumann7123
@jorgbaumann7123 7 лет назад
Hi, perhaps this problem occurs, because there are different matrix-modules available at the market? In Nick's blog there is a notice about this: This is most likely because you don’t have the exact matrix modules from IC Station. Other modules from eBay can be wired up differently, so the LED’s are in a different order. You can usually fix things by tinkering with the function “plot” in the code. Look for the comment “plot a point on the display” and the line starting “void plot”. Switch the x and y in the 2 lines that start ” lc.setLed(address, y, x, true ); and lc.setLed(address, y, x, false);”. This will plot the pixels 90 degrees around.
@soumojitash3972
@soumojitash3972 7 лет назад
Jörg Baumann I make it work by just removing a line from plot, i have translated most of moth and days but 8 cant translate the word clock can you have eng version of code
@jorgbaumann7123
@jorgbaumann7123 7 лет назад
Soumojit Ash I'm sorry, I have no english version of the word-clock-mode, but I think, it's not so different to translate it in the sketch. There are only some "words" in the code: F-NF = five, ZEHN = ten, VIERTEL = a quarter, VOR = before, NACH = past, HALB = half.
@soumojitash3972
@soumojitash3972 7 лет назад
Jörg Baumann I will try to translate
@azizulhaque7867
@azizulhaque7867 5 лет назад
@@soumojitash3972 Dear bro. I have same problem of 90° rotation. Can you tell me which line should be remove to correct it?
@dwiprasetyo9003
@dwiprasetyo9003 Год назад
how do you make it from scratch, it's very good,, let try bro
@acocrw5808
@acocrw5808 7 лет назад
hi my friend :) ı uploded your project but matrix wrong run. it looking vertical ?
@jorgbaumann7123
@jorgbaumann7123 7 лет назад
Hi, seems, you are using other matrixes than mine. Take a look at 123led.wordpress.com/mini-led-clock/ The problem of vertical/horizontal is addresed in the comments.
@federicoferrara125
@federicoferrara125 4 года назад
Hello after compiling me from 'BUTTON _PULLUP was not declared in this scope. What should I do? I installed all the libraries.
@jorgbaumann7123
@jorgbaumann7123 4 года назад
Hi, do you really have included the button-library: #include ? Attention: Case-Sensitive : button.h is not Button.h !
@federicoferrara125
@federicoferrara125 4 года назад
I had already installed Button by Adams Michael. Okay? I wait for an answer thanks.
@jorgbaumann7123
@jorgbaumann7123 4 года назад
@@federicoferrara125 Hmmm..., no one reported this problem before. Perhaps it is because I use a button-library by Alexander Brevig (as added on my website)? If you have not made any modifications to the sketch, unfortunal I have no further ideas, why it's not compiling well. Sorry Jörg
@federicoferrara125
@federicoferrara125 4 года назад
@@jorgbaumann7123 Now I delete the other Button libraries and insert the Alexander Breving one, in fact I ask you to send me the link to this library. Thanks, bye
@jorgbaumann7123
@jorgbaumann7123 4 года назад
@@federicoferrara125 Does the sketch compile now? You can either download the button-library from the bottom of my web-page : arduino.joergeli.de/digiclock/digiclock.php ---> Button.zip or from github.com/t3db0t/Button
@svenl573
@svenl573 Год назад
Hi Jörg, danke für diese Super Uhr. Ich wollte sie jetzt mit 8 Displays betreiben (2x 4in1 MAX7219) bekomme es aber nicht zum laufen. //sets the 3 pins as 12, 11 & 10 and then sets 4 displays (max is 8 displays) LedControl lc = LedControl(12, 11, 10, 8); Ich habe 8 für die Anzahl der Display's eingesetzt, aber die zusätzlichen 4 Display's zeigen nichts an. Muss ich noch etwas ändern damit es mit 8 Display's läuft ? Hi Jörg, thanks for this great watch. I wanted to run it now with 8 displays (2x 4in1 MAX7219) but can't get it to work. //sets the 3 pins as 12, 11 & 10 and then sets 4 displays (max is 8 displays) LedControl lc = LedControl(12, 11, 10, 8); I put 8 for the number of displays, but the additional 4 displays show nothing. Do I have to change something to make it work with 8 displays?
@jorgbaumann7123
@jorgbaumann7123 Год назад
Sorry, das mit "max is 8 displays" ist noch ein Überbleibsel aus meiner Testphase. Somit nur 4 Displays, oder "works as designed" ;-)
@azizulhaque7867
@azizulhaque7867 5 лет назад
Hello Sir, it's a nice clock, I want to build like this one. When I compile the scratch it shows so many errors like this: 153 3: use of undeclared identifier "wire1", 165 18:use of undeclared identifier "intro", like this "small", "basic", word_clock ... Please help me what can I do, I don't change your scratch.
@jorgbaumann7123
@jorgbaumann7123 5 лет назад
Hi, I do not know, what's going wrong, because many other had build this clock, without getting any errors while compiling the sketch. Perhaps it depends of the Arduino-IDE, you are using. I compiled it with Arduino-IDE V 1.6.7. Perhaps you did not download all the necessary libraries (Wire.zip, Rtclib.zip, etc.) and put them in the right folder?
@azizulhaque7867
@azizulhaque7867 5 лет назад
@@jorgbaumann7123 Thanks bro. Finally I can make it. You are right when I use Arduino 1.6.5 it show no errors. But it is showing vertically. I can not make it 90° rotation by changing in Plot. I have seen your comments how to change in Plot.
@jorgbaumann7123
@jorgbaumann7123 5 лет назад
@@azizulhaque7867 Hi, look at the comments from Eudecio Silva, he had also a 90degree rotation problem. He described his solution to fix it in his comments. Perhaps this will also help you? Jörg
@eudeciosilvaOficial
@eudeciosilvaOficial 5 лет назад
Excelete trabalho. Parabéns.
@drewizaiah4030
@drewizaiah4030 3 года назад
I know I'm quite off topic but do anybody know of a good site to stream new movies online ?
@gabrielhugo7
@gabrielhugo7 3 года назад
@Drew Izaiah I would suggest FlixZone. Just search on google for it =)
@d-creative09
@d-creative09 5 лет назад
why is the clock upside down
@jorgbaumann7123
@jorgbaumann7123 5 лет назад
Because you use other modules than mine. Take a look at the other comments, where rotation problems (90degrees, 180 degrees, etc.) has been solved.
@muhammadismailmehtab
@muhammadismailmehtab 3 года назад
BUTTON_PULLUP WAS NOT DECLARED IN THIS SCOPE ===ERROR MASSAGES
@jorgbaumann7123
@jorgbaumann7123 3 года назад
Did you include Library from Alexander Brevig ? Attention: Case Sensitive Do you have those 2 lines in the code (also Case Sensitive): Button buttonA = Button(2, BUTTON_PULLUP); Button buttonB = Button(3, BUTTON_PULLUP);
@virendersingh6027
@virendersingh6027 2 года назад
100% Working.
@aamirusman6254
@aamirusman6254 Год назад
it gives error compiling board for arduino nan0
@jorgbaumann7123
@jorgbaumann7123 Год назад
What errors? Please describe errors, which occurs while compiling.
@radharodge8475
@radharodge8475 8 месяцев назад
Good clock
@DrTRonik
@DrTRonik 5 лет назад
Awesome project! Thank you so much... And whoever that use "FC16" hardware ; must change void plot function like this: --- void plot (byte x, byte y, byte val) { //select which matrix depending on the x coord byte address; if (x >= 0 && x = 8 && x = 16 && x = 24 && x
@marlonragusta3645
@marlonragusta3645 3 года назад
big thanks it help me out in my display since i am using fc16
@DrTRonik
@DrTRonik 3 года назад
@@marlonragusta3645 👍
@TheHoss4145
@TheHoss4145 6 лет назад
Hallo Jörg, super Sache. Ich hatte auch das Problem, dass mit einer 8x32 Amazon Matrix alles durcheinander war. Ich hab gesehen, dass Du die Segmente um 180 Grad gedreht hast. Leider hatte ich Deine Webseite zu spät gefunden und den Code dahingehen geändert, dass ich die Segmente in umgekehrter Reihenfolge ansteuere. Somit musste ich die Matrix dann auch nicht auf den Kopf stellen :) //select which matrix depending on the x coord byte address; if (x >= 0 && x = 8 && x = 16 && x = 24 && x
@jorgbaumann7123
@jorgbaumann7123 6 лет назад
Hallo Hoss, ja, es gibt einige, die die Uhr nachgebaut haben, sogar aus Indien und Vietnam :-) Manchmal gab es ebenfalls Probleme mit der Darstellung. Abhängig von den verwendeten Segmenten war die Darstellung mal um 90 Grad, mal um 180 Grad gedreht, oder sogar spiegelverkehrt. Meistens konnten wir es über eine Anpassung des Sketches lösen, aber Du hast ja bereits selbst eine Lösung gefunden. Gruß Jörg
@nuryanto2912
@nuryanto2912 8 месяцев назад
I like the clock😍 and I ask permission to use the program code, If allowed, we will make a video to upload on RU-vid Thank you....🙏 Greetings🤝from Indonesia🇮🇩
@jorgbaumann7123
@jorgbaumann7123 8 месяцев назад
Of course you can use the code, therefore Inuploaded it😊 If you probably get trouble with the direction of the numbers (upside down, rotated 90 degree, etc.), look in the comments here, other guys have posted solutions for that. It's because of the different LED-Modules, that are available. Have fun Jörg
@nuryanto2912
@nuryanto2912 8 месяцев назад
@@jorgbaumann7123 First of all, thank you very much for your response🙏..., I will try it and am currently still waiting for the arrival of the temperature sensor order😁 May you always be healthy and successful 🙏🙏🙏
@nuryanto2912
@nuryanto2912 8 месяцев назад
​@@jorgbaumann7123 I have implemented the program code and it is successful, and I have also made a video which I have also uploaded on RU-vid😁🙏 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VqxAX1NNawo.htmlsi=5SN71bc-4CYDjpEL Once again, thank you very much for everything🙏 May you always be healthy and successful 🙏🙏🙏
@hemantmundhe6662
@hemantmundhe6662 5 лет назад
Wonderful clock and work very well.I will changed your Germany language month and day but week number and name not accurate please help me sir.
@jorgbaumann7123
@jorgbaumann7123 5 лет назад
Hi, what do you mean? German "Woche" is "Week" and the number is the the week-number in the year - for example: on January, 3rd, we have week 01.
@hemantmundhe6662
@hemantmundhe6662 5 лет назад
@@jorgbaumann7123 First thanks to replaying sir.problem is clock show always sunday not to change next day hi always steel Sunday.and week number change in week 4th day.
@jorgbaumann7123
@jorgbaumann7123 5 лет назад
@@hemantmundhe6662 Hi, First you can try to turn "debug" on (1). Then you can see the output in the Arduino serial console. Have a look at "wochentag" and "Tag" x "in Woche" ( day in week). Second: check, if you also translated char monthnames [12] [4] in subroutine void display_date ate () correct. If that doen't help at all, load my original (german) sketch once again and check, if there day and week are displayed correct. If so, something must be wrong with your translation to english. Unfortunal I have no further ideas. Greetings Jörg
@hemantmundhe6662
@hemantmundhe6662 5 лет назад
@@jorgbaumann7123 Thanks Aegean for replay.I will try to your original program and accurately change the language.thanks ones again sir.
@hemantmundhe6662
@hemantmundhe6662 5 лет назад
@@jorgbaumann7123 All done changes and language.clock work very well.thanks for supporting.
@marlonragusta3645
@marlonragusta3645 3 года назад
quick share: if you are using dht22//11 instead of ds18b20 add this in your sketch: delete or comment first all ds18b20 related stuff then add this: #include "DHT.h" #define DHTPIN 4 // connect any pin in arduino board you are using i am using d4 #define DHTTYPE DHT22 DHT dht(DHTPIN, DHTTYPE); dht.begin(); //add this inside void setup then find this function: char measure_temp() add this inside: float TempC = dht.readTemperature(); //this is for dht22 ,old one is for ds18b20 sensor replace the old value of float Tempc with new one Hit compile if error occurs check if there are still ds18b20 stuff , comment them or delete! thank me later...
@qsdrfghgujfddyffguff
@qsdrfghgujfddyffguff 4 года назад
Libs not adding
@jorgbaumann7123
@jorgbaumann7123 4 года назад
What do you mean? Are there compiling-errors? Have you downloaded the libraries from the bottom of my site and extracted them to the libraries-folder in your arduino-ide? A little more explanation of your problem would be helpfull for me as well for others, who probably would like to help.
@electronicsideas1361
@electronicsideas1361 3 года назад
MANY errors
@jorgbaumann7123
@jorgbaumann7123 3 года назад
??? What and where are errors?
@electronicsideas1361
@electronicsideas1361 3 года назад
@@jorgbaumann7123 fontDigiClock.h: No such file or directory SIR CAN YOU SEN ME HEX CODE SO I CAN UPLOAD AND TEST
@jorgbaumann7123
@jorgbaumann7123 3 года назад
@@electronicsideas1361 At the end of my German WebPage ( arduino.joergeli.de/digiclock/digiclock.php ) are all necessary files (sketch, libraries, etc.) included for download. Also fontDigiClock.h is included in fontDigiClock.zip. This fontfile contains special characters for German language. In the zip-file there is also a font-file called fontDigiClock_orig.h which contains English caracters. If you want to use the English fonts, you have to rename the file fontDigiClock_orig.h to fontDigiClock.h (case sensitive!). This file you have to save in your sketch-folder, beneath the digi_clock.ino. The third file in the zip-file zahl_0.txt is only an example for zero-character with/without a dash and you don't need it for the sketch. The other zip-files on my page are containing the necessary libraries, which you also have to extract and save them in your Ardino libraries-folder!
@electronicsideas1361
@electronicsideas1361 3 года назад
@@jorgbaumann7123 THANXS I TRY AND REPLY
Далее
Good Looking Digital Clock
15:11
Просмотров 59 тыс.
Arduino-Based Real-Time Clock
2:56
Просмотров 2,4 тыс.
LED Clock Final Build
4:21
Просмотров 14 тыс.
GEEKCREIT DIY DS3231 DOT MATRIX CLOCK KIT
3:55
Просмотров 24 тыс.
Arduino Clock with Matrix Display
12:36
Просмотров 22 тыс.
Scrolling clock using MAX7219 and DS3231 RTC
3:07
Просмотров 6 тыс.
How To Make Digital Clock
15:11
Просмотров 88 тыс.
Choose a phone for your mom
0:20
Просмотров 7 млн
Choose a phone for your mom
0:20
Просмотров 7 млн
Samsung laughing on iPhone #techbyakram
0:12
Просмотров 433 тыс.