Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: airman00 on April 01, 2008, 09:48:12 PM

Title: DTMF From Music
Post by: airman00 on April 01, 2008, 09:48:12 PM
So what I am building now is an interface between sound output of an MP3 player and a microcontroller


I want to use this DTMF decoder
http://www.dschmidt.com/dtmf.html

and just plug in the output from the MP3 player into that . Then from the serial output of the decoder I connect that to a PIC microcontroller and the MC will behave according to which tone was sent from the MP3 player.


Anything I'm missing here ,or would my proposed set up work?

,Eric
Title: Re: DTMF From Music
Post by: hazzer123 on April 02, 2008, 06:16:12 AM
Sounds pretty good to me :)

Though im interested in why you want to do this... Isnt there a method that cuts out the 'middle man'. An serial eeprom which stores the data you need and then transmits it serially to the MCU. No need for a mp3 player then.
Title: Re: DTMF From Music
Post by: airman00 on April 02, 2008, 06:54:40 AM
Sounds pretty good to me :)

Though im interested in why you want to do this... Isnt there a method that cuts out the 'middle man'. An serial eeprom which stores the data you need and then transmits it serially to the MCU. No need for a mp3 player then.


No I want it to be MP3 based , so to change the routine sequence you would change the audio file INSTEAD of the microcontroller program.

Basically I want the microcontroller to do routines based on what tone is played by the MP3 player


Also, can I generate DTMF from a mono output NOT stereo output???  I think so , but I may be wrong.
Title: Re: DTMF From Music
Post by: kd5kfl on April 02, 2008, 06:59:07 AM
Quote
can I generate DTMF from a mono output NOT stereo output???

you do, every time you make a phone call.

use a DTMF encoder chip. probably a Radio Shack item.
Title: Re: DTMF From Music
Post by: Asellith on April 02, 2008, 07:35:01 AM
Why not just use the EEPROM but instead of having hard coded sequences have a programmable setup that will allow you to add or change sequences with a keypad. You could even just put an RJ-11 jack on it and plug a phone into it. Then dial like #1*(insert sequence here) to add one to slot one or #2# to delete the stored value. If you have the keypad onboard you just have to make a sequence to call a stored value like 2# or 2*. Do you need the DTMF tones or was that just a good way to have the mp3 player talk to the controller? If you don't need the tones then it would be even easier to store values from the keypad in the controller and use the keypad to call a sequence.
Title: Re: DTMF From Music
Post by: airman00 on April 02, 2008, 10:31:28 AM
Do you need the DTMF tones or was that just a good way to have the mp3 player talk to the controller?

Yep

I need it from an MP3 player so its easy to sync routines to music. I will have two channels . One will be DTMF and one will be for music. Then I can just upload the two channel audio file into the MP3 player and that will send out the data to the MC 

Title: Re: DTMF From Music
Post by: Asellith on April 02, 2008, 01:23:38 PM
http://www.bpesolutions.com/asoundeuip.html#anchor319960

so your building something like that? They have several different wizard models that increase the amount of servos and outputs you can have. All seem to have a 4 min audio recording limit however not sure why that is. Cheap way to make a dancing biped robot.
Title: Re: DTMF From Music
Post by: superchiku on April 02, 2008, 01:32:54 PM
i just love the idea of using mp3 players with bots,

do make a tutorial on how u did it after u make the bot coz i am really interested in ur project