Brad Roy
CANADA • + Follow
Edit Project
Components
|
3mm Red LED |
x 59 | |
|
1k 1/8W resistor |
x 28 | |
|
2.7k 1/8W resistor |
x 4 | |
|
100nF ceramic capacitor |
x 4 | |
|
74hc595 |
x 5 |
Description
Discrete 4-digit LED 7-segment display
Discrete 7-segment LED from 32 3mm LED's, with a serial interface for your arduino. Now <100mm wide!
See github page https://github.com/prosper00/Circuits/tree/master/7segment for latest updates
Arduino example:
#define latch D6
#define clk D7
#define dat D8
uint8_t digits[16] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
// '.' == digit[n] + 0x80
uint8_t segs[7] =
{0x10,0x20,0x1,0x2,0x4,0x8,0x40}; // clockwise, starting with the lowerl eft
uint8_t rsegs[7] =
{0x4,0x2,0x1,0x20,0x19,0x8,0x40}; // anticlockwise, starting with the lower right
void setup() {
pinMode(latch, OUTPUT);
pinMode(clk, OUTPUT);
pinMode(dat, OUTPUT);
}
void loop() {
for(uint8_t i=0; i<10; i++) {
for(int j=0; j<6; j++) {
digitalWrite(latch, LOW);
shiftOut(dat, clk, LSBFIRST, segs[j]);
shiftOut(dat, clk, LSBFIRST, digits[9-i]);
shiftOut(dat, clk, LSBFIRST, digits[i]);
shiftOut(dat, clk, LSBFIRST, rsegs[j]);
digitalWrite(latch, HIGH);
delay(3);
digitalWrite(latch, LOW);
shiftOut(dat, clk, LSBFIRST, 0x0);
shiftOut(dat, clk, LSBFIRST, digits[9-i]);
shiftOut(dat, clk, LSBFIRST, digits[i]);
shiftOut(dat, clk, LSBFIRST, 0x0);
digitalWrite(latch, HIGH);
delay(37);
}
}
}
Dec 17,2020
3,010 views
Discrete 4-digit LED 7-segment display
A 7-segment LED made from 59 3mm LED's, with a serial interface for your arduino.
3010
1
0
10.00 (1)
Published: Dec 17,2020
Download Gerber file 26
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-ShareAlike (CC BY-SA)
License.
- Comments(0)
- Likes(1)
Upload photo
You can only upload 5 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
It looks like you have not written anything. Please add a comment and try again.
You can upload up to 5 images!
Image size should not exceed 2MB!
File format not supported!
View More
- rachman bobo Jan 19,2021
View More
VOTING
1 votes
- 1 USER VOTES
10.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
-
10design
-
10usability
-
10creativity
-
10content
10.00
More by Brad Roy
You may also like
-
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
154 1 1 -
-