首页 | 本学科首页   官方微博 | 高级检索  
     

基于STM32主控模块设计与实现无线鼠标
引用本文:张晓燕,张吉月.基于STM32主控模块设计与实现无线鼠标[J].北京石油化工学院学报,2012,20(3):24-27.
作者姓名:张晓燕  张吉月
作者单位:北京石油化工学院,北京,102617;北京石油化工学院,北京,102617
摘    要:利用主控芯片STM32并采用编程方法分发射和接收两部分设计实现了无线鼠标的功能,具体是利用主控芯片STM32的4个IO引脚检测用户按下的上、下、左、右4个用以表示鼠标4个动作方向的按键,再将按键信号进行编码,配置成相应的HID鼠标数据格式,然后由主控模块操作射频模块(NRF24L01)将数据以无线信号发送出去;接收端的主控芯片STM32通过USB接口插入PC时需要和PC建立通信,使接收器件作为HID设备挂起到PC机上,然后主控芯片STM32控制接收模块将接收到的无线数据通过USB口传送给PC机,使得PC端的显示器上的鼠标指针进行相应方向的移动,从而实现传统鼠标的功能。

关 键 词:主控芯片STM32  鼠标数据格式  无线信号  USB口  HID设备

STM32 Control Module Based on the Design and Implementation of the Wireless Mouse
Zhang Xiaoyan , Zhang Jiyue.STM32 Control Module Based on the Design and Implementation of the Wireless Mouse[J].Journal of Beijing Institute of Petro-Chemical Technology,2012,20(3):24-27.
Authors:Zhang Xiaoyan  Zhang Jiyue
Affiliation:Zhang Xiaoyan Zhang Jiyue (Beijing Institute of Petro-chemical Technology, Beijing 102617, China)
Abstract:The article introduces the method of designing the transmitting and receiving parts to achieve a wireless mouse function by programming with the main chip STM32. That is using the four IO pins of the master chip STM32 to detect the four activity directions of the mouse, the upper and lower, left and right 4 buttons pressed by the user. And then we encode the signal, configure the appropriate HID data format, and send out the wireless signal by employing the control module to operate the radio frequency module (NRF24L01) data. When the main chip STM32 of the receiving port is inserted into the USB interface of the PC, the PC is required to es- tablish communication. The receiving device hangs to the PC as a HID device, and the master chip STM32 control receiver module, which will receive data via wireless USB port sent to the PC. So PC monitors on the side of the mouse pointer move to the corresponding direction, in order to achieve the traditional mouse functions.
Keywords:master chip STM32  data format of mouse  wireless signal  USB interface  HID device
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号