After blinking the LED , Let's display user information like numeric value using seven segment display. In this tutorial we will interface a seven segment display to Atmega128 breakout board and display a single digit hex (0-F).

Basics

For this tutorial we are using common anode seven segment display. To drive this display we require a BC 547 transistor. The PORT B is connected to data lines of the display and PORT D0 is connacted to base of the transistor through 1k ohm resistor and collector is connected to VCC through 68 ohm resistor as shown in hook up.
check out Interfacing Seven Segment Displays with AVR tutorial for basics of seven segment display.

Hook Up

Interfacing Seven Segment Display with Atmega128 Breakout bb.png

Code

Demo

0Interfaceing Seven segment with Atmega128.gif

Video Tutorial

For those of you, who would like to watch instead of read we have made a video with all the gyan.


Downloads

Download the complete project folder from the below link: https://github.com/ExploreEmbedded/ATMega-128-Break-Out-BoardDVB-12007/archive/master.zip


Have a opinion, suggestion , question or feedback about the article let it out here!