HELP!!! Needed with ATTINY85 + Shift Register 74HC595 Programming
first of happy new year all,
hoping in arduino programming can out, first off best explain , ask question or 2 , see if out there can help, german friend , arduino collegue has helped me modify old german arduino project called "blebetus house" used arduino uno program attiny85 ic control 5 house lights (leds) , simulated flickering of tv (6th led) using pwm, in house or shop on model railway.
as said have modified make flickering of tv, color tv using 3 leds instead of original 1 led, still have 5 house lights (led) have managed using shift register 74hc595 (or rather german friend has coded this), can see in code posted below did telling shift register that:
datapin 14, clockpin 11 & latchpin 12 of shift register come pins 0, 1 & 2 of attiny85
thus leaving pins 3, 4, , 5 of attiny85 free.
i asked friend if use these pins randomley turn on , off other lights in house pins 3,4,5,6 , 7 of shift register 74hc595
he answered better use pins 3 , 4 of attiny85 shift register pins 0 , 1 of attiny85 true pwm pins , better leds. leaving pins 0,1 , 5 of attiny85 free, told me pin 5 not used (i dont understand why not..?)
so here questions unable clear our german friend simpley because of language barrier , shi....y google translation...

firstley change code datapin, latchpin , clockpin of shift register 74hc595 german friend suggested correct code.?
and more importantley can please explain me how have code attiny85 understands pins on shift register 74hc595, , pins on attiny85 have pins 0 , 1 on 74hc595 , pins 0 , 1 on attiny85..??
after have more questions lets go 1 one
best regards , in advance
carlos
hoping in arduino programming can out, first off best explain , ask question or 2 , see if out there can help, german friend , arduino collegue has helped me modify old german arduino project called "blebetus house" used arduino uno program attiny85 ic control 5 house lights (leds) , simulated flickering of tv (6th led) using pwm, in house or shop on model railway.
as said have modified make flickering of tv, color tv using 3 leds instead of original 1 led, still have 5 house lights (led) have managed using shift register 74hc595 (or rather german friend has coded this), can see in code posted below did telling shift register that:
code: [select]
unsigned int datapin = 0; // pin d0 verbunden mit ds von 74hc595 pin14 si
unsigned int clockpin = 1; // pin d1 verbunden mit sh_cp von 74hc595 pin11 sck
unsigned int latchpin = 2; // pin d2 verbunden mit st_cp von 74hc595 pin12 rck
datapin 14, clockpin 11 & latchpin 12 of shift register come pins 0, 1 & 2 of attiny85
thus leaving pins 3, 4, , 5 of attiny85 free.
i asked friend if use these pins randomley turn on , off other lights in house pins 3,4,5,6 , 7 of shift register 74hc595
code: [select]
const byte leds[] = {3, 4, 5, 6, 7}; // led pins für das normale blinken deklarieren
he answered better use pins 3 , 4 of attiny85 shift register pins 0 , 1 of attiny85 true pwm pins , better leds. leaving pins 0,1 , 5 of attiny85 free, told me pin 5 not used (i dont understand why not..?)
so here questions unable clear our german friend simpley because of language barrier , shi....y google translation...


firstley change code datapin, latchpin , clockpin of shift register 74hc595 german friend suggested correct code.?
code: [select]
unsigned int datapin = 3; // pin d3 verbunden mit ds von 74hc595 pin14 si
unsigned int clockpin = 4; // pin d4 verbunden mit sh_cp von 74hc595 pin11 sck
unsigned int latchpin = 2; // pin d2 verbunden mit st_cp von 74hc595 pin12 rck
and more importantley can please explain me how have code attiny85 understands pins on shift register 74hc595, , pins on attiny85 have pins 0 , 1 on 74hc595 , pins 0 , 1 on attiny85..??
after have more questions lets go 1 one
best regards , in advance
carlos
please guys , girls need on one.
thanks in advance
carlos
thanks in advance
carlos
Arduino Forum > Using Arduino > Programming Questions > HELP!!! Needed with ATTINY85 + Shift Register 74HC595 Programming
arduino
Comments
Post a Comment