I needed a lighting control timer for a project. The lighting (a sign) had to switch on after dark. Usually, people just install a photocell switch for this, but it has its drawbacks. I decided to tackle the problem with a special timer.
These specialized switches are also called astro timers. An astro timer is essentially a regular timer, but one that tracks the sunrise and sunset cycles. Since sunrise and sunset times vary with latitude, these timers let you set the latitude. The microcontroller has a table of sunrise and sunset times, which it uses to determine the times based on the day and month.
As I mentioned at the very beginning, the simplest use for this device is switching on lights at night. You can install a photocell switch, which usually costs less, but it has its drawbacks: The photosensor has to be installed outdoors. You have to keep an eye on the photosensor (if it gets dirty, the lights will stay on during the day). If stray light hits the sensor, the lights won't come on when needed. You can't set the lights to switch off automatically when they're not needed. You can't switch the lights on earlier or later than the ambient light level would normally trigger them.
The astro timer avoids all these drawbacks.
At first, I was going to build a timer like this myself—or rather, not entirely by myself, but with help from a programmer friend. We'd already worked out the interface and I'd drawn up the circuit, but then I thought: wouldn't it be easier to just buy one? It turned out that alongside the branded devices, which are quite expensive, there are also Chinese ones you can find on AliExpress. I ordered them, paid, and received them.
A few photos of the packaging. Nothing special: it was packed neatly. More details under the spoiler.
As I mentioned, I ordered two of these timers. They were packed well enough, and nothing was rattling around.
What Is an Astro Timer, or Another Useful Little Gadget.
Each timer was also packed in its own small box.
What Is an Astro Timer, or Another Useful Little Gadget.
The package includes the timer itself and its manual. That's all, and really, there's nothing else you need.
What Is an Astro Timer, or Another Useful Little Gadget.
The manual is in English and has lots of pictures. But when I searched online, I could only find a brochure in English and a manual in Spanish. Just in case, I uploaded them to my Yandex Disk — link. When I first started figuring out the settings, I spent a long time trying to understand the manual's instructions. The Spanish manual was a big help; I translated parts of it with Google Translate, and after that everything went smoothly.
What Is an Astro Timer, or Another Useful Little Gadget.
What Is an Astro Timer, or Another Useful Little Gadget.
The side has a diagram showing the terminal assignments and a quick guide to switching the output control modes.
What Is an Astro Timer, or Another Useful Little Gadget.
More about the connections. The timer contains a relay with one changeover contact set. Power is supplied to terminals A1 and A2. The timer is designed to be connected to a 220–230 V mains supply, but it can easily be modified to run on 24 V (a version for this voltage is also available). The diagrams show a jumper between terminals 3 and 4, but you should not install it—these terminals perform a full reset of the device (including the time and so on). The output contacts should be self-explanatory.
What is an astro timer, or another useful little gadget.
What is an astro timer, or another useful little gadget.
There is a standard DIN rail mount on the bottom.
What is an astro timer, or another useful little gadget.
The timers look quite neat. I don't know whether this is an original or a clone of a better-known timer with the same name, made by the better-known company chint-electric, but I certainly have no complaints about the appearance.
What is an astro timer, or another useful little gadget.
The front panel has an LCD, an LED indicating the output status, and five control buttons. From left to right: MD — lock/unlock the device and select the mode. R — turn the display on/off, reset a parameter, and act as a function key together with the MD button. < — select the parameter to set Down — decrease the selected parameter Up — increase the selected parameter.
What is an astro timer, or another useful little gadget.
The display has quite a few different symbols, but not all of them are actually used. There is no day-of-the-week indicator, for example; I suspect this display is used in some other timers from the same manufacturer.
What is an astro timer, or another useful little gadget.
The timer is a standard two-module size for a DIN rail. The manufacturer's drawing gives the dimensions in more detail.
In reality, the dimensions match the datasheet exactly.
What is an astro timer, or another useful little gadget.
What is an astro timer, or another useful little gadget.
What is an astro timer, or another useful little gadget.
I couldn't resist taking it apart, since there are only two cases when I don't disassemble electronics: The device can't be taken apart, or there's a chance I won't be able to put it back together. Someone stole my website password and I'm not the one writing the review :)
The timer is very easy to take apart, much easier than to set up (or rather, easier than the way I initially tried to set it up). First, use something thin and sharp to pry open the two clips on one side, gently separate the two halves of the case, then repeat on the other side. After that, the case comes apart into two halves.
What is an astro timer, or another useful little gadget.
The electronics inside aren't fastened in place. The large board is held down by the case itself, while the small one is held by four posts that are part of the lower half of the case. The device itself consists of two boards. The board with the controller and display—the device's “brains,” so to speak. The board with the relay, connectors, battery, power supply circuit, and auxiliary components.
What is an astro timer, or another useful little gadget.
A plastic frame covers the top of the small board and also protects the LCD from damage. It's well made and quite sturdy. The board fits snugly in place, so I think it'll keep dust out without any problems.
What is an astro timer, or another useful little gadget.
All the timing is handled by an 8-bit microcontroller that also has an RTC (real-time clock) built in. I found the datasheet by searching for the part number: ht49ra1 The soldering isn't perfect, but it's quite good.
What is an astro timer, or another useful little gadget.
As I mentioned above, the second board has the connectors, relay, battery, and so on. The small board connects via a four-wire ribbon cable. The contacts are labeled.
What is an astro timer, or another useful little gadget.
As I mentioned earlier, it's easy to modify the device to run on 24 V. All you need to do is short out the yellow capacitor on the left. By the way, it has no markings whatsoever. You can supply it with either 24 V AC or DC; it works the same either way.
What is an astro timer, or another useful little gadget.
The board has a relay rated for 16 A. But since relay ratings are often somewhat optimistic, I wouldn't use it at currents above 10 A. You can see a lithium battery below the relay. The description said it was a rechargeable battery with a runtime of about 60 days (if I understood the instructions correctly). In fact, it's a primary battery, and the units ran without any problems for six months in standby while waiting to be installed (that's just how things worked out).
What is an astro timer, or another useful little gadget.
There are traces of flux in a few places on the board, although the soldering itself is neat. The power traces have been reinforced with an extra layer of solder. That's a nice touch—you can see the manufacturer was thinking about reliability.
What is an astro timer, or another useful little gadget.
No complaints about the connectors; they're decent-quality parts. At least at currents of 10–16 A, they should work just fine, and the wire clamps down firmly.
What is an astro timer, or another useful little gadget.
Next, I'll describe how to configure the device. I really could have used these instructions when I first got the timers. The manual includes a picture explaining the menu and descriptions of all the options. It all seems clear, but somehow it still isn't.
What is an astro timer, or another handy little gadget.
I'll also hide the setup instructions behind a spoiler.
I originally wanted to translate the manual into Russian, but then decided to put together a clearer guide with pictures instead. Let's get started. 1, First, set the time. To do this, unlock the device by holding down the MD button for about 3 seconds, until LOCK disappears. Next, press the < button. The minutes will start flashing. Set the time using the up/down buttons, and use < to move between the values you're setting. Once you're done, press and hold MD to save the settings (according to the manual; mine saved them without this step). 2. Set the latitude (it is an astro timer, after all). Since I live in Kharkiv, I set it to 50 degrees north. To do this, press MD and R simultaneously. Select the parameter with <, and adjust it using the up/down buttons. 3. After setting the latitude, press MD to open the date and year settings. As with the time, use < and the up/down buttons to set the day, month, and year. 4, Press and hold MD to save the settings. That's it, the basic parameters are set.
What is an astro timer, or another handy little gadget.
Next, I set the parameters for switching the load on and off. The timer has 8 setting slots, each with two time settings: the first is for switching on, and the second for switching off. To keep things simple, I'll enter the settings based on this requirement: Switch the load on at sunset and off at sunrise. You can also set it to switch on or off some time before or after sunset or sunrise. Just adjust the time by the required number of minutes or hours. Since I was setting up the timer on May 9, I checked the calendar and saw that sunset that day was at 20:05 and sunrise at 4:58. 1. Unlock the timer, then press the MD button again to open the time settings menu. 2. Press the < button. The display changes from --.-- to 00.00, meaning the setting is enabled and set to 00 hours and 00 minutes. 3. Set the switch-on time to 20 hours and 5 minutes. 4. Press MD to move on to setting the switch-off time.
What is an astro timer, or another handy little gadget.
1. As with the switch-on setting, set the switch-off time to 4 hours and 58 minutes. 2. To set an additional switch-on/off time, press MD to move to the second slot. This can be useful, for example, if you want to switch the load off in the middle of the night. For example, switch the lights on at sunset, off at midnight, on again at 4 a.m., and off at sunrise. With eight slots, you can create more complex programs too. 3. After setting the time (the third press of the MD button), the selected parameter stops flashing. Pressing the up/down button will then turn on the latitude icon. This disables the timer's adjustment of the switching times based on sunrise and sunset. 4. If you entered a slot time by mistake (00.00 is also a valid time, so the timer will use it), press R to disable that slot. A disabled slot is shown as --.-- on the display.
What is an astro timer, or another handy little gadget.
How it works. While describing the setup, I showed that I set the date to May 9, with switching on at 20:05 and off at 4:58. For the experiment, I changed the clock to May 18.
What is an astro timer, or another handy little gadget.
After that, I went to the on/off time settings menu (where I had set 20.05 and 4.58). The photo shows that the times have automatically changed to 20.16 and 4.45. This means the load will turn on at 2.16 and turn off at 4.45 on May 18. In fact, the calendar shows sunset/sunrise on May 18 at 20.17 and 4.45, but I think this is just a small software error, since it doesn't increase as you move to dates further in the future.
What is an astro timer, or another useful little gadget.
That's it, the setup is complete. The device is actually quite quick to configure; reading the description takes much longer than setting it up.
The device output can be configured in four modes. 1. Always on 2. Always off 3. Auto mode, on 4. Auto mode, off.
The order in the photo is a little different, but the idea is the same. The Always On and Always Off modes are self-explanatory; you can use them to force the load on or off (for example, while testing or configuring it). I'll cover the other two modes separately. After you set the time, the device switches to normal operation. But if it's set to Auto Off and the device should currently be on according to the timer, there are two options: leave it as it is, and the load will turn on at the start of the next on interval, or switch the device to Auto On.
Since I wasn't in an interval when the load was automatically on during setup, I switched the device to On to test it. If power is connected, the LED lights up and the relay clicks. By the way, there's a relay glitch (which only occurs when powered from 220 V). If the relay was off, then the 220 V power goes out and comes back after a while, the relay won't turn on. This happens because the filter capacitor hasn't charged yet, and the dropper capacitor is sized just barely enough, so there isn't enough current to switch on the relay. You have to switch it on and off manually, or it will turn on by itself during the next cycle.
What is an astro timer, or another useful little gadget.
You can also turn off the display if needed, to avoid being distracted by it or to reduce power consumption—I don't know, but the option is there. Hold the R button to turn the display on or off. This works whether the keypad is locked or unlocked, and it doesn't affect the load switching either; it simply turns off the display.
What is an astro timer, or another useful little gadget.
So, in summary: Pros. Price Functionality: 8 slots for setting load on/off times. Doesn't heat up Good build quality. Easy to set up (as I found out later)
Cons. Not enough power to switch on the relay when power is restored (more details in the review).
My opinion: A fairly well-made and convenient device for controlling a load based on sunrise and sunset times. I don't think I'll need all 8 setting slots, but having some spare can be useful. I was pleased with the build quality. The relay is nothing special, of course, but this type is quite common. It's a standard relay and can easily be replaced, or you can use an external contactor to switch a high-power load.
How does the astro timer differ from a photocell relay?
It determines sunrise and sunset times based on latitude and date, so there is no outdoor light sensor to install. It also allows scheduled shutoff and lets you shift switching relative to sunset.
What power supply and output does the astro timer in the review have?
It is designed for a 220–230 V mains supply and has a relay with one changeover contact set. The author says it can be modified for 24 V power; a 24 V version is also available.
What fault did the author find with the astro timer?
After a 220 V power outage, the relay may not turn on when power returns if it was off before the outage. The author attributes this to insufficient current to energize the relay before the filter capacitor has charged.
The figures from this review are in the measurement database: Other devices
Discuss on the forumHave a question or some experience to share? Discuss the article with the author and readers: the forum is a convenient place to share schematics and photos.