user33547: Okay so I did this project from Fritzing first in my circuits.io project then on the arduino itself, it all works fine just how I wanted it.
But here is what I wanted to add, as you can see when you plug the arduino in it will set the time to 00:00 and you can adjust it yourself to the time right now, let's say 12:57. Then you put in the alarm so let's say you want to sleep an hour u put the alarm on 13:57.
Is there a way to automatically get the time from the computer? So you don't have to adjust it yourself everytime and start from 00:00.
Thanks for all the help!

user1576: There are several ways, and they are covered in the comments above.

The answer to your question. Via Arduino USB to serial interface. and a simple batch file on a windows computer example:
@echo off
set datetimef=%time:~0,2%.%time:~3,2%:%time:~6,2%
echo %datetimef% > COM5

COM5 is used as a example, your serial port can be another number.
The format in the example is hour.minute:second

33547: <p>Okay so I did this project from <a href="http://fritzing.org/projects/arduino-lcd-alarm-clock" rel="noreferrer">Fritzing</a> first in my <a href="https://circuits.io/circuits/4891438-alarm-clock/" rel="noreferrer">circuits.io project</a> then on the arduino itself, it all works fine just how I wanted it.</p>

<p>But here is what I wanted to add, as you can see when you plug the arduino in it will set the time to 00:00 and you can adjust it yourself to the time right now, let's say 12:57. Then you put in the alarm so let's say you want to sleep an hour u put the alarm on 13:57.</p>

<p>Is there a way to automatically get the time from the computer? So you don't have to adjust it yourself everytime and start from 00:00.</p>

<p>Thanks for all the help!</p>
 1576: <p>There are several ways, and they are covered in the comments above.</p>

<ol>
<li><p>The answer to your question. Via Arduino USB to serial interface. and a simple batch file on a windows computer example:</p>

<p>@echo off</p>

<p>set datetimef=%time:~0,2%.%time:~3,2%:%time:~6,2%</p>

<p>echo %datetimef% > COM5</p></li>
</ol>

<p>COM5 is used as a example, your serial port can be another number.</p>

<p>The format in the example is hour.minute:second</p>
