//MEOW =^.^= kot vor halfmatrix (54x 0603 SMD RGB flasher..super smal SMD 4soldersurfaces led thingy :3) // capacitor ~3-1yF parralel to ech of 162 colorchips positive led surface with diode, negative surface also.. //leds Y2 PNP smd for positive surfaces D882 NPN for negative surfaces.. all transistores with 220R connected to GIOs //stm 3V3 voltage boosted to 5.85 Volt (required for PNP switching and bright matrix :3) // cells 2x 2.4Ah + 1x 2.1Ah on rear 2x TP4056 Li-ion charger some Tantal vor stabilising adjustable 2A boost step up voltage.. //have fun use idea and kote is want to but better not try reabuilding have needed 1.5days for solderwork (with correctiong own fails^^) nearly not possible ^^ //still color full on beatpsyflasher but extendet channels to 162 hihi oh if want more than 255 have to change uint8_t stuff to uint16_t^^ /* * pics * https://marderchen.lima-city.de/NEU+/becreative_partspreparing.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_1.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_2.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_3.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_4.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_5.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_6.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_7.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_8.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_9.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_10.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_11.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_12.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_13.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_stmNr3.jpg zort killed 2 STM32F103C8T6 boards * cause 54 RGB led on 9 pines just tomuch.. and one PNP proken.. and finaly STM 3V3 voltage: 5.85Volt XD * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_14.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_15.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_16.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_17.jpg * https://marderchen.lima-city.de/NEU+/54x0603RGBsuperbright_colorflashmatrix_18.jpg * also picture on end from video pretty awesome superfinework hihi rebuild this? maybe need * 3layer PCB board caused machines can't work with 3D laqued finewire system^^^^ * clear glossy laqued for protection against martentapsing.. * case maybe later^^ * kote running\/ */ #define PNP1 PB11 //Y2 #define PNP2 PB10 #define PNP3 PB1 #define PNP4 PB0 #define PNP5 PA7 #define PNP6 PA6 #define PNP7 PA5 #define PNP8 PA4 #define PNP9 PA3 #define PNP10 PA2 #define PNP11 PA1 #define PNP12 PA0 #define PNP13 PC15 #define PNP14 PC14 #define PNP15 PC13 #define PNP16 PB7 #define PNP17 PB8 #define PNP18 PB9 #define color1 PB12 //0603 4pin RGB negative #define color2 PB13 #define color3 PB14 #define color4 PB15 #define color5 PA8 #define color6 PA9 #define color7 PA10 #define color8 PB5 #define color9 PB6 #define T1 PA12 #define T2 PA15 #define channelz 162 #define sqsteps 21 uint8_t leds[18][7]; void setup() { pinMode(T1,INPUT);pinMode(T2,INPUT); pinMode(PNP1,OUTPUT);pinMode(PNP2,OUTPUT);pinMode(PNP3,OUTPUT);pinMode(PNP4,OUTPUT);pinMode(PNP5,OUTPUT);pinMode(PNP6,OUTPUT); pinMode(PNP7,OUTPUT);pinMode(PNP8,OUTPUT);pinMode(PNP9,OUTPUT);pinMode(PNP10,OUTPUT);pinMode(PNP11,OUTPUT);pinMode(PNP12,OUTPUT); pinMode(PNP13,OUTPUT);pinMode(PNP14,OUTPUT);pinMode(PNP15,OUTPUT);pinMode(PNP16,OUTPUT);pinMode(PNP17,OUTPUT);pinMode(PNP18,OUTPUT); pinMode(color1,OUTPUT);pinMode(color2,OUTPUT);pinMode(color3,OUTPUT);pinMode(color4,OUTPUT);pinMode(color5,OUTPUT);pinMode(color6,OUTPUT); pinMode(color7,OUTPUT);pinMode(color8,OUTPUT);pinMode(color9,OUTPUT); pinMode(T1,INPUT); pinMode(T2,INPUT);noLEDs();noPNP(); delay(300);ratemal();} uint16_t zeit1; void loop() {zeitreise();} uint8_t beatsplit,strop[channelz+1],helligkeiten[channelz+1],newtrigger,blinkdata[sqsteps+1][channelz+1],isoncount,onpress[4],modi=3,doubleup=4,zufall; uint8_t moden[5]={1,2,4}; uint8_t xmoden[7]={0,81,72,0,59};//long thing matching vauels to psy fullon uint16_t coolcach; long littletime=micros();long slowtime=micros();long dimmer=micros(); void zeitreise(void){ while ((micros()- slowtime)>(20100/doubleup)){blinkdata[0][31]=69;//something between 19500-20500 raw- beatsplit++;if (beatsplit >=xmoden[doubleup]){beatsplit=1;newtrigger++;if(newtrigger>16){newtrigger=random(1,4)*3;ratemal();}} for(uint8_t fiz=0;fiz= (32/doubleup)){for(uint8_t fu=0;fu=1){strop[fu]-=1;}}dimmer = micros();}//downfade while ((micros()- littletime) >= 2){if(modi<=2){doubleup=moden[modi];}schaltzeugs();littletime = micros();}//istinput();pulspowder();pulspowder(); } void ratemal(void){ zufall=random(0,50); if(modi==3 && zufall <20){doubleup=moden[0];} if(modi==3 && zufall >=20 && zufall <40){doubleup=moden[1];} if(modi==3 && zufall >=40){doubleup=moden[2];} for(uint8_t tik=0;tik=1){isoncount++;}}}if(isoncount<=3){ratemal();}}//try solong until minimum 3flashes/sequenz void istinput(void){ onpress[2]++; if (onpress[2] >20) { if (digitalRead(T2) == HIGH && onpress[0] ==0 ) { onpress[0] =1;moduswechsel();} if (onpress[0] == 1 ) { onpress[1]++;} if (onpress[1] >= 5) { onpress[1] =0; onpress[0]=0; }onpress[2]=0;}} void moduswechsel(void){modi++; if(modi>3){modi=0;} } uint8_t maxx=100; void schaltzeugs(void) { for (uint8_t welchs=0; welchs <=144; welchs+=18) { if (welchs==0) { digitalWrite(color1,HIGH);} if (welchs==18) { digitalWrite(color2,HIGH);} if (welchs==36) { digitalWrite(color3,HIGH);} if (welchs==54) { digitalWrite(color4,HIGH);} if (welchs==72) { digitalWrite(color5,HIGH);} if (welchs==90) { digitalWrite(color6,HIGH);} if (welchs==108) { digitalWrite(color7,HIGH);} if (welchs==126) { digitalWrite(color8,HIGH);} if (welchs==144) { digitalWrite(color9,HIGH);} for (uint16_t laag=0; laag <=(maxx); laag++) { if (laag <= (maxx-1) && laag >=1) { if (laag == (maxx-strop[welchs+0])){digitalWrite(PNP1,LOW);} if (laag == (maxx-strop[welchs+1])){digitalWrite(PNP2,LOW);} if (laag == (maxx-strop[welchs+2])){digitalWrite(PNP3,LOW);} if (laag == (maxx-strop[welchs+3])){digitalWrite(PNP4,LOW);} if (laag == (maxx-strop[welchs+4])){digitalWrite(PNP5,LOW);} if (laag == (maxx-strop[welchs+5])){digitalWrite(PNP6,LOW);} if (laag == (maxx-strop[welchs+6])){digitalWrite(PNP7,LOW);} if (laag == (maxx-strop[welchs+7])){digitalWrite(PNP8,LOW);} if (laag == (maxx-strop[welchs+8])){digitalWrite(PNP9,LOW);} if (laag == (maxx-strop[welchs+9])){digitalWrite(PNP10,LOW);} if (laag == (maxx-strop[welchs+10])){digitalWrite(PNP11,LOW);} if (laag == (maxx-strop[welchs+11])){digitalWrite(PNP12,LOW);} if (laag == (maxx-strop[welchs+12])){digitalWrite(PNP13,LOW);} if (laag == (maxx-strop[welchs+13])){digitalWrite(PNP14,LOW);} if (laag == (maxx-strop[welchs+14])){digitalWrite(PNP15,LOW);} if (laag == (maxx-strop[welchs+15])){digitalWrite(PNP16,LOW);} if (laag == (maxx-strop[welchs+16])){digitalWrite(PNP17,LOW);} if (laag == (maxx-strop[welchs+17])){digitalWrite(PNP18,LOW);}} if (laag ==maxx) {noPNP(); noLEDs();}}}} void noPNP(void) {digitalWrite(PNP1,HIGH);digitalWrite(PNP2,HIGH);digitalWrite(PNP3,HIGH);digitalWrite(PNP4,HIGH);digitalWrite(PNP5,HIGH);digitalWrite(PNP6,HIGH); digitalWrite(PNP7,HIGH);digitalWrite(PNP8,HIGH);digitalWrite(PNP9,HIGH);digitalWrite(PNP10,HIGH);digitalWrite(PNP11,HIGH);digitalWrite(PNP12,HIGH); digitalWrite(PNP13,HIGH);digitalWrite(PNP14,HIGH);digitalWrite(PNP15,HIGH);digitalWrite(PNP16,HIGH);digitalWrite(PNP17,HIGH);digitalWrite(PNP18,HIGH);} void noLEDs(void){digitalWrite(color1,LOW);digitalWrite(color2,LOW);digitalWrite(color3,LOW);digitalWrite(color4,LOW);digitalWrite(color5,LOW);digitalWrite(color6,LOW); digitalWrite(color7,LOW);digitalWrite(color8,LOW);digitalWrite(color9,LOW);} // [MEOW] more rainbowpower! this RGB matrix is pretty large wiith 54 RGB 4pin leds but the 0603 RGB leds are smalest aviable :3 pretty bright not high powerconsumtion.. rated with 5mA/color (using little more^^ PCB back is transformator metal heatflow heatsink..