基于Arduino和树莓派的智能小车的设计与实现

电子设计工程

ElectronicDesign Engineering

第25卷Vol.25第15期No.152017年8月Aug.2017

收稿日期:2016-07-07

稿件编号:201607060

作者简介:吴波涛(1987—),男,江西南城人,硕士,工程师。研究方向:自动控制、机器人。

智能车也可称为轮式机器人,作为一种智能机器人的一个分支,在军事侦察、排爆、救灾抢险探测、工程勘探、工农业生产等领域有着广泛的应用[1-3]。随着电子技术的进步,智能车的研究得到迅速发展。当前,通过Arduino和树莓派等开源硬件和传感器,即可进行智能车的快速开发[4-7]。Arduino和树莓派做为开源平台,软硬件均开源,硬件接口丰富,可以免费获得平台电路原理图、开发接口等,非常适合二次开发。Arduino自带Bootloader 程序,可直接通过USB 接口下载程序至开发板,开发和修改程序十分方便[8-9]。而树莓派作为微型计算机则可以实现网络通信等更复杂的功能。

文中提出一种基于Arduino和树莓派的智能小车设计方案,以Arduino板做为核心控制器,实现对小车的驱动控制、遥控和避障等功能;以树莓派板做为视频流服务器,实现实时视频图像传输功能。

1硬件设计

智能小车硬件构成包含底盘、3个车轮(两个前

轮、一个后轮)、直流电机、Arduino控制板、树莓派板、舵机、蓝牙模块、红外接收模块,以及超声波传感器、摄像头等传感器,其中两前轮为驱动轮,分别由两个直流电机驱动,一个后轮为被动万向轮。控制板

基于Arduino 和树莓派的智能小车的设计与实现

吴波涛,孔金平,王湘

(中国卫星海上测控部江苏江阴214431)

摘要:为实现小车的远程遥控、视频传输和避障等功能,设计开发基于Arduino和树莓派的智能小车。以Arduino板为核心控制器,通过H 桥路芯片实现对直流电机的控制以控制小车行驶;利用红外遥控器和接收器实现远程遥控小车方法;利用超声波测距模块实时检测小车前方障碍物距离,设计基于障碍物距离的避障算法实现避障功能;利用树莓派板块和RPi-Cam-Web-Interface 实现车载摄像头实时视频网络传输功能。实验证明,该小车具备良好的远控功能,实时视频图像传输稳定,在侦察、消防等领域有广泛的应用基础。

关键词:智能车;网络实时视频;Arduino;树莓派;无线遥控中图分类号:TN99

文献标识码:A

文章编号:1674-6236(2017)15-0058-04

Design and implementation of intelligent car based on Arduino and Raspberry Pi

WU Bo-tao,KONG Jin -ping ,WANG Xiang

(China Satellite Maritime Tracking and Control ,Jiangyin 214431,China )

Abstract:Torealize remote control ,live -videotransmission and obstacle avoidance function ,a small car based on Arduinoand Raspberry Pi is designed.Arduinoboard is chosen as the main control unit ,and controls the DCmotor todrive the car by using H bridge chip.Remote infrared control unit and infrared receiver are used torealize remote control of the car.Ultrasonicrange finder module is used todetect distance of obstacles in front of the car ,and an obstacle distance based algorithmis designed toavoid obstacle during car advancing.And a Raspberry Pi board and RPi -Cam-Web -Interface is used torealize live-videotransmission throughnetworks.Experiment shows that the remote control function of the car works quit well ,and the live videofromthe car throughnetworks is fluent.This intelligent car can be widely used in surveillance ,firefighting and many other fields.

Key words:intelligent car ;internet live video;Arduino;Raspberry Pi ;remote control

-58-

万方数据

相关主题
相关文档
最新文档