Hello guys,
After experimenting with 8 octave tone generator,
Now, I’m continuing on creating a singing ATMEGA128
Let’s get started, no more delay….
Step 1: Prepare all the parts needed…
Let’s prepare the part we need,
1. ATMEGA128
2. The board itself, I created my own PCB for it
3. Speaker,
4. LM386
5 ATMEGA8 debugger
after the part is ready, let’s build the code .
Step 2: Let’s Build the Code
Let’s build the code for the singing atmega 128
I used this function to make it singing :
void fourth_line()
{
re_note();
re_note();
re_note();
re_note();
mi_note();
fa_note();
}
void fifth_line()
{
mi_note();
mi_note();
mi_note();
mi_note();
fa_note();
sol_note();
}
For more detail: Homemade singing ATMEGA128