Arduino Forum

Using Arduino => Programming Questions => Topic started by: Suny94 on Jul 18, 2019, 02:45 pm

Title: Help with arduino 7 segment rtc clock
Post by: Suny94 on Jul 18, 2019, 02:45 pm
The code is ok. Its running as expected. But i need one more thing. I want to show days like sat, sun, mon etc. But  I don't understand where & how to start.
Title: Re: Help with arduino 7 segment rtc clock
Post by: GolamMostafa on Jul 18, 2019, 02:49 pm
What type of display do you want to use to display your time of the day and the day of the week? Is it 7-segment or Dot-matrix?
Title: Re: Help with arduino 7 segment rtc clock
Post by: Delta_G on Jul 18, 2019, 03:36 pm
Please read this first. (https://forum.arduino.cc/index.php/topic,148850.0.html)

By attaching your code and not posting it, you've basically cut off most of your help as people on mobile devices can't see it.  It would be far smarter to post the code the way they describe in the forum instructions. 

You did read the instructions didn't you?  You didn't just plop down and skip that did you?  You know, that's what separates those who will succeed at coding and electronics from those who won't.  The ones who succeed are the type who aren't afraid to read the directions first.  In this hobby it can be really important. 

Matter of fact, I bet if you read the documentation for the Time library you'd find out that your problem is already mostly solved.  All you have to do is figure out how to print that number to your display, which if you've build a clock already should be trivial. 
Title: Re: Help with arduino 7 segment rtc clock
Post by: Suny94 on Jul 18, 2019, 04:03 pm
What type of display do you want to use to display your time of the day and the day of the week? Is it 7-segment or Dot-matrix?
7 segment
Title: Re: Help with arduino 7 segment rtc clock
Post by: Suny94 on Jul 18, 2019, 04:08 pm
Please read this first. (https://forum.arduino.cc/index.php/topic,148850.0.html)

By attaching your code and not posting it, you've basically cut off most of your help as people on mobile devices can't see it.  It would be far smarter to post the code the way they describe in the forum instructions. 

You did read the instructions didn't you?  You didn't just plop down and skip that did you?  You know, that's what separates those who will succeed at coding and electronics from those who won't.  The ones who succeed are the type who aren't afraid to read the directions first.  In this hobby it can be really important. 

Matter of fact, I bet if you read the documentation for the Time library you'd find out that your problem is already mostly solved.  All you have to do is figure out how to print that number to your display, which if you've build a clock already should be trivial. 
Code is too big to post here
Title: Re: Help with arduino 7 segment rtc clock
Post by: GolamMostafa on Jul 18, 2019, 06:39 pm
7 segment
Then --
(https://forum.arduino.cc/index.php?action=dlattach;topic=627000.0;attach=316882)


Are you ready to accept it? If not, use dot-matrix led.
(https://forum.arduino.cc/index.php?action=dlattach;topic=627000.0;attach=316884)
Title: Re: Help with arduino 7 segment rtc clock
Post by: Suny94 on Jul 19, 2019, 06:07 am
Then --
(https://forum.arduino.cc/index.php?action=dlattach;topic=627000.0;attach=316882)


Are you ready to accept it? If not, use dot-matrix led.
(https://forum.arduino.cc/index.php?action=dlattach;topic=627000.0;attach=316884)
i know that but i need help on coding.
Title: Re: Help with arduino 7 segment rtc clock
Post by: odometer on Jul 19, 2019, 06:16 am
Well, for starters, you will need some way of knowing the day of the week.
Here is a whole thread about that:
https://forum.arduino.cc/index.php?topic=198103.0 (https://forum.arduino.cc/index.php?topic=198103.0)
Title: Re: Help with arduino 7 segment rtc clock
Post by: GolamMostafa on Jul 19, 2019, 06:39 am
How do you want to drive your multiplexed 9-digit (6-digit for time and 3-digit for day) CC7SD Unit? Is it a direct port driven or through MAX7219 chip? Please, show/post your diagram. You need to do some works so that we can add with that or you can enlarge/modify them based on the feedback of the forum members.
Title: Re: Help with arduino 7 segment rtc clock
Post by: odometer on Jul 19, 2019, 08:00 am
How do you want to drive your multiplexed 9-digit (6-digit for time and 3-digit for day) CC7SD Unit?
From a quick look at the code, it seems that the display only has 4 digits, and it is multiplexed directly by means of the Arduino pins. Also, the code itself seems to imply that a common cathode display is being used, though a comment within that code suggests that it is common anode.