I'm really going in circles here. My son and i have been working on a project that uses a DTMF controller to drive relays, from an audio source that uses stereo.
The audio is embedded on to the right audio track,using DTMF Tones For Example the number 1 from the dtmf tone will trigger relay 1 or an assigned relay,And So forth. I am very new to This type of stuff and i also bought the seeedo relay shield thinking this would make it a little easier to do this but i'm at a complete loss. My son was terminal and he has since passed, this project is something that we both started and i intend to make it a reality. can someone please help me with this PLEASE!!! I don't now where to begin with writing code to make this wrk as well!!! Very Respectfully Robert =(
If you want replies, best not to lock the thread
I'm sorry is it still locked??? If so, how do i unlock it?
I already unlocked it.
Thanks!!!
I suggest you search on "CTCSS encoder/decoder". It's a type of tone encoding that uses low frequencies that are less likely to be noticed in the context of other sounds, e.g. music, movie sound tracks, radio communication. Radio repeaters use them some times to control access.
If can post a link to your DTMF decoder chip we can probably help you pretty easily. Most of the DTMF decoders I've seen have a 4 bit output giving a value of the number being received and a single bit that is the data avalible pin that says the value on the 4 bits is valid. Pretty straight forward to wire these bits to arduino digital input pins and then have your sketch 'decode' the 4 bit value to determine which digital output pin you wish to turn on to activate a relay or so forth.
Sorry to hear about your son passing. Lets make this happen.
Lefty
Sorry, ignore my suggestion. I didn't realize you already had purchased a DTMF decoder and already had audio with embedded DTMF tones. I should read more closely.
Powering the Board
The D4 Controller requires a 12V DC supply and consumes about 90mA
when it is “idling” with no relays on and up to about 300mA when all four relays
are on. The power supply you choose should be able to supply at least
400mA for reliable operation.
Audio Input Signals
The D4 uses audio accepts audio signal levels from “line out” sources such as
what you might have on the output of a CD or DVD player and can also accept
signals coming from most standard headphone jacks from typical
sources such as a portable CD player or computer. DTMF signals can be created
using many audio editing programs such as Audacity which is available
for free on the web.
Selecting the DTMF Decoding Scheme
The D4 controller board can operate in 4 different dtmf decoding schemes.
The scheme is chosen by setting the 2 DIP switches on the board.
The first 3 modes (Modes 1-3) operate essentially the same way but in each
mode the board will respond to different dtmf tones. (See the table of modes
on next page for more details) This gives the user the ability to independently
control the relays on up to 3 controller boards using the same audio connection.
For Modes 1-3, to turn a relay on you must send 2 tones - the first tone
is a number that corresponds to the relay that you want to activate. The second
tone must be either the “” tone which turns that relay on or the “#” tone
which turns that relay off. For example, in Mode 1, if you wanted to turn relay
#3 to the ‘on‘ position you would first send the “3” tone followed by the “”
tone. If you then wanted to turn this relay off, you would send the “3” tone
followed by the “#” tone.
Additionally, in Modes 1-3 the “D” tone is a special case in that it allows you to
turn on or off all 4 relays at once. This works in the same way as you would
turn on or off a single relay. For example, if you wanted to turn all four relays
on at the same time you would send the “D” tone followed by the “*” tone and
to turn all the relays off, you would send the “D” tone followed by the “#” tone.
Mode 4 uses just one tone to turn each relay on or off, however this mode
does not allow more than one controller board to be used with the same audio
connection. In this mode, tones 1,3,5,7 are used to turn the 4 relays on respectively
and tones 2,4,6,8 are used to turn them off. Additionally, all relays
can be turned on using the 9 tone and they can all be turned off using the 0
tone.
You may want to look at the SWEET 16 TONE DECODER kit. I've got one somewhere and should still have the schematic. The below schematics might be helpful.
Thanks So much For all of the replies so far i'm still working hard to figure it out! Thanks Again
Attached is the schematic from my sweet 16 DTMF touch tone decoder.
sweet 16 DTMF.pdf (72.6 KB)