LED clock

By designing LED clocks, using components such as circular dials, microcontrollers and displacement buffers, the basic electronic design principles are demonstrated, and the problem that existing technology is difficult to stimulate students' innovative thinking is solved, low power consumption and function expansion are achieved, and the clock is extended standby time.

CN221994046UActive Publication Date: 2024-11-12SICHUAN INFORMATION TECH COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420108849.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2024-11-12
Estimated Expiration
2034-01-16

AI Technical Summary

Technical Problem

The prior art is difficult to provide an electronic teaching aid that can effectively demonstrate the principles of basic electronic design to stimulate students' innovative thinking and hands-on ability.

Method used

An LED clock was designed, using a circular dial, a microcontroller, a clock chip circuit and 8 displacement buffers. Through components such as power supply circuit, temperature sensing circuit, keyboard circuit and passive buzzer, the clock function is expanded. and automatic standby extension.

Benefits of technology

It realizes intuitive display of the overall circuit, low power consumption and low cost, and at the same time, by adding function buttons and sensing circuits, the clock function is expanded and the standby time is extended.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221994046U_ABST
    Figure CN221994046U_ABST
Patent Text Reader

Abstract

The utility model discloses an LED clock. The LED clock comprises a circular dial plate, and the circular dial plate is provided with a single-chip microcomputer, eight 8-displacement buffers, a power supply circuit, a temperature sensing circuit, a light intensity detection circuit, a pressure sensing circuit, a clock chip circuit, a keyboard circuit and an upgrade circuit. The power supply circuit comprises a battery power supply module, a USB power supply module and a switching circuit; the first 60 parallel output pins of a 64 displacement buffer formed by cascading the 8 displacement buffers are respectively connected with 60 LEDs, and the LEDs are arranged on the edge of the circular dial plate corresponding to the minute hand scale position; the temperature sensor, the light intensity detection circuit, the pressure sensing circuit, the keyboard circuit and the upgrading circuit are correspondingly connected with corresponding IO ports of the single-chip microcomputer respectively, and the clock chip circuit is connected with an external clock input pin and a reset pin of the single-chip microcomputer. According to the utility model, the circuit in the LED clock can be visually displayed, and great benefits are provided for understanding digital circuits and cultivating operational ability in teaching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to a clock, in particular to an LED clock. Background Art

[0002] In today's digital age, electronics covers an increasingly wide range of industries, including communications, entertainment, information storage and processing, health care, and other industries that are closely related to life. Therefore, cultivating students' interest in electronic design from an early age and allowing them to clearly understand the design and operation principles of electronic products is of great benefit to stimulating students' learning and hands-on abilities. Therefore, designing a purely electronic teaching aid to fully demonstrate the basic electronic design principles can play a positive role in electronic design teaching and triggering students' innovative thinking. Utility Model Content

[0003] The purpose of the invention of the utility model is to provide an LED clock to solve the above-mentioned problems, so as to provide a basic electronic design teaching aid.

[0004] The technical solution adopted by the utility model is as follows:

[0005] An LED clock comprises a circular dial, on which a power supply circuit, a single-chip microcomputer, a clock chip circuit and eight eight-bit shift buffers are arranged, wherein the power supply circuit supplies power to the single-chip microcomputer, the clock circuit and the shift buffer respectively, and the clock chip circuit is connected to an external clock input pin of the single-chip microcomputer;

[0006] Eight displacement buffers are cascaded, the serial output pin of the previous displacement buffer is connected to the serial input pin of the next displacement buffer, and the serial input pin of the first displacement buffer is connected to the serial output pin of the single-chip microcomputer; each parallel output pin of the first seven displacement buffers is connected to an LED, and the first four parallel output pins of the last displacement buffer are connected to an LED; each LED is arranged circumferentially on the edge of the circular dial in a cascade order of each displacement buffer, starting from the clock scale 12, and corresponding to each minute hand scale in a clockwise direction; the displacement buffer clock pins of each displacement buffer are connected in parallel with each other and connected to the IO port of the single-chip microcomputer, and the output register clock pins are connected in parallel with each other and connected to the IO port of the single-chip microcomputer.

[0007] Further, the LED corresponding to the hour hand scale is distinguished from other LEDs.

[0008] Furthermore, a first mark is provided at at least one position on the circular dial corresponding to the 12 hour hand scales.

[0009] Furthermore, the power supply circuit includes a battery power supply module, a USB power supply module and a switching circuit, the switching circuit is connected to the battery power supply module and the USB power supply module respectively, the output end of the switching circuit serves as the output end of the power supply circuit, and the switching circuit turns on or off the USB power supply module and the battery power supply module to the output end of the switching circuit according to the level of the USB power supply module input.

[0010] Furthermore, the switching circuit includes a diode Da, a resistor Ra, a resistor Rb and a PNP transistor Q2, wherein the two ends of the resistor Rb are respectively connected to the negative electrode of the USB power supply module and the base of the transistor Q2, the positive electrode of the diode Da is connected to the positive electrode of the USB power supply module, the negative electrode of the diode Da is connected to the collector of the transistor Q2, the two ends of the resistor Ra are respectively connected to the positive electrode of the diode Da and the base of the transistor Q2, the emitter of the transistor Q2 is connected to the positive electrode of the battery power supply module, and the negative electrode of the diode Da serves as the output end of the switching circuit.

[0011] Furthermore, a switch is connected between the emitter of the transistor Q2 and the positive electrode of the battery power supply module.

[0012] Furthermore, a temperature sensing circuit is also provided on the circular dial, and the temperature sensing circuit includes a temperature sensor and, and the temperature sensor is connected to the IO port of the single-chip microcomputer.

[0013] Furthermore, a keyboard circuit is also provided on the circular dial, and the keyboard circuit includes a plurality of keys, one end of each key is grounded, and the other end is respectively connected to different IO ports of the single chip microcomputer.

[0014] Furthermore, a passive buzzer is also provided on the circular dial, and the passive buzzer is connected to the emitter of the NPN transistor Q1, the base of the transistor Q1 is connected to the IO port of the single-chip computer through the resistor R3, and the collector of the transistor Q1 is connected to the power supply circuit.

[0015] Further, the clock chip circuit includes a DS1302 clock chip, the X1 port and the X2 port of the DS1302 clock chip are grounded via a capacitor respectively, and the X1 port and the X2 port are connected to the crystal oscillator Y2, and the SCLK port of the DS1302 clock chip is connected to the main clock output pin of the single-chip microcomputer. The port is connected to the output pin of the single chip microcomputer, and the IO port is connected to the IO port of the single chip microcomputer.

[0016] In summary, due to the adoption of the above technical solution, the beneficial effects of the utility model are:

[0017] The LED clock designed by the utility model is different from the clock using LCD screen. It uses LED as a pointer and multiple displacement buffers to realize parallel control of the dial. The overall circuit display is intuitive, the whole machine power consumption is low, and the cost is low. On the basis of the basic circuit, by adding function buttons, power amplifier circuits, sensor circuits, etc., the expansion of the clock function is realized, and it is convenient to guide the circuit principle of the expansion. The clock also automatically gives priority to using the external power supply, thereby extending the standby time of the clock itself as much as possible. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is the circuit schematic of the LED clock.

[0019] Figure 2 This is the PCB wiring structure diagram of the LED clock.

[0020] Figure 3 It is a finished embodiment of an LED clock. DETAILED DESCRIPTION

[0021] The utility model is described in detail below in conjunction with the accompanying drawings.

[0022] In order to make the purpose, technical solution and advantages of the utility model more clear, the utility model is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the utility model and are not used to limit the utility model.

[0023] The LED clock includes a circular dial and a STC8H1K08 series microcontroller, and TSSOP20 is used as an example for explanation. The LED clock also includes 8 shift registers U1~U8, all of which are 74HC595. The 8 shift registers are cascaded in series, and the serial input pin (pin 14) of the shift register U1 is connected to the serial output pin P3.7 (pin 18) of the microcontroller, and the serial output pin (pin 9) of the shift register U1 is connected to the serial input pin (pin 14) of the shift register U2, and so on, to complete the cascade of the 8 shift registers U1~U8. The 8-bit parallel output pins of the 8 shift registers are respectively connected to an LED. Among them, because the LED clock only requires 60 scales, that is, only 60 LEDs are required, the parallel output pins of the last 4 bits (Q4~Q7) of the last shift register U8 are not connected to the LED, and only the parallel output pins of the first 4 bits (Q0~Q3) are connected to the LED. The 60 LEDs correspond to the 60 scales of 60 minutes, that is, the 60 LEDs are arranged in a cascade order of 8 displacement buffers, starting from 0 (i.e. 90 degrees, corresponding to the clock scale 12), and arranged in a circumferential direction on the edge of the circular dial in a clockwise direction, corresponding to each minute hand scale, such as Figure 2 , Figure 3As shown, for example, the LED connected to Q0 of the shift register U1 is located at the minute hand scale 0, the LED connected to Q1 is located at the minute hand scale 1... and so on, the LED connected to Q3 of the shift register U8 is located at the minute hand scale 59. The shift register clock pins SH of the 8 shift registers are connected in parallel and connected to the IO port P3.5 (pin 16) of the single-chip microcomputer. In addition, the output register clock pins ST are also connected in parallel and connected to the IO port P3.6 (pin 17) of the single-chip microcomputer. During operation, the single-chip microcomputer outputs the current time (or other data to be displayed under different functions of the function key S2 introduced later) in the form of serial data through the serial output pin 3.7. The 64-bit (only the first 60 bits are used) shift register formed by the cascade of 8 shift registers receives the serial data. When the shift register clock signal and the output register clock signal are both available, 60 bits of parallel data are output in parallel, and 60 LEDs are lit or extinguished corresponding to the level of the 60 bits of parallel data. This logic is used to refresh once a second to complete the time display.

[0024] This design can also use other bit shift registers to cascade to form a 60-bit shift register. The corresponding connection method is the same as that of using eight 8-bit shift registers. However, due to the layout considerations such as the distribution of the shift registers on the circular dial and the connection between the shift registers and the LEDs, it is more ideal to use eight 8-bit shift registers.

[0025] like Figure 3 As shown, in order to clearly distinguish the hour hand and the minute hand, the LEDs of the 12 hour hand scales on the dial are distinguished from other LEDs. For example, among the 60 scales on the dial, the LEDs at scales 0, 5, 10, 15 ... 55 are red LEDs, while the other LEDs are green LEDs.

[0026] In addition, as a clock, some indicative marks (referred to as first marks in this manual) can also be set on the circular dial to remind people what to do at what time. Figure 3 As shown in the figure, on the circular dial, corresponding to the positions of the 12 hour hand scales (i.e. around the 12 blue LEDs), there are signs such as "watch TV", "do homework", and "do housework". Of course, not every scale needs to be marked, and it is not even necessary to mark the position of the hour hand scale. The idea of ​​this design is to make corresponding indications at the corresponding time positions to serve as a reminder.

[0027] The power supply circuit of this design supports battery power supply and external power supply. Figure 1As shown, the power supply circuit includes a battery power supply module, a USB (i.e., an external power supply interface) power supply module, and a switching circuit. The switching circuit is connected to the battery power supply module and the USB power supply module respectively. The output end of the switching circuit serves as the output end of the power supply circuit. The switching circuit turns on or off the USB power supply module and the battery power supply module to the output end of the switching circuit according to the level input by the USB power supply module. For example, when the USB power supply module is not connected, the output end of the USB power supply module is at a low level. At this time, the current from the battery power supply module to the output end of the switching circuit is turned on, and the battery power supply module supplies power. When the USB power supply module inputs a high level, the current from the battery power supply module to the output end of the switching circuit is turned off, and the current from the USB power supply module to the output end of the switching circuit is turned on, and the USB power supply module is switched to supply power.

[0028] like Figure 1 As shown, the USB power supply module P00 and the battery power supply module P0 are determined by a switching circuit composed of a diode Da, a resistor Ra, a resistor Rb and a transistor Q2 to determine which module is powered. The transistor Q2 is a PNP transistor, the two ends of the resistor Rb are respectively connected to the negative electrode of the USB power supply module and the base of the transistor Q2, the positive electrode of the diode Da is connected to the positive electrode of the USB power supply module, the negative electrode of the diode Da is connected to the collector of the transistor Q2, the two ends of the resistor Ra are respectively connected to the positive electrode of the diode Da and the base of the transistor Q2, the emitter of the transistor Q2 is connected to the positive electrode of the battery power supply module, and the negative electrode of the diode Da (or the collector of the transistor Q2) is used as the output end of the switching circuit. When the USB power supply module P00 is turned on, the diode Da is turned on and the transistor Q2 is turned off, so that the battery power supply module P0 is self-locked, and the USB power supply module P00 is powered first; when the USB power supply module P00 is unplugged, the diode Da is turned off and the transistor Q2 is turned on, and the battery power supply module P0 is powered at this time.

[0029] In addition, a switch S1 is connected between the emitter of the transistor Q2 and the battery power module P0. The switch serves as a master switch of the clock. When the battery power module P0 supplies power, the switch S1 turns on or off the LED clock.

[0030] A temperature sensing circuit is also provided on the circular dial, and the temperature sensing circuit is used to detect the ambient temperature, and includes a temperature sensor ds18b20, such as Figure 1 As shown, a resistor R2 is connected between the 2nd and 3rd pins of the temperature sensor ds18b20, its 1st pin is grounded, and the 2nd pin is connected to the IO port P1.5 (4th pin) of the microcontroller as an output pin.

[0031] In addition, a passive buzzer LS is also provided on the circular dial, and the passive buzzer LS is connected to the emitter of the NPN transistor Q1, the base of the transistor Q1 is connected to the IO port P3.4 (pin 15) of the microcontroller through the resistor R3, and the collector of the transistor Q1 is connected to the power supply circuit.

[0032] The single-chip microcomputer is provided with a clock signal by an external circuit to further reduce power consumption. A clock chip circuit is also provided on the circular dial, and the clock chip circuit is connected to the external clock input pin of the single-chip microcomputer. In some embodiments, the clock chip circuit includes a DS1302 clock chip, and the X1 port (pin 2) and the X2 port (pin 3) of the DS1302 clock chip are respectively grounded through a capacitor, that is, Figure 1 The capacitors C4 and C5 in the circuit are connected, and the crystal oscillator Y2 is connected between the X1 port and the X2 port. The SCLK port (pin 7) of the DS1302 clock chip is connected to the main clock output pin P1.6 (pin 5) of the microcontroller, and is also connected to the power supply circuit through the resistor R5; The port (pin 5) is connected to the output pin P5.4 (pin 7) of the microcontroller, and the DS1302 clock chip is reset under the action of the pin level. The port is also connected to the power circuit through resistor R6; the IO port (pin 6) is connected to the IO port P1.7 (pin 6) of the microcontroller. In addition, the VCC1 and VCC2 ports (pins 8 and 1) of the DS1302 clock chip are both connected to the power circuit; and the IO port (pin 6) is connected to the power circuit through resistor R4; the GND port (pin 4) is grounded.

[0033] In addition, the LED clock can also detect light intensity. A light intensity detection circuit is connected to the IO port P1.0 (pin 19) of the microcontroller. The light intensity detection circuit includes a photoresistor RG1 and a constant resistor Rm6 connected in series with the photoresistor. The resistor Rm6 is connected to the power supply circuit, which continuously divides the voltage of the photoresistor RG1. The IO port P1.0 of the microcontroller is connected between the two resistors to detect the voltage difference between the two resistors to realize the detection of light intensity.

[0034] An upgrade port P8 is also provided on the circular dial. The upgrade port P8 is connected to two IO ports P3.1 and P3.0 (pins 12 and 11) of the single-chip microcomputer and is provided on the circular dial in the form of a socket.

[0035] like Figure 1 , Figure 2As shown, a pressure sensing circuit is also connected to the IO port P1.1 of the single-chip microcomputer, and the pressure sensing circuit includes a varistor S5, one end of which is connected to the power circuit, and the other end is grounded via a resistor R8, and the IO port P1.1 of the single-chip microcomputer is connected between the varistor S5 and the resistor R8. By pressing the varistor S5, the resistance value of the varistor S5 is changed according to the pressing force, thereby forming a corresponding pressure signal transmitted to the single-chip microcomputer, and the single-chip microcomputer controls the LED according to the established logic, such as brightness, display status, etc.

[0036] In order to increase the functions of the LED clock, such as increasing the volume of the buzzer, a keyboard circuit is also provided on the circular dial. The keyboard circuit includes multiple buttons, one end of each button is grounded, and the other end is connected to different IO ports of the microcontroller. For example, the keyboard circuit includes buttons S2, S3 and S4, and the three buttons are connected to the pins P1.2, P1.3 and P1.4 (pins 1, 2, and 3) of the microcontroller respectively. For example, when button S2 is pressed, the IO port P1.2 of the microcontroller is pulled down to a low level, and thus, after a series of internal logic processing, the volume of the power amplifier is increased, and the volume is reduced in the same way, which is achieved by pressing button S3; and after button S4 is pressed, the switching of related functions can be achieved. The functions that button S4 can achieve include but are not limited to the switching of the following functions:

[0037] Function 1: Silent clock state. In this mode, press the [plus] (i.e. S2) or [minus] (i.e. S3) key to adjust the hour and minute, that is, adjust the LED corresponding to the scale of the lit hour and minute hands.

[0038] Function 2: Audio clock mode. In this mode, press the [+] or [-] key to adjust the volume accordingly.

[0039] Function 3: Alarm setting, [plus] sets the hour, [minus] sets the minute. There is also an LED light D00 connected to the IO port P3.3 of the microcontroller. Long press [plus] until the LED D00 lights up, indicating that the alarm is turned on. Continue to long press to turn off the alarm.

[0040] Function 4: Random Wheel Game. In this state, press [Add] to start the random wheel game.

[0041] Function 5-7: LED lights in different colorful states are determined by the colorful effects configured for the microcontroller under different functions, and are triggered by pressing button S4 for different times.

[0042] Function 8: Photosensitive + LED light effect. Under different lighting conditions, the corresponding LED lights light up in sequence.

[0043] Function 9: Temperature + LED light effect. At different temperatures, the corresponding LED lights light up in sequence.

[0044] Function 10: Light-induced single pendulum clock effect. The brightness difference sensed by the photoresistor RG1 triggers the pendulum clock. The larger the difference, the larger the swing amplitude, and the pendulum eventually stops slowly.

[0045] Function 11: Motion alarm effect. Hold the LED clock in your hand. If you don't move, the clock won't ring. If you move, the clock will ring. In this mode, press [+] [-] to adjust the sensitivity. This function uses the photoresistor RG1 to sense the subtle changes in light intensity when a person moves, thereby realizing motion detection. The so-called sensitivity adjustment is to adjust the threshold of light intensity change, and set the threshold value to be judged as movement.

[0046] Function 12: Press + LED effect. Press the varistor S5 with your hand, and the LED light effect changes synchronously with the strength. The effect of the change is determined by the logic configuration of the microcontroller.

[0047] More functional expansions can be achieved by configuring the IO port of the microcontroller accordingly as needed, that is, configuring the serial data output from the IO port P3.7 according to the input of one or more of the temperature sensor circuit, keyboard circuit, pressure sensing circuit, and keyboard circuit.

[0048] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An LED clock, characterized in that: The invention comprises a circular dial, which is a PCB board, and is provided with a power supply circuit, a single-chip microcomputer, a clock chip circuit and 8 eight-bit displacement buffers, wherein the power supply circuit supplies power to the single-chip microcomputer, the clock circuit and the displacement buffer respectively, and the clock chip circuit is connected to the external clock input pin of the single-chip microcomputer; Eight displacement buffers are cascaded, the serial output pin of the previous displacement buffer is connected to the serial input pin of the next displacement buffer, and the serial input pin of the first displacement buffer is connected to the serial output pin of the single-chip microcomputer; each parallel output pin of the first seven displacement buffers is connected to an LED, and the first four parallel output pins of the last displacement buffer are connected to an LED; each LED is arranged circumferentially on the edge of the circular dial in a cascade order of each displacement buffer, starting from the clock scale 12, and corresponding to each minute hand scale in a clockwise direction; the displacement buffer clock pins of each displacement buffer are connected in parallel with each other and connected to the IO port of the single-chip microcomputer, and the output register clock pins are connected in parallel with each other and connected to the IO port of the single-chip microcomputer.

2. The LED clock according to claim 1, characterized in that: The LED corresponding to the hour hand scale is distinguished from the other LEDs.

3. The LED clock according to claim 1, characterized in that: At least one of the positions on the circular dial corresponding to the 12 hour hand scales is provided with a first mark.

4. The LED clock according to claim 1, characterized in that: The power supply circuit includes a battery power supply module, a USB power supply module and a switching circuit. The switching circuit is connected to the battery power supply module and the USB power supply module respectively. The output end of the switching circuit serves as the output end of the power supply circuit. The switching circuit turns on or off the USB power supply module and the battery power supply module to the output end of the switching circuit according to the level of the USB power supply module input.

5. The LED clock according to claim 4, characterized in that: The switching circuit includes a diode Da, a resistor Ra, a resistor Rb and a PNP transistor Q2, wherein the two ends of the resistor Rb are respectively connected to the negative electrode of the USB power supply module and the base of the transistor Q2, the positive electrode of the diode Da is connected to the positive electrode of the USB power supply module, the negative electrode of the diode Da is connected to the collector of the transistor Q2, the two ends of the resistor Ra are respectively connected to the positive electrode of the diode Da and the base of the transistor Q2, the emitter of the transistor Q2 is connected to the positive electrode of the battery power supply module, and the negative electrode of the diode Da serves as the output end of the switching circuit.

6. The LED clock according to claim 5, characterized in that: A switch is connected between the emitter of the transistor Q2 and the positive electrode of the battery power supply module.

7. The LED clock according to claim 1, characterized in that: The circular dial is also provided with a temperature sensing circuit, the temperature sensing circuit comprises a temperature sensor, and the temperature sensor is connected to the IO port of the single chip microcomputer.

8. The LED clock according to claim 1, characterized in that: The circular dial is also provided with a keyboard circuit, which includes a plurality of keys, one end of each key is grounded, and the other end is respectively connected to different IO ports of the single-chip microcomputer.

9. The LED clock according to claim 1, characterized in that: A passive buzzer is also provided on the circular dial, and the passive buzzer is connected to the emitter of the NPN transistor Q1, the base of the transistor Q1 is connected to the IO port of the single chip computer through the resistor R3, and the collector of the transistor Q1 is connected to the power supply circuit.

10. The LED clock according to claim 1, characterized in that: The clock chip circuit includes a DS1302 clock chip, the X1 port and the X2 port of the DS1302 clock chip are grounded via a capacitor respectively, and the X1 port and the X2 port are connected to the crystal oscillator Y2, and the SCLK port of the DS1302 clock chip is connected to the main clock output pin of the single-chip computer. The port is connected to the output pin of the single chip microcomputer, and the IO port is connected to the IO port of the single chip microcomputer.