Hallo, ich hatte in der Beschreibung zu diesem Video bereits einen Link zu meiner Homepage arduino.joergeli.de/hourglass/hourglass.php eingefügt. Dort ist im Abschnitt "Software" ein Link zum Sketch "Hourglass.ino" zum Download verfügbar. Gruß Jörg
@@jorgbaumann7123 Hallo, danke für ihre Antwort. Bei klicken auf Datei öffnet sich scetch im Internet Browser und lässt sich nicht runterladen. Es tut mir leid wenn ich das nicht kann, ich bin neu bei arduino Sachen 😗
Hallo Dimitri, das ist ja auch korrekt so: Wenn der Text(Sketch) im neuen Browserfenster erscheint, den kpl. Text mit der Maus, oder Ctrl + a markieren, dann mit der rechten Maustaste, oder Ctrl + c kopieren. Vorher solltest Du bereits eine leere Textdatei auf Deinm Rechner angelegt haben, in den Du den kopierten Text dann einfügst. DiesenDatei kannst Du dann anschließend umbenennen, nach z.B. sanduhr.ino. Der Name ist dabei egal, wichtig ist nur die Endung "ino", damit sie mit der Arduino-IDE geöffnet werden kann. Gruß Jörg
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🇮🇩
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
@@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 🙏🙏🙏
@@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 🙏🙏🙏
@@haus_automation ... nicht traurig sein 😪 Das ist "historisch gewachsen", weil es den iCal-Adapter schon vor Deinem trashschedule-Adapter gab und ich mir da schon div. Scripte für geschrieben hatte. Kleines Trostpflaster: Deinen Octoprint-Adapter nutze ich dafür um so lieber 👍
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?
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 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 (month<3 || month>10) return false; // keine Sommerzeit in Jan, Feb, Nov, Dez if (month>3 && month<10) return true; // Sommerzeit in Apr, Mai, Jun, Jul, Aug, Sep if (month==3 && (hour + 24 * day)>=(1 + tzHours + 24*(31 - (5 * year /4 + 4) % 7)) || month==10 && (hour + 24 * day)<(1 + tzHours + 24*(31 - (5 * year /4 + 1) % 7))) return true; else return false; with only this line:: return true; ________________________________________ If that doesn't work, you can manually adjust the DS1307RTC one hour less. (unfortunal then you have to set the hour again every year at the dates of German daylightsavings-time beginnings and endings)
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
@@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!
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...
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!!!
Try & Error ;-) Normaly it should be 0/0, but because my touchscreen isn't balanced totaly plain, I had to fix the x and y coordinates. I marked the center of my touchscreen and altered the values until the ball stays as most as possible in the center. Notice: Also most of the other coordinates/values had been figured out with testing, altering and testing again. You unfortunaly have to find out the values for your touchscreen yourself, because even little differences of the values could have big differences in the expected figure.
@@aashirmasood8422 Me too ;-) As described on my website I have forked the two arduino-codes from this websites to my belongings: www.matheraetsel.de/ball_1.html and create.arduino.cc/projecthub/davidhamor/ball-and-plate-c48027 Probably the dead-x/-y prevent that the PIDs rock up, but I'm not sure about that. I also have only a basically understanding of the codes and have just tried it and observed the results and added a few figures, that the ball moves, in the subroutine "setDesiredPosition". In that subroutine I've tested and altered the paramaters for each! figure in many attempts, one after the other. Neverless I think, you can't use the same parameters as mine, even if you use the same touchscreen-model, because there probably are too many differences in the mechanical construction. I think, if you build your own "ball on plate" and play with the parameters ( just like me ) you will get a better understanding, which effect which parameter has. The main requirement is to find out the correct parameters for the software-PIDs. Means that on one hand the reaction on the ball-movement is fast enough and no overreaction on the other hand. ( my ball was certainly 100 times kicked of the plate ;-) Another point: The ball should not be too easy, because then the touchscreen will not recognize every postion -> the heavier, the better. Therefore my construction/code is not an "1 click solution" and everybody has to figure out his own parameters. Good luck!
@@jorgbaumann7123 yeah I understand these points. I thought there were some specific reasons behind these commands. But these are to be adjusted by hit and trial methods. I’ve adjusted rest of the parameters differently because I’m using a 7.0inch screen. By the way, thanks a lot for guiding. 💯
@@jorgbaumann7123 bro, i want to ask you that your motors were used in the same direction? Means that my one motor at 150 degree moves up while the other motor moves downwards at 150 degree. But they both are balanced at 90 degree
Did you include <Button.h> 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);
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?
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.
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
I am interested to try, there are several questions as follows: 1. When using Arduino UNO, how is the connection (Schematic diagram). 2. I only have 1 LED module MAX7219 (4 in One), can it be used and is there a change in the software (code). Please help, other things that are needed if you are pleased. Thanks. Email: ek4s.s4ke@gmail.com
Hi, 1.)Schematic of UNO is analog to Arduino Nano. You have to use the same PIN-Numbers. 2.) You also can use this Matrix, but perhaps the digits will be rotated 90 or 180 Degrees. Perhaps they will be upsight down. To correct this, you have to change the void plot- function. For more information look at the other comments here, where others have had similar problems and how they fixed it.
@@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
@@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
@@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
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.
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
@@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.
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.
@@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
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.
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.
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?
@@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.
@@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
@@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.
@@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
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 <= 7) { address = 3; } if (x >= 8 && x <= 15) { address = 2; x = x - 8; } if (x >= 16 && x <= 23) { address = 1; x = x - 16; } if (x >= 24 && x <= 31) { address = 0; x = x - 24; } if (val == 1) { lc.setLed(address, y, x, true); } else { lc.setLed(address, y, x, false); } } /////////////
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
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 <= 7) { address = 3; } if (x >= 8 && x <= 15) { address = 2; x = x - 8; } if (x >= 16 && x <= 23) { address = 1; x = x - 16; } if (x >= 24 && x <= 31) { address = 0; x = x - 24; }
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
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.
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
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.
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
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.