Maker Pro
Maker Pro

UM3482 Melody IC

vick5821

Jan 22, 2012
700
Joined
Jan 22, 2012
Messages
700
Hey there, I am connecting this IC according to the right hand side diagram. And it works. But then that connection will just keep repeating the same melody. So, how can I modify it so that I can play all the 12 melodys available in the IC AUTOMATICALLY when the supply in ON? I plan to make a music box that can play the 12 songs automatically.

Thank you

MusicBox.png
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,754
Joined
Nov 17, 2011
Messages
13,754
Select playing mode 2 (see datasheet).
Add a timer that triggers CE such that after each song CE has a L-H edge transition. You will have to set the rate of the timer according to the length of the songs.
Use e.g.a 555 timer IC
 

vick5821

Jan 22, 2012
700
Joined
Jan 22, 2012
Messages
700
Select playing mode 2 (see datasheet).
Add a timer that triggers CE such that after each song CE has a L-H edge transition. You will have to set the rate of the timer according to the length of the songs.
Use e.g.a 555 timer IC

I think the time for all the songs are not consistent ><
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,754
Joined
Nov 17, 2011
Messages
13,754
You could try to detect the end of a song by looking at the AC signal at the speaker - transistor connection. If this signal goes to static HIGH for some time (depending on the intervall between songs) the end of a song has been reached. You can generate an L-H edge to trigger the IC from that intervall by using a low-pass and a Schmit-Trigger.

I'll leave the details to you.
 

vick5821

Jan 22, 2012
700
Joined
Jan 22, 2012
Messages
700
You could try to detect the end of a song by looking at the AC signal at the speaker - transistor connection. If this signal goes to static HIGH for some time (depending on the intervall between songs) the end of a song has been reached. You can generate an L-H edge to trigger the IC from that intervall by using a low-pass and a Schmit-Trigger.

I'll leave the details to you.

How's the algorithm for this ?
 
Top