摘要
详细介绍了一种基于单片机ATmega128软件编码解码的红外遥控器的设计方法,包括二进制红外信号的编码、调制和解码的原理以及发射、接收硬件电路和程序实现。采用PWM脉冲宽度方式实现红外信号的编码,接收端通过外部中断T0对HS0038的编码信号的到来进行判断。实验结果表明,遥控器能够准确、稳定地遥控服务康复机器人执行各个功能,验证了采用该方法能可靠、准确发送和接收信号,如果适当减少编码所用的脉冲个数,传输速度会增加。
A design scheme of infrared remote controller based on the software coding and decoding of ATmega128 is introduced in detail,which includes principle of binary infrared signals coding,modulation and decoding,hardware circuit of the transmitter and receiver,and programming.Aiming to implement binary infrared signals coding,pulse width modulation method of PWM was used.The arrival of infrared signals of HS0038 was judged by external interrupt T0.The experimental results showed that all functions of nursing and rehabilitation robot can be controlled accurately and steadily,which verified that signals can be transmitted and received reliably and accurately by the method,and the transmission speed will increase if the number of pulses used for coding is reduced appropriately.
出处
《现代科学仪器》
2013年第4期142-144,152,共4页
Modern Scientific Instruments