Create Yourself ATMEGA128 a Simple Tone Generator

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!!

Step 1: Prepare the Components

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

Step 2: Now, Let’s Do the Code

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,

Step 3: Let’s Watch the Video….

That’s it guys,

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

Source: Create Yourself ATMEGA128 a Simple Tone Generator


About The Author

Muhammad Bilal

I am a highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top