1. Technical Field
The embodiments of the present disclosure relate to warning systems and methods, and more particularly to an electronic device and method for displaying warning signals in relation to a bicycle.
2. Description of related art
Bicycles are popular as a means of transport. However, the bicycles do not include warnings to other road users such as brake lights or turn signals. A bicycle is vulnerable and it is dangerous for cyclists if there are no any warning device on the bicycles to display warning signals to other traffic when the bicycle brakes and turns.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. 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.”
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language. In one embodiment, the program language may be Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, flash memory, and hard disk drives.
Referring to
In one embodiment, the storage device 12 (non-transitory storage device) may be an internal storage system, such as a random access memory (RAM) for the temporary storage of information, and/or a read only memory (ROM) for the permanent storage of information. In some embodiments, the storage device 12 may be an external storage system, such as an external hard disk, a storage card, or a data storage medium.
The at least one processor 14 may include a processor unit, a microprocessor, an application-specific integrated circuit, and a field programmable gate array, for example.
The gravity sensor 16 detects acceleration of the electronic device 1 along three predefined axes in real time. The three predefined axes are represented by the Z-axis in the direction of gravity, by the X-axis perpendicular to the display screen 20 of the electronic device 1, and by the Y-axis perpendicular to both the Z-axis and the X-axis.
The gyroscope 18 detects angular velocity of the electronic device 1 along the three predefined axes.
The display screen 20 may be an LED device or an LCD screen, and displays warning signals according to a driving condition of the bicycle 2, where the driving condition may be a turning or a braking of the bicycle 2, for example. As shown in
In one embodiment, the warning signals displaying system 10 includes a plurality of function modules which include computerized codes or instructions that can be stored in the storage device 12 and executed by the at least one processor 14 to provide a method for sending a warning signal.
In one embodiment, the warning signals displaying system 10 may include a detecting module 100, a determination module 102, and a display module 104. The modules may comprise computerized codes in the form of one or more programs that are stored in the storage device 12 and executed by the at least one processor 14 to provide functions for implementing the modules. The functions of the function modules 100-104 are illustrated in
In block S21, the detecting module 100 detects an acceleration of the electronic device 1 along the three predefined axes in real time using the gravity sensor 16, and detects an angular velocity of the electronic device 1 along the three predefined axes using the gyroscope 18. In the embodiment, the three predefined axes may be represented by the Z-axis in the direction of gravity, by the X-axis perpendicular to the display screen 20 of the electronic device 1, and by the Y-axis perpendicular to both the Z-axis and the X-axis.
In block S22, the determination module 102 determines the current driving condition of the bicycle 2 according to detected acceleration and the detected angular velocity of the electronic device 1. In the embodiment, the driving condition may be whether the electronic device 1 is accelerating or at a uniform speed, or whether the electronic device is turning to the left or turning to the right, or whether the electronic device is slowing down sharply because the bicycle is braking.
In one exemplary embodiment of
In the embodiment, from above the cyclist, if the angular velocity of the electronic device 1 in the counter clockwise direction around the Z-axis reaches the predefined threshold value, and an angle through which the electronic device 1 rotates around the Z-axis is less than a first predefined value but more than a second predefined value, it indicates that the acceleration of the electronic device 1 is in the positive direction of the X-axis and thus that the bicycle 2 is turning to the left. Again from above, if the angular velocity of the electronic device 1 in the counter clockwise direction around the Z-axis reaches the predefined threshold value, and an angle through which the electronic device 1 rotates around the Z-axis is less than the first predefined value but more than the second predefined value, it indicates that the acceleration of the electronic device 1 is in the negative direction of the X-axis and thus that the bicycle 2 is turning to the right.
In block S23, the display module 104 displays warning signals on the display screen 20 according to the current driving condition of the bicycle 2. In the embodiment, if the bicycle 2 turns to the left, the warning signal is a left arrow; if the bicycle 2 turns to the right, the warning signal is a right arrow; if the bicycle brakes, the warning signal is a flashing circle; if the bicycle returns to a single movement vector or a uniform speed, all of the display on the display screen 20 is cleared.
Although certain disclosed embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
101115291 | Apr 2012 | TW | national |