单片机的实际应用与研究

吴铧宇

信息科学与工程研究 ›› 2024, Vol. 5 ›› Issue (7) : 19 -21.

PDF (970KB)
信息科学与工程研究 ›› 2024, Vol. 5 ›› Issue (7) : 19 -21. DOI: 10.12349/iser.v5i7.3107

单片机的实际应用与研究

作者信息 +

The Practical Application and Research of Single Chip Microcomputer

Author information +
文章历史 +
PDF (992K)

摘要

随着社会的发展,智能车辆已经成为现代社会的新时代产物,在智能小车基础上开发出来的一系列产物已经成为社会生产中许多方面不可或缺的部分。本产品主要是基于STC89C52单片机控制的简单小车系统,系统的设计主要分为总体方案设计、硬件和软件设计,该设计介绍小车循迹的原理。系统以AT89C52为控制核心,同时利用T0定时器的中断产生PWM波形,通过调节占空比来调节小车的速度和转向。小车直流电机的调速可以通过定时器设置定时初值,在中断服务函数中对占空比进行调整,从而实现电机的转速控制。同时,利用红外光线传感器对轨迹上的黑线进行检测,红外传感器将检测到的信号反馈传递给单片机,单片机对该信号进行分析,发出相应的指令,控制小车的行驶状态,从而达到循迹的目的。由于受光线的影响,循迹模块几乎贴地才能检测到黑线。

Abstract

With the development of society, intelligent vehicles have become a new era product of modern society, and a series of products developed on the basis of intelligent cars have become an indispensable part of many aspects of social production. This product is mainly based on a simple car system controlled by STC89C52 microcontroller. The system design is mainly divided into overall scheme design, hardware and software design. This design introduces the principle of car tracking. The system takes AT89C52 as the control core, and uses T0 timer to generate PWM wave form, and adjusts the speed and steering of the car by adjusting the duty cycle. The speed control of the DC motor of the car can be achieved by setting the initial timer value and adjusting the duty cycle in the interrupt service function to control the motor speed. At the same time, infrared light sensors are used to detect black lines on the trajectory. The infrared sensor feeds back the detected signal to the microcontroller, which analyzes the signal and issues corresponding instructions to control the driving status of the car, thus achieving the purpose of tracking. Due to the influence of light, the tracking module almost detects the black line.

关键词

STC89C52单片机 / PWM波形 / 智能车辆

Key words

STC89C52 single chip computer / PWM waveform / intelligent vehicle

引用本文

引用格式 ▾
吴铧宇. 单片机的实际应用与研究[J]. 信息科学与工程研究, 2024, 5(7): 19-21 DOI:10.12349/iser.v5i7.3107

登录浏览全文

4963

注册一个新账户 忘记密码

参考文献

[1]

何立民. MCS—51单片机应用系统设计[M]. 北京: 北京航空航天大学出版社, 2000.

[2]

刘鲲, 孙春亮. 单片机C语言入门[M]. 北京: 人民邮电出版社, 2008.

[3]

马建国. 电子系统设计[M]. 北京: 高等教育出版社, 2008.

AI Summary AI Mindmap
PDF (970KB)

0

访问

0

被引

详细

导航
相关文章

AI思维导图

/

〈 〉