مشاهدة النسخة كاملة : لهواة المشاريع LED FLASHER


EnG:AyMaN
23-07-2009, 03:21 PM
:salam:

LED flasher

I made LED flash circuit which is often used as the PIC software making practice.
This circuit controls the blink of eight LEDs with the software of PIC.
The blinking pattern can be changed with five switches.
Pattern 1http://www.interq.or.jp/japan/se-inoue/gif/pic6_11v.gif
Pattern 2http://www.interq.or.jp/japan/se-inoue/gif/pic6_11w.gif
Pattern 3http://www.interq.or.jp/japan/se-inoue/gif/pic6_11x.gif
Pattern 4http://www.interq.or.jp/japan/se-inoue/gif/pic6_11y.gif
Pattern 5http://www.interq.or.jp/japan/se-inoue/gif/pic6_11z.gif
http://www.interq.or.jp/japan/se-inoue/picture/pic6_11.jpg


The photograph of LED flasher


Component side photograph

http://www.interq.or.jp/japan/se-inoue/picture/pic6_181.jpg



Wiring side photograph
http://www.interq.or.jp/japan/se-inoue/picture/pic6_182.jpg



Circuit drawing of LED flasher

http://www.interq.or.jp/japan/se-inoue/gif/pic6_11a.gif
http://www.interq.or.jp/japan/se-inoue/gif/blank_1.gif
Pattern drawing of LED flasher
(Wiring side)

http://www.interq.or.jp/japan/se-inoue/gif/pic6_11b.gif


Circuit explanation of LED flasher
http://www.interq.or.jp/japan/se-inoue/gif/line_001.gif

http://www.interq.or.jp/japan/se-inoue/gif/bol_grn.gif Key-in circuit

http://www.interq.or.jp/japan/se-inoue/gif/pic6_121.gif


Five pins from RA0 to RA4 are used as the input pin.
These pins are pull-uped with 10K ohm resisters. So, when a switch isn't pushed, the input becomes H level ( +5V ). and when a switch is pushed, it will become L level ( 0V ). When the switch closes, the chattering occurs. The chattering is the phenomenon which occurs with the bound of the point of contact. The opening and shutting of a point of contact is repeated in short time..


I don't put the prevention circuit of the chattering at the circuit this time. When the software detects that the switch is closed once, the blink processing of LEDs are executed in the time which is longer than the chattering.




http://www.interq.or.jp/japan/se-inoue/gif/bol_grn.gif LED control circuit

http://www.interq.or.jp/japan/se-inoue/gif/pic6_122.gif


Eight pins from RB0 to RB7 are used for the output pin.
The anode side of the LED is connected with +5 V and the cathode side is controlled by PIC via the resistor. So, when the output of PIC is H level (+5V), the LED goes out and when the output of PIC is L level (0V), the LED lights up. I am using high brightness type LED to make an current flow little.



http://www.interq.or.jp/japan/se-inoue/gif/bol_grn.gif Clock generator circuit

http://www.interq.or.jp/japan/se-inoue/gif/pic6_123.gif
This is the circuit which used 10-MHz resonator.
It is very simple.





http://www.interq.or.jp/japan/se-inoue/gif/bol_grn.gif Power supply circuit
http://www.interq.or.jp/japan/se-inoue/gif/pic6_124.gif
3 terminal regulator is used to get +5V output from +12V power in.
Because it is suppressing the current of the LED, a 100 mA-type regulator is enough.


Parts explanation of LED flasher
http://www.interq.or.jp/japan/se-inoue/gif/line_001.gif

http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gifPIC


http://www.interq.or.jp/japan/se-inoue/gif/pic2_0.gif
This is PIC16F84A. In case of PIC16F84A, it is possible to use clock frequency upto 20 MHz. The circuit this time, I am using 10-MHz resonator.


http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif 78L05
http://www.interq.or.jp/japan/se-inoue/gif/pyro1_45.gif
This regulator is used to make the stable power of +5 V.
The maximum output current is 100 mA.


http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif IC socket
http://www.interq.or.jp/japan/se-inoue/picture/pic6_133.jpg
The PIC is mounted after writing a program by programmer. So, the IC socket is necessary.


http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif Resonator
http://www.interq.or.jp/japan/se-inoue/picture/pic6_134.jpg
I used 10-MHz resonator. A ceramic vibrator and capacitors for the oscillation are combined inside.


http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif LED
http://www.interq.or.jp/japan/se-inoue/picture/pic6_135.jpg
I used red high brightness-type LEDs. Because a 560-ohm resistor is put in series with the LED, the current in lighting-up is about 5 mA.

http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif Switch
http://www.interq.or.jp/japan/se-inoue/picture/pic6_136.jpg
This is the switch to select the blinking pattern of LEDs. It is printed board mounting type and non lock type.

http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gifResistor
http://www.interq.or.jp/japan/se-inoue/picture/pic6_137.jpg
These resistors are used for current control of the LEDs( 560 ohm ) and pull-up of the PIC input terminals( 10K ohm ).

http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif Electrolytic capacitor
http://www.interq.or.jp/japan/se-inoue/picture/pic6_138.jpg
This capacitor is used to be stabilized of the input voltage and to bypass a low frequency noise.

http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif Multilayer ceramic capacitor
http://www.interq.or.jp/japan/se-inoue/picture/pic6_139.jpg
These capacitors are used to bypass the high frequency noise of the input and output of the power supply.

http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif Printed board
http://www.interq.or.jp/japan/se-inoue/picture/ckt24_39.jpg
This is an universal printed board with 15 x 25 halls.


http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif Wiring terminal
http://www.interq.or.jp/japan/se-inoue/picture/oscilloc.jpg
This terminal is used to connect a power supply wire.

http://www.interq.or.jp/japan/se-inoue/gif/bol_pnk.gif Stud
http://www.interq.or.jp/japan/se-inoue/picture/oscillod.jpg
This is used as the leg of the printed board.



إلى اللقاء مع مشروع أخر .




اسألكم صالح الدعاء لي و لوالدي
اخوكم اللي بيحبكم
AyMaN SHeHaTa (http://www.facebook.com/home.php?#/profile.php?id=605598367&ref=profile)
:4::4:

The Hero of Love
23-07-2009, 03:41 PM
والله العظيم كتير
كتير بجد
انت بتتعب معانا بجد
ربنا يكرمك

ENG.AS
24-07-2009, 05:49 PM
موضوع ممتاز جدا
جزاك الله خيرا ياباشمهندس

وياريت من ده كتير

the spectrum
29-07-2009, 02:56 PM
موضوع جااااااااااااامد جدا

Error
14-11-2009, 12:29 PM
السلام عليكم مشروع كويس كبدايه لاى حد فى عالم الميكروكنترول بس انا ليا سؤالين او تقدر تقول انا مستغرب من حاجتين :
1- هى الليد هتعمل فلاش ازاى لان ممكن اخلى اى ليد تنور و اى واحده تطفى و هكذا او ممكن اخليهم كلهم ينوروا و يطفوا فى وقت واحد .
2- انت جبت فكره مشروع بس فين البرمجه بتاع البيك يعنى لو حتى حد حب يعمل المشروع ده مش هايعرف لانه لازم يكون عارف ميكرو عشان يقدر يبرمج ودى المشكله الكبرى .

معلش هازود حاجه كمان التكلفه باع المشروع ده هاتخش فى 100 جنيه تقريبا لو حد معندوش حاجه خالص من شغل الميكرو ..

و اعتقد ان ليها حل تانى باستخدام 555 او اى حاجه تانيه على الرغم من ان تركيب الدائره هايبقى اصعب ..