Go Down

Topic: radioshack 7-segment red led 0.3" digital display help please... (Read 3805 times) previous topic - next topic

Grumpy_Mike

Quote
for 1 shows: nothing
for 9 shows: nothing
for 0 shows: nothing

No surprise as pins 0, 1 an 9 on the arduino are / should not be connected to anything.

Quote
for 5 shows: E,D
for 6 shows: E,D

That is not correct. This implies that pins 5 and 6 are somehow connected together. Check your wiring on this very carefully.


Ruffsta

#16
Jan 04, 2013, 07:24 pm Last Edit: Jan 04, 2013, 07:38 pm by Ruffsta Reason: 1
well, 9 is for the dot if i wanted to use it, which i don't - i have no need for it... i checked my connections, they seem fine.. will check another led.. i bought 2 of them.. lol


yep, confirmed... used a second one without resistors this time... same no change and everything is hooked up as you stated:

Quote
Arduino Pin    your display
2        resistor         14
3        resistor         13
4        resistor         8
5        resistor         7
6        resistor         6
7        resistor         2
8        resistor         1
ground                 12 & 4


0,2 and 3 are the only ones messing up...

Ruffsta

#17
Jan 04, 2013, 08:05 pm Last Edit: Jan 04, 2013, 08:09 pm by Ruffsta Reason: 1
ran a quick sketch of my own..

Quote
void setup() {              
 pinMode(2, OUTPUT);
 pinMode(3, OUTPUT);
 pinMode(4, OUTPUT);
 pinMode(5, OUTPUT);
 pinMode(6, OUTPUT);
 pinMode(7, OUTPUT);
 pinMode(8, OUTPUT);
// pinMode(9, OUTPUT);//dot
// digitalWrite(9, 1);  // start with the "dot" off
}

void loop() {
delay(1000);
// write '3'
digitalWrite(2, 1);
digitalWrite(3, 1);
digitalWrite(4, 1);
digitalWrite(5, 1);
digitalWrite(6, 0);
digitalWrite(7, 1);
digitalWrite(8, 0);
delay(1000);  
 
 
}  


to make the 3 show... pin 7 had to be changed from 0 to 1 and 8 had to be changed from 1 to 0...



same with making the 2 show properly..

Quote
void setup() {             
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
// pinMode(9, OUTPUT);//dot
// digitalWrite(9, 1);  // start with the "dot" off
}

void loop() {
delay(1000);
// write '3'
digitalWrite(2, 1);
digitalWrite(3, 1);
digitalWrite(4, 0);
digitalWrite(5, 1);
digitalWrite(6, 1);
digitalWrite(7, 1);
digitalWrite(8, 0);
delay(1000);
 
 

Ruffsta

problem solved... switch arduino pins 7 & 8.. all works fine now! woot!


ty mike!


Ruffsta

side note, you don't even have to hook up pin 4 from the led... i just pulled it out and it still works just fine.. but i'll continue to keep it there just because.. but led 12 pin MUST be connected to ground.

hope this all helps everyone else that has this same exact item.. thank you again mike!

ps, yes it also works without resistors.. but i wouldn't recommend it..for safety measurements

Grumpy_Mike


Ruffsta

#22
Jan 09, 2013, 02:32 pm Last Edit: Jan 09, 2013, 02:34 pm by Ruffsta Reason: 1
well yes, i'm just saying it does work without them.. i had mine without any at all.. i can't say for how long it would work before something happened.. but yes, use resistors! i did it without them for testing purposes..

now i'm just waiting for my 2 digit and 3 digit to come in the mail.. those ought to be fun to figure out..  the 3 digit one, i will want to definitely use 2 buttons.. 1 to select up and the other to select down.. there will be a 3rd button.. but that is not important for now - that's for much later.

Go Up