Line 12: Line 12:
 
=Code=
 
=Code=
 
<html>
 
<html>
<script src="https://gist.github.com/nitishshete/15318781e17e7d678e684e97c1c12b07.js"></script>
+
<script src="https://gist.github.com/raghavendrahassy/acb131278a135a1c5b8ae6f7da9b2512.js"></script>
 
</html>
 
</html>
  

Revision as of 15:55, 6 April 2016

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

Display AVRbreakout.png

Code

Demo

Interface Seven Segment with Atmega128.gif

Downloads