APP下载

基于STM32的便携式搭载激光键盘的激光笔设计与实现

2018-05-02方海生李忠志费禹潇郭继峰

计算机时代 2018年3期

方海生 李忠志 费禹潇 郭继峰

摘 要: 随着教育高速发展,教学演示越来越普遍,但是普通的激光笔已经远远不能满足需要,为了让使用者在教学、演示时最大限度的发挥肢体语言的优势,彻底解决以往在课堂和会议上使用鼠标的不便,研究一种搭载便携式激光键盘的激光笔设计是有必要的。文章对传统几何失真校正算法进行研究,提出一种不同角度的的校正算法,并以此构建一套实验装置,实验表明效果良好。

关键词: 激光笔; 激光键盘; 失真校正; STM32

中图分类号:TP399 文献标志码:A 文章编号:1006-8228(2018)03-27-04

Design and realization of laser pen based on STM32 portable laser keyboard

Fang Haisheng, Li Zhongzhi, Fei Yuxiao, Guo Jifeng

(Northeast Forestry University College of Information and Computer Engineering, Harbin, Heilongjiang 150000, China)

Abstract: With the rapid development of education, teaching demonstration is more and more common, but the ordinary laser pointer is far from meeting the needs. In order to let the user maximize the advantages of body language while teaching and presenting, on the inconvenience of using the mouse to study a laser pointer with a portable laser keyboard design is necessary. In this paper, the traditional geometric distortion correction algorithm is studied, and a different angle correction algorithm is proposed. Based on this, a set of experimental apparatus is constructed, and the experiment shows that the effect is good.

Key words: laser pen; laser keyboard; distortion correction; STM32

0 引言

目前投影機在教育、培训、商务展示行业遭遇了“应用危机”,问题是在多媒体教学普及的过程中,普遍存在如何引进现代化教学设备和老师们的课堂教学习惯有机结合的问题。基于这种情况,研究一款便携式搭载激光键盘的激光笔的设想成为一种可能。本项目将激光键盘进一步改进,提出一种新的几何失真校正算法,并利用无线传输功能将其在STM32处理器为核心的硬件系统上进行设计和实现。

1 总体设计与硬件实现

1.1 总体设计

根据以上需求特点,本设计的硬件平台选择STM32F103芯片作为核心处理器搭建的硬件电路。软件平台则选择编写控制芯片的下位机固件程序与PC机进行通信和共享。教学激光笔的系统总体结构包括:开发板部分(STM32F103开发板),接口电路部分(IIC接口电路),电源模块。总体设计框图如图1所示。

图1 总体设计框图

1.2 硬件设计

参考论文[5],在芯……

登录APP查看全文