ÄãºÃ£¬»¶Ó­À´µ½¾­¹ÜÖ®¼Ò [µÇ¼] [×¢²á]

ÉèΪÊ×Ò³ | ¾­¹ÜÖ®¼ÒÊ×Ò³ | Êղر¾Õ¾

»ùÓÚAVRµ¥Æ¬»úµÄLED×ÔÊÊÓ¦µ÷¹â_×Ô¶¯»¯×¨ÒµÂÛÎÄ

·¢²¼Ê±¼ä£º2015-01-18 À´Ô´£ºÈË´ó¾­¼ÃÂÛ̳
×Ô¶¯»¯×¨ÒµÂÛÎÄ·¶ÎÄ »ùÓÚAVRµ¥Æ¬»úµÄLED×ÔÊÊÓ¦µ÷¹â´«¸Ðϵͳ ÕªÒª Ëæ×ÅLEDÕÕÃ÷¼¼ÊõµÄ·¢Õ¹£¬¶ÔLED×ÔÊÊÓ¦µ÷¹â¼¼ÊõµÄÐèÇó¸ü¼ÓÇ¿ÁÒ¡£±¾ÎÄÒÔAVRµ¥Æ¬»úÖеÄATmeage16×÷Ϊ¿ØÖÆÆ÷£¬ÀûÓûùÓÚI2C£¨Inter Integrated Circuit£©×ÜÏߵĹ⴫¸ÐоƬTSL2561²É¼¯ÊÒÄÚ»·¾³¹âÕնȣ¬²ÉÓÃÂö¿íµ÷ÖÆ(Pulse Width Modulation-PWM)·½Ê½µ÷½ÚLEDºãÁ÷Çý¶¯IC£¨BP2808¡¢LM3404HV¡¢LM3402HVµÈ¿É¸ù¾Ý¹¦ÂÊÐèҪѡÔñ£©£¬½ø¶øµ÷½ÚLEDµÄ·¢¹âÁÁ¶È£¬×îÖÕά³ÖÊÒÄÚ»·¾³¹âÕÕ¶ÈÔÚÒ»¸öÉ趨µÄˮƽ¡£Í¬Ê±ÀûÓúìÍâÈËÌå¸ÐӦģ¿é²É¼¯ÊÒÄÚÈËÌåÐźţ¬ÊµÏÖLEDµÆ¿ªÆôºÍ¹Ø¶ÏµÄÖÇÄÜ¿ØÖÆ¡£ÔÙÀûÓõ¥×ÜÏß¼¼ÊõµÄDS18B20ζȴ«¸ÐÆ÷²É¼¯ÊÒÄÚζȺÍʹÓÃLCD1602Òº¾§ÆÁʵÏÖÊÒÄÚÕնȺÍζȵÄʵʱÏÔʾ£¬ÔÙ¼Ó°´¼üʵÏÖLEDÁÁ¶ÈµÄÊÖ¶¯¿ØÖÆ£¬×îºóʹÓô®¿ÚͨÐÅʵÏÖÓëÉÏλPCµÄʵʱͨÐÅÓë¿ØÖÆ¡£±¾ÎÄÍê³ÉÁËÕûÌ×ϵͳµÄÓ²¼þÉè¼ÆºÍÈí¼þ±à³Ì£¬Öصã½éÉÜÁËATmeage16ͨ¹ýI2C×ÜÏ߶ÁÈ¡¹â´«¸ÐÆ÷оƬTSL2561Êý¾Ý¡¢´«¸ÐÆ÷Êý¾Ýת»»ÎªÊµ¼ÊµÄÊÒÄÚ»·¾³Õնȡ¢PWMÐźÅÉú³ÉºÍÊä³ö¡¢DS18B20µÄͨѶ¡£ ¹Ø¼ü´Ê£ºATmeage16 TSl2561 PWM LEDµ÷¹â AVR microcontroller based adaptive dimming LED sensor system ABSTRACT With the development of LED lighting technology£¬adaptive LED dimming technology for the needs of even more intense. In this paper, the ATmeage16 AVR microcontroller as a controller£¬based I2C (Inter Integrated Circuit) bus, light sensing chip TSL2561 acquisition indoor illumination¡£Using pulse width modulation (Pulse Width Modulation-PWM) LED constant current drive mode regulator IC (BP2808, LM3404HV, LM3402HV so can the power to choose), then adjust the LED's brightness, final light intensity of the indoor environment to maintain a specified level. The human body using infrared sensor module also collected indoor body signal, LED lights turn on and off the intelligent control. Reuse of single-bus technology DS18B20 temperature sensor acquisition and use of the indoor temperature LCD1602 LCD indoor illumination and temperature to achieve real-time display, together to achieve LED brightness button manual control, Together to achieve LED brightness button manual control, and finally use the Serial Communication with the host PC for real-time communication and control. This complete package of hardware and software design, focusing on the ATmeage16 through the I2C bus to read optical sensor chip TSL2561 data, sensor data is converted to the actual illumination of the indoor environment, PWM signal generation and output, DS18B20 communications. Key Words£ºATmeage16 TSl2561 PWM LED dimming Ä¿ ¼ ÕªÒªI ABSTRACTII Ç° ÑÔ1 1Ö÷Òª¹¦Äܼ°Á÷³Ì˵Ã÷2 1.1Ö÷Òª¹¦ÄÜ2 1.2ϵͳÁ÷³Ìͼ2 2 LED×ÔÊÊÓ¦µ÷¹âζȴ«¸ÐϵͳµÄÓ²¼þÉè¼Æ3 2.1 AVRµ¥Æ¬»úµÄÓ²¼þÁ¬½Ó¼°½éÉÜ3 2.2 TSL2561¹âÇ¿´«¸ÐÆ÷µÄÓ²¼þÁ¬½Ó¼°½éÉÜ4 2.3 DS18B20ζȴ«¸ÐÆ÷µÄÓ²¼þÁ¬½Ó¼°½éÉÜ5 2.4 PWM²¨Ðεķ¢Éú¼°ºãÁ÷ICµÄÊä³ö6 2.4.1 PWM²¨Ðη¢Éú6 2.4.2 ºãÁ÷IC¡ªBP28088 2.5 LCD1602Òº¾§ÏÔʾµÄÁ´½Ó¼°½éÉÜ11 2.6 ºìÍâÈËÌå¸ÐӦģ¿é½éÉÜ14 2.7 ´®¿ÚͨѶ¼°Íⲿ¿ØÖÆÖжÏ16 3 LED×ÔÊÊÓ¦µ÷¹âζȴ«¸ÐϵͳµÄÈí¼þÉè¼Æ18 3.1 AVRµ¥Æ¬»úÄÚ²¿Öжϡ¢ I/OÉèÖü°PWM·¢Éú18 3.2 TSL2561µÄI2CͨѶ¼°ÕնȵļÆËã24 3.3 DS18B20µÄµ¥×ÜÏßÁ¬½Ó¼°Î¶Èת»»30 3.4 LCD1602µÄͨѶ¼°ÏÔʾ34 3.5 ´®¿ÚͨѶµÄÈí¼þÉè¼Æ38 3.6ϵͳÌõ¼þÅжϼ°Ä£ºý¿ØÖÆÈí¼þ±àд43 4ϵͳ×ÜÌåÉè¼Æ½éÉÜ44 4.1 ϵͳÐÔÄÜÌصã˵Ã÷44 4.2 ϵͳ×ÜÌåµç·ͼ44 5 Éè¼Æ×ܽἰÐĵÃÌå»á45 ²Î¿¼ÎÄÏ×46 ¸½ ¼47 Ö л51
¾­¹ÜÖ®¼Ò¡°Ñ§µÀ»á¡±Ð¡³ÌÐò
  • ɨÂë¼ÓÈë¡°¿¼ÑÐѧϰ±Ê¼ÇȺ¡±
ÍƼöÔĶÁ
¾­¼ÃѧÏà¹ØÎÄÕÂ
±êÇ©ÔÆ
¾­¹ÜÖ®¼Ò¾«²ÊÎÄÕÂÍƼö