APP下载

基于Arduino的倒车雷达系统设计

2014-09-17刘楚红董镇钱宇捷陶立柳盛东

现代电子技术 2014年17期

刘楚红 董镇 钱宇捷 陶立 柳盛东

摘 要: 简要介绍了一种基于Arduino新型集成开发环境的倒车雷达系统设计方案,包括对该方案设计原理、软硬件设计和试验结果的介绍。该方案基于超声波的测速原理,采用Arduino作为主控制器,结合超声波测距模块、声光报警模块、LCD1602液晶显示模块、温度检测模块,对倒车雷达系统的软硬件设计进行了详细描述。试验证明,该系统能够达到实用目的并且运行稳定,对Arduino开发环境的应用有一定的参考价值。

关键词: Arduino; 倒车雷达系统; 超声波测距; 声光报警系统

中图分类号: TN957?34; TP368.1 文献标识码: A 文章编号: 1004?373X(2014)17?0148?03

Abstract: The design scheme of reversing radar system based on Arduino IDE, including the design principle, software design, hardware design and test result, is briefly introduced in this paper. Arduino Mega2560 taken as a main controller is used in this scheme based on the principle of ultrasonic ranging. The key points in the hardware and software design of the system are described in combination with ultrasonic ranging module, sound?light alarm module, LCD 1602 module and temperature detection module. The test results indicate that the reversing radar system can achieve the practical purpose and run stably. It has a certain reference value for the application of Arduino IDE.

Keywords: Arduino; reversing radar system; ultrasonic ranging; sound?light alarm system

0 引 言

Arduino 是一款便捷灵活、方便上手的开源电子原型平台,它由硬件(Atmel AVR单片机、I/O接口及相关电路等)和软件(Arduino IDE)组成。Arduino的硬件平台是完全开放的,任何人均可从其官网上下载最新的PCB设计进行复制。硬件平台包括基于AVR 微控制器的主控制电路板以及大量的输入、输出电子模块,由于各类模块与主控制电路板连接时无需焊接,只需像积木一样拼接即可,因此Arduino也被称为“电子积木”[1]。在软件方面,Arduino有属于自己的基于Eclipse的IDE软件开发环境,采用类C++的语言进行编程,很多在单片机编程中常用到的功能都被模块化封装成一个个子函数供程序开发者调用,从而大大简化了程序开发工作。此外,由于可以使用USB将编写好的程序下载到Arduino开发板,使程序的烧写和修改变得更加容易[2?4]。

本文提出了一种基于Arduino开发环境的简易倒车雷达系统设计方案,该系统可以通过LCD1602液晶显示屏实时显示车后部与障碍物的距离,并在小于安全距离时声光报警。……

登录APP查看全文