基于Arduino和PIC单片机智能小车平台的研究与设计
2017-11-14章杰瑞周屹
章杰瑞+周屹
摘要:市场上智能小车普遍存在功能单一、扩展能力差等特点。基于此提出了一种基于Arduino和PIC18F45K22单片机为核心、以智能小车作为研究对象的小车开发研究平台。整个系统由电源、控制模块、电机驱动、红外收发和LCD显示五部分构成。Arduino为控制主机,通过制定的通信协议与PIC从机端进行通信,基于该平台可实现红外避障、寻迹、手机蓝牙遥控等功能,同时也可通过平台的扩展模块对智能小车进行研究与开发,提高了小车硬件平台的利用率。
关键词:Arduino;PIC18F45K22单片机;智能小车;开发平台;通信协议
中图分类号:TP393 文献标识码:A 文章编号:1009-3044(2017)29-0187-04
Abstract:This paper introduces a Based on the Arduino and PIC18F45K22 single-chip as the core, with the smart car as the object of study of car development research platform. The system is composed of a power supply, control module, motor drive, infrared transceiver and LCD display five parts.Arduino for host control, through the formulation of communication protocol and pic from the terminal to communicate. Based on the platform can realize infrared obstacle avoidance, tracing, Bluetooth mobile phone remote control functions, but also through the expansion modules of the platform of the intelligent vehicle for research and development, improve the utilization rate of the robot hardware platform, is a promising and research Meaning of the smart car development platform.
Key words:Arduino;PIC18F45K22 single-chip;smart car;development platform;communication protocol
随着单片机及自动化控制技术的普及,智能小车已逐渐融入我们的生活中。现今大多数智能小车普遍存在功能单一性、可扩展性不强等问题,并且各种智能小车之间存在的品牌和产商的差异,其硬件模块也不尽相同,给程序的移植和功能扩展带来一定的阻力,降低了智能小车的通用性[1]。针对上述的问题,将智能小车的底层驱动模块和控制模块分离出来,只需对Arduino结合通信协议进行编程,即可在平台上实现智能小车的多种功能;同时将两块单片机的端口资源进行扩展,构成整个平台的硬件电路部分,提高了平台的通用性。
1 智能小车平台硬件设计
智能小车平台的硬件部分以模块化方法进行设计,其内容包括电源模块、控制模块、电机驱动电路模块、LCD显示模块、红外收发功能模块等,图1为硬件设计框图;图2为智能小车平台的实物图。……
