Professional Documents
Culture Documents
Astronomical Clock
Description:
Calculates sunrise time and sunset time based on current date and user location.
Arguments:
Astronomical Clock 1
Astronomical_Clock_for_Micro800
System Description:
The diagram above shows a lighting control system. The purpose of this sytem is turn on and off the light
automatically in order to save energy. The lighting will turn off automatically when sunrise. Meanwhile,
when sunset, the lighting will turn on automatically.
The diagram above is a function block diagram shows the sample code for lighting control system using
astronomical clock. The diagram contains one pre-defined function block "Astronomical Clock" and one user
defined function block "Lighting Control".
For "Lighting Control" user defined function block, it is used to control output based on the sunrise and
sunset time. OP1 will turn on when sunrise and turn off when sunset. Meanwhile, OP2 will be oppositve with
OP1, OP2 will turn on when sunset and turn off when sunrise.
This function block can be used to read key status on the optional LCD module then give input to the
astronomical clock and display the current time, sunrise and sunset time on the optional LCD module. Note:
This function is supported by the Micro810 controller only.
Arguments:
References
Sunrise Equation - Wikipedia, the free encyclopedia
NOAA Improved Sunrise/Sunset Calculation
References 3