文档介绍:苏州大学
硕士学位论文
三维鼠标的设计及其在虚拟现实中的应用
姓名:王海红
申请学位级别:硕士
专业:电子与通信工程
指导教师:施国梁
2010-10
三维鼠标的设计及其在虚拟现实中的应用中文摘要
三维鼠标的设计及其在虚拟现实中的应用
中文摘要
本文讨论了一种三维鼠标的设计问题,并且将鼠标的三维操作和虚拟环境进一步
结合起来。目标是实现用鼠标的三维操作以代替传统的二维操作,使光标可以沿屏幕
纵深方向运动,为三维交互操作建立可以漫游的场景。
本文首先是讨论了一个基于 STM32 的三维鼠标实现方案。该系统采用 STM32 作
为控制芯片,通过对加速度计 ADXL345 的数据采集获得 X,Y,Z 方向的加速度值,并
将加速度值转化为三维鼠标的空间位置的变化,并通过 USB 接口传递给 PC 机,利用
Windows 操作系统的鼠标驱动程序实现三维鼠标的功能。
论文重点阐述了各功能模块的硬件设计,包括信号采集模块、最小系统、USB
模块、电源模块和 JTAG 测试模块。同时说明了各个模块实现的过程,包括硬件电路
图和 PCB 版图的绘制,完成整体的硬件制作并测试。在软件设计方面则详细介绍了
如何通过编程实现在 I2C 模式下 STM32 对加速度计 ADXL345 的控制及数据读取,以及
如何使用 MFC 建立三维鼠标移动模拟界面,并使用 USB 驱动以实现 STM32 与 PC 之间
的通信。
关健词:三维鼠标,STM32,加速度计,ADXL345,I2C
作者:王海红
指导老师:施国梁
I
Abstract The design of three-dimensional mouse in the application of virtual reality
The design of three-dimensional mouse in the application
of virtual reality
Abstract
This article discusses the problem is to design a three-dimensional mouse and the
mouse operations and further integrate the virtual environment. Required to achieve
three-dimensional action with the mouse instead of the traditional two-dimensional
operation, so the cursor to the direction of movement along the screen depth, and to create
three-dimensional interactions can be roaming the scene.
This paper is based on the STM32 implements a three-dimensional mouse. The
system as a control STM32 chip, through the ADXL345 accelerometer data acquisition
to obtain X, Y, Z direction of the acceleration, and acceleration of the space into
three-dimensional mouse position changes, and pass through the USB interface to PC,
Windows operating system using the mouse driver to achieve the function of
three-dimensional mouse.
Focusing on the hardware development of the functional modules, including signal
acquisition module, the smallest system, USB module, power module, JTAG test module.
Also describes the process of implementation of each module, including hardware
schematics and PCB