Double digit 7-Segment Display w/ button

I am trying to make a lap counter that starts at 1 and goes up by 2 every time the button is pushed but I can't figure out if my code or my wiring is the problem because the 7-segment display wont light up and it says that no current is being sent in when I checked with a multimeter

int const a = 10;
int const b = 9;
int const c = 8;
int const d = 7;
int const e = 6;
int const f = 5;
int const g = 4;

int const p = A2;
int const q = A0;
int const r = A1;
int const s = 3;
int const t = 2;
int const u = A3;
int const v = 11;

int const Button = 13;

int i;
int j;

int sir;
int ser;

void setup(){

pinMode(a, OUTPUT);
pinMode(b, OUTPUT);
pinMode(c, OUTPUT);
pinMode(d, OUTPUT);
pinMode(e, OUTPUT);
pinMode(f, OUTPUT);
pinMode(g, OUTPUT);
pinMode(A2, OUTPUT);
pinMode(A0, OUTPUT);
pinMode(A1, OUTPUT);
pinMode(3, OUTPUT);
pinMode(2, OUTPUT);
pinMode(A3, OUTPUT);
pinMode(11, OUTPUT);
pinMode(Button, INPUT);
}

void loop(){
int bState = digitalRead(Button);  
while(bState == HIGH){
  for (j=1; j<10; j+2){
  ser = j;
  
  if(ser == 1){
  digitalWrite (a, HIGH);
  digitalWrite (b, LOW);
  digitalWrite (c, LOW);
  digitalWrite (d, LOW);
  digitalWrite (e, LOW);
  digitalWrite (f, LOW);
  digitalWrite (g, HIGH);
  
  }
  else if(ser == 2){
  digitalWrite (a, LOW);
  digitalWrite (b, HIGH);
  digitalWrite (c, HIGH);
  digitalWrite (d, HIGH);
  digitalWrite (e, LOW);
  digitalWrite (f, HIGH);
  digitalWrite (g, HIGH);
  
  }
  else if(ser == 3){
  digitalWrite (a, HIGH);
  digitalWrite (b, LOW);
  digitalWrite (c, HIGH);
  digitalWrite (d, HIGH);
  digitalWrite (e, LOW);
  digitalWrite (f, HIGH);
  digitalWrite (g, HIGH);
  
  }
  else if(ser == 4){
  digitalWrite (a, HIGH);
  digitalWrite (b, LOW);
  digitalWrite (c, LOW);
  digitalWrite (d, HIGH);
  digitalWrite (e, HIGH);
  digitalWrite (f, LOW);
  digitalWrite (g, HIGH);
  
  }
  else if(ser == 5){
  digitalWrite (a, HIGH);
  digitalWrite (b, LOW);
  digitalWrite (c, HIGH);
  digitalWrite (d, HIGH);
  digitalWrite (e, HIGH);
  digitalWrite (f, HIGH);
  digitalWrite (g, LOW);
  
  }
  else if(ser == 6){
  digitalWrite (a, HIGH);
  digitalWrite (b, HIGH);
  digitalWrite (c, HIGH);
  digitalWrite (d, HIGH);
  digitalWrite (e, HIGH);
  digitalWrite (f, HIGH);
  digitalWrite (g, LOW);
  
  }
  else if(ser == 7){
  digitalWrite (a, HIGH);
  digitalWrite (b, LOW);
  digitalWrite (c, LOW);
  digitalWrite (d, LOW);
  digitalWrite (e, LOW);
  digitalWrite (f, HIGH);
  digitalWrite (g, HIGH);
  
  }
  else if(ser == 8){
  digitalWrite (a, HIGH);
  digitalWrite (b, HIGH);
  digitalWrite (c, HIGH);
  digitalWrite (d, HIGH);
  digitalWrite (e, HIGH);
  digitalWrite (f, HIGH);
  digitalWrite (g, HIGH);
  
  }
  else if(ser == 9){
  digitalWrite (a, HIGH);
  digitalWrite (b, LOW);
  digitalWrite (c, LOW);
  digitalWrite (d, HIGH);
  digitalWrite (e, HIGH);
  digitalWrite (f, HIGH);
  digitalWrite (g, HIGH);
  
  }
  
  for (i=0; i<10; i++){
  sir = i;
  if(sir == 0){
  digitalWrite (p, HIGH);
  digitalWrite (q, HIGH);
  digitalWrite (r, HIGH);
  digitalWrite (s, LOW);
  digitalWrite (t, HIGH);
  digitalWrite (u, HIGH);
  digitalWrite (v, HIGH);
  }
  else if(sir == 1){
  digitalWrite (p, HIGH);
  digitalWrite (q, LOW);
  digitalWrite (r, LOW);
  digitalWrite (s, LOW);
  digitalWrite (t, LOW);
  digitalWrite (u, LOW);
  digitalWrite (v, HIGH);
  }
  else if(sir == 2){
  digitalWrite (p, LOW);
  digitalWrite (q, HIGH);
  digitalWrite (r, HIGH);
  digitalWrite (s, HIGH);
  digitalWrite (t, LOW);
  digitalWrite (u, HIGH);
  digitalWrite (v, HIGH);
  }
  else if(sir == 3){
  digitalWrite (p, HIGH);
  digitalWrite (q, LOW);
  digitalWrite (r, HIGH);
  digitalWrite (s, HIGH);
  digitalWrite (t, LOW);
  digitalWrite (u, HIGH);
  digitalWrite (v, HIGH);
  }
  else if(sir == 4){
  digitalWrite (p, HIGH);
  digitalWrite (q, LOW);
  digitalWrite (r, LOW);
  digitalWrite (s, HIGH);
  digitalWrite (t, HIGH);
  digitalWrite (u, LOW);
  digitalWrite (v, HIGH);
 }
  else if(sir == 5){
  digitalWrite (p, HIGH);
  digitalWrite (q, LOW);
  digitalWrite (r, HIGH);
  digitalWrite (s, HIGH);
  digitalWrite (t, HIGH);
  digitalWrite (u, HIGH);
  digitalWrite (v, LOW);
  }
  else if(sir == 6){
  digitalWrite (p, HIGH);
  digitalWrite (q, HIGH);
  digitalWrite (r, HIGH);
  digitalWrite (s, HIGH);
  digitalWrite (t, HIGH);
  digitalWrite (u, HIGH);
  digitalWrite (v, LOW);
  }
  else if(sir == 7){
  digitalWrite (p, HIGH);
  digitalWrite (q, LOW);
  digitalWrite (r, LOW);
  digitalWrite (s, LOW);
  digitalWrite (t, LOW);
  digitalWrite (u, HIGH);
  digitalWrite (v, HIGH);
  }
  else if(sir == 8){
  digitalWrite (p, HIGH);
  digitalWrite (q, HIGH);
  digitalWrite (r, HIGH);
  digitalWrite (s, HIGH);
  digitalWrite (t, HIGH);
  digitalWrite (u, HIGH);
  digitalWrite (v, HIGH);
  }
  else if(sir == 9){
  digitalWrite (p, HIGH);
  digitalWrite (q, LOW);
  digitalWrite (r, LOW);
  digitalWrite (s, HIGH);
  digitalWrite (t, HIGH);
  digitalWrite (u, HIGH);
  digitalWrite (v, HIGH);
  }
  }
  }
}
}

Code, but no schematic?

for (j=1; j<10; j+2){for loop 101

while(bState == HIGH){And how does bState get another value?

Here is link to schematic Imgur: The magic of the Internet

OP's "schematic":


That's not a schematic. That's an artist's impression of plate of spaghetti. Not even trying to comment on that.

Also: please don't post pics on some external site, and then without even a clickable link. Just attach them to your post, or even better inline them.

Just ignoring that for loop issue - let's assume it's a correct statement - what this code will do: the moment you press the button it starts looping through the numbers at breakneck speed, and all you'll see is all segments of your display lit. Some maybe a little dimmer than others as they're used less in the letters.

That button will cause a short as soon as it is pressed.

The right hand digit has no connection for it's common pin.

Are the displays common anode or common cathode? If common cathode, the commons should be connected to ground.

I do not like green spaghetti and spam. I do not like them, Sam-I-Am.

Hi

Can you please post a copy of your circuit as a picture of a hand drawn circuit in jpg, png?
Label, all the 7segment display pins, and components.
What are the part numbers of your LEDS, are they common cathode or anode?

Can you tell us your electronics, programming, Arduino, hardware experience?

Did you google uno and 2 7segment display

Tom... :slight_smile:

If I were you, I'd just try to get it working with one digit.
Once you have that, then worry about a second digit.