BACKGROUND
1. Technical Field
The present disclosure relates to an alarm function on an electronic device.
2. Description of Related Art
Due to portability, convenience, and easy operation of the electronic device, users often store their important or private data on electronic devices. However, other people can easily open the electronic device and access the important or private data when the owner of the device is unaware or not present. For the electronic apparatus with a cover, such as a notebook, when not in use, the user can close the cover. But the cover is easily opened and the data stored on the electronic device can be accessed.
Therefore, a new electronic device is desired to overcome the above-described shortcoming.
BRIEF DESCRIPTION OF THE DRAWINGS
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
FIG. 1 is an isometric diagram of an electronic device in accordance with one embodiment.
FIG. 2 is a partially cutaway view of a main body of the electronic device of FIG. 1.
FIG. 3 is a circuit module diagram of the electronic device of FIG. 1.
FIG. 4 a circuit module diagram of an electronic device in accordance with another embodiment.
DETAILED DESCRIPTION
FIG. 1 is an isometric diagram of an electronic device 1 in accordance with one embodiment. The electronic device 1 includes a cover 11 and a main body 12. The main body 12 includes a top surface 120 and a side surface 122. A first groove 121 is defined in the top surface 120. A second groove 123 is defined in the side surface 122. The first groove 121 and the second groove 122 communicate with each other to form a slot 124, as shown in FIG. 2. The main body 12 further includes a hook 125 and a sliding button 126. The hook 125 protrudes from the first groove 121. The sliding button 126 protrudes from the second groove 123. A recess 111 that matches with the hook 125 is defined on a lower portion of the cover 11. The recess 111 matches with the hook 125 to lock the cover 11 to the main body 12. The sliding button 126 can lock the cover 11 when it is closed, and can be slid to make the hook 125 release from the recess 111 to unlock the cover 11 from the main body 12.
Referring to FIG. 2, the main body 12 further includes a sensor 128 and an elastic element 129. The sensor 128 is located on an inner wall of the slot 124 through the elastic element 129. In this illustrated embodiment, the elastic element 129 is a spring.
Referring to FIG. 3, the electronic device 1 further includes a processing unit 30, an alarm unit 32 and a switch 33. The sensor 128 is connected to the processing unit 30. When the sliding button 126 is slid, the hook 125 is moved by the sliding button 126 to contact the sensor 128. The sensor 128 generates a sensing signal due to the contact with the hook 125. When the sensing signal is generated by the sensor 128, the processing unit 30 receives the sensing signal from the sensor 128 and controls the alarm unit 32 to sound alarm. The switch 33 is for turning on/off the alarm unit 32. The alarm unit 32 can be turned on in an unsafe environment and can be turned off in a safe environment. In this illustrated embodiment, the sensor 128 is a pressure sensor.
In this embodiment, the alarm unit 32 includes a wireless signal sending device 321. When the processing unit 30 detects the sensing signal generated by the sensor 128, the processing unit 30 controls the wireless signal sending device 321 to send an alarm signal to a wireless signal receiving device (not shown). The wireless signal receiving device will sound an alarm. As the wireless signal receiving device sounds the alarm, the user can react to the alarm in time when the electronic device is opened. In this illustrated embodiment, the switch 33 is connected to the wireless signal sending device 321. The alarm unit 32 is turned on/off by turning on/off the wireless signal sending device 321.
Referring to FIG. 4, an electronic device in accordance with another embodiment is similar to the electronic device 1 of FIGS. 1 through 3, except that the electronic device in accordance with the another embodiment further includes a data storage 34. A prerecorded audio alarm 341 is stored in the data storage 34. The alarm unit 32 includes an audio output unit (not shown) such as a speaker. When the sensing signal is generated by the sensor 128, the processing unit 30 obtains the prerecorded audio alarm 341 from the data storage 34 and sends the prerecorded audio alarm 341 through the audio output unit. In this illustrated embodiment, the switch 33 is connected to the audio output unit. The alarm unit 32 is turned on/off by turning on/off the audio output unit 321.
Although the present disclosure has been specifically described on the embodiments, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.