IC697CHS783
1、 原理概述
SLH89F5162單片機(jī)從傳感器MPU6050獲取游戲手柄的實(shí)時(shí)2軸加速度值,經(jīng)過(guò)運(yùn)算可得到游戲手柄的傾斜角度,將這個(gè)角度信息通過(guò)串口發(fā)送到電腦上的接收程序,由接收程序經(jīng)過(guò)簡(jiǎn)單的數(shù)據(jù)打包,就能把游戲手柄的姿態(tài)傳遞給游戲?qū)ο螅瑥亩_(dá)到與智能手機(jī)重力感應(yīng)游戲一樣的游戲效果。
2、 硬件設(shè)計(jì)原理IC697CHS783
SLH89F5162單片機(jī)有內(nèi)部16.6MHz振蕩器,所以不接外部晶振也可正常工作。用其產(chǎn)生115200波特率,通訊速度快,誤差極小,可忽略不計(jì),測(cè)試了數(shù)萬(wàn)個(gè)數(shù)據(jù),沒(méi)發(fā)現(xiàn)出錯(cuò)的數(shù)據(jù)。同時(shí),產(chǎn)生的波特率越小,誤差越大。單片機(jī)內(nèi)部有復(fù)位電路,可省去外部復(fù)位電路,因此一片單片機(jī)芯片就是一個(gè)最小系統(tǒng)。
控制器SLH89F5162單片機(jī)為主控制器,負(fù)責(zé)傳感器的控制,傳感器信息的讀取、矩陣鍵盤(pán)掃描、獨(dú)立按鍵輸入、與電腦的串口通訊。
傳感器MPU6050內(nèi)部集成了3軸陀螺儀、3軸加速度計(jì)、溫度傳感器和數(shù)字運(yùn)動(dòng)處理器,并支持外接其他輔助傳感器。I2C通訊接口,數(shù)字量輸出,體積小。
IC697CHS783波特率的分頻系數(shù) = 16.6M / 16 / 115200 = 9.00608
38400波特率的分頻系數(shù) = 16.6M / 16 / 38400= 27.0182
19200波特率的分頻系數(shù) = 16.6M / 16 / 19200 = 54.0365
9600波特率的分頻系數(shù) = 16.6M / 16 / 9600 = 108.073
IC697CHS783
IC697CHS783聯(lián)系人:李先生
手機(jī):18030229050
電話:0592-5709821
傳真:0592-5709828
QQ 1878187406
郵箱 1878187406@qq.com
IC697CHS783RADVISION L2W-323V Conferecing Unit L2W-323
RADVISION MCU-323/20 Conferecing Unit MCU-323
Sun Microsystems CP2080-500 Netra CP2080 cPCI Blade
Sun Microsystems CP2300S-650 Telecom blade Netra CP2300
PowerDsine 3524 PoE ETHERNET MIDSPAN PD-3524/AC NEW
PAN WORLD NH-250 PS MAGNETIC DRIVE PUMP NEW IN BOX
Ascor VXI 3000-47 Dual Switch Matrix Module
MKS 152-0080P-S01 Pneumatic Right Angle Valve MF80
Cisco MDS 9120 Multilayer Fabric Switch DS-C9120-K9
HOPF NETWORK CLOCK DEVICE FG6843LAN FG6843 DC
YASKAWA JZSRC-CTB01 TEACH PENDANT W/ CABLE
MATROX ODYSSEY XPRO PLUS Y7196-04 0+161G13332 NEW
Olympus BH2-UMA Vertical Illuminator W/ BH3-5NRE-M
Telrad 76-410-1330 TVSE VOIP SERVER + Card 76-410-1335
INTEGRATED DYNAMICS ENGINEERING 3000439 000 IDE
MATROX OCBQHAL 63039621455 Y7282-00 W/ Y7072-03
MATROX GENESIS GN60/F/64/8/STD
MATROX GENESIS GEN/F/64/8/LVDS
MOTOROLA COMPACT PCI CPV5370 BOARD 01-W3545F
DALSA CORECO iMAGING X64-AN QUAD ANALOG FRAME GRABBER
RADWARE LINKPROOF 5GB+16FE 128MB VE 3.73 CAT: 904670-ES
RADWARE LINKPROOF 5GB+16FE 128MB VER 3.73 CAT: 904672
RADWARE WEB SERVER DIRECTOR DS 5GB 16FE 256MB VER 8.15
RADWARE WEB SERVER DIRECTOR PRO 5GB 16FE 256MB VER 8.06
MOTOROLA MCP750 HA 01-W3378F MCP 750 MCP750HA 01-W3336F
LOT OF 53 MICRON 1G SDRAM 100MHZ CL2 ECC MT36LSDF12872G
Agilent 6651A DC System Programmable Power Supply NEW
NORTEL NTN440BH OC48 IR1 INTERFACE
GAST REGENAIR BLOWER VACUUM R4310A-2 NEW IN BOX
VARIAN TURBO-V 300HT MACRO TORR 969-9037S008 VACUM PUMP
VARIAN TURBO-V 300HT MACRO TORR 969-9037S008 VACUM PUMP
RADWARE WEB SERVER DIRECTOR NP 5GB 16FE 128MB WSD NP
OMRON SYSMAC C200H PROGRAMMABLE CONTROLLER W/ 8 I/O
RADWARE WEB SERVER DIRECTOR PRO 5GB 16FE 128MB VER 7.50
RADWARE WEB SERVER DIRECTOR PRO 5GB 16FE 128MB VER 7.30
RADWARE LINKPROOF 5GB+16FE 128MB VE 3.61 CAT: 904670-ES
RADWARE WSD NP WEB SERVER DIRECTOR AS2 5G+16FE ver 7.53
RADWARE WSD DS WEB SERVER DIRECTOR AS2 5G+16FE SYNAPPS
EDGE SYSTEMS SAFE SMOKE EVACUATOR W/ CART NEW
GAST REGENAIR BLOWER VACUUM R1102 NEW IN BOX
ECI TR28T BLADE TR2-8T 882-091
Telemecanique AltiStart 3 Soft Starter ATS 23D160