亚洲免费av电影一区二区三区,日韩爱爱视频,51精品视频一区二区三区,91视频爱爱,日韩欧美在线播放视频,中文字幕少妇AV,亚洲电影中文字幕,久久久久亚洲av成人网址,久久综合视频网站,国产在线不卡免费播放

        ?

        STM32F407 Based Smart Robot Design with Color recognition

        2017-12-13 12:12:33沈詹森
        中國科技博覽 2017年42期
        關(guān)鍵詞:詹森中圖標(biāo)識(shí)碼

        沈詹森

        [Abstract]STM32F407 is a very popular chip as a microprocessor. It allows faster responses than ARM mbed LPC1768, and it has more pins for connections. In this design, a smart robot is designated. It has abilities such as color recognition based on OV7670. The motors will be driven by a H-bridge circuit configuration, and the power will be supplied by a 12V DC battery. This article will briefly introduce the considerations of the design.

        [Key words]STM32F407, Smart robot vehicle, color recognition

        中圖分類號(hào):TU334 文獻(xiàn)標(biāo)識(shí)碼:A 文章編號(hào):1009-914X(2017)42-0287-01

        Motor drive circuit and power system design

        The best way to control a motor with differential inputs is through a simple H-bridge circuit, an electronic circuit that enables a voltage to be applied across a load in either direction.[1]

        Figure 2.1:A diagram of H-bridge

        BJTs are used in the circuit which can be controlled by gate voltage and allow a sufficiently large current flowing through. To avoid short circuit, transistors on one side cannot be on at the same time. To prevent such hazard caused by turn-on and turn-off time overlap, a time gap is set before changing the turning direction of the motor.

        As a precaution against negative voltages on the chip, fuses are used between the inputs of each motors and supply voltage and ground to avoid reverse voltage. These fuses are often Schottky diodes that have a low forward voltage drop and a high reverse breakdown point. Side capacitors are also used to get rid of AC interference.

        Power supplies to the microprocessors are 5V regulated voltage.

        Camera design: colour recognition

        The recognition of colour block is realizedby a camera which will be demonstrated.

        OV7670 is chosen because it is cheaper. For OV7670, there are two different kinds. One is with FIFO(First In and First Out) and the other is without FIFO. The application of FIFO is working as a 3MB memory. It is designed for the MCUs which do not have enough processing capability for image. It can temporarily save the data transferred from camera.

        Table 1: Typical specifications of different cameras

        STM32F407 is especially appropriate when designing the camera. As there are 18 pins on the camera, a single microcontroller should be used to save the pins on the main MCU. This microcontroller is produced by ST microelectronic corporation. It has up to 140 I/O pins, 136 of which are fast with 84MHz so it has fast response. The programming of STM32 has two different editions. One is register edition and the other one is library function edition. Considering that image processing requires large memory occupation and fast processing speed, register edition is the better choice because the codes will directly initialize registers in the chip. In the register edition, targeted registers should be known by referring to the handbook. But in the function edition, the only job to do is to write corresponding pins name in the bracket.

        To eliminate random error as much as possible, calculating the mean value of RGB is a way to achieve this purpose. First, sample 5000 pixels in one frame and average r, g, b values, and the next step is to average the mean values from 10 frames. The code of this method is indicated in Figure 5.9.

        Figure 5.9

        The recognition of colors cannot be simply achieved by setting a fixed threshold. Under different intensities of illumination, RGB values would vary a lot. Subsequently, another method is used: to make mutual comparison between RGB values. The color with the highest value will be the result. However, when detecting the blue block, the gap between B and R, G is not large enough, so the way to solve this problem is to add anoffset number to B value for compensation when comparing. The number is different under different illumination conditions so samples are collected under different sunlight.

        Conclusion

        After testing, this robot works properly except for some extreme sunlight conditions in which external infrared sources significantly biased the results obtained by the camera. This requires further investigation. For example, some other new approaches could be used to recognize the color correctly based on the RGB values and current weather conditions.

        Reference

        [1] Al Williams (2002). Microcontroller projects using the Basic Stamp. Focal Press.

        [2] Data sheet of L298N. SGS-THOMSON MICROELECTRONICS.

        [3] Data sheet of lm2596. TEXAS INSTRUMENTS.

        [4] An embedded real-time red peach detection system based on an OV7670 camera, ARM cortex-M4 processor and 3D look-up tables,Teixidó, Mercè. Published in: Sensors (Basel, Switzerland), v. 12 no. 10, pp. 14129 Date: 2012.

        猜你喜歡
        詹森中圖標(biāo)識(shí)碼
        可憐的艾米莉
        譯林(2022年3期)2022-05-30 10:48:04
        我買兩臺(tái)
        喜劇世界(2017年24期)2017-12-06 05:49:53
        The Tragic Color of the Old Man and the Sea
        Connection of Learning and Teaching from Junior to Senior
        English Language Teaching in Yunann Province: Opportunities & Challenges
        A Study of Chinese College Athletes’ English Learning
        不只是外教,詹森的多重角色
        詹森(Jensen)不等式在求幾何最值與證明幾何不等式中的應(yīng)用
        Process Mineralogy of a Low Grade Ag-Pb-Zn-CaF2 Sulphide Ore and Its Implications for Mineral Processing
        Study on the Degradation and Synergistic/antagonistic Antioxidizing Mechanism of Phenolic/aminic Antioxidants and Their Combinations
        潤滑油(2014年3期)2014-11-07 14:30:02
        蜜臀一区二区三区精品| 亚洲无线码一区在线观看| 在线日本高清日本免费| 伊人加勒比在线观看视频| 色欲av蜜桃一区二区三| 四虎精品视频| 91精品人妻一区二区三区蜜臀| 一区二区三区蜜桃av| 女人天堂国产精品资源麻豆| 精品国产品香蕉在线| 欧美日韩亚洲tv不卡久久| 中文人妻AV高清一区二区| 亚洲一区二区三区在线高清中文| 后入内射国产一区二区| 天天看片视频免费观看| 色婷婷久久免费网站| 精品亚洲一区二区三洲| 亚洲av精品一区二区三区| 最新亚洲人成无码网站| aa视频在线观看播放免费| 国产饥渴的富婆一凶二区| 免费看美女被靠的网站| av一区无码不卡毛片| 日本av第一区第二区| 大地资源高清在线视频播放| 久久99精品久久久久久hb无码| 欧美日韩综合在线视频免费看| 丁香婷婷六月综合缴清| 国产成人无码18禁午夜福利p| 免费无码高潮流白浆视频| 四虎影视永久在线精品| 开心激情站开心激情网六月婷婷| 午夜福利视频一区二区二区| 亚洲av综合永久无码精品天堂| 91久久久久无码精品露脸| 按摩偷拍一区二区三区| 国产精品极品美女自在线观看免费 | 国产精品日韩亚洲一区二区| 国内精品久久久久久久97牛牛| 馬与人黃色毛片一部| 午夜男女视频一区二区三区|