Get started with seven segment

Learn how to use 1-digit seven segment without installing any library!

Jun 19, 2021

86396 views

10 respects

Components and supplies

1

7 Segment LED Display, Red

1

Jumper wires (generic)

1

Resistor 330 ohm

1

Arduino UNO

Apps and platforms

1

Arduino IDE

Project description

Code

the code:

arduino

the code:

arduino

Downloadable files

circuit:

the resistor is 330 ohm

circuit:

Comments

Only logged in users can leave comments

starter_inventor

2 years ago

Thanks for the detailed description! Unfortunately, noobs as we are, we burned almost all diodes during the attempt to figure out whether it's common cathode or anode. Hence my suggestion: In the below sections: "How to know the type of the seven segment?" "How to know the pin ?" do warn that either the ground, or the 5V should be connected to the diode with the 330 resistor in between... Or else it'll burn. :-( Now on to order 10 replacements! :-D

johng2001

2 years ago

Yes I burned one of my seven segment displays by not using a resistor...not the author of this articles fault but it should be made very clear it's critical to use a resistor when using these LED's

Anonymous user

2 years ago

Remark: The author made a small mistake in his "Fritzing" drawing. . . the 330 Ohm resistor is NOT connected to the black Ground wire. Question: Allthough DP is defined and connected to Output 9 . . . is doesn't light up ! I changed ( and uploaded) line 38 to {'9',1,1,1,1,0,1,1,1},//9 The last "1" should light up DP, but it doesn't. What's wrong with my redenation ?

starter_inventor

2 years ago

you should move the black wire to the correct place

starter_inventor

2 years ago

there are also some other mistakes

Anonymous user

2 years ago

i read a resistor should be connected to each leg of the 7 segment display to avoid some digits being brighter than the others.... however u used only one apllied to the cc. Whats ur take on this

starter_inventor

3 years ago

Thanks for the detailed description! Unfortunately, noobs as we are, we burned almost all diodes during the attempt to figure out whether it's common cathode or anode. Hence my suggestion: In the below sections: "How to know the type of the seven segment?" "How to know the pin ?" do warn that either the ground, or the 5V should be connected to the diode with the 330 resistor in between... Or else it'll burn. :-( Now on to order 10 replacements! :-D

Anonymous user

2 years ago

Yes I burned one of my seven segment displays by not using a resistor...not the author of this articles fault but it should be made very clear it's critical to use a resistor when using these LED's

Anonymous user

3 years ago

it's work perfectly

Anonymous user

3 years ago

Remark: The author made a small mistake in his "Fritzing" drawing. . . the 330 Ohm resistor is NOT connected to the black Ground wire. Question: Allthough DP is defined and connected to Output 9 . . . is doesn't light up ! I changed ( and uploaded) line 38 to {'9',1,1,1,1,0,1,1,1},//9 The last "1" should light up DP, but it doesn't. What's wrong with my redenation ?

starter_inventor

2 years ago

there are also some other mistakes

starter_inventor

2 years ago

you should move the black wire to the correct place