STC单片机控制电机单片机 红外遥控点动程序谁有

&nbsp&>基于单片机的步进电机红外遥控控制
基于单片机的步进电机红外遥控控制
编号:30-322731 | doc 格式 | 2.06M |
红外线遥控装置具有体积小、功耗低、功能强、成本低等特点,是目前使用广泛的一种近距离无线通信和遥控方式。为了满足工农业生产中对电机转速实时测控要求,本文进行红外遥控电机转速系统的设计研究,详细地分析了各功能模块的硬件电路的设计和相关软件程序的编写。
本系统主要包括红外线信号的收发、LCD1602液晶显示、独立键盘扫描、步进电动机转速控制等几个重要功能模块。首先,通过对红外线遥控工作原理的分析,提出基于单片机STC89C54RD+进行编码、译码,并将脉冲信号调制在38KHz的高频载波上,抑制红外干扰,设计了红外遥控接收程序;其次,该系统可分为三大模块,它们分别是输入模块、控制模块及显示模块。输入模块采用5个独立键盘实现步进电机加减速、运行模式、正反转和启停控制输入功能;显示模块则选用LCD完成步进电机的运行模式、速度、正反转等运行状态的显示。
本设计采用单片机组成红外遥控步进电机转速系统,结构简单,功能强大,运行可靠,可对电机转速进行良好控制。
关键词:STC89C54RD+单片机,红外遥控,步进电机
Design of Stepper Motor Control System Based on Microntroller of Infrared Remote Control
The infrared remote control devices are mostly used near distance wireless communication manner due to small volume, low power waste, strong function as well as low cost. To achievement the real-time measurement and control of motor speed in agriculture and industry, a system of motor speed controlled through infrared remote controlling based on micro-chip computer is designed, and the particular analysis of the hardware and software is given.
This design is mainly made up several modules including receive and transmission of infrared remote control signal, LCD1602, keyboard scanning monitor, motor speed control. First analytical infrared remote control work principle, put forward carrying on the coding and translating the code based on a MCU STC89C54RD+, The high frequency that combine to make pulse signal in the 38 KHz carries wave, repress the infrared interference, design the electric circuit of the infrared remote control, writhed the procedure of infrared
Control the aspect in the rotate speed of the direct current motive. This design adoption establishing to share empty ratio, control the open time of the relay, raised the system goodly more to the accuracy that the rotate speed of the electric motor control rotate speed. Using the infrared remote control, can circulate the speed to establish the limit to the el Introduced concrete measure of the expansive function of the exaltation system finally.
This design adopts the MCU to constitute the infrared remote control electric motor rotate speed system, the structure is simpers, the function is strong, circulating the credibility, can carry on the electric motor rotate speed good measure and control.
Key Words:MCU STC89C54RD+, infrared remote, Stepper motor&
第1章 绪 &论 1
1.1 课题背景 1
1.2 课题意义 1
1.3 国内外发展情况 2
1.3.1 红外通信传送数据和视频 2
1.3.2 红外通信技术对计算机技术的冲击 4
1.4 课题内容及目标 4
第2章 总体设计 6
2.1 总体方案的设计 6
2.2 调速方案的设计 6
第3章 系统硬件设计 8
3.1 单片机最小系统的设计 8
3.2 红外遥控及LCD模块 10
3.2.1 红外遥控编解码原理 10
3.2.2 LCD显示模块 13
3.3 步进脉冲产生模块 14
3.3.1步进电机工作原理 14
3.3.2步进电机的调速 16
3.4 步进电机驱动电路设计 17
第4章 系统软件设计 19
4.1 系统主程序设计 19
4.2 红外接收与解码子程序设计 19
4.3 显示子程序的设计 20
4.4 正反转子程序设计 21
第5章 系统调试 22
5.1操作控制及现象 22
5.2设计过程中遇到的主要问题及解决方案 24
第6章 结 论 25
参考文献 28
附录系统程序清单 29
Ta 们刚刚下载了...>> STC51单片机控制步进电机源代码
STC51单片机控制步进电机源代码
所属分类:
下载地址:
程序及其流程图.文件大小:42.89 kB
分享有礼! 》
请点击右侧的分享按钮,把本代码分享到各社交媒体。
通过您的分享链接访问Codeforge,每来2个新的IP,您将获得0.1 积分的奖励。
通过您的分享链接,每成功注册一个用户,该用户在Codeforge上所获得的每1个积分,您都将获得0.2 积分的分成奖励。
用3片STC单片机控制的一个小型数控系统,包括两个步进电机的控制,步进电机驱动是购买的驱动器。还有数码管显示和矩阵按键控制功能。软件开发环境为Keil,源代码是TXT文档,附带流程图。
Sponsored links
源码文件列表
温馨提示: 点击源码文件名可预览文件内容哦 ^_^
????+?1-???-+.doc39.50 kB 10:48
????+?2-???-+.doc39.50 kB 10:48
????+?3-???-+.doc39.50 kB 10:47
7.55 kB 10:33
112.53 kB 10:33
112.51 kB 10:33
(提交有效评论获得积分)
评论内容不能少于15个字,不要超出160个字。
mishifangxiang对于这个代码,我调试的时候没有问题,但是结构太过于复杂
评价成功,多谢!
下载程序及其流程图.
CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了
您的积分不足,优惠套餐快速获取 30 积分
10积分 / ¥100
30积分 / ¥200原价 ¥300 元
100积分 / ¥500原价 ¥1000 元
订单支付完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。
支付宝支付宝付款
微信钱包微信付款
更多付款方式:、
您本次下载所消耗的积分将转交上传作者。
同一源码,30天内重复下载,只扣除一次积分。
鲁ICP备号-3 runtime:Elapsed:506.666ms - init:0.1;find:1.9;t:0.8;tags:10.9;related:142.7;comment:7.2; 27.69
登录 CodeForge
还没有CodeForge账号?
Switch to the English version?
^_^"呃 ...
Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧不用遥控器,用51单片机怎样控制电调信号线,让无刷电机转动,附程序,谢谢_百度知道
不用遥控器,用51单片机怎样控制电调信号线,让无刷电机转动,附程序,谢谢
我有更好的答案
我曾经做过,不过程序现在不在身边。如果只做固定速度的,非常简单;如果做可调的,最好使用国产的STC单片机,51内核,自带ADC,价格很便宜。几元钱。 用一个ADC口采用电位的电压,内部计算,在单片机的某个接口输出与ADC结果对应关系的脉冲即可。脉冲一般可以做出20ms周期,宽度为0.5-1.5ms。
stc89c52吗?ADC是啥玩意?从网上看了一个PWM控制电机,电机不转啊。。郁闷。脉冲是20ms周期的,1~2ms的高电平,求助
做单片机的人怎么不知道ADC? 模数转换器!ADC可以把控制电位器的控制电压的变化转换成内部数据的变化,实现无级调节啊;当然,你可以不使用电位器控制,可以在I/O口做+/-,以改变数据。不过,+/-控制不如电位器方便。航模的无刷电动机必须有无刷电调控制,无刷电调的PWM信号,一般在0.6-1.4ms之间。直接供给1-2ms的高电平脉冲,电调不会正常输出,那得先从&0.7ms加信号,逐渐加大,电调才会输出。
采纳率:50%
为您推荐:
其他类似问题
您可能关注的内容
51单片机的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。&>&STC12的51单片机红外遥控程序
STC12的51单片机红外遥控程序
上传大小:2KB
STC12的51单片机红外遥控程序
51单片机 红外遥控 NEC编码 C程序
综合评分:4
{%username%}回复{%com_username%}{%time%}\
/*点击出现回复框*/
$(".respond_btn").on("click", function (e) {
$(this).parents(".rightLi").children(".respond_box").show();
e.stopPropagation();
$(".cancel_res").on("click", function (e) {
$(this).parents(".res_b").siblings(".res_area").val("");
$(this).parents(".respond_box").hide();
e.stopPropagation();
/*删除评论*/
$(".del_comment_c").on("click", function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_invalid/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parents(".conLi").remove();
alert(data.msg);
$(".res_btn").click(function (e) {
var parentWrap = $(this).parents(".respond_box"),
q = parentWrap.find(".form1").serializeArray(),
resStr = $.trim(parentWrap.find(".res_area_r").val());
console.log(q);
//var res_area_r = $.trim($(".res_area_r").val());
if (resStr == '') {
$(".res_text").css({color: "red"});
$.post("/index.php/comment/do_comment_reply/", q,
function (data) {
if (data.succ == 1) {
var $target,
evt = e || window.
$target = $(evt.target || evt.srcElement);
var $dd = $target.parents('dd');
var $wrapReply = $dd.find('.respond_box');
console.log($wrapReply);
//var mess = $(".res_area_r").val();
var mess = resS
var str = str.replace(/{%header%}/g, data.header)
.replace(/{%href%}/g, 'http://' + window.location.host + '/user/' + data.username)
.replace(/{%username%}/g, data.username)
.replace(/{%com_username%}/g, data.com_username)
.replace(/{%time%}/g, data.time)
.replace(/{%id%}/g, data.id)
.replace(/{%mess%}/g, mess);
$dd.after(str);
$(".respond_box").hide();
$(".res_area_r").val("");
$(".res_area").val("");
$wrapReply.hide();
alert(data.msg);
}, "json");
/*删除回复*/
$(".rightLi").on("click", '.del_comment_r', function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_comment_del/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parent().parent().parent().parent().parent().remove();
$(e.target).parents('.res_list').remove()
alert(data.msg);
//填充回复
function KeyP(v) {
var parentWrap = $(v).parents(".respond_box");
parentWrap.find(".res_area_r").val($.trim(parentWrap.find(".res_area").val()));
评论共有5条
可以参考一下,过段时间用
希望可以帮到我
一般般,没想象中的那么好!!
VIP会员动态
CSDN下载频道资源及相关规则调整公告V11.10
下载频道用户反馈专区
下载频道积分规则调整V1710.18
spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例.zip
资源所需积分/C币
当前拥有积分
当前拥有C币
输入下载码
为了良好体验,不建议使用迅雷下载
STC12的51单片机红外遥控程序
会员到期时间:
剩余下载个数:
剩余积分:0
为了良好体验,不建议使用迅雷下载
积分不足!
资源所需积分/C币
当前拥有积分
您可以选择
程序员的必选
绿色安全资源
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
您的积分不足,将扣除 10 C币
为了良好体验,不建议使用迅雷下载
无法举报自己的资源
你当前的下载分为234。
你还不是VIP会员
开通VIP会员权限,免积分下载
你下载资源过于频繁,请输入验证码
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
若举报审核通过,可返还被扣除的积分
被举报人:
fuzadebobo
举报的资源分:
请选择类型
资源无法下载 ( 404页面、下载失败、资源本身问题)
资源无法使用 (文件损坏、内容缺失、题文不符)
侵犯版权资源 (侵犯公司或个人版权)
虚假资源 (恶意欺诈、刷分资源)
含色情、危害国家安全内容
含广告、木马病毒资源
*详细原因:
STC12的51单片机红外遥控程序

我要回帖

更多关于 单片机控制电机程序 的文章

 

随机推荐