Create Yourself ATMEGA128 a Simple Tone Generator

by arick in Circuits > Microcontrollers

4711 Views, 2 Favorites, 0 Comments

Create Yourself ATMEGA128 a Simple Tone Generator

IMG_20130929_114110.jpg
Hello guys,

In this project I want to share my experiment on ATMEGA128 generating a simple tone,
I have created 8 tones ( 1 octave )
Let's get started!!

Prepare the Components

IMG_20130929_114123.jpg
IMG_20130929_114129.jpg
IMG_20130929_114117.jpg
Let's prepare the components,

We need :
1. Speaker, just buy the cheap one.
2. ATMEGA128
3. LM386
3. Blue LCD
4. ATMEGA8 debugger

And let's do the code

Now, Let's Do the Code

atmel studio.jpg
For this experiment,
We'll use Timer1 on ATMEGA128 for the main tone generator,
I used CTC mode for this purpose.

I'm using Atmel Studio for developing the code,

Let's Watch the Video....

IMG_20130929_114110.jpg
That's it guys,

Let's watch the video for it.
ATMEGA128 is doing one octave