//27channel 9* 3Watt RGB led hihi all possibly outputs used for dutyflashfading use it if usefull [MEOW] //used and calibrated for psy-polaris //build in acryl polaris, 5x 3Watt RGB, 1x 3Watt blue, 1x3Watt UV, 2x 3Watt white (all 3watt leds with reflectorelense exept starcenterone) 6x 0.54W 90000mcd 54mm lense clear specialleds //2 channels no leds maybe lazers.. each channel gpio>1540R>D882 (3A NPN) ->4x 10uF 16V tanal parralel to ledcolor, inlinde diopde for redcolors, leds on 5V buildin 26400uF 16V parralel to 5V //much condensators caused microusb powerplug) /*pictures * https://marderchen.lima-city.de/NEU+/the_psy_polaris_wirecasing_.jpg * https://marderchen.lima-city.de/NEU+/parts_for_psypolaris.jpg * https://marderchen.lima-city.de/NEU+/the_psy_polaris_progress.jpg * https://marderchen.lima-city.de/NEU+/psy_polaris_3Wledsplaced.jpg * https://marderchen.lima-city.de/NEU+/psy_polaris_ledswiered+spotted.jpg * https://marderchen.lima-city.de/NEU+/psy_polaris_mirrored_test_1.jpg * https://marderchen.lima-city.de/NEU+/psy_polaris_mirrored_test_3.jpg * https://marderchen.lima-city.de/NEU+/psy_polaris_mirrored_test_4.jpg * https://marderchen.lima-city.de/NEU+/psy_polaris_mirrored_test_2.jpg * case build with 1.5mm² NYM core * used mirrorfoil/holographic foil * hf use if want :3 */ #define strobe1 PC13 #define strobe2 PC14 #define strobe3 PC15 #define strobe4 PA0 #define strobe5 PA1 #define strobe6 PA2 #define strobe7 PA3 #define strobe8 PA4 #define strobe9 PA5 #define strobe10 PA6 #define strobe11 PA7 #define strobe12 PB0 #define strobe13 PB1 #define strobe14 PB10 #define strobe15 PB11 #define strobe16 PB12 #define strobe17 PB13 #define strobe18 PB14 #define strobe19 PB15 #define strobe20 PA8 #define strobe21 PA9 #define strobe22 PA10 #define strobe23 PB5 #define strobe24 PB6 #define strobe25 PB7 #define strobe26 PB8 #define strobe27 PB9 #define channelz 27 #define sqsteps 21 void setup(){ delay(10); pinMode(strobe1,OUTPUT); pinMode(strobe2,OUTPUT); pinMode(strobe3,OUTPUT); pinMode(strobe4,OUTPUT); pinMode(strobe5,OUTPUT); pinMode(strobe6,OUTPUT); pinMode(strobe7,OUTPUT); pinMode(strobe8,OUTPUT); pinMode(strobe9,OUTPUT); pinMode(strobe10,OUTPUT); pinMode(strobe11,OUTPUT); pinMode(strobe12,OUTPUT); pinMode(strobe13,OUTPUT); pinMode(strobe14,OUTPUT); pinMode(strobe14,OUTPUT); pinMode(strobe15,OUTPUT); pinMode(strobe16,OUTPUT); pinMode(strobe17,OUTPUT); pinMode(strobe18,OUTPUT); pinMode(strobe19,OUTPUT); pinMode(strobe20,OUTPUT); pinMode(strobe21,OUTPUT); pinMode(strobe22,OUTPUT); pinMode(strobe23,OUTPUT); pinMode(strobe24,OUTPUT); pinMode(strobe25,OUTPUT); pinMode(strobe26,OUTPUT); pinMode(strobe27,OUTPUT); allof();delay(300);ratemal();} void loop(){zeitreise();}// uint8_t beatsplit,strop[channelz+1],helligkeiten[channelz+1],newtrigger,blinkdata[sqsteps+1][channelz+1],isoncount,modi=1,doubleup=4,zufall; uint8_t moden[5]={1,2,4}; uint8_t xmoden[7]={0,41,80,0,76};//long thing matching vauels to psy fullon {0,81,72,0,59} //most time spendet for adjusting.. //(20100/doubleup)){//something between 19500-20500 raw- beatsplit++;if (beatsplit >=xmoden[doubleup]){beatsplit=1;newtrigger++;if(newtrigger>24){ratemal();newtrigger=random(1,4)*3;}}//ratemal(); for(uint8_t fiz=0;fiz= (3000/(doubleup*4))){for(uint8_t fu=0;fu=1){strop[fu]-=1;}}dimmer = micros();}//downfade while ((micros()- littletime) >= 6){pulspowder();littletime = micros();}//istinput();pulspowder();pulspowder(); } void ratemal(void){ zufall=random(0,60); if(modi==3 && zufall <10){doubleup=moden[0];} if(modi==3 && zufall >=10 && zufall <30){doubleup=moden[1];} if(modi==3 && zufall >=30){doubleup=moden[2];} for(uint8_t tik=0;tik<=sqsteps;tik++){for(uint8_t tok=0;tok=1){isoncount++;}}}if(isoncount<=5){ratemal();}}//try solong until minimum 3flashes/sequenz void moduswechsel(void){modi++; if(modi>3){modi=0;} } uint8_t maxx=100; void pulspowder(void) { for (uint8_t fcount=0; fcount <=maxx; fcount++) {//oh have to change this back to old system caused writing HIGH or LOW 1800x each cyclus to inhibit the whole programm if (fcount <= (maxx-1) && fcount >=1) { if (fcount==(maxx-strop[0])) {digitalWrite(strobe1,HIGH);} if (fcount==(maxx-strop[1])) {digitalWrite(strobe2,HIGH);} if (fcount==(maxx-strop[2])) {digitalWrite(strobe3,HIGH);} if (fcount==(maxx-strop[3])) {digitalWrite(strobe4,HIGH);} if (fcount==(maxx-strop[4])) {digitalWrite(strobe5,HIGH);} if (fcount==(maxx-strop[5])) {digitalWrite(strobe6,HIGH);} if (fcount==(maxx-strop[6])) {digitalWrite(strobe7,HIGH);} if (fcount==(maxx-strop[7])) {digitalWrite(strobe8,HIGH);} if (fcount==(maxx-strop[8])) {digitalWrite(strobe9,HIGH);} if (fcount==(maxx-strop[9])) {digitalWrite(strobe10,HIGH);} if (fcount==(maxx-strop[10])) {digitalWrite(strobe11,HIGH);} if (fcount==(maxx-strop[11])) {digitalWrite(strobe12,HIGH);} if (fcount==(maxx-strop[12])) {digitalWrite(strobe13,HIGH);} if (fcount==(maxx-strop[13])) {digitalWrite(strobe14,HIGH);} if (fcount==(maxx-strop[14])) {digitalWrite(strobe15,HIGH);} if (fcount==(maxx-strop[15])) {digitalWrite(strobe16,HIGH);} if (fcount==(maxx-strop[16])) {digitalWrite(strobe17,HIGH);} if (fcount==(maxx-strop[17])) {digitalWrite(strobe18,HIGH);} if (fcount==(maxx-strop[18])) {digitalWrite(strobe19,HIGH);} if (fcount==(maxx-strop[19])) {digitalWrite(strobe20,HIGH);} if (fcount==(maxx-strop[20])) {digitalWrite(strobe21,HIGH);} if (fcount==(maxx-strop[21])) {digitalWrite(strobe22,HIGH);} if (fcount==(maxx-strop[22])) {digitalWrite(strobe23,HIGH);} if (fcount==(maxx-strop[23])) {digitalWrite(strobe24,HIGH);} if (fcount==(maxx-strop[24])) {digitalWrite(strobe25,HIGH);} if (fcount==(maxx-strop[25])) {digitalWrite(strobe26,HIGH);} if (fcount==(maxx-strop[26])) {digitalWrite(strobe27,HIGH);} } if (fcount>=maxx){allof();}}} void allof(void){ digitalWrite(strobe1, LOW);digitalWrite(strobe2, LOW);digitalWrite(strobe3, LOW);digitalWrite(strobe4, LOW);digitalWrite(strobe5, LOW);digitalWrite(strobe6, LOW); digitalWrite(strobe7, LOW);digitalWrite(strobe8, LOW);digitalWrite(strobe9, LOW);digitalWrite(strobe10, LOW);digitalWrite(strobe11, LOW);digitalWrite(strobe12, LOW); digitalWrite(strobe13, LOW);digitalWrite(strobe14, LOW);digitalWrite(strobe15, LOW);digitalWrite(strobe16, LOW);digitalWrite(strobe17, LOW);digitalWrite(strobe18, LOW); digitalWrite(strobe19, LOW);digitalWrite(strobe20, LOW);digitalWrite(strobe21, LOW);digitalWrite(strobe22, LOW);digitalWrite(strobe23, LOW);digitalWrite(strobe24, LOW); digitalWrite(strobe25, LOW);digitalWrite(strobe26, LOW);digitalWrite(strobe27, LOW); }