Skip to main content
Arduino

Return to Question

Tweeted twitter.com/StackArduino/status/975194843411632129
deleted 49 characters in body; edited title
Source Link
gre_gor
  • 1.7k
  • 4
  • 18
  • 28

Problem with a seven segment display. The segments are blinking and turnedblink then turn off

I can't figure it out what is the problem with my circuit, the segments turning on for sec and then they are turning off for good.

I tried to connect to GND instead of the 5v5 V but then, nothing happened.

enter image description here

My code:

void setup() { 
 for (int pin = 2 ; pin < 9 ; pin++){ // setup pins 2 – 8 to be output 
 pinMode(pin, OUTPUT);
 } 
 for (int pin = 2 ; pin < 9 ; pin++){ // turn on pins 2 - 8 
 digitalWrite(pin, HIGH); 
 }
}
void loop(){}
void setup() { 
 for (int pin = 2 ; pin < 9 ; pin++){ // setup pins 2 – 8 to be output 
 pinMode(pin, OUTPUT);
 } 
 for (int pin = 2 ; pin < 9 ; pin++){ // turn on pins 2 - 8 
 digitalWrite(pin, HIGH); 
 }
}
void loop(){}

Working simulation demo

Thanks!

Problem with a seven segment display. The segments are blinking and turned off

I can't figure it out what is the problem with my circuit, the segments turning on for sec and then they are turning off for good.

I tried to connect to GND instead of the 5v but then, nothing happened.

enter image description here

My code:

void setup() { 
 for (int pin = 2 ; pin < 9 ; pin++){ // setup pins 2 – 8 to be output 
 pinMode(pin, OUTPUT);
 } 
 for (int pin = 2 ; pin < 9 ; pin++){ // turn on pins 2 - 8 
 digitalWrite(pin, HIGH); 
 }
}
void loop(){}

Working simulation demo

Thanks!

Problem with a seven segment display. The segments blink then turn off

I can't figure it out what is the problem with my circuit, the segments turning on for sec and then they are turning off for good.

I tried to connect to GND instead of the 5 V but then, nothing happened.

My code:

void setup() { 
 for (int pin = 2 ; pin < 9 ; pin++){ // setup pins 2 – 8 to be output 
 pinMode(pin, OUTPUT);
 } 
 for (int pin = 2 ; pin < 9 ; pin++){ // turn on pins 2 - 8 
 digitalWrite(pin, HIGH); 
 }
}
void loop(){}

Working simulation demo

Problem with a seven segment display. The lights issegments are blinking and turned off

edited body
Source Link
Mosh Feu
  • 133
  • 1
  • 7

I can't figure it out what is the problem with my circuit, the segments turning on for sec and then they are turning off for good.

I tried to connect to GND instead of the 5v but then, nothing happened.

enter image description here enter image description here

My code:

void setup() { 
 for (int pin = 2 ; pin < 9 ; pin++){ // setup pins 2 – 8 to be output 
 pinMode(pin, OUTPUT);
 } 
 for (int pin = 2 ; pin < 9 ; pin++){ // turn on pins 2 - 8 
 digitalWrite(pin, HIGH); 
 }
}
void loop(){}

Working simulation demo

Thanks!

I can't figure it out what is the problem with my circuit, the segments turning on for sec and then they are turning off for good.

I tried to connect to GND instead of the 5v but then, nothing happened.

enter image description here

My code:

void setup() { 
 for (int pin = 2 ; pin < 9 ; pin++){ // setup pins 2 – 8 to be output 
 pinMode(pin, OUTPUT);
 } 
 for (int pin = 2 ; pin < 9 ; pin++){ // turn on pins 2 - 8 
 digitalWrite(pin, HIGH); 
 }
}
void loop(){}

Working simulation demo

Thanks!

I can't figure it out what is the problem with my circuit, the segments turning on for sec and then they are turning off for good.

I tried to connect to GND instead of the 5v but then, nothing happened.

enter image description here

My code:

void setup() { 
 for (int pin = 2 ; pin < 9 ; pin++){ // setup pins 2 – 8 to be output 
 pinMode(pin, OUTPUT);
 } 
 for (int pin = 2 ; pin < 9 ; pin++){ // turn on pins 2 - 8 
 digitalWrite(pin, HIGH); 
 }
}
void loop(){}

Working simulation demo

Thanks!

Source Link
Mosh Feu
  • 133
  • 1
  • 7
Loading

AltStyle によって変換されたページ (->オリジナル) /