Is it possible to change the code so that the clock 7-segment display brightness will reduce from 10:00 pm to 7:00 AM? How will the clock set the brightness AUTOMATICALLY to a low level at night time? Thanks.
No, in this scenario it is not possible. Because, the anodes of the seven segment leds are not nonnected to separate gpios. We are switching each seven segment display one by one for some milli seconds. It is switching so rapidly that that human eyes interpret it a constant display. If the leds are connected to separate pwm enabled gpios the we might have controlled their brightness through pwm.
I am trying to make your clock on breadboard. Already transferred the code to an Atmega IC. Connected a DS3231 and applied 5V to the circuit. Attached an led to the pin 15 as dot connection. The dot led flushes well. However, the piezoelectric buzzer connected with pin 3 is always high (active) and making sound. This sound should come out only when the alarm is activated or switches pressed. Do you have any idea why is the buzzer continuously sounding? Thanks.
@@shivamkurzekar1732 Thanks for your quick reply. Your code length is not short.. I have to find a suitable position in your code to insert the above statement.. I need a 12-hour clock. Because the clock has alarm feature, probably I have to add the new code line in several places.
Very nice project
Is it possible to change the code so that the clock 7-segment display brightness will reduce from 10:00 pm to 7:00 AM? How will the clock set the brightness AUTOMATICALLY to a low level at night time? Thanks.
No, in this scenario it is not possible. Because, the anodes of the seven segment leds are not nonnected to separate gpios. We are switching each seven segment display one by one for some milli seconds. It is switching so rapidly that that human eyes interpret it a constant display. If the leds are connected to separate pwm enabled gpios the we might have controlled their brightness through pwm.
@@shivamkurzekar1732 I understand your explanation. Thanks.
I am trying to make your clock on breadboard. Already transferred the code to an Atmega IC. Connected a DS3231 and applied 5V to the circuit. Attached an led to the pin 15 as dot connection. The dot led flushes well. However, the piezoelectric buzzer connected with pin 3 is always high (active) and making sound. This sound should come out only when the alarm is activated or switches pressed. Do you have any idea why is the buzzer continuously sounding? Thanks.
display of common cathode or common anode?
Common Cathode
@@shivamkurzekar1732 thx u! Another thing, what is the time zone displayed?
@@electronicacc9176 It is set to 24 hours format.
@@electronicacc9176 Independent of any particular time zone. You can set your time with the buttons.
Thanks for presenting a nice project. Is this a 24 0r 12 hour clock?
It is set to 24hr format.
@@shivamkurzekar1732 How can I set it to 12-hour clock? Do I need to change the code? Thanks.
@@asadulhuq just add this code snippet.
hour = (hour==0)? 12 : (hour>12)? hour-12 : hour);
@@shivamkurzekar1732 Thanks for your quick reply. Your code length is not short.. I have to find a suitable position in your code to insert the above statement.. I need a 12-hour clock. Because the clock has alarm feature, probably I have to add the new code line in several places.
@@asadulhuqadd the line just after retrieving current hour value.
Circuit diagram
Provided in instructable (link in description).