Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help required :Ring tone generation.

Status
Not open for further replies.

verilog_coder

Member level 3
Joined
Jan 4, 2006
Messages
55
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
Pakistan
Activity points
1,725
Hi,
I want to generate different ringtones. Can anybody guide me how to do this. I want some simple circuit to generate ring tone when lets say some switch is pressed.

Thanks in advance
 

José Luis

Member level 3
Joined
Feb 14, 2003
Messages
58
Helped
19
Reputation
38
Reaction score
12
Trophy points
1,288
Activity points
367
Hi

You can use a software to generate ringtones .
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,309
Reputation
4,620
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,435

verilog_coder

Member level 3
Joined
Jan 4, 2006
Messages
55
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
Pakistan
Activity points
1,725
Thanks for the link. Perhaps my help required statement was too short. I want to design a circuit that can play different types of ring tones ( monophonic or/ and polyphonic ) like in mobiles. There will be few dip switches. On pressing a switch a tone will be played.
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,309
Reputation
4,620
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,435
Another option is to use PICAXE-08M, which has two special commands, play and tune, specifically designed for playing musical tunes.
Programming is very simple (see examples below) and connection to a PC through the COM port requires only 2 resistors (see picture below) ..
Here is an example on how to use the SOUND instruction ("2" after SOUND means OUTPUT 2):
Code:
main:
sound 2,(50,100) ‘ freq 50, length 100
sound 2,(100,100) ‘ freq 100, length 100
sound 2,(120,100) ‘ freq 120, length 100
pause 1000 ‘ wait 1 second
goto main ‘ loop back to start
The TUNE command plays a user defined musical tune on the PICAXE-08M.
"Tunes can be entered manually using the dropdown boxes if desired, but most users will prefer to automatically import a mobile phone monophonic ringtone.
There are approximately 1000 tunes for free download on the software page of the www.picaxe.co.uk website. Some other possible sources for free ringtones are:
https://www.ringtonerfest.com/
https://www.free-ringtones.eu.com/
https://www.tones4free.com/ "
Here is another example on how the music is composed/played:
Code:
main:
tune 0, 6, ($AA, $85, $43, $42, $40, $8A, $C5, $43, $42, $40, $8A, $C5,
$43, $42, $43, $C0, $65, $65, $65, $EA, $C5, $43, $42, $40, $8A, $C5,
$43, $42, $43, $80)
goto main
All manuals can be downloaded from: https://www.picaxe.co.uk/

If OUTPUT 2 is used to output music, inputs 1, 3 and 4 can be used to select music ..

Have fun ..

Regards,
IanP
 

verilog_coder

Member level 3
Joined
Jan 4, 2006
Messages
55
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
Pakistan
Activity points
1,725
The problem is picaxe is not available locally to me. But simple pics are. Have you ever used picaxe. I downloaded there compiler so that i can see the assembly code generated for tune command but it require programmer to be connected :(. Can you send the assembly code of example tune command??
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top