»ùÓÚµ¥Æ¬»úµÄ¾Æ¾«Å¨¶È²âÊÔϵͳÉè¼Æ--±ÏÒµÂÛÎÄ ÏÂÔØ±¾ÎÄ

»ùÓÚµ¥Æ¬»úµÄ¾Æ¾«Å¨¶È²âÊÔϵͳÉè¼Æ

ÕªÒª

Òò¾Æ¾«ÒýÆðµÄ°²È«ÎÊÌâÖðÄêÔö¼Ó£¬¾Æ¾«Å¨¶È²âÊÔϵͳҲ³ÉΪµ±½ñ°²È«ÁìÓòµÄÑо¿Èȵ㡣±¾´ÎÉè¼ÆÊǶԾƾ«Å¨¶È²âÊÔϵͳ½øÐÐÑо¿£¬½èÖú±à³ÌÀ´ÊµÏ־ƾ«Å¨¶È²âÊÔ¡£¾Æ¾«Å¨¶È²âÊÔϵͳµÄÉè¼Æ°üº¬´«¸ÐÆ÷¡¢µ¥Æ¬»ú¡¢±à³ÌµÈ¶à·½ÃæÖªÊ¶¡£

±¾´ÎÉè¼ÆÒ»¹²·ÖΪӲ¼þºÍÈí¼þϵͳ£¬ÆäÖпØÖÆÐ¾Æ¬Ñ¡ÓÃSTC89C52RCµ¥Æ¬»ú£»Ñ¡ÓÃMQ-3¾Æ¾«Å¨¶È´«¸ÐÆ÷×÷ΪϵͳµÄÐźÅÊÕ¼¯Ä£¿é£¬ÀûÓô«¸ÐÆ÷²É¼¯Ðźţ¬¾­¹ýÄ£Êýת»»½«ÐźÅת»»ÎªÄܱ»µ¥Æ¬»úʶ±ðµÄÊý×ÖÐźţ»²ÉÓÃLCDÒº¾§ÏÔʾÆ÷½øÐÐ×îÖÕµÄÏÔʾ¡£Èí¼þϵͳ²ÉÓÃCÓïÑÔ±à³Ì£¬¶Ôϵͳ¸÷¸öÄ£¿é·Ö¿ª±àд¿ØÖÆ¡£±¾´ÎÉè¼ÆµÄϵͳӲ¼þºÍÈí¼þ¶¼²ÉÓÃÄ£¿é»¯½á¹¹£¬Í¨¹ý¶Ô¾Æ¾«Å¨¶È²âÊÔϵͳӲ¼þµÄÑ¡ÔñºÍ³ÌÐòµÄ±àд£¬×îÖÕÍê³ÉÁË»ùÓÚµ¥Æ¬»úµÄ¾Æ¾«Å¨¶È²âÊÔϵͳÉè¼Æ¡£

¹Ø¼ü´Ê:STC89C52RCRCµ¥Æ¬»ú£»CÓïÑÔ£»MQ-3¾Æ¾«´«¸ÐÆ÷

I

Design of alcohol concentration test system based on MCU

Abstract

With the increasing safety problems caused by alcohol, alcohol concentration test system has become a hot research field in today's security field. This design is the alcohol concentration test system to study, with programming to achieve the final alcohol concentration test. Alcohol concentration test system design includes sensors, microcontrollers, programming and other aspects of knowledge.

The design of a total of hardware and software is divided into two major systems, including the central control of the hardware system core selection STC89C52RC microcontroller; use MQ-3 alcohol concentration sensor as a system of signal collection module, and the use of sensors to collect signals and signals can be converted into Single-chip identification of digital signals; using LCD liquid crystal display for the final test results show. Software system using C language programming, the system separately prepared to control the various modules. The design of the system hardware and software are modular structure, through the alcohol concentration test system hardware selection and procedures for the preparation, and ultimately completed the single-chip based on the alcohol concentration test system design.

Key Words:STC89C52RCRC microcontroller; C language; MQ-3 alcohol sensor

II

Ŀ¼

1 Ð÷ÂÛ ....................................................................................................................... 1

1.1 ¿ÎÌâ±³¾°............................................................................................................. 1 1.2 ÏÖ×´¼°·¢Õ¹Ç÷ÊÆ................................................................................................. 1 1.3 Ñо¿ÒâÒå............................................................................................................. 2 1.4 Ñо¿ÄÚÈÝ............................................................................................................. 2 1.5 ϵͳ×ÜÌå˼·..................................................................................................... 2

2 ϵͳ×ÜÌå·½°¸Éè¼Æ ........................................................................................... 3

2.1 ×ÜÌåÉè¼Æ............................................................................................................. 3 2.2 ´¦ÀíÆ÷ÓÅÊÆÂÛÖ¤................................................................................................. 3 2.3 ÏÔʾ²¿·ÖÂÛÖ¤..................................................................................................... 4

3 Ó²¼þµç·Éè¼Æ .................................................................................................... 5

3.1 µ¥Æ¬»úµÄÑ¡Ôñ..................................................................................................... 5 3.1.1 µ¥Æ¬»ú½éÉÜ.................................................................................................. 5 3.1.2 STC89C52RCµ¥Æ¬»úÖ÷ÒªÐÔÄܲÎÊý .......................................................... 6 3.2 ´«¸ÐÆ÷................................................................................................................. 7 3.2.1 MQ-3¾Æ¾«´«¸ÐÆ÷½éÉÜ ................................................................................ 7 3.2.2 MQ-3¾Æ¾«´«¸ÐÆ÷¹Ø¼ü²¿¼þ²ÄÁÏ ................................................................ 7 3.2.3 MQ-3¾Æ¾«´«¸ÐÆ÷¸÷Ïî¼¼ÊõÖ¸±ê ................................................................ 7 3.2.4 MQ-3¾Æ¾«´«¸ÐÆ÷½á¹¹ ................................................................................ 9 3.2.5 MQ-3¾Æ¾«´«¸ÐÆ÷ϵͳµç· ........................................................................ 9 3.3 Ä£Êýת»»Æ÷....................................................................................................... 10 3.4 µçÔ´µç·........................................................................................................... 11 3.5 LCDÏÔʾ........................................................................................................... 11 3.5.1 LCD1602Òº¾§ÏÔʾÆ÷Ö÷Òª²ÎÊý................................................................ 11 3.5.2 LCD1602Òº¾§ÏÔʾÆ÷Òý½Å¼°Æä¹¦ÄÜ........................................................ 11 3.6 ±¨¾¯Éè¼Æ........................................................................................................... 13 3.7 °´¼üµç·Éè¼Æ................................................................................................... 14 3.8 ´æ´¢µç·........................................................................................................... 15 3.9 ϵͳӲ¼þÉè¼ÆÔ­Àíͼ·ÖÎö............................................................................... 15

4 ϵͳÈí¼þµÄÉè¼Æ .............................................................................................. 17

III