Seven segment display is an electronic component that are used to display numeric value . Seven segment display are made from combination of seven LEDs in such a way that we can make different values using these LEDs . Those LEDs may be either common cathode or common anode . In common anode all the anode pins of LEDs are made common and The segment LEDs glows up if we give ground signal to the perticular segment LED .
For example to display one in common cathode dispaly we should connect b and c segment to VCC and cathode pin should be connect to ground . Similarly to display two on segment we should connect pin 'a' , 'b','d','g' to vcc and common cathode pin to ground and similarly to display three and so on .
You can try your own pattern by giving vcc to perticular pins and common cathode to ground .
BCD to 7-Segment Decoder
In microcontroller or other electronics circuit to use all pins of seven segment display required more wires is hard to remember all points .To minimize this , we can use BCD to 7 segment decoder concept . An IC is used to decode the value and minimize the circuit wire . The following animation describe the basic operation of BCD to seven segment display
Interfacing DIY seven segment display with atmega16
Project C-code using Atmel studio6
Short Description and Reference
The above code is written in C-language using atmel studio 6 . If you understood the concept of seven segment internal structure as explaind above this code is very easy to understand . First PORTC is declared as output pin for seven segment display , then after data is sent through this output port , the data is 8-bit long , which defines which LED to glow to make character with a delay of 1 second.
you can download complete project file , code and circuit diagram using this link .download project files .
If you have any question about this project please mention below and if you love this project please share this project .