[go: up one dir, main page]

TW201035818A - Direction sensing circuit and electronic device using the same - Google Patents

Direction sensing circuit and electronic device using the same Download PDF

Info

Publication number
TW201035818A
TW201035818A TW98110300A TW98110300A TW201035818A TW 201035818 A TW201035818 A TW 201035818A TW 98110300 A TW98110300 A TW 98110300A TW 98110300 A TW98110300 A TW 98110300A TW 201035818 A TW201035818 A TW 201035818A
Authority
TW
Taiwan
Prior art keywords
pin
resistor
input
ball
processor
Prior art date
Application number
TW98110300A
Other languages
Chinese (zh)
Other versions
TWI389013B (en
Inventor
wan-jun Jiang
Ting Dong
Original Assignee
Hon Hai Prec Ind Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW98110300A priority Critical patent/TWI389013B/en
Publication of TW201035818A publication Critical patent/TW201035818A/en
Application granted granted Critical
Publication of TWI389013B publication Critical patent/TWI389013B/en

Links

Landscapes

  • Position Input By Displaying (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

A direction sensing circuit is provided. The circuit includes a processor having a first input port and a second input port, a ball-rolling switch having a rolling ball, a first pin, a second pin, a third pin, a fourth pin and a fifth pin, a first resistor, a second resistor and third resistor. The resistance of the third resistor is far larger than the resistance of the second resistor, and the resistance of the second resistor is far larger than the resistance of the first resistor. The rolling ball connects different pins in accordance with the different placements of the ball-rolling switch, result in providing different combined input stages to the first input port and the second input port of the processor. The processor records a relationship between the combined stages of two input ports of the processor and a plurality of control instructions, and executes a corresponding control instruction in response to the combined stage of the two input ports of the processor, thereby executing a corresponding direction control function. An electronic device utilizes the direction sensing circuit is also provided.

Description

201035818 六;發明說明: * 【發明所屬之技術領域】 . 本發明涉及一種方向傳感電路及應用該電路的電子裝置。 【先前技術】 - 目前,越來越多的電子裝置使用方向傳感電路來實現相應功 能。例如,在數碼相框中,所述方向傳感電路用於控制顯示圖像 的狀態,或在其他電子裝置中執行其他控制功能。 圖3為現有技術中方向傳感電路10的硬體架構圖。所述方向 〇 傳感電路10包括一滾珠開關K1、一處理器U1及電阻ri、R2。 所述滾珠開關K1包括一第一引腳1、一第二引腳2、一第三引腳 3、一第四引腳4及一滾珠5。所述處理器m包括一第一輸入端 101及一第一輸入端1〇2。所述第一引腳1電連接於所述第一輸入 端101’同時經由所述電阻R1電連接於一電源乂〇:;所述第二引 腳2電連接於所述第一輸入端102 ’同時經由所述電阻R2電連接 於所述電源VCC ;所述第三引腳3及第四引腳4接地。當所述滾 珠5將所述第一、第二、第三及第四引腳按順時針兩兩接通時, 所述第一輸入端101與第二輸入端102獲得的組合輸入狀態為 11、10、11及01 ’有效狀態為11、1〇、〇1。所述處理器仍存儲 一輸入端的組合輸入狀態對應的控制信號列表,根據檢測的組合 輸入狀悲及所述列表輸出對應的控制信號,並根據該控制信號完 成方向控制。然而,上述方向傳感電路10應用於一電子裝置時, 只能探測到三種放置方位,一般情況下電子裝置有4種放置方位, 4 201035818 .因此其無法滿足這樣的要求。 .、解決上述問題的較相途徑是增加處理n用於連接該方向傳 •感電路的弓丨腳的輸入端(1〇 口),這樣會佔用處理器過多的輸入 - 端,增加方向傳感電路設計的難度。 鑒於上述問題,有必要發明一種方向傳感電路及運用該方向 傳感電路的電子裝置’在只使用處理器的兩個輸入端情況下,可 以探測到方向傳感電路4種放置方位,使得方向傳感電路及運用 0 該方向傳感電路的電子裝置可以實現更多醜用或避免誤操作。 【發明内容】 本發明的目的在於提供一種方向傳感電路。 所提供的方向傳感電路,包括一處理器具有一第一輸入端及 一第二輸入端,一滾珠開關具有一第一引腳、一第二引腳、一第 二引腳、一第四引腳及一滚珠。所述電路還包括一第一電阻、一 第二電阻及一第三電阻。第三電阻的阻值遠大於第二電阻,第二 ® 電阻的阻值遠大於第一電阻。所述滾珠開關還包括一第五引腳位 於所述第一與第二引腳之間,第一引腳電連接於一電源,且經由 所述第二電阻電連接於所述第三引腳,第二引腳電連接於所述第 二輸入端’且經由所述第三電阻接地’第四引腳電連接於所述第 一輸入端,且經由所述第一電阻接地,所述滾珠根據滾珠開關擺 放方位的不同電連接不同的引腳,使所述處理器的第一輸入端與 第二輸入端呈現不同的組合輸入狀態,所述處理器存儲一第一和 第二輸入端的組合輸入狀態對應的控制信號的列表’根據所述第 5 201035818 一和第二輸人埠的組合輸人狀態及所述列表輸出對應的控制作 號。 σ * 本發明㈣-目的在於提供—觀时向佩電路的電子裝 - 置。 、 所提供的應用方向傳感電路的電子裝置,包括一處理器具有 -第-輪人端及—第二輸人端,—滾珠開關具有—第—引腳、一 • 第二引腳、—第三引腳、一第四引腳及—滾珠。所述電路還包括 〇 帛—電阻、—第二電阻及—第三電阻。第三電阻的阻值遠大於 第一電阻,第二電阻的阻值遠大於第一電阻。所述滾珠開關還包 括一第五引腳位於所述第一與第二引腳之間,第一引腳電連接於 一電源,且經由所述第二電阻電連接於所述第三引腳,第二引腳 電連接於所述第二輸入端,且經由所述第三電阻接地,第四引腳 電連接於所述第一輸入端,且經由所述第一電阻接地,所述滾珠 ^ 根據滾珠開關擺放方位的不同電連接不同的引腳,使所述處理器 的第一輸入端與第二輸入端呈現不同的組合輸入狀態,所述處理 器存儲一第一和第二輸入端的組合輸入狀態對應的控制信號的列 表,根據所述第一和第二輸入埠的組合輸入狀態及所述列表輸出 對應的方向控制信號,並根據該方向控制信號執行電子裝置的相 應功能。 本發明之優點在於,所述方向傳感電路及應用該方向傳感電 路的電子裝置,在佔用較少輸入埠的情況下,可以探測到方向傳 感電路4種放置方位,使得方向傳感電路及運用該方向傳感電路 6 201035818 .的電子裝置可以實現更多的應用或避免誤操作。 【實施方式】 * 赫考圖卜圖1為本發财向傳感電路的硬齡構圖。所述 電路20包括滾珠開關K2、處理器U10、一第一電阻Ru、—第二 電阻R12及-第三電阻R13。所述第_、第二及第三電阻的阻值 依次增大。在本實施例中,所述第—電阻R11的阻值例舉為狐 歐姆’所述第二電阻R12的阻值例舉為1〇〇κ歐姆,所述第三電 〇 阻R13的阻值例舉為1Μ歐姆。所述處理器υιο包括一第一輸入 端101及一第二輸入端102。所述滾珠開關π包括一第—引腳卜 第一引腳2、-第三引腳3、一第四引腳4、—第五引腳5及一 滾珠6。所述第一引腳丄電連接於—電源*,且經由所述第二電 阻R12電連接於所述第三引腳3 ;所述第二引腳2電連接於所述 第二輸入端1〇2,且經由所述第三電阻Rl3接地;所述第四引腳* 電連接於所述第一輸入端1〇1,且經由所述第一電阻接地; ❹所述第五⑽5位於所述第-引腳1與第二引腳2之間,且電連 接於所述第四引腳4。 圖2A〜2E示出了方向傳感電路2〇應用于電子裝置時,所述 滾珠6與?丨腳!_5之間的連接關係。在本發明具體實施方式中,電 子裝置被例舉為一數碼相框,所述的方向傳感電路2〇用於控制數 馬相框的顯示器12顯不的圖像。根據顯示器12的放置方位(平 鋪或旦立)’所述滾珠6與任一引聊均不電連接或者所述滾珠6將 至/兩個不相同的引腳電連接。如圖2a所示,當顯示器12平铺 7 201035818 •時’所述滚珠6與任一引腳均不電連接。所述第一輸入端Ι〇ι經 由所述第一電阻R11接地’所述第一輸入端IOi獲得一低電平; - 所述第二輸入端102經由所述第三電阻R13接地,所述第二輸入 - 端102亦獲得一低電平。故所述第一及第二輸入埠ιοί與1〇2的 組合狀態為00。 當顯示器12豎立時,所述滾珠6將處於以下幾種狀態: 1 ·如圖2B所示’所述滾珠6將所述第三引腳3與所述第四 €> 引腳4電連接時,所述第二電阻!^2與所述第一電阻R11串聯於 所述電源Vcc與地之間。所述第一入端101經由所述四引腳4獲 知的電壓為(Rll/(Rl2+Rll))*Vcc,由於所述第二電阻R12遠大於 所述第一電阻R11,故所述第一輸入端1〇1經由所述第四引腳4 獲得的電壓近似於零,所述第-輸入端101獲得-低電平。所述 第一輸入端102經由所述第三電阻R13接地,所述第二輸入端1〇2 亦獲知低電平。此時,所述第一及第二輸入埠與的組 ❹ 合狀態為〇〇。 2 ·如圖2C所示,所述滾珠6將所述第二引腳2與所述第三 引腳3電連接時,所述第一輸入端101經由所述第一電阻RU接 也所述第一輸入端1〇1獲得一低電平;所述第二電阻與所 述第三電阻R13串聯於所述電源Vcc和地之間,所述第二輸入端 ι〇2經由所述二引腳2獲得的電壓為(R13/(R13+Ri2)n,由於 所述第二電阻R13遠大於所述第二電阻Rl2,故所述第二輸入端 102、’工由所述第二引腳2獲得的電壓近似於所述電源%,所述第 8 201035818 •二輪入端102獲得—高電平,此時,所述第-及第二輸入埠io1 與102的組合狀態為。 ‘ 3 .如圖2D所示,所述滾珠6將所述第四引腳4與所述第一 •弓1腳1電連接時,所述第一輸入埠101經由所述第四引腳4及所 述第-引腳1電連接於所述電源Vcc,所述第一輪入淳ι〇ι獲得 -高電平。所述第二輸入端102經由所述第三電阻Rn接地,所 述第二輸入端102獲得一低電平。此時,所述第—及第二輪入痒 〇 101與1〇2的組合狀態為1〇。 4如圖2E所示,所述滾珠6將所述第一引腳土、第二引腳2 及第五引腳5電連接時,所述第-輸入端1〇1經由所述第四引腳* 及所述第五引腳5電連接於所述電源Vcc,所述第一輸入端ι〇ι 獲得一高電平;所述第二輸入端102經由所述第二引腳2電連接 於所述電源Vex,所述第二輸人端1〇2獲得—高電平,故輪入蜂 101與102的組合狀態為11。 ❹ 所述輸入端101與102的組合狀態為00時,所述滚珠6與引 腳1-5的連接關係包括兩種情況。第一種情況為滾珠6將所述第三 引腳3與第四弓丨腳4電連接;第二種情況為滾珠6與任何引腳均 不電連接。在本發明-實施例中’為克服顯示器12由正立放置到 平鋪放置時,顯示器12顯示的圖像發生偏轉的現象,將滾珠開關 K2設置為:所述顯示器12正立時,滾珠6電連接第三引腳3與 第四引腳4 ;顯示器12設置為平鋪放置時,滾珠6與任何引腳均 不電連接。例如,該方向傳感電路20用於數碼相框時,顯示器12 9 201035818 •矛平鋪放置時,第_、二輸人端組合輸人狀態縣為〇〇,所 述處理盗U10根據組合輸入狀態〇〇讀取一控制信號,控制顯示器 12顯示的圖像正立。 所述處理器U10存儲一列表100,所述列表1〇〇定義了所述 處里器mo的輸入端101、1〇2的組合狀態與控制信號的對應關係。 列表100 " 第一輸入端 1 第二輸入端 控制信號 0 ------- 0 -------- S1 0 ---------- 1 ---—----- S2 1 0 --------- S3 1 1 -------- S4 如列表100所示,當輸入端101與1〇2的組合狀態為⑻時, 所述處理H U1G根據所述列表i⑻讀取控繼號S1;當輸入端 ❹101與102的組合狀態為01時,所述處理器U10根據所述列表100 讀取控制信號S2;當輸入端101與1〇2的組合狀態為1〇時,所述 處理器U10根據所述列表100讀取控制信號S3;當輸入端1〇1與 102的組合狀態為1:L時’所述處理器υι〇根據所述列表1〇〇讀取 控制彳5號S4。所述處理器U10根據讀取的控制信號執行圖像的方 向控制。 如圖2A和2B所示,當顯示器12正立或者平鋪時,所述第 一輸入端101與第二輸入端1〇2的組合輸入狀態為〇〇時,所述處 理裔U10根據該組合輸入狀態〇〇和列表_讀取控制信號si, 201035818 •並根據該控制信號S1維持並顯示原始圖像於顯示器12,圖像正立 顯示。 . 如圖2C所示,當顯示器12向左旋轉至左邊框平行于水平面 . 時,所述滾珠6將第二引腳2與第三引腳3電連接,所述第一輸 入步而101與第二輸入端102的'組合輸入狀態為,所述處理器υιο 根據該組合輸入狀態01和列表100讀取控制信號S2,並根據該控 制"is说S2將原始圖像向右旋轉90度’並顯示旋轉後的原始圖像 〇 於所述顯示器12 ’從而使旋轉後的圖像正立顯示。 如圖2D所示,當顯示器12向右旋轉至右邊框平行于水平面 時’所述滾珠6將第一引腳1與第四引腳4電連接,所述第一輸 入端101與第二輸入端102的組合輸入狀態為1〇,所述處理器ul〇 根據該組合輸入狀態10和列表100讀取控制信號S1,並根據該控 制信號S1將原始圖像向左旋轉9〇度,並顯示旋轉後的原始圖像 於所述顯示器12,從而使旋轉後的圖像正立顯示。 如圖2E所示,當顯示器12倒立放置時,所述滾珠6將第一 引腳i、第二引腳2及第五引腳5電連接,所述第一輸入端ι〇ι 與第二輸入端102的組合輸入狀態為u,所述處理器獅根據該 組合輸入狀態11和列表厕讀取控制信號S4,並根據該控制信號 S4將原始圖像旋轉18〇度,並顯示旋轉後的原始圖像於所述顯示 器12 ’從而使顯示器12倒立時,圖像仍然正立顯示。 為避免誤操作出現,所述處理器m〇内部還包括一計時器(圖 未示)’用於計時所述第一及第二輸入蜂獲得組合狀態的時間,且 11 201035818 所述處理器U10根據 號,根據該控制信號 .在所述計時If計時__1設時間時, 獲得的輸人埠的組合狀態輸出fi應的控flHt 執行相應方向控制。 .綜上所述,本發明所述方向佩電路及朗該方向傳感電路 的電子農置,在只使用處理器的兩個輪入端情況下,可以探測到 方向傳感電路4歡置方位,使得方向傳感電路及運用該方向傳 感電路的電子裝置可以實現更多的朗或避免誤操作。 Ο 【圖式簡單說明】 圖1為本發明方向傳感電路的硬體架構圖。 圖2A〜2E示出了方向傳感電路應用於一電子裝置時,滾珠與 引腳之間的連接關係。 圖3為現有技術中方向傳感電路的硬體架構圖。 【主要元件符號說明】 方向傳感電路 20 第一電阻 R11 第二電阻 R12 第三電阻 R13 滾珠開關 ΚΙ、K2 處理器 U10|、U1 電阻 Rl、R2 方向傳感電路 10 12201035818 VI; INSTRUCTION DESCRIPTION: * [Technical Field of the Invention] The present invention relates to a direction sensing circuit and an electronic device using the same. [Prior Art] - Currently, more and more electronic devices use directional sensing circuits to achieve the corresponding functions. For example, in a digital photo frame, the direction sensing circuit is used to control the state of the displayed image or to perform other control functions in other electronic devices. 3 is a hardware architecture diagram of the prior art direction sensing circuit 10. The direction 传感 sensing circuit 10 includes a ball switch K1, a processor U1, and resistors ri, R2. The ball switch K1 includes a first pin 1, a second pin 2, a third pin 3, a fourth pin 4, and a ball 5. The processor m includes a first input terminal 101 and a first input terminal 1〇2. The first pin 1 is electrically connected to the first input terminal 101 ′ while being electrically connected to a power source via the resistor R1 : the second pin 2 is electrically connected to the first input terminal 102 . 'At the same time, it is electrically connected to the power source VCC via the resistor R2; the third pin 3 and the fourth pin 4 are grounded. When the ball 5 turns the first, second, third and fourth pins clockwise two or two, the combined input state obtained by the first input terminal 101 and the second input terminal 102 is 11 , 10, 11 and 01 'The valid state is 11, 1 〇, 〇 1. The processor still stores a control signal list corresponding to the combined input state of the input terminal, and outputs a corresponding control signal according to the detected combined input sorrow and the list, and completes the direction control according to the control signal. However, when the above-mentioned direction sensing circuit 10 is applied to an electronic device, only three placement orientations can be detected. In general, the electronic device has four placement orientations, 4 201035818. Therefore, it cannot meet such requirements. The more common way to solve the above problem is to increase the processing input (1 port) for connecting the direction of the sensor circuit, which will occupy too much input-end of the processor and increase the direction sensing. The difficulty of circuit design. In view of the above problems, it is necessary to invent a direction sensing circuit and an electronic device using the same. In the case of using only two input terminals of the processor, four orientations of the direction sensing circuit can be detected, so that the direction The sensing circuit and the electronic device using the direction sensing circuit can achieve more ugly use or avoid misoperation. SUMMARY OF THE INVENTION It is an object of the present invention to provide a direction sensing circuit. The directional sensing circuit includes a processor having a first input end and a second input end, wherein the ball switch has a first pin, a second pin, a second pin, and a fourth lead Feet and a ball. The circuit further includes a first resistor, a second resistor, and a third resistor. The resistance of the third resistor is much larger than the second resistor, and the resistance of the second resistor is much larger than the first resistor. The ball switch further includes a fifth pin between the first and second pins, the first pin is electrically connected to a power source, and is electrically connected to the third pin via the second resistor a second pin electrically connected to the second input terminal 'and electrically connected to the first input terminal via the third resistor grounding 'fourth pin, and grounded via the first resistor, the ball Electrically connecting different pins according to different orientations of the ball switches, so that the first input end and the second input end of the processor exhibit different combined input states, and the processor stores a first input terminal and a second input end The list of control signals corresponding to the combined input state is based on the combined input state of the fifth 201035818 one and the second input port and the control number corresponding to the list output. σ * The present invention (4) - the object is to provide an electronic device for viewing the circuit. The electronic device for applying the direction sensing circuit includes a processor having a first-wheel terminal and a second input terminal, wherein the ball switch has a first pin, a second pin, and The third pin, the fourth pin, and the ball. The circuit further includes a 电阻-resistor, a second resistor, and a third resistor. The resistance of the third resistor is much larger than the first resistor, and the resistance of the second resistor is much larger than the first resistor. The ball switch further includes a fifth pin between the first and second pins, the first pin is electrically connected to a power source, and is electrically connected to the third pin via the second resistor The second pin is electrically connected to the second input terminal, and is grounded via the third resistor, the fourth pin is electrically connected to the first input end, and the ball is grounded via the first resistor, the ball ^ electrically connecting different pins according to different orientations of the ball switch, so that the first input end and the second input end of the processor exhibit different combined input states, and the processor stores a first input and a second input a combination of the control signals corresponding to the combined input states, outputting corresponding direction control signals according to the combined input states of the first and second input ports, and the corresponding functions of the electronic device according to the direction control signals. The invention has the advantages that the direction sensing circuit and the electronic device applying the direction sensing circuit can detect four kinds of orientations of the direction sensing circuit, so that the direction sensing circuit can be used when less input turns are occupied. And the electronic device using the direction sensing circuit 6 201035818 can realize more applications or avoid misoperation. [Embodiment] * Hercotob Figure 1 is a hard-working composition of the financial sensor circuit. The circuit 20 includes a ball switch K2, a processor U10, a first resistor Ru, a second resistor R12, and a third resistor R13. The resistance values of the first, second, and third resistors are sequentially increased. In this embodiment, the resistance of the first resistor R11 is exemplified as fox ohm. The resistance of the second resistor R12 is exemplified as 1 〇〇 ohm, and the resistance of the third resistor R13 is exemplified. An example is 1 Μ ohm. The processor 包括ιο includes a first input terminal 101 and a second input terminal 102. The ball switch π includes a first pin, a first pin 2, a third pin 3, a fourth pin 4, a fifth pin 5, and a ball 6. The first pin 丄 is electrically connected to the power source*, and is electrically connected to the third pin 3 via the second resistor R12; the second pin 2 is electrically connected to the second input terminal 1 〇2, and is grounded via the third resistor R13; the fourth pin* is electrically connected to the first input terminal 〇1, and is grounded via the first resistor; ❹ the fifth (10) 5 is located at Between the first pin 1 and the second pin 2, and electrically connected to the fourth pin 4. 2A to 2E show the ball 6 and the direction sensing circuit 2 when applied to an electronic device. Lame! The connection relationship between _5. In an embodiment of the invention, the electronic device is exemplified as a digital photo frame, and the direction sensing circuit 2 is used to control an image displayed by the display 12 of the photo frame. The balls 6 are not electrically connected to either of the chats according to the placement orientation (tiling or erection) of the display 12 or the balls 6 are electrically connected to two different pins. As shown in Figure 2a, when the display 12 is tiled 7 201035818 • the ball 6 is not electrically connected to either pin. The first input terminal 接地1 is grounded via the first resistor R11 and the first input terminal 10i obtains a low level; the second input terminal 102 is grounded via the third resistor R13, The second input - terminal 102 also obtains a low level. Therefore, the combined state of the first and second inputs 埠ιοί and 1〇2 is 00. When the display 12 is erected, the balls 6 will be in the following states: 1. The ball 6 electrically connects the third pin 3 with the fourth > pin 4 as shown in FIG. 2B The second resistor and the first resistor R11 are connected in series between the power source Vcc and the ground. The voltage obtained by the first input terminal 101 via the four pins 4 is (R11/(Rl2+R11))*Vcc, and since the second resistor R12 is much larger than the first resistor R11, the first The voltage obtained by an input terminal 101 via the fourth pin 4 is approximately zero, and the first input terminal 101 obtains a low level. The first input terminal 102 is grounded via the third resistor R13, and the second input terminal 1〇2 also knows a low level. At this time, the set state of the first and second input pairs is 〇〇. 2, as shown in FIG. 2C, when the ball 6 electrically connects the second pin 2 and the third pin 3, the first input terminal 101 is also connected via the first resistor RU. The first input terminal 1〇1 obtains a low level; the second resistor and the third resistor R13 are connected in series between the power source Vcc and the ground, and the second input terminal ι〇2 is connected via the second lead The voltage obtained by the pin 2 is (R13/(R13+Ri2)n. Since the second resistor R13 is much larger than the second resistor R12, the second input terminal 102 is 'worked by the second pin. 2 The obtained voltage is approximately equal to the power source %, and the 8th 201035818 • the second wheel input terminal 102 obtains a high level, and at this time, the combined state of the first and second inputs 埠io1 and 102 is . As shown in FIG. 2D, when the ball 6 electrically connects the fourth pin 4 to the first pin 1 , the first input port 101 is via the fourth pin 4 and the The first pin 1 is electrically connected to the power source Vcc, and the first wheel is connected to a high level. The second input terminal 102 is grounded via the third resistor Rn, the second input End 102 gets one At this time, the combined state of the first and second rounds of itch 101 and 1 〇 2 is 1 〇. 4, as shown in FIG. 2E, the ball 6 will be the first lead soil, When the second pin 2 and the fifth pin 5 are electrically connected, the first input terminal 1〇1 is electrically connected to the power source Vcc via the fourth pin* and the fifth pin 5, The first input terminal ι〇ι obtains a high level; the second input terminal 102 is electrically connected to the power source Vex via the second pin 2, and the second input terminal 1〇2 obtains a high voltage. In the flat state, the combined state of the wheeled bees 101 and 102 is 11. ❹ When the combined state of the input terminals 101 and 102 is 00, the connection relationship between the balls 6 and the pins 1-5 includes two cases. The case is that the ball 6 electrically connects the third pin 3 with the fourth leg 4; the second case is that the ball 6 is not electrically connected to any of the pins. In the present invention - in the embodiment 12 When the image is placed on the tiling, the image displayed on the display 12 is deflected, and the ball switch K2 is set to: when the display 12 is erected, the ball 6 is electrically connected to the third pin 3 The fourth pin 4; when the display 12 is set to be laid flat, the ball 6 is not electrically connected to any of the pins. For example, when the direction sensing circuit 20 is used for a digital photo frame, the display 12 9 201035818 • when the spear is placed The first and second input end combined input state counts are 〇〇, and the processing thief U10 reads a control signal according to the combined input state, and controls the image displayed by the display 12 to stand upright. The processor U10 stores A list 100, the list 1 〇〇 defines the correspondence between the combined state of the input terminals 101, 1 〇 2 of the locator mo and the control signal. List 100 " First Input 1 Second Input Control Signal 0 ------- 0 -------- S1 0 ---------- 1 ----- ---- S2 1 0 --------- S3 1 1 -------- S4 As shown in the list 100, when the combined state of the input terminals 101 and 1〇2 is (8), The processing H U1G reads the control number S1 according to the list i(8); when the combined state of the input terminals 101 and 102 is 01, the processor U10 reads the control signal S2 according to the list 100; when the input terminal 101 When the combined state of 1〇2 is 1〇, the processor U10 reads the control signal S3 according to the list 100; when the combined state of the input terminals 1〇1 and 102 is 1:L, the processor υι〇 The control No. 5 S4 is read according to the list 1〇〇. The processor U10 performs direction control of the image based on the read control signal. As shown in FIGS. 2A and 2B, when the display 12 is erected or tiled, when the combined input state of the first input terminal 101 and the second input terminal 1〇2 is 〇〇, the processing person U10 according to the combination Input Status 〇〇 and List_Read Control Signals si, 201035818 • The original image is maintained and displayed on display 12 in accordance with the control signal S1, and the image is displayed upright. As shown in FIG. 2C, when the display 12 is rotated to the left until the left frame is parallel to the horizontal plane, the ball 6 electrically connects the second pin 2 with the third pin 3, the first input step 101 and The 'combined input state of the second input terminal 102 is that the processor υιο reads the control signal S2 according to the combined input state 01 and the list 100, and according to the control "is said S2 rotates the original image 90 degrees to the right 'And display the rotated original image to the display 12' so that the rotated image is displayed upright. As shown in FIG. 2D, when the display 12 is rotated to the right until the right border is parallel to the horizontal plane, the ball 6 electrically connects the first pin 1 and the fourth pin 4, the first input terminal 101 and the second input. The combined input state of the terminal 102 is 1〇, the processor ul〇 reads the control signal S1 according to the combined input state 10 and the list 100, and rotates the original image 9 degrees to the left according to the control signal S1, and displays The rotated original image is on the display 12 such that the rotated image is displayed erect. As shown in FIG. 2E, when the display 12 is placed upside down, the ball 6 electrically connects the first pin i, the second pin 2 and the fifth pin 5, the first input terminal ι〇ι and the second The combined input state of the input terminal 102 is u, the processor lion inputs the state 11 and the list toilet read control signal S4 according to the combination, and rotates the original image by 18 degrees according to the control signal S4, and displays the rotated When the original image is on the display 12' such that the display 12 is inverted, the image is still displayed erect. In order to avoid the occurrence of a misoperation, the processor m〇 further includes a timer (not shown) for timing the time when the first and second input bees obtain the combined state, and 11 201035818 the processor U10 is configured according to No. According to the control signal, when the timing If time is set to __1, the obtained combined state output of the input fi is controlled by the flHt to perform the corresponding direction control. In summary, the directional directional circuit and the directional sensing circuit of the present invention can detect the orientation of the directional sensing circuit 4 when only two wheeled ends of the processor are used. In this way, the direction sensing circuit and the electronic device using the direction sensing circuit can achieve more Lang or avoid misoperation. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a hardware structural diagram of a direction sensing circuit of the present invention. 2A to 2E show the connection relationship between the balls and the pins when the direction sensing circuit is applied to an electronic device. 3 is a hardware architecture diagram of a direction sensing circuit in the prior art. [Main component symbol description] Directional sensing circuit 20 First resistor R11 Second resistor R12 Third resistor R13 Ball switch ΚΙ, K2 processor U10|, U1 resistor Rl, R2 direction sensing circuit 10 12

Claims (1)

201035818 七、申請專利範圍: 1. 一種方向傳感電路,包括一處理器具有一第一輸入端及一第二輸 . 入端,一滾珠開關具有一第一引腳、一第二引腳、一第三引腳、 —第則腳及—滾珠’其改良在於,所述電路還包括-第一電 阻、一第二電阻及一第三電阻,第三電阻的阻值遠大於第二電 阻’第二電阻的阻值遠大於第-電阻,所述滚珠開賴包括-第 五引腳位於所述第一與第二引腳之間,第一引腳電連接於一電 〇 源且經由所述第二電阻電連接於所述第三引腳,第二引腳電連 接於所述第一輸入端,且經由所述第三電阻接地,第四引腳電連 接於所述第-輸入端’且經由所述第一電阻接地,所述滾珠用於 根據滾珠關放置方位的不同電連接不_引腳,使所述處理器 的第一輪入端與第二輸入端呈現不同的組合輸入狀態,所述處理 器用於存儲與第-和第二輸人端的組合輸人狀態對應的控制信 號的列表’根據所述第-和第二輸入端的組合輸入狀態及所述列 ^ 表輪出對應的控制信號。 2. 如申凊專利範圍第w所述的方向傳感電路,其中,所述處理器 匕括器’用於計時所述第_及第二輸人端持續組合狀態的 時間,所述處理器用於在所述計時器計時的第一及第二輸入端持 續所述組合狀態的時間達到一預設時間時輪出所雜制信號。 如申。月專利範圍第1項所述的方向傳感電路,其中,所述滾珠開 關應用於-電子裝置’該電子|置的顯示器正立,滚珠電連接第 三弓I腳與第四引腳·,該電子裝置_示器平鋪放置,滾珠與任— 13 201035818 引腳均不電連接。 4. 一種應用方向傳感電路的電子裝置,包括一處理器具有一第一輸 . 入端及一第二輸入端,—滾珠開關具有一第一引腳、一第二引 - 腳、一第三引腳、一第四引腳及一滚珠,其改良在於,所述電子 裝置還包括-第-電阻、-第二電阻及一第三電阻,第三電阻的 阻值遠大於第二電阻,第二電阻的阻值遠大於第一電阻,所述滾 珠開關還包括-第五引腳位於所述第一與第二引腳之間,第一引 〇 腳電連接於一電源,且經由所述第二電阻電連接於所述第三引 腳’第二引腳電連接於所述第二輸入端,且經由所述第三電阻接 地,第四引腳電連接於所述第一輸入端,且經由所述第一電阻接 地’所述滾珠帛於根據電子I置放置方位的不同電連接不同的引 腳’使所述處理器的第一輸入端與第二輸入端呈現不同的組合輸 入狀態’所述處理H用神儲與第—和第二輸人端的組合輸入狀 _應的蝴織列表,根據所述第-和第二輸人端的組合輸入 ° 狀態及崎職輸麟應的_信號,絲_鋪信號執行電 子裝置的方向控制。 5. 如申請專利範圍第4項所述的應用方向舰電路的電子裝置,其 中,所述處理器包括一計時器,用於計時所述第一及第二輸入端 持續一組合狀態的時間,所述處理器用於在所述計時器計時的第 一及第二輸入端持續所述組合狀態的時間達到一預設時間時輸 出所述控制信號。 6.如申請專利範圍第4項所述的應帛方向傳感電路的電子裳置, 201035818 其中,該電子裝置的顯示器正立,滾珠電連接第三引腳與第四引 腳;該電子裝置的顯示器平鋪放置,滾珠與任一引腳均不電連接。201035818 VII. Patent application scope: 1. A direction sensing circuit, comprising a processor having a first input end and a second input end, a ball switch having a first pin, a second pin, and a The third pin, the first leg and the ball are improved. The circuit further includes a first resistor, a second resistor and a third resistor. The resistance of the third resistor is much larger than the second resistor. The resistance of the two resistors is much larger than the first resistor, the ball switch includes a fifth pin being located between the first and second pins, the first pin being electrically connected to an electric source and via the The second resistor is electrically connected to the third pin, the second pin is electrically connected to the first input terminal, and is grounded via the third resistor, and the fourth pin is electrically connected to the first input terminal And grounded via the first resistor, the ball is used to electrically connect the non-pin according to different positions of the ball off placement, so that the first wheel end and the second input of the processor exhibit different combined input states. The processor is configured to store the first and second input The combination of the input state of the control signal corresponding to a list of 'based on the first - corresponding to a combination of the input control signal state and a second input terminal and the column wheel ^ table. 2. The direction sensing circuit of claim w, wherein the processor includes a time for timing the continuous combination state of the first and second input terminals, the processor The entangled signal is rotated when the time at which the combined state is continued by the first and second inputs of the timer for a predetermined time. Such as Shen. The directional sensing circuit of the first aspect of the invention, wherein the ball switch is applied to an electronic device, wherein the display is erect, and the ball is electrically connected to the third pin and the fourth pin. The electronic device _ is placed on the tile, and the ball is not electrically connected to any of the pins. 4. An electronic device applying a direction sensing circuit, comprising: a processor having a first input end and a second input end, wherein the ball switch has a first pin, a second lead pin, and a third The pin, the fourth pin and the ball are improved. The electronic device further includes a first-resistor, a second resistor and a third resistor. The resistance of the third resistor is much larger than the second resistor. The resistance of the two resistors is much larger than the first resistor, and the ball switch further includes a fifth pin located between the first and second pins, the first pin is electrically connected to a power source, and The second resistor is electrically connected to the third pin, the second pin is electrically connected to the second input terminal, and is grounded via the third resistor, and the fourth pin is electrically connected to the first input terminal. And the first pin and the second input of the processor are presented with different combined input states via the first resistor grounding, the ball is connected to different pins according to the different positions of the electrons. 'The treatment of H with the gods and the first and second losers _ Should form combined input knitting butterfly list, based on the first - _ input signal level output ° state and Kawasaki Lin should combination inputs and a second end, a direction of electric devices performing wire _ spread signal. 5. The electronic device of claim 4, wherein the processor includes a timer for timing the duration of the first and second inputs to continue in a combined state, The processor is configured to output the control signal when the time when the first and second inputs of the timer are continued for the combined state reaches a preset time. 6. The electronic skirt of the directional sensing circuit according to claim 4, 201035818, wherein the display of the electronic device is erect, the ball is electrically connected to the third pin and the fourth pin; the electronic device The display is placed flat and the balls are not electrically connected to either pin. 1515
TW98110300A 2009-03-27 2009-03-27 Direction sensing circuit and electronic device using the same TWI389013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98110300A TWI389013B (en) 2009-03-27 2009-03-27 Direction sensing circuit and electronic device using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98110300A TWI389013B (en) 2009-03-27 2009-03-27 Direction sensing circuit and electronic device using the same

Publications (2)

Publication Number Publication Date
TW201035818A true TW201035818A (en) 2010-10-01
TWI389013B TWI389013B (en) 2013-03-11

Family

ID=44856003

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98110300A TWI389013B (en) 2009-03-27 2009-03-27 Direction sensing circuit and electronic device using the same

Country Status (1)

Country Link
TW (1) TWI389013B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109222400A (en) * 2018-09-21 2019-01-18 深圳市同洁科技有限公司 Motion state determination component and toothbrush

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109222400A (en) * 2018-09-21 2019-01-18 深圳市同洁科技有限公司 Motion state determination component and toothbrush
CN109222400B (en) * 2018-09-21 2024-08-27 深圳市同洁科技有限公司 Motion state judging assembly and toothbrush

Also Published As

Publication number Publication date
TWI389013B (en) 2013-03-11

Similar Documents

Publication Publication Date Title
JP2016091027A5 (en) Display device
CN102934061B (en) Noise filter means, system and method for capacitance sensing apparatus
AU2015401874B2 (en) Charge control method and device, and electronic device
TW201250543A (en) Touch screen panel
CN104954675A (en) Method for detecting rotation angle of mobile terminal and camera thereof
JP2011118887A5 (en) Semiconductor device and display device
JP2013200876A5 (en)
JP2012523905A5 (en)
JP2010020292A5 (en) Liquid crystal display
EP2816804A3 (en) Electronic display device
CN111790143A (en) Gaming Devices & Game Controllers
JP2010251859A (en) Mobile device
TW201035818A (en) Direction sensing circuit and electronic device using the same
RU2012122739A (en) SOLID PICTURE SENSOR
CN105141827A (en) Distortion correction method and terminal
JP2012253625A5 (en)
TW200912600A (en) KVM console cable and multi-computer system using the same
TWI499145B (en) Electronic apparatus, base and switching function of pins of a connector
TWI557716B (en) Display and driving method thereof
JP2017168095A5 (en) Input / output panel
JP2020028374A5 (en)
JP2012222813A5 (en) Semiconductor device
CN109669571A (en) Touch panel and electronic device
TWI735540B (en) Computing devices, power supply devices, methods for controlling a computing device, and methods for controlling a power supply device
CN104167416B (en) Semiconductor devices and electronic equipment

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees