السلام عليكم ورحمه الله
اقدم لكم مشروع للتحكم فى RGB ليد هو عبارة عن كنترول يتحكم فى الوان ال RGB وعمل اشكال مختلفة جميلة جدااا ..... يخدم مجال الدعاية والاعلان انا منفذة خصيصا للتحكم فى اللافتات الاكريلك ...
مميزات الكنترول
عدد مخارج الكنترول RGB LED CONTROLER _ V1.2 هو 10 خطوط كل خط يتحمل 15 شريط من الليدات ...
عدد الحركات والاشكال الموجودة فى الكنترول RGB LED CONTROLER _ V1.2 18 شكل وحركة مميزين جدااا غاية فى الروعة
الكنترول يعمل على جهد 12 فولت AC او DC .... و التيار يتم حسابة على عدد الليدات المستخدمه مع الكنترول ويفضل تيار لا يقل عن 5 امبير
واليكم المشروع كامل
صورة عامه للمشروع على برنامج المحكاة
صورة للبوردة المطبوعة PCB
صورة ملف العمل للبورد PCB

كود البرنامج
كود:
// ENG ABDALLA HYGAZY //
#define D3 delay_ms(1000);
#define D2 delay_ms(300);
#define D1 delay_ms(200);
////////////////////////
#define Red portb=146; portd=64; portc=146; porta=9; porte=2; D3 D3
#define Green portb=73; portd=40; portc=68; porta=34; porte=4;portc=68; D3 D3
#define Blue portb=36;portd=148;porta=4;porte=1;portc=41; D3 D3
#define violet portb=219;portd=104; porta=43;porte=6;portc=214;D3 D3
#define Lightblue portb=219;portd=104; porta=43;porte=6;portc=214;D3 D3
#define Yellow portb=109;portd=188; porta=38;porte=5;portc=109;D3 D3
#define White portb=255;portd=255; porta=63;porte=7;portc=255;D3 D3
///////////////////////
#define Colours5 for(R=0;R<2;R++) { portb=218; porta=9; portd=64; portc=150; porte=6; D2 portb=219; porta=43;portd=96; D2 portd=104; portc=214; D2 portb=73; portd=40; portc=68; porta=34; porte=4;portc=68; D3 for(E=0;E<5;E++) { porte=4; porta=34; portc=109; portb=109; portd=44; D2 portc=68; portb=73; portd=184; porta=38; porte=5; D2 } }
#define Colours4 portb=146; portd=64; portc=146; porta=9; porte=2; D1 portb=73; portd=40; portc=68; porta=34; porte=4;portc=68; D1 portb=109;portd=188; porta=38;porte=5;portc=109; D1 portb=219;portd=104; porta=43;porte=6;portc=214; D1 portb=255;portd=255; porta=63;porte=7;portc=255; D1 portb=219;portd=104; porta=43;porte=6;portc=214; D1 portb=36;portd=148;porta=4;porte=1;portc=41; D1
#define Colours3 portb=36;portd=148;porta=4;porte=1;portc=41; D3 portc=105;portd=156; D2 portd=188; porta=6; D2 porta=38;portb=37; D2 porte=5; portb=45; D2 portb=109; portc=109; D3 portb=146; portd=64; portc=146; porta=9; porte=2; D3 portc=150; portb=210; D2 porte=6; portb=218; D2 porta=41; portb=219; D2 portd=96; porta=43; D2 portd=104; portc=214; D3
#define Colours2 portb=146; portd=64; portc=146; porta=9; porte=2; D3 portc=155; D2 portc=146; porte=3;porta=13; D2 porte=2;porta=9;portd=68;portc=178; D2 portd=208;portc=146; D2 portd=64; portb=182; D2 portc=155; D2 portc=146; porte=3; porta=13; D2 porte=2; porta=9; portc=178; portd=68; D2 portc=146; portd=208; D2 portc=155; D2 portc=146; porte=3; porta=13; D2 porte=2; porta=9; portd=212; portc=178; D2 portc=187; D2 portc=178; porte=3; porta=13; D2 portc=187; D3
#define serial portb=146; portd=64; portc=146; porta=9; porte=2; D3 portb=210; portc=150; D1 portb=218; porte=6; D1 portb=219; porta=41; D1 portd=96; porta=43; D1 portc=214; portd=104; D3 portd=100;portc=182; D1 portd=84; porta=45; D1 portd=212; porte=7; D1 porte=3; porta=13; portb=218; portd=212; D1 portb=214; portc=183; D1 portb=182; portc=187; D3
#define Common for(Z=0;Z<7;Z++) {portb=39; portc=41; portd=244; porta=47; porte=1; D1 portb=252; portc=255; portd=156; porta=4; porte=7; D1 }
#define Colours for(W=0;W<5;W++) {portb=219; portd=104; portc=214; porta=43; porte=6; D3 portb=182; portd=212;portc=187;porta=13; porte=3; D3 portb=109;portd=188;portc=109;porta=38;porte=5; D3 portb=255; portc=255; portd=255; porta=63; porte=7;D3}
#define Flash for(x=0;x<8;x++) {portb=255; portc=255; portd=255;porta=255; porte=255; D1 portb=0; portc=0; portd=0; porta=0; porte=0; D1 }
#define Flash2 for(M=0;M<5;M++) {portb=255; portc=255; portd=255;porta=255; porte=255; D1 portb=0; portc=0; portd=0; porta=0; porte=0; D1 }
#define run for(A=0;A<5;A++) { portb=146; portd=64; portc=146; porta=9; porte=2; D3 portb=73; portd=40; portc=68; porta=34; porte=4;portc=68; D3 portb=36;portd=148;porta=4;porte=1;portc=41; D3}
///////////////////////
void main() {
int x=0;
int A=0;
int W=0;
int M=0;
int Z=0;
int E=0;
int R=0;
int K=0;
adcon1=0x06;
trisb = 0; portb = 0; // 00000000
trisc = 0; portc = 0; // 000000
trisd = 0; portd = 0; // 000
trisa = 0; porta = 0;
trise = 0; porte = 0;
////////////////////////
while(1){
Red Flash2 Green Flash2 Blue
Common serial Flash violet
Lightblue Yellow White run
Colours Colours2 Colours3
Colours4 Colours5 Flash
}
}
مكونات الدائرة الالكترونية
1 .... بوردة نحاس PCB مقاس 30 * 30
2 ... عدد 1 ... ميكرو كنترولير PIC 16F877A
3 .... عدد 1 ... كرستالة 4M
4 ..... عدد 2 ... مكثف سراميكى 22 بيكو فراد
5 .... عدد 40 مقاومة 3K
6 ... مقاومة 10 K
7 ... عدد 4 ... دايود 6 امبير
8 .... عدد 2 .... كثف كميائى 2200 ميكروفراد 25 فولت
9 ... عدد 2 ليد
10 ... عدد 21 ... قاعدة توصيل
11 ... عدد 30 ... ترنزوستر B772
12 ... عدد 1 ... منظم جهد AN 7805
سيتم ارفاق فيديو للكنترول وهو يعمل قريبااا ان شاء الله
تحياتى للجميع وجارى رفع المشروع بالكامل غداا ان شاء الله لتعم الفائدة