📜 ⬆️ ⬇️

Big street clock

All the same not habraeffekt does not allow to forget about itself. An article on how to make large clocks that can be hung on a building. Copied to Habr because the server is unable to digest so many visitors.


Recently, a large electronic clock began to appear on many buildings. This article will discuss how to assemble such watches on your own. It will also indicate the places where the author stepped on the rake and where it is worth paying attention.

First of all, it is necessary to determine the size of hours and budget. Estimate in the draft power consumption of components, architecture. Make a dynamic indication or control each digit individually. What and in what quantities to use LEDs. What material to make the case.
')
So, the finished watch turned out like this:
Dimensions: 630x235x105
Weight: 5.8 kg
Power consumption: 30 W
The accuracy of the course is not worse than ± 1 min per month.
Unfortunately, the flight of the designer’s imagination limits the range of shops sold and the tools available. The watch frame was made of an aluminum corner bought in OBI, and the sides were made of plexiglass purchased by a craftsman in the store. The boards of the figures were made of polystyrene. All seams for tightness smeared transparent sanitary silicone sealant.

Why were the side walls made of plexiglass and not polystyrene? The fact is that polystyrene, as it turned out, was not resistant to weathering, and after 2 years it would simply be hard, while plexiglas turned out to be more resistant in this respect. Since the clock is hanging on the street, it is desirable to make them tight. At the same time, consider the heat dissipation of the components so that they do not suffocate in the summer in the sun. Ideally, before their final screwing up, throw a bag of silica gel inside, so that moisture does not condense from the inside in cold weather. Use industrial components (from -50 to +60 degrees). Coat the finished boards with a varnish of corrosion, which can easily gnaw through thin conductors. Fix inside the components tightly, if while carrying the plugs inside will hang out then the contact will be broken at one point.

After the frame was made, the plexiglas was cut and the whole thing was collected, the turn of numbers comes. 4 digits were made of segments, with 22 LEDs each, + 2 points with 4 LEDs, for a total of 624 LEDs. LEDs are green with a matte body L-53SGD. Here is the first error. I chose the LEDs based on the viewing angle, which is maximal for the LEDs in the matte case, but at the same time their luminous flux is small. As a result, it turned out that the indoor LEDs can be seen perfectly, but on the street only in cloudy weather. Therefore, I strongly recommend to fork out, buy 4-5 LEDs of each brand, run them on batteries, go outside and evaluate how they will be seen, how blind they are in the sun, what is the viewing angle.

Current through LED 20 mA on datasheet. They are assembled in chains of 2 in series to minimize losses on current-limiting resistors (efficiency loss and unnecessary heating we need nothing). In total, it turns out that the current of the lit figure is 1.1 A. Here lies the important moment of the choice of architecture. Can you make a power supply unit that will give 4.4 A and will calmly experience current surges of 100% of the load - do individual control of each digit. Light output will be the maximum. You can not (for example, there is no transformer of sufficient power on sale) - make the display dynamic. Brightness will be lower.

The power supply is better to do according to the classical scheme (transformer, diode bridge, smoothing capacitor) than a pulsed one - firstly the fewer the details, the higher the reliability, and secondly such a power supply unit is more unpretentious. (The clock worked when I lowered the voltage to 110 V by the LATR. The LEDs went out, but the passage of time did not stop).

The next stage is the development of control electronics. The clock is assembled on an ATMEGA16 microcontroller, with an external quartz resonator connected to the TOSC pins, which allows you to count down the time. The accuracy of the watch depends only on the accuracy of the quartz, respectively, and the watch as a result is quartz.

The clock consists of 3 boards. The first board contains a transformer with a power supply and a microcontroller. The second, a voltage converter, raises 5 V to 12 V (necessary to power the MOSFET keys, because of the voltage drop on the LEDs of five volt logic levels from the MK, it is not enough to unlock the transistor. The converter with a cascade of amplifier transistors solved this problem.) keys with current-limiting resistors. All boards are interconnected by connectors - this is incredibly convenient in the process of debugging and assembly.

The aluminum cylinder is a 6.3V and 100,000 microfarad capacitor. Probably the only domestic electronic part, made in the USSR. Since the watches do not have circuits inside to save time, in the event of a power failure, this capacitor allows you to survive dips in the supply voltage for up to 4 seconds.

A lot of nerves spoiled the bug, which took almost 3 months to catch. A blocking capacitance of 0.1 microfarad on the power between the legs of the microcontroller was not established, which caused sooo interesting breakdowns that externally resemble electromagnetic pickups, and judging by the oscillograms, a software failure.
A thermometer - DS1620 temperature sensor with i2c connection was added to the watch. And here lies the rake number two. The fact is that inside the watch everything is heated during operation. The diode bridge is particularly hot, besides the clock is hanging on the pavilion, which also heats up when students walk through it. As a result, the thermal sensor fixed in the coldest place of the clock gave an error of 5 degrees (when it was -15 outside). Make a remote sensor.

The clock program is quite simple - a millisecond counter for interruption. Functions for calculating a leap year (within 2000-2100 years), automatic transition to winter / summer time, setting, set time correction constant (sec per day), set time / temperature indication time.

If I made a second copy, I would fix it:
1) I would use a dedicated real-time clock chip with my battery.
2) Would use other LEDs in a transparent case
3) Connector for connecting a remote temperature sensor.
Very interesting idea to make time synchronization with GPS. These watches are equipped with 3 buttons for setting. Many companies complete their watches with a remote control to set the time.
Remember that someone will repair the watch, so it’s very good idea to put a sheet in with a diagram inside.

In total, the watch cost 5,000 rubles. Were posted on the building of the Faculty of Forestry UGLTU. Calmly survived January frosts of -30 degrees. While the flight is normal. Below are photos, look at which is much more interesting than reading the text)

Pictures. Not all but the main ones:











Original article here: licrym.org/index.php/%D0%91%D0%BE%D0%BB%D1%8C%D1%88%D0%B8%D0%B5_%D1%83 %D0%BB%D0 % B8% D1% 87% D0% BD% D1% 8B% D0% B5_% D1% 87% D0% B0% D1% 81% D1% 8B

Questions on the filling of the clock can be asked in the comments.

Source: https://habr.com/ru/post/53923/


All Articles