弹琴机器人 —制装部分摘 要随着科技的不断发展进步越来越多机器人进入我们的生产生活,这是由于各种电机如步进电机、伺服电机等的出现让机器人的动作更加灵活也把机器人变的更加之小巧,同时各种单片机如 c51、stm32 等的出现使得控制机械运动变得更加精准方便。本次弹琴机器人主要采用了以 8989c52 单片机为核心,用 Irf540 用来控制电磁阀进行一个开跟关,将其接到一个单片机引脚上面。通过引脚进行高电平输出,最终实现控制电磁阀。电磁阀控制气动装置来弹奏钢琴。时间方面采用单片机内部定时器,单片机有两个定时器,我们直接用的 6 位定时器。关键词:89c52 单片机、Irf540、tip41、电磁阀、气动技术2北京理工大学珠海学院 2020 届本科生毕业设计AbstractWith the continuous development and progress of science and technology, more and more robots enter our production and life. This is because the emergence of various motors, such as stepping motor and servo motor, makes the robot's action more flexible and makes the robot smaller. At the same time, the emergence of various single-chip computers, such as 51 and STM32, makes the control of mechanical movement more accurat andconvenient.In this robot, 89c52 single-chip microcomputer is used as the core, irf540 or TIP41 is used to control the solenoid valve to open and close, and connect it to a single-chip microcomputer pin. The high level output is realized by pin, and the control solenoid valve is finally realized. The solenoid controls the pneumatic device to play the piano. In terms of time, 3北京理工大学珠海学院 2020 届本科生毕业设计we use the internal timer of single chip microcomputer, which has two timers. We directly use the gain and loss 16 bit timer.Key words: 89c52 single chip microcomputer, irf540, TIP41, solenoid valve, pneumatic technology目录1. 前言…………………………………………………………………………………… 11.1 课题背景……………………………………………………………...