shift register 4 digit 7 seg counter up/down,reset push button n sensor

help me please....iam newbie with arduino :confused: i want make shift register 4 digit 7 seg up/down button,reset button n sensor...

Care to elaborate?

I want to create a button when pressed a few seconds to change the unit value , the value of a second slide into dozens , a few seconds to value hundreds , a few seconds to the value of thousands and sensor for counter up.i am sorry abaut elaborate

Even when I change "dozens" into "tens", I don't understand. I sure hope that Paul__B understands.

for example like this ,

shiftOut(dataPin, clockPin, MSBFIRST, numbers[(number / 1000) % 10]);
shiftOut(dataPin, clockPin, MSBFIRST, numbers[(number / 100) % 10]);
shiftOut(dataPin, clockPin, MSBFIRST, numbers[(number / 10) % 10]);
shiftOut(dataPin, clockPin, MSBFIRST, numbers[number % 10]);

I am still confused to make up and down button, reset button and counter up with sensor

Do you have hardware BCD decoders attached to every shift register? Because you will need that if you use the code you posted. What kind of display hardware do you actually have?

i use 4 × 74HC595 shift registers and 4 digit 7 segment led...latchPin,clockpin and datapin. i use ifm infra red sensor for object counter.

Do you have current limiting resistors on the segments?

no current limit resistor..i need code for arduino, im confused abaut code

this my code counter up,

#define LATCH 11
#define CLK 12
#define DATA 13

//This is the hex value of each number stored in an array by index num
byte digitOne[10]= {0x88, 0xE6, 0x41, 0x44, 0x26, 0x14, 0x18, 0xC6, 0x00, 0x04};
byte digitTwo[10]= {0x88, 0xE6, 0x41, 0x44, 0x26, 0x14, 0x18, 0xC6, 0x00, 0x04};
byte digitThree[10]= {0x88, 0xE6, 0x41, 0x44, 0x26, 0x14, 0x18, 0xC6, 0x00, 0x04};
byte digitfour[10]= {0x88, 0xE6, 0x41, 0x44, 0x26, 0x14, 0x18, 0xC6, 0x00, 0x04};
int i;

void setup(){

pinMode(LATCH, OUTPUT);
pinMode(CLK, OUTPUT);
pinMode(DATA, OUTPUT);

}

void loop(){
for(int g=0; g<10; g++){
for(int h=0; h<10; h++){
for(int i=0; i<10; i++){
for(int j=0; j<10; j++){
digitalWrite(LATCH, LOW);
shiftOut(DATA, CLK, MSBFIRST, ~digitfour[g]); // digitfour
shiftOut(DATA, CLK, MSBFIRST, ~digitThree); // digitThree
shiftOut(DATA, CLK, MSBFIRST, ~digitTwo*); // digitTwo*
shiftOut(DATA, CLK, MSBFIRST, ~digitOne[j]); // digitOne
digitalWrite(LATCH, HIGH);
delay(1000);
}
}
}
}

megappeh:
no current limit resistor..i need code for arduino, im confused abaut code

Then you are risking damage to the output pins and other internal circuits of your Arduino. Is this a school assignment?

yes...