基于单片机的简单机器人设计
摘要:随着微电子技术的不断发展,微处理器芯片的集成程度越来越高,单片机已可以在一块芯片上同时集成CPU、存储器、定时器/计数器、并行和串行接口、看门狗、前置放大器、A/D转换器、D/A转换器等多种电路,这就很容易将计算机技术与测量控制技术结合,组成智能化测量控制系统。这种技术促使机器人技术也有了突飞猛进的发展,目前人们已经完全可以设计并制造出具有某些特殊功能的简易智能机器人。
关键字: 单片机,传感器,转换器,机器人.
Design of simple robot based on single chip puter
Abstract: with the development of microelectronic technology, microprocessor chip integration degree more and more high, SCM has in one chip and integrated CPU, memory, timer / counter, parallel and serial interface, watchdog, preamplifier, A / D converter, D / A converter and other circuits, it is easy to bination puter technology and measurement and control technology, intelligent measurement and control system. This technology to robot technology has make a spurt of progress of development, at present has been entirely simple intelligent robot is designed and manufactured with certain special functions.
Keywords: Microcontroller, sensor, transducer, robot.
1 设计思想与总体方案
简易智能机器人的设计思想
本机器人能在任意区域内沿引导线行走,自动绕障,在有光源引导的条件下能沿光源行走。同时,能检测埋在地下的金属片,发出声光指示信息,并能实时存储、显示检测到的断点数目以及各断点至起跑线间的距离,最后能停在指定地点,显示出整个运行过程的时间。
总体设计方案和框图
本设计以AT89C5l单片机作为检测和控制核心。采用红外光电传感器检测路面黑线及障碍物,使用金属传感器检测路面下金属铁片,应用光电码盘测距,用光敏电阻检测、判断车库位置,利用PWM(脉宽调制)技术动态控制电动机的转动方向和转速。通过软件编程实现机器人行进、绕障、停止的精确控制以及检测数据的存储、显示。通过对电路的优化组合,可以最大限度地利用51单片机的全部资源。
P0口用于数码管显示,P1口用于电动机的PWM驱动控制,P2,P3口用于传感器的数据采集与中断控制。这样做的优点是:充分利用了单片机的内部资源,降低了总体设
单片机的机器人论文 来自淘豆网m.daumloan.com转载请标明出处.