跳至主要内容

【转】红外线电脑遥控器

这是我们用电子制作实验室网站提供的51单片机实验板最新开发的红外线电脑遥控器,点击这里可以下载用于红外遥控PC的单片机的烧写文件 IR12M.HEX

   将烧写文件烧录到AT89C51单片机内部后,再将电脑串口连接好带有扩展元件的51实验板,打开51实验板电源后,P1.0端口上的LED就会闪烁,这说明单片机程序已经正常运行了,再把红色的拨码开关的第2、第3位开关打开。

    如上图所示就可以接收红外遥控编码了。这时实验板就变成了一个超级的PC遥控器了。当然我们还要借助Grider软件来实现。

1.安装软件

    Grider是国外一款很优秀的免费红外遥控软件,支持多种的硬件,如红外键盘鼠标,红外接收器等,软件的功能强大有OSD屏显,名种常用的相关系统操作如开关显示器等等。这里就简单介绍一些简单的用法。首先要安装软件,点击这里下载Grider3.2,也可到www.grider.nl上下载新版或旧版的。下载完后运行。出现下面的画面:



点NEXT,再到下一画面:



    选上"I accept the agreement",再按Next,这些都是通常的安装步骤,不多说,一直按Next,直到出现完成画面。

然后就可以在"开始"中找到程序并运行它了。

2.设置软件

运行Girder3.2程序后,点击File菜单->Settings打开设置窗口

    在设置菜单UserInterface(用户界面)页中,选择设置中文菜单,再按Apply键,这时程序就变成了中文汉化版的了。

在"常规"页中可以设置是否自动加载设置文件,随WINDOWS启动,启动后只出现在任务栏而不出现主窗口等等。好了下面的硬件设置是最重要的。

在插件页中选中UIR/IRman/IRA......(选中QuestionOSD就可以使用像电视中的屏显提示了),选好后你就按设置弹出下面的画面

然后按画面上的设置进行设置,当然串口就选你自己所连接的串口,再把前面一个画面中的"自动打开输入设置"选中就可以了。

3遥控键学习

在图中空白处右击弹出菜单,选添加命令,则新建了一个命令,可以对其重命名。

    以打开WINAMP为例,在"系统页"选"执行",按"浏览"找到你所安装的WINAMP的程序文件,这里中文件中有其详细路径,再按"应用",最后按学习事件

    然后按我们配套的红外遥控器,软件就取得了实验板上发来的红外编码,并在图中1处显示。comments是注释命令有的,图中2是设定重复按键的等待时间,就是说按下一个键执行命令后,要等多久才能再次响应该键。这样就定义了一个键的命令。软件功能很强大这里也无法一一说明。自已多使用摸索几次就可以轻松上手了。

    这里有一个WINAMP1.x的简单设置文件,可以下载直接使用,也可供修改使用或学习参考。AMP1x.GML 也可到http://www.girder.nl/exportgr.php下载空白的各种软件的按键设置文件,你只要再进行按键的学习就可以使用了。使用名种功能的组合,可以用一个遥控器控制多种软件和PC上的各种操作功能。实验板除了用于学习51程序编写外还可做PC遥控器,确实是物超所值。

评论

此博客中的热门博文

【转】smb协议栈使用示例

/*  * * uncdownload.c  * *  * * Utility for downloading files from SMB shares using libsmbclient  * *  * * Copyright(C) 2006 Sophos Plc, Oxford, England.  * *  * * This program is free software; you can redistribute it and/or modify it under the terms of the  * * GNU General Public License Version 2 as published by the Free Software Foundation.  * *  * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  * * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  * * See the GNU General Public License for more details.  * *  * * You should have received a copy of the GNU General Public License along with this program; if not,  * * write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA  * *  * */ # include < sys / types . h > # include < sys / time . h > # include ...

【转】Ether Types

Ether Types (last updated 2008-09-09) NOTE: Please see [RFC5342] for current information and registration procedures. This registry will be revised soon and will be replaced with up-to-date information. Many of the networks of all classes are Ethernets (10Mb) or Experimental Ethernets (3Mb). These systems use a message "type" field in much the same way the ARPANET uses the "link" field. If you need an Ether Type, contact: IEEE Registration Authority IEEE Standards Department 445 Hoes Lane Piscataway, NJ 08854 Phone +1 732 562 3813 Fax: +1 732 562 1571 Email: <ieee-registration-authority& ieee.org > http://standards.ieee.org/regauth/index.html The following list of EtherTypes is contributed unverified information from various sources. Another list of EtherTypes is maintained by Michael A. Patton and is accessible at: <URL: http://www.cavebear.com/CaveBear/Ethernet/ > <URL: ftp://ftp.cavebear.com/pub/Ethernet-codes > Assign...

【转】tcphdr结构详解

位于:/usr/src/linux/include/linux/tcp.h struct tcphdr { __be16 source; __be16 dest; __be32 seq; __be32 ack_seq; #if defined(__LITTLE_ENDIAN_BITFIELD) __u16   res1:4, doff:4, fin:1, syn:1, rst:1, psh:1, ack:1, urg:1, ece:1, cwr:1; #elif defined(__BIG_ENDIAN_BITFIELD) __u16   doff:4, res1:4, cwr:1, ece:1, urg:1, ack:1, psh:1, rst:1, syn:1, fin:1; #else #error "Adjust your <asm/byteorder.h> defines"