摄像头智能车设计方案1课件.ppt

上传人(卖家):三亚风情 文档编号:3324465 上传时间:2022-08-20 格式:PPT 页数:45 大小:1.74MB
下载 相关 举报
摄像头智能车设计方案1课件.ppt_第1页
第1页 / 共45页
摄像头智能车设计方案1课件.ppt_第2页
第2页 / 共45页
摄像头智能车设计方案1课件.ppt_第3页
第3页 / 共45页
摄像头智能车设计方案1课件.ppt_第4页
第4页 / 共45页
摄像头智能车设计方案1课件.ppt_第5页
第5页 / 共45页
点击查看更多>>
资源描述

1、Freescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.TM摄像头摄像头智能车设计智能车设计方案方案TMFreescale Semiconduc

2、tor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.Slide 2主要内容主要内容 摄像头智能车系统概述 单片机片上资源分配 摄像头及图像处理 电机、舵机及其控制 硬件设计方案 软

3、件设计方案TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头智能车系统概述摄像头智能车系统概述Slide 3CCD摄像头Cold

4、Fire系列单片机MCF52259最小系统Futaba S3010 舵机智能车系统主板光电编码器驱动模块及直流电机TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semicond

5、uctor,Inc.2005.摄像头智能车系统概述摄像头智能车系统概述Slide 4MCF52259控制器电源管理模块CCD图像采集模块蓝牙串口通信模块 舵机 转向轮BTS7960驱动模块直流电机驱动轮光电编码器系统总体框图系统总体框图TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names a

6、re the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头智能车系统概述摄像头智能车系统概述智能车的工作过程:智能车的工作过程:1.摄像头捕捉跑道的图像,并传输给单片机;2.单片机内嵌程序对图像信息进行处理,根据控制策略得出电机应达到的转速和舵机应有的打角,并控制舵机和电机驱动模块作出相应的动作(舵机改变打角、电机加减速);3.光电编码器跟随小车的运行向单片机发出脉冲,单片机通过脉冲计数模块记录脉冲个数从而计算出电机转速,并进行速度调节;Slide 5TMFreescale Semiconduc

7、tor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.单片机片上资源分配单片机片上资源分配Slide 6小车功能模块小车功能模块信号类型信号类型对应单片机模块对应单片机模块传输方向传

8、输方向*图像采集(以CCD为例)模拟(图像信息)数字(中断信号)AD、ECT输入捕捉(或INT中断)输入光电编码器数字(脉冲)ECT脉冲累加PA输入舵机数字(PWM)PWM模块输出电机驱动模块数字(PWM)PWM模块输出蓝牙串口通信模块数字SCI模块输入和输出*传输方向指对单片机而言TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other pr

9、oduct or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.单片机片上资源分配单片机片上资源分配内存分配内存分配 内存用于程序运行期间指令、变量的存储。单片机内存较小(以XS128为例,8K),应避免浪费。尤其应注意图像数据(二维数组)的存储空间Slide 7110 100111110 100111110 100111110 100111110 100111 110 100111110 10011160行100列60100Byte=6KBchar Imag

10、e60100TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理摄像头的选用摄像头的选用根据感光器件单元

11、分类,摄像头有两类:CCD和CMOS二者比较如下:灵敏度高决定了图像动态性好,高解析度决定了前瞻距离远。因此CCD摄像头是较好的选择。Slide 8CCDCMOS灵敏度同样面积下高感光开口小,灵敏度低成本成本高CMOS整合集成,成本低解析度高低噪点比噪点低高功耗高低TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or

12、service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理Slide 9CMOSCCDTMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service name

13、s are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理按输出信号类型划分,摄像头又可分为模拟式和数字式。模拟式可见于CCD和CMOS,数字式目前做智能车可用的只有CMOS。Slide 10OV7620数字摄像头TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale

14、 Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理摄像头信号摄像头信号信号制式:NTSC、PAL、SECAM1.正交平衡调幅制National Television Systems Committee,简称NTSC制。采用这种制式的主要国家有美国、加拿大和日本等。2.正交平衡调幅逐行倒相制Phase-Alternative Line,简称PAL制。中国、

15、德国、英国和其它一些西北欧国家采用这种制式。3.行轮换调频制Sequential Coleur Avec Memoire,简称SECAM制。采用这种制式的有法国、前苏联和东欧一些国家。智能车摄像头通常为PAL制式Slide 11TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are t

16、he property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理PAL制式信号制式信号特点:每秒25帧,每帧625行,分为奇场(由第1,3,5行组成)和偶场(由第2,4,6行组成)。组成:图像信号、复合同步信号、复合消隐信号Slide 12TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freesc

17、ale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理PAL制式信号制式信号复合消隐信号的作用:复合消隐信号的作用:在图像的分解或恢复的扫描逆程中,若不采取措施,将出现行、场回扫线,这将对正程所传送的图像起干扰作用。复合消隐信号能消除行、场回扫线。复合同步信号的作用:复合同步信号的作用:为了收、发同步的需要,视频信号发送端每当扫描完一行时加入一个行同步

18、脉冲;每当扫描完一场时加入一个场同步脉冲,它们分别在行与场逆程期间传送,其宽度分别小于行、场逆程时间。Slide 13TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semico

19、nductor,Inc.2005.摄像头与图像处理摄像头与图像处理PAL制式信号制式信号Slide 14TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor

20、,Inc.2005.摄像头与图像处理摄像头与图像处理复合视频信号的分离复合视频信号的分离Slide 15行同步场同步TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semicon

21、ductor,Inc.2005.摄像头与图像处理摄像头与图像处理视频信号分离芯片:视频信号分离芯片:LM1881Slide 16TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale S

22、emiconductor,Inc.2005.图像采集图像采集摄像头与图像处理摄像头与图像处理Slide 17 LM1881 ECT1 ECT2 AD 场同步行同步图像信号单片机行、场同步信号分别作为中断源输入单片机,从而确定何时开始采集新的一行、何时采集新的一副图像。这两个中断信号可称为“行中断”、“场中断”。通常,采集模拟摄像头需要用到单片机AD模块,也可采用片外AD转换器。TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are tradem

23、arks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理图像采集图像采集Slide 18 初始化 场中断Lin=0,Col=0图像处理相关操作行中断Col=0,Lin+点数足够?采集一个点,Col+ENDNYEND图像存储数组为ImgLinColTMFreescale Semiconductor Confidential an

24、d Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理图像采集图像采集图像采集速度受AD模块频率限制,应尽可能提高AD时钟频率,以提高单位时间内采集的图像点数。采用片外AD芯片代替片上AD

25、,或者采用硬件二值化,通过I/O口读取数据,可明显提高图像采集速度。图像采集行中断程序应包含尽量少的操作(条件判断、变量累加),以提高程序执行次数。测试发现,用指针直接访问数组比通过数组名访问数组速度要快,因此对图像数组的访问也应尽量用指针的方式。Slide 19TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or s

26、ervice names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理图像处理图像处理Slide 20赛道图像黑色边线黑色边线白色背景白色背景无关信息无关信息弯道弯道直道直道十字交叉十字交叉TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semico

27、nductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理图像处理图像处理灰度图像:灰度图像:所谓灰度图(Grayscale)是只含亮度信息,不含色彩信息的图像,就像平时看到的亮度由暗到明的黑白照片,这种变化是连续的。因此,要表示灰度图,就需要把亮度值进行量化。通常划分成0到255共256个级别,0最暗(全黑),255最亮(全白)。本系统所使用的摄像头采集到的就是黑白图像,经

28、过A/D(8位精度)量化用256阶灰度值进行表示。Slide 21 0255TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与

29、图像处理摄像头与图像处理图像处理图像处理二值化图像:二值化图像:根据图像处理的目标和要求,多灰度级的输入图像经过处理以后,就变成只有两个灰度级的图像,这种处理称为图像的二值化处理。经过二值化处理后的图像称为二值图像。找出一个合适的阈值,当所采图像灰度值大于该阈值时判断为白色,当小于该阈值时判断为黑色。二值化方法:二值化方法:软件二值化:阈值比较,条件判断硬件二值化:电压比较器Slide 22TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are

30、 trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理图像处理图像处理Slide 23二值化图像TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trad

31、emarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理图像处理图像处理黑线的提取:黑线的提取:常用方法跳变检测一行图像Slide 241100011111000111图像有效信息图像有效信息0123456789101112131415TMFreescale Semiconductor Confidential and P

32、roprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理图像处理图像处理赛道图像偏移量的计算赛道图像偏移量的计算最简单的方法:根据每行中左右两侧黑点的位置,求平均值,得出赛道中心线各点坐标。中心线

33、各点加权求和,得出偏移量,作为控制系统输入。*速度控制应参考远处图像信息,转向控制应参考近处信息,求和时远近点权重应有所调整。Slide 25TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Free

34、scale Semiconductor,Inc.2005.摄像头与图像处理摄像头与图像处理图像处理图像处理特殊情况处理:特殊情况处理:1.十字交叉2.黑线不完整(虚线或干扰)3.丢失左、右边黑线4.未检测到赛道图像(冲出赛道)5.Slide 26TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service na

35、mes are the property of their respective owners.Freescale Semiconductor,Inc.2005.电机、舵机及其控制电机、舵机及其控制MOS管驱动桥管驱动桥Slide 27TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names a

36、re the property of their respective owners.Freescale Semiconductor,Inc.2005.电机、舵机及其控制电机、舵机及其控制电机驱动电机驱动BTS7960Slide 28TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names ar

37、e the property of their respective owners.Freescale Semiconductor,Inc.2005.电机、舵机及其控制电机、舵机及其控制电机驱动电机驱动BTS7960Slide 29TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are

38、 the property of their respective owners.Freescale Semiconductor,Inc.2005.电机、舵机及其控制电机、舵机及其控制驱动模块电路图驱动模块电路图Slide 30注:74LS244用于隔离单片机与驱动芯片,防止在驱动芯片击穿时烧坏单片机,同时用于限流。TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor

39、,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.电机、舵机及其控制电机、舵机及其控制驱动模块控制方法驱动模块控制方法用PWM模块控制:两路PWM,实现正反转(反转用于智能车制动)占空比大小决定电机输出功率*为保证电机运转平稳,冲击小,同时考虑驱动芯片最高频率限制,PWM频率应设为115K,依据实测经验,推荐值为8KHz。Slide 31TMFreescale Semiconductor Confidential

40、 and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.电机、舵机及其控制电机、舵机及其控制舵机(以舵机(以Futaba S3010为例)为例)Slide 32TMFreescale Semiconductor Co

41、nfidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.电机、舵机及其控制电机、舵机及其控制舵机(以舵机(以Futaba S3010为例)为例)引脚定义:VCC(红)、Signal(白)、DNG(

42、黑)舵机输入信号:PWM转角与PWM信号的关系:高电平为1520us 时:一定为中间位置;高电平为920us 时:一定为最左边位置;高电平为2120us 时:一定为最右边位置;说明:该舵机的转角只与高电平脉宽有关,与占空比无关。Slide 33TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service nam

43、es are the property of their respective owners.Freescale Semiconductor,Inc.2005.硬件设计方案硬件设计方案硬件设计主要模块硬件设计主要模块电源模块电源模块:5V/3.3V稳压模块、12V稳压模块(CCD供电)、6V稳压模块(舵机供电,S3010舵机可直接用电池供电)。图像采集模块图像采集模块:视频分离芯片LM1881、电压比较器(硬件二值化)、片外AD芯片等。电机驱动模块电机驱动模块Slide 34TMFreescale Semiconductor Confidential and Proprietary Infor

44、mation.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.硬件设计方案硬件设计方案电源模块设计电源模块设计Slide 357.2V镍镉电池5V稳压模块LM2940-5.0单片机5V供电光电编码器、LM1881等IC6V稳压模块LD1117-ADJ舵机Futaba

45、 S3010电机驱动模块BTS7960电机3.3V稳压模块AMS1117-3.3(3.3V供电器件或单片机)12V稳压模块LM2577-12CCD摄像头TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners

46、.Freescale Semiconductor,Inc.2005.硬件设计方案硬件设计方案电源模块设计电源模块设计5V稳压芯片可选用LP3853-5.0芯片,电压更稳,但成本高,电路复杂。为保证单片机供电稳定、不受干扰,通常为单片机单独分配一个稳压模块。Slide 36TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product

47、or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.硬件设计方案硬件设计方案电源模块设计电源模块设计Slide 3712V稳压模块电路图TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product

48、or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.硬件设计方案硬件设计方案图像采集模块图像采集模块模块示意图(以第七届方案为例)Slide 38 LM1881 LM393 单片机 行中断场中断ECT TLC5615 I/OCCD功能:硬件二值化、动态阈值DA转换芯片TMFreescale Semiconductor Confidential and Proprietary Information.Freescale and the Freescale log

49、o are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.硬件设计方案硬件设计方案图像采集模块图像采集模块思考:现拟采用片外AD芯片+CCD摄像头,试给出设计方案。Slide 39TMFreescale Semiconductor Confidential and Proprietary Information.Freescale an

50、d the Freescale logo are trademarks of Freescale Semiconductor,Inc.All other product or service names are the property of their respective owners.Freescale Semiconductor,Inc.2005.软件设计方案软件设计方案单片机程序单片机程序Slide 40初始化等待图像数据准备好?图像处理转向、速度控制YN主程序框图子程序:各模块初始化程序图像中断程序(图像采集)定时中断程序(测速)PID计算程序串口发送、接收程序*各子程序均以子函数

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 办公、行业 > 各类PPT课件(模板)
版权提示 | 免责声明

1,本文(摄像头智能车设计方案1课件.ppt)为本站会员(三亚风情)主动上传,163文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
2,用户下载本文档,所消耗的文币(积分)将全额增加到上传者的账号。
3, 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(发送邮件至3464097650@qq.com或直接QQ联系客服),我们立即给予删除!


侵权处理QQ:3464097650--上传资料QQ:3464097650

【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。


163文库-Www.163Wenku.Com |网站地图|