CN116594280A - Electronic clock based on singlechip - Google Patents

Electronic clock based on singlechip Download PDF

Info

Publication number
CN116594280A
CN116594280A CN202310618396.5A CN202310618396A CN116594280A CN 116594280 A CN116594280 A CN 116594280A CN 202310618396 A CN202310618396 A CN 202310618396A CN 116594280 A CN116594280 A CN 116594280A
Authority
CN
China
Prior art keywords
module
control
electronic clock
led
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310618396.5A
Other languages
Chinese (zh)
Inventor
罗先文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guilin University of Technology
Original Assignee
Guilin University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guilin University of Technology filed Critical Guilin University of Technology
Priority to CN202310618396.5A priority Critical patent/CN116594280A/en
Publication of CN116594280A publication Critical patent/CN116594280A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G9/00Visual time or date indication means
    • G04G9/02Visual time or date indication means by selecting desired characters out of a number of characters or by selecting indicating elements the position of which represent the time, e.g. by using multiplexing techniques
    • G04G9/04Visual time or date indication means by selecting desired characters out of a number of characters or by selecting indicating elements the position of which represent the time, e.g. by using multiplexing techniques by controlling light sources, e.g. electroluminescent diodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

The application discloses an electronic clock based on a singlechip, relates to the technical field of electronic products, solves the problem of poor display effect of the traditional electronic clock, and has the technical scheme that: the plurality of acrylic plates are sequentially stacked and arranged on the base, the numbers 0 to 9 are respectively carved on the rear side walls of the plurality of acrylic plates, and the LED patches are arranged on the rear side walls of the acrylic plates. When different LED patches are lightened, the light of the LED patches transmits the numbers on the corresponding acrylic plates, so that the purpose of displaying the corresponding numbers is achieved. The LED patch is attached to the acrylic plate, so that the brightness of the LED patch is uniformly dispersed in the digital groove on the acrylic plate, and the aim of avoiding the formation of brightness difference, shadow or light spots and the like due to uneven brightness irradiation and further affecting the display effect of the electronic clock is fulfilled. Meanwhile, the numbers carved on the acrylic plate project the brightness of the LED patches, and an LED lattice is not required to be arranged, so that the purposes of avoiding the display of the time numbers caused by too bright display of the digital strokes and not being soft and clear are achieved.

Description

Electronic clock based on singlechip
Technical Field
The application relates to the technical field of electronic products, in particular to an electronic clock based on a single chip microcomputer.
Background
The electronic clock is a timing instrument for timing and counting by using microelectronic technology, and is widely applied to various display fields of markets, portable electronic products and the like, and has the characteristics of low price, intuitiveness, small volume and the like. The display mode of the existing electronic clock is as follows: a lamp cavity structure plate is arranged inside, a plurality of light-transmitting lamp cavities which are open front and back are arranged on the lamp cavity structure plate, each light-transmitting lamp cavity is arranged to form a time separator and a figure character which is in a shape of 8, a light-transmitting sheet is arranged on the front side surface of each light-transmitting lamp cavity, light rays of an LED lamp irradiate on the light-transmitting sheet after passing through the light-transmitting lamp cavity, and different numbers or patterns are formed by illuminating different light-transmitting lamp cavities through the LED lamps on a control circuit board, so that the electronic clock displays different time values, pattern symbols and the like. The electronic clock with the lamp cavity structure plate is characterized in that a plurality of LED lamps are generally required to be arranged in each light-transmitting lamp cavity because the strokes of the digital characters are long-strip-shaped, so that an LED lattice is formed, the strokes of the digital characters are easy to display too bright, the display effect of time and digital characters is not soft or clear, the existing light-transmitting sheet is integrally light-transmitting, and if the light of the LED lamps is not uniformly irradiated, the brightness difference, shadow or light spot and the like in each light-transmitting lamp cavity or among the light-transmitting lamp cavities are visually and intuitively seen, so that the display effect of the electronic clock is affected.
Disclosure of Invention
The application aims to provide an electronic clock based on a singlechip, which solves the problem of poor display effect of the traditional electronic clock.
The technical aim of the application is realized by the following technical scheme:
an electronic clock based on a single chip microcomputer, comprising: the display module comprises a plurality of display units, wherein each display unit comprises an LED patch, an acrylic plate, a base and a control chip; along the direction from the front end of the base to the rear end of the base, a plurality of acrylic plates are sequentially stacked on the base; the rear side walls of the acrylic plates are respectively carved with numbers 0 to 9; the rear side wall of each acrylic plate is provided with an LED patch; each LED patch is connected with the control chip; the clock module is used for generating first time information; the control module is used for generating a corresponding first control instruction after the first time information is acquired; and the control chip of the corresponding display unit in the display module responds to the first control instruction so as to enable the corresponding LED patch to work.
Optionally, the control module is an STC89C52 single-chip microcomputer.
Optionally, the clock module is a DS1302 clock chip.
Optionally, the control chip is a 74HC595 chip.
Optionally, the input ends of any two LED patches are connected with one output end of the control chip; and the output ends of any two LED patches are respectively connected with QG and QH of the control chip.
Optionally, the device further comprises a writing module; the writing unit is used for writing second time information; the control module is also used for generating a corresponding second control instruction after the second time information is acquired; and the control chip corresponding to the display unit in the display module responds to the second control instruction so as to enable the corresponding LED patch to work.
Optionally, the device also comprises a buzzer module; the writing module is also used for writing third time information; the control module is also used for acquiring the current time information of the display module, and generating a third control instruction when the current time information is matched with the third time information so as to control the buzzer module to work.
Optionally, the device also comprises a temperature and humidity module; the temperature and humidity module is used for collecting temperature and humidity information; the control module generates a third control instruction after acquiring the temperature and humidity information; and the control chip corresponding to the display unit in the display module responds to the third control instruction so as to enable the corresponding LED patch to work.
Optionally, the temperature and humidity module is a DHT11 digital temperature and humidity sensor.
Optionally, a program interface for the firing program is also included.
Compared with the prior art, the application has the following beneficial effects:
(1) the plurality of acrylic plates are sequentially stacked and arranged on the base, the numbers 0 to 9 are respectively carved on the rear side walls of the plurality of acrylic plates, and the LED patches are arranged on the rear side walls of the acrylic plates. When different LED patches are lightened, the light of the LED patches transmits the numbers on the corresponding acrylic plates, so that the purpose of displaying the corresponding numbers is achieved.
(2) The LED patch is attached to the acrylic plate, so that the brightness of the LED patch is uniformly dispersed in the digital groove on the acrylic plate, and the aim of avoiding the formation of brightness difference, shadow or light spots and the like due to uneven brightness irradiation and further affecting the display effect of the electronic clock is fulfilled.
(3) The LED patch is directly attached to the acrylic plate, and the light of the LED patch is projected through the numbers carved on the acrylic plate, so that the corresponding numbers are displayed. The LED dot matrix is not required to be arranged, and the purpose of avoiding the display effect of time numbers being not soft and unclear due to the fact that the display of the digital strokes is too bright is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. In the drawings:
fig. 1 is an electrical schematic diagram of an electronic clock based on a single-chip microcomputer in the present embodiment;
fig. 2 is a schematic structural diagram of a display unit for an electronic clock based on a single-chip microcomputer in the present embodiment;
fig. 3 is a schematic diagram of an electrical principle of a control chip and an LED patch for an electronic clock based on a single chip microcomputer in this embodiment.
In the drawings, the reference numerals and corresponding part names:
1-a display module; 2-a clock module; 3-a control module; 4-a write module; 5-a buzzer module; 6, a temperature and humidity module; 7-a base; 8-acrylic plates; 9-LED patches; 10-program interface.
Detailed Description
For the purpose of making apparent the objects, technical solutions and advantages of the present application, the present application will be further described in detail with reference to the following examples and the accompanying drawings, wherein the exemplary embodiments of the present application and the descriptions thereof are for illustrating the present application only and are not to be construed as limiting the present application.
It will be understood that when an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly or indirectly connected to the other element.
It is to be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are merely for convenience in describing and simplifying the description based on the orientation or positional relationship shown in the drawings, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus are not to be construed as limiting the application.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Examples: an electronic clock based on a singlechip is shown in fig. 1, and comprises a display module 1, a control module 3 and a clock module 2.
Wherein the clock module 2 generates first time information of the current time in real time. The control module 3 is connected with the clock module 2, and is configured to obtain first time information generated by the clock module 2 in real time, and generate a corresponding first control instruction according to the collected first time information. The display module 1 comprises a plurality of display units, the display units are shown in fig. 2 and comprise LED patches 9, acrylic plates 8, bases 7 and control chips, the number of the acrylic plates 8 is a plurality, numbers 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 are respectively carved on the rear side walls of the acrylic plates 8, the acrylic plates 8 are sequentially stacked and arranged on the bases 7 along the direction from the front end to the rear end of the bases 7, the rear side walls of the acrylic plates 8 are respectively provided with LED patches 9, the LED patches 9 are connected with the output ends of the control chips, and the input ends of the control chips are connected with the output ends of the control modules 3.
In the specific implementation process, the first control instruction generated by the control module 3 acts on a corresponding display unit in the display module 1, so that a control chip in the display unit controls the corresponding LED patch 9 to work, and the brightness of the LED patch 9 is projected into a groove corresponding to the number on the acrylic plate 8, and the corresponding number is displayed. Through this structure, on the one hand, paste LED paster 9 on ya keli board 8, make the LED paster 9 during operation, the bright evenly distributed of LED is in the digit inslot on ya keli board 8, reaches and avoids shining inhomogeneous because of the bright, forms luminance difference, shade or facula etc. and then influences the purpose of electronic clock display effect. On the other hand, the LED paster is directly attached to the acrylic plate, and the light of the LED paster is projected through the numbers carved on the acrylic plate to display the corresponding numbers, so that the aim of avoiding too bright display of the digital strokes, leading to unsmooth and unclear display effects of time numbers and further affecting the display effects of the electronic clock is fulfilled because the LED lattice is not required to be arranged.
An alternative implementation of this embodiment: as shown in fig. 1, the control module 3 of the electronic clock based on the singlechip in this embodiment is an STC89C52 singlechip, and includes functions such as a CPU, RAM/ROM, a timer, an analog-to-digital converter, a timer, and an input/output port.
An alternative implementation of this embodiment: as shown in fig. 1, the clock module 2 of the electronic clock based on the singlechip in this embodiment is a DS1302 clock chip, which includes a real-time clock/calendar and a 31-byte static RAM, and is connected to the control chip through a serial port for communication. Providing relevant signals of seconds, minutes, hours, days, weeks, months and years. The meeting of the size month or leap year can be automatically adapted, and the clock information and related data can be kept only by the power consumption of 1 milliwatt.
An alternative implementation of this embodiment: the control chip is a 74HC595 chip. As shown in fig. 3, the LED patches 9 are arranged in 10 rows, and the 10 rows of LED patches 9 are divided into 5 groups, wherein the first group includes a first row of LED patches 9 and a second row of LED patches 9, the first row of LED patches 9 includes D1 and D2, and the positive electrode of D1 is connected with the negative electrode of D2; the second row of LED patches 9 comprises D3 and D4, wherein the positive electrode of D3 is connected with the negative electrode of D4, the positive electrode of D2 and the positive electrode of D4 are both connected with QB of the 74HC595 chip, the negative electrode of D1 is connected with QH of the 74HC595 chip, and the negative electrode of D3 is connected with QG of the 74HC595 chip. The second group comprises a third row of LED patches 9 and a fourth row of LED patches 9, the third row of LED patches 9 comprises D5 and D6, and the positive electrode of the D5 is connected with the negative electrode of the D6; the second row of LED patches 9 comprises D7 and D8, wherein the positive electrode of D7 is connected with the negative electrode of D8, the positive electrode of D6 and the positive electrode of D8 are both connected with QC of the 74HC595 chip, the negative electrode of D5 is connected with QH of the 74HC595 chip, and the negative electrode of D7 is connected with QG of the 74HC595 chip. The arrangement of the third row of LED patches 9, the fourth row of LED patches 9 and the fifth row of LED patches 9 is similar to that of the first row of LED patches 9 and the second row of LED patches 9, and thus will not be described again.
In the specific implementation process, the 74HC595 chip converts serial input from the control module 3 into parallel output and outputs the parallel output to the ten rows of LED patches 9, and the corresponding numbers on the acrylic plate 8 are displayed by utilizing the obvious characteristic that the nicks on the acrylic plate 8 are illuminated. In this embodiment, ten independent light sources are provided and divided into five groups, and each group of two independent light sources is designed into a parallel circuit by utilizing the unidirectional conductivity of the diode. Only the beginning level of a certain group is set high, then the back end level of a certain light source in the group is set low, potential difference is formed at two sides of the diode, the patch can emit light, and the light sources of five groups only need two ends. Taking D1 and D2 in fig. 3 as an example, to operate the two LEDs, QB is first output high, QH is set low, and QG is set high, so that a path is formed from QB to QH, and D1 and D2 start to operate. After receiving serial signals from the singlechip, the corresponding patch LEDs are lightened to illuminate the corresponding acrylic plates 8, numbers are carved on the acrylic plates 8, and finally, the display of the numbers is realized. The aim of reducing the power consumption of the electronic clock based on the singlechip in the embodiment is achieved through the circuit design.
In the implementation process, in order to make each number clearly displayed, the numbers on the acrylic plate 8 may be selected to be ordered as "6, 7, 5, 8, 4, 9, 3, 2, 0, 1".
An alternative implementation of this embodiment: as shown in fig. 1, the electronic clock based on the singlechip in this embodiment further includes a writing module 4, and the writing module 4 is connected with the control module 3. The writing unit is used for writing second time information, and after the control module 3 obtains the second time information, a corresponding second control instruction is generated, so that a control chip of a corresponding display unit in the display module 1 responds to the second control instruction, and the corresponding LED patch 9 works. With this structure, the user can write himself/herself with his/her hand by using the writing module 4.
An alternative implementation of this embodiment: as shown in fig. 1, the electronic clock based on the singlechip in this embodiment further includes a buzzer module 5, and the buzzer module 5 is connected with the control module 3. The writing module 4 is further configured to write third time information, and specifically, the third time information may enable a user to set an alarm clock time according to needs. The control module 3 is further configured to obtain current time information of the display module 1, and when the current time information obtained by the control module 3 is the same as the third time information, the control module 3 generates a third control instruction, where the third control instruction acts on the buzzer module 5 to control the buzzer module 5 to work. Through this structure, reach the purpose of realizing the alarm clock function of the electronic clock based on singlechip in this embodiment.
An alternative implementation of this embodiment: as shown in fig. 1, the electronic clock based on the singlechip in this embodiment further includes a temperature and humidity module 6, where the temperature and humidity module 6 may be a DHT11 digital temperature and humidity sensor, and the DHT11 digital temperature and humidity sensor is a temperature and humidity composite sensor that uses an acquisition technology and a temperature and humidity sensing technology to ensure high reliability and excellent long-term stability of a product, and has calibrated digital signal output. The temperature and humidity module 6 is connected with the control module 3, after the temperature and humidity module 6 collects the temperature and humidity information, the control module 3 obtains the temperature and humidity information and generates a corresponding third control instruction, and a control chip of a corresponding display unit in the display module 1 responds to the third control instruction so as to enable the corresponding LED patch 9 to work. Thereby achieving the purpose of displaying the current temperature and humidity.
An alternative implementation of this embodiment: as shown in fig. 1, the electronic clock based on the singlechip in this embodiment further includes a program interface 10 for a firing program. After the program file is written by using the Keil software, the program file is burnt on the control module 3 through the program interface 10, so that the electronic clock based on the singlechip in the embodiment realizes the functions of reading and writing time, setting an alarm clock, displaying temperature and humidity and the like. Wherein, the read-write time is as follows: the program is to realize the biphase interaction between the control module 3 and the clock module 2, and can read time from the clock chip, write time into the clock module 2 through the writing module 4, and display the time through the display module 1. Setting an alarm clock: the program file is to send an instruction to the control module 3 through the writing module 4, set a time, and when the time of the electronic clock based on the singlechip is the same as the set time, the control module 3 sends the instruction to the buzzer module 5, so that the buzzer module 5 is started to send alarm clock sound. Displaying the temperature and the humidity: after the temperature and the humidity are measured, the temperature and the humidity numbers are displayed through the display module 1. After the program is written, the program of each part is tested. And importing the written program file into simulation software, connecting a virtual instrument in the software, and testing whether the program can normally run as expected.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the application, and is not meant to limit the scope of the application, but to limit the application to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the application are intended to be included within the scope of the application.

Claims (10)

1. An electronic clock based on singlechip, characterized by comprising:
the display module (1), the display module (1) comprises a plurality of display units, each display unit comprises an LED patch (9), an acrylic plate (8), a base (7) and a control chip; along the direction from the front end of the base (7) to the rear end of the base (7), a plurality of acrylic plates (8) are sequentially stacked on the base (7); the rear side walls of the acrylic plates (8) are respectively carved with numerals 0 to 9; and the rear side wall of each acrylic plate (8) is provided with an LED patch (9); each LED patch (9) is connected with the control chip;
a clock module (2), the clock module (2) being configured to generate first time information;
the control module (3) is used for generating a corresponding first control instruction after the first time information is acquired by the control module (3);
the control chip of the corresponding display unit in the display module (1) responds to the first control instruction so as to enable the corresponding LED patch (9) to work.
2. The electronic clock based on the single-chip microcomputer according to claim 1, wherein:
the control module (3) is an STC89C52 singlechip.
3. The electronic clock based on the single-chip microcomputer according to claim 1, wherein:
the clock module (2) is a DS1302 clock chip.
4. The electronic clock based on the single-chip microcomputer according to claim 1, wherein:
the control chip is a 74HC595 chip.
5. The electronic clock based on the singlechip as set forth in claim 4, wherein:
the input ends of any two LED patches (9) are connected with one output end of the control chip;
and the output ends of any two LED patches (9) are respectively connected with QG and QH of the control chip.
6. The electronic clock based on the single-chip microcomputer according to claim 1, wherein:
also comprises a writing module (4);
the writing unit is used for writing second time information;
the control module (3) is further used for generating a corresponding second control instruction after the second time information is acquired;
and a control chip corresponding to the display unit in the display module (1) responds to the second control instruction so as to enable the corresponding LED patch (9) to work.
7. The electronic clock based on the single-chip microcomputer as set forth in claim 6, wherein:
the device also comprises a buzzer module (5);
the writing module (4) is further used for writing third time information;
the control module (3) is further used for acquiring current time information of the display module (1) and generating a third control instruction when the current time information is matched with the third time information so as to control the buzzer module (5) to work.
8. The electronic clock based on the single-chip microcomputer according to claim 1, wherein:
the temperature and humidity module (6) is also included;
the temperature and humidity module (6) is used for collecting temperature and humidity information;
the control module (3) generates a third control instruction after acquiring temperature and humidity information;
and a control chip corresponding to the display unit in the display module (1) responds to a third control instruction so as to enable the corresponding LED patch (9) to work.
9. The electronic clock based on the single-chip microcomputer as set forth in claim 8, wherein:
the temperature and humidity module (6) is a DHT11 digital temperature and humidity sensor.
10. The electronic clock based on the single-chip microcomputer according to claim 1, wherein:
a program interface (10) for the firing program is also included.
CN202310618396.5A 2023-05-29 2023-05-29 Electronic clock based on singlechip Pending CN116594280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310618396.5A CN116594280A (en) 2023-05-29 2023-05-29 Electronic clock based on singlechip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310618396.5A CN116594280A (en) 2023-05-29 2023-05-29 Electronic clock based on singlechip

Publications (1)

Publication Number Publication Date
CN116594280A true CN116594280A (en) 2023-08-15

Family

ID=87604333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310618396.5A Pending CN116594280A (en) 2023-05-29 2023-05-29 Electronic clock based on singlechip

Country Status (1)

Country Link
CN (1) CN116594280A (en)

Similar Documents

Publication Publication Date Title
CN201000898Y (en) Solar battery testing device
CN116594280A (en) Electronic clock based on singlechip
CN201095637Y (en) Multifunctional bacteria colony counter
CN212750242U (en) Display screen backlight unit with leak protection light structure
CN203126654U (en) Automobile instrument displaying device
CN210181438U (en) Multifunctional acousto-optic awakening bed accessory based on single chip microcomputer
CN201688234U (en) Desk lamp for electronic metronome
CN221054969U (en) Clock projecting lamp
CN216011994U (en) Solar-powered straight ruler with water lamp
CN2530283Y (en) Remote controlled hanging and multifunctional computerized permanent calendar
CN2245252Y (en) Fluorescent advertising lamp box
CN211980106U (en) U-shaped base advertisement display board with lamp light
CN211529547U (en) Take nursing safety warning sign of night light
CN213488041U (en) Record display device of university student's innovation entrepreneur
CN2304222Y (en) Instrument display board
KR100419371B1 (en) The Dial Plate of An Indication Gauge and Preparation Method Thereof
CN213746387U (en) OLED household lamp
CN201069148Y (en) Clock small night lamp
CN209515113U (en) A kind of luminous plate of included light-emitting function
CN2171129Y (en) Digital stopwatch with memory and frenquency measuring function
CN212278516U (en) Control circuit of air filter
CN212008334U (en) Novel urine conventional detector
CN210323691U (en) Light source device for generating stripe light through LCD
CN2704024Y (en) Solid electronic instrument using indicator-shape cursor to substitute moving indicator
US3165728A (en) Out-of-line to in-line numeral display

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination