Twinkling LED

uydudoktoru

Tanınmış Üye
Yönetici
Yönetici
Xmas is just round the corner, and this is the right time to build your own festival lights using LEDs. Presented here is a simple LED-based Xmas light/star circuit which can be constructed using inexpensive components. At the heart of this battery operated circuit is a tiny microcontroller PIC12F675 (IC1). Here, brightness and oscillation of the white LEDs (LED1-LED6) are digitally controlled using Pulse Width Modulation (PWM) signal generated by IC1. The trick of using a random number generator for light modulation will create a credible simulation of the sparkling starlight.

Twinkle Christmas Lights Schematic

Twinkling-LED-Xmas-Star-Schematic.jpg
Notes:
  • Can be powered from any regulated/unregulated 9V dc supply source
  • For compactness, replace IC2 (LM7805) with 78L05 available in TO92 package
  • Each output pin of the IC1 is limited to source or sink only 25mA of current
  • BS170 (T1) can handle a maximum current of 500mA
  • White LEDs are used deliberately. It is easy to convert white light into different colors (using additional stuff like LED caps)
 

Eklentiler

  • TXL CODE.zip
    47 KB · Görüntüleme: 17
Son düzenleyen: Moderatör:

Yazar: uydudoktoru
Makale başlığı: Twinkling LED
Kaynak URL: Uydudoktoru Forum-https://uydudoktoru.com/
Alıntı ve Paylaşım Kuralları: Kaynak dahil olmak üzere makaleden kısa alıntı yapılabilir ancak makalenin tamamı yazarın izni olmadan başka bir siteye kopyalanamaz veya başka bir yerde yayınlanamaz.
Geri
Yukarı