1. Technical Field
The present disclosure relates to a password checking device.
2. Description of Related Art
In computer security, mechanical locks and fingerprint locks are often used to protect a computer. However, the keys of the mechanical locks are easily lost, and the fingerprint locks are expensive.
What is needed, therefore, is a password checking device capable of overcoming the described limitations.
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.
Embodiments of the present disclosure are described in detail as follows, with reference to the accompanying drawings.
Referring to
The touch pushbutton 10 is electrically connected to the capacitive touch sensor 20. The switching circuit 40 is electrically connected to the power pushbutton 210 of the computer. The processor 30 is electrically connected to the capacitive touch sensor 20, the switching circuit 40, and the reminding device 50. In addition, the processor 30 is electrically connected to a main board 400 of the computer via a serial communication chip 500.
The touch pushbutton 10 includes a metal cover 11 and a metal spring 12. In the present embodiment, the touch pushbutton 10 is fixed on a circuit board 300. The circuit board 300 includes a ring-shaped copper foil 310 and a number of leads 320. The ring-shaped copper foil 310 is positioned on the upper surface of the circuit board 300. The ring-shaped copper foil 310 is electrically connected to the leads 320. The metal spring 12 includes a resisting end 120 and a connecting end 121 opposite to the resisting end 120. The metal cover 11 is fixed on the resisting end 120. The connecting end 121 can be connected to the ring copper foil 310 by a soldering process. When the metal cover 11 is touched by a hand, the capacitance of the metal spring 12 changes.
The power pushbutton 210 is received in the metal spring 12. The power pushbutton 210 is capable of being pressed down by the metal cover 11. In the present embodiment, the power pushbutton 210 includes a first terminal 211 and a second terminal 212. The first terminal 211 and the second terminal 212 are soldered onto the circuit board 300. The first terminal 211 is electrically connected to a power on signal terminal 410. The second terminal 212 is electrically connected to the switching circuit 40. The switching circuit 40 controls the second terminal 212, which is selectively grounded. If the second terminal 212 is connected to ground, and the power on pushbutton 210 is pressed down to make the first terminal 211 electrically connect to the second terminal 212 at the same time, the power on signal terminal 410 can be connected to ground to turn on the computer.
The capacitive touch sensor 20 senses whether the capacitance of the touch pushbutton 10 is changed. When the capacitance of the touch pushbutton 10 is changed, the capacitive touch sensor 20 sends a counting signal. In the present embodiment, the capacitive touch sensor 20 can be a CY8C21334 chip. A terminal P2.1 of the capacitive touch sensor 20 is electrically connected to the metal spring 12 by the leads 320 and the ring-shaped copper foil 310. A terminal P0.1 of the capacitive touch sensor 20 is electrically connected to the processor 30.
In the present embodiment, the processor 30 can be a PIC16F73 microcontroller. A terminal P1.7 of the processor 30 is electrically connected to the terminal P0.1 of the capacitive touch sensor 20. A terminal P1.1 of the processor 30 is electrically connected to the switching circuit 40. A terminal P3.5 of the processor 30 is electrically connected to the reminding device 50. An end of a capacitor 91 and an end of a crystal oscillator 92 are both connected to a terminal XTAL2 of the processor 30. The other end of the capacitor 91 is connected to ground. An end of a capacitor 93 and the other end of the crystal oscillator 92 are both electrically connected to a terminal XTAL1 of the processor 30. The other end of the capacitor 93 is connected to ground. The crystal oscillator 92 offers a clock frequency to the processor 30. A terminal P3.0 and a terminal P3.1 of the processor 30 are respectively connected to a terminal T2 IN and a terminal R2 OUT of the serial communication chip 500 for communicating with the main board 400. The serial communication chip 500 can be an IC MAX 232 chip. A terminal T2 OUT and a terminal R2 IN of the serial communication chip 500 are electrically connected to a COM interface 420 of the main board 400. An end of a capacitor 81, an end of a switch 82, and an end of a resistor 83 are electrically connected to a RET terminal of the processor 30. The other end of the capacitor 81 and the other end of the switch 82 are electrically connected to a voltage source VCC. The other end of the resistor 83 is electrically connected to ground. If the switch 82 is closed, the processor 30 will be reset.
The processor 30 pre-sets a password defined by the times of the counting signal and spacing intervals between two sequential counting signals. The processor 30 includes an authentication module 31, a setting module 32 and a reminding module 33. The authentication module 31 determines whether the times of the counting signal and spacing intervals between two sequential counting signals from the capacitive touch sensor 20 is same as the pre-set password. In the present embodiment, the password can be a four digit number password, but it should be understood that other combinations of digits, letters, and symbols may be used with equal applicability. The processor 30 receives the counting signal from the capacitive touch sensor 20. If the spacing interval between two counting signals is less than 3 seconds, the counting signals will be defined as a group of signals, the times of the counting signals in a group is defined as a digit. If the spacing interval between a backward counting signal and a forward counting signal is more than 3 seconds, the backward counting signal will be defined as a next group of signals. The processor 30 also pre-sets a locking time. In the present embodiment, the locking time is 5 seconds. If the password does not match with the pre-password or the spacing intervals is more than the locking time, the authentication module 31 will send the second signal to the switching circuit 40, thereby the second terminal 212 is disconnected from ground by the switching circuit 40.
The setting module 32 is used for setting the pre-password. In the present embodiment, the setting module 32 communicates with the main board 400 via the serial communication chip 500. The authorized user edits the pre-password with the computer communicating with the setting module 32.
The reminding module 33 controls the reminding device 50 to send a reminder. The reminder shows the lock state of the computer. In the present embodiment, the reminding module 33 controls the reminding device 50 to send a first reminder to show that the computer is unlocked. The reminding module 33 controls the reminding device 50 to send a second reminder to show that the computer is locked.
The switching circuit 40 makes the second terminal 212 of the power pushbutton 210 grounded or not grounded. In the present embodiment, the switching circuit 40 is an electromagnetic relay. The switching circuit 40 includes a third terminal 41, a fourth terminal 42, and a control terminal 43. The third terminal 41 is connected to ground. The fourth terminal 42 is electrically connected to the second terminal 212. The control terminal 43 is electrically connected to the terminal P1.1 of the processor 30 for receiving a control signal of the processor 30.
The reminding device 50 sends the first reminder and the second reminder according to the first and second signal from the authentication module 31. The first and second reminders can be a sound reminder, a light reminder, or an image reminder. In the present embodiment, the reminding device 50 is a dual-wavelength red/green light emitting diode with four terminals. The first reminder is a green light. The second reminder is a red light. Two terminals of the reminding device 50 are respectively connected to the voltage Vcc and ground. The other two terminals of the reminding device 50 are both connected to the terminal P3.5 of the processor 30.
When the capacitance of the touch pushbutton 10 is changed, the capacitive touch sensor 20 sends a counting signal to the processor 30. The terminal P1.7 of the processor 30 receives the counting signal from the capacitive touch sensor 20. The authentication module 31 determines whether the counting signal matches pre-set password. If the password is accepted, the authentication module 31 will send a first signal to the switching circuit 40 and the reminding module 33. The switching circuit 40 makes the second terminal 212 connect to ground, when the control terminal 43 receives the first signal. At this time, if the power pushbutton 210 is pressed, the power pushbutton 210 is capable of starting the computer. The terminal P3.5 of the processor 30 outputs a low level voltage to control the reminding device 50 to emit a green light, when the reminding module 33 receives the first signal from the authentication module 31.
If the password is not accepted, the authentication module 31 sends a second signal to the switching circuit 40 and the reminding module 33. The switching circuit 40 makes the second terminal 212 disconnect from ground, when the control terminal 43 receives the second signal. At this time, even the power pushbutton 210 is pressed, the power pushbutton 210 is incapable of starting the computer, because the second terminal 212 is disconnected from ground. That will prevent the computer from being started by an unauthorized user. The terminal P3.5 of the processor 30 outputs a high level voltage to control the reminding device 50 to emit a red light, when the reminding module 33 receives the second signal from the authentication module 31.
While certain embodiments have been described and exemplified above, various other embodiments will be apparent to those skilled in the art from the foregoing disclosure. The present disclosure is not limited to the particular embodiments described and exemplified, and the embodiments are capable of considerable variation and modification without departure from the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201110006671.5 | Jan 2011 | CN | national |