1. Technical Field
The present disclosure relates to power on/off control systems, and particularly to a power on/off control system and a power on/off control method for an electronic device.
2. Description of Related Art
Nowadays, electronic devices, such as computers, mobile phones, are used in daily life. Sometimes, the electronic devices need to be powered on or powered off in turn, and it laborious and tired in manual work. Therefore, there is room for improvement within the art.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like-reference numerals designate corresponding parts throughout the several views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
An output terminal of the first stabilized voltage supply 13 is connected to an input terminal of the second stabilized voltage supply 14. A first terminal of a third capacitor C3 is connected to the output terminal of the first stabilized voltage supply 13, and a second terminal of the third capacitor C3 is grounded. A first terminal of the fourth capacitor C4 is connected to the output terminal of the first stabilized voltage supply 13, and a second terminal of the fourth capacitor C4 is grounded. The output terminal of the first stabilized voltage supply 13 is connected to a positive of a diode D1 via a resistor R1, and a negative of the diode D1 is grounded.
A first terminal of a fifth capacitor C5 is connected to the input terminal of the second stabilized voltage supply 14, and a second terminal of the fifth capacitor C5 is grounded. A first terminal of a sixth capacitor C6 is connected to the input terminal of the second stabilized voltage supply 14, and a second terminal of the sixth capacitor C6 is grounded. A first terminal of a seventh capacitor C7 is connected to the output terminal of the second stabilized voltage supply 14, and a second terminal of the seventh capacitor C7 is grounded. A first terminal of an eight capacitor C8 is connected to the input terminal of the second stabilized voltage supply 14, and a second terminal of the eighth capacitor C8 is grounded. The output terminal of the first stabilized voltage supply 14 is connected to a positive of a diode D2 via a resistor R2, and a negative of the diode D2 is grounded. The transformer 11 is used to change the 220V AC to a 12V AC. The rectifier bridge 12 is used to change the 12V AC to a 16V direct current (DC). The first stabilized voltage 13 is used to change the 16V DC to a 12V DC. The second stabilized voltage 14 is used to change the 12V DC to 5V DC.
The switch device 22 comprises a photoelectric coupler 220 and a relay 221 connected to the photoelectric coupler 220. The positive of the light-emitting diode (LED) of the photoelectric coupler 220 is connected to a pin P1.3 of the microcontroller 21 via a resistor R3. The negative of the LED of the photoelectric coupler 220 is grounded. The emitter of a phototransistor of the photoelectric coupler 220 is grounded. The collector of the phototransistor of the photoelectric coupler 220 is connected to a first terminal of the relay 221, and a second terminal of the relay 221 is connected to the 12V DC. A first terminal 223 of each switch 222 of the relay 221 is connected to AC (not shown), and a second terminal 224 of each switch 222 of the relay 221 is connected to an electronic device (not shown), such as a computer.
In use, when the switch K1 is pressed, the pin P3.5 of microcontroller 21 is grounded via the switch K1, and the control module 21 is located in a setting mode. Thus, the parameters, comprising a conduction time (ON), a power-off time (OFF), a power on/off time (CY), and a total of the power on/off time (PCY) of the displayer 31, can be set by the displayer 31. A value of each parameter can be set in a range of 0000-9999. The switch K1 is pressed repeatedly, and the order of the ON-OFF-CY-PCY can be changed. The switch K2 is pressed, the pin P3.6 of the microcontroller is grounded via the switch K2. The parameters can be set repeatedly 0-9 times via pressing the switch K2. The switch K3 is pressed, the pin P3.7 of the microcontroller is grounded via the switch K3. When the parameters are set, the conduction time (ON) is completed by the switch K3, and a high level ‘1’ is output by the pin P1.3 of the microcontroller 21. The LED of the photoelectric coupler 220 is lit, so that the phototransistor of the photoelectric coupler 220 is switched on. Thus, a coil of the relay 221 is powered on to generate magnetism, to turn on the switch 27 of the relay 221. The OFF is completed by the switch K3, and a low level ‘0’ is output by the pin P1.3 of the microcontroller 21. The LED of the photoelectric coupler 220 stopping lighting, so that the phototransistor of the photoelectric coupler 220 is switched off. Thus, the coil of the relay 221 is powered off, and magnetism is not in the relay 221, to turn off the switch 27 of the relay 221. At this time, the electronic device is powered off to count the OFF. When the ON is set, a low level ‘0” is output by the microcontroller 21, and the relay 221 stops supplying power to the electronic device and start the OFF. When the OFF is set, a high level ‘1” is output by the microcontroller 21, and the relay 221 supplies power to the electronic device and start the ON. The ON and the OFF are set repeatedly, until the total of the PCY is equal to a predetermined total of the PCY.
It is to be understood, however, that even though numerous characteristics and advantages have been set forth in the foregoing description of embodiments, together with details of the structures and functions of the embodiments, the disclosure is illustrative only and changes may be made in detail, especially in the matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
2013100936549 | Mar 2013 | CN | national |