The introduction of a command to generate DTMF tones ?

Post your requests and ideas on the future development of mikroBasic PRO for ARM.
Post Reply
Author
Message
Jardik
Posts: 60
Joined: 06 Jan 2010 18:28

The introduction of a command to generate DTMF tones ?

#1 Post by Jardik » 02 Sep 2013 23:53

Hello,

Planning to introduce command to generate DTMF tones.
Other compilers as ProtonIDE, Bascom, PICBASIC this command include, but mikroBasic it does not.

In the example for Mikroc PRO for DSPIC is sample contained recognizing DTMF tones, it would be hard for you to convert this sample to a simple command??



Thank You

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: The introduction of a command to generate DTMF tones ?

#2 Post by filip » 06 Sep 2013 10:10

Hi,

This is a nice proposal indeed, I will pass it to our developers.
If you have any other suggestions, please feel free to publish them.

Regards,
Filip.

Jardik
Posts: 60
Joined: 06 Jan 2010 18:28

Great idea to use DTMF synthesis

#3 Post by Jardik » 09 Sep 2013 22:35

Is anyone of you air modeler?
If you do not mind!

We will introduce you to the wonderful idea!

Matel an RC model you want to control him as the greatest distance and possibly transmit at this distance as much data on the drives motility system model and the flight itself.

With classic RC radios and transmitter based on the latest wifi, the maximum range is up to 2 km. A solution by increasing the transmit power is useless, because the transmit power is limited by law.

However, there is a very cheap and progressive solutions using GSM network.
Mobile operators already offer very cheap calls or even calls to several numbers for free (the voice service not about data and GPRS).

Then just use the model to control two mobile phones and transfer data and commands to use DTMF. DTMF has 16 tonne that it is fully sufficient for a 4-bit data transfer. In fact, if it were bidirectionally transmit data in an audio format-like data recording on a cassette tape in the 80 years of the eight-bit ZX Spectrum.

This method of control RC models would allow an infinite range of the transmitter and data transfer and flight information (Tele-metrics).

For Mikroe compilers would mean to introduce commands for synthesis and recognition, DTMF (eg two basic commands: tonevariable=DTMFIN pin DTMFOUT pin,tone and two for data transfer: DTMFDATAIN pin, byte DTMFDATAOUT pin,byte) and commands for controlling servos modeling. ie for example SERVO pin, position.

If you have these commands to work with servi pattern, using a DTMF SYNTHESIS introduced compilers Mikroe become very sought after among modeller community.

PS. You could develop a special Shield to control RC models using DTMF synthesis and GSM networks.

LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

Re: The introduction of a command to generate DTMF tones ?

#4 Post by LGR » 24 Oct 2013 22:21

I'll second this. There are some applications where sending SMS is too much fooling around (and may wear out the SIM card), and DTMF is a more suitable solution. The GSM modules generally have DTMF generating AT commands, but the PIC needs to be able to decode it from the audio.

Sometimes this may be also be a good way to send wired signals, so an encoding function would also be helpful.

Decoding may require DSP, and only be feasible on dsPIC, PIC32, ARM, and maybe AVR. OR maybe not.
If you know what you're doing, you're not learning anything.

Jardik
Posts: 60
Joined: 06 Jan 2010 18:28

Re: The introduction of a command to generate DTMF tones ?

#5 Post by Jardik » 22 Nov 2013 11:41

Yes you will need a DSP or MCU very fast. ARM, dsPIC and PIC32 certainly will suffice.

The site Mikroe demo of this communication for dsPIC30 MCU, but it seems that with the further development MIKROE it does not count.

The main advantage of DTMF is that there are operators who offer calls to selected numbers for free, or tariff without limit. Then communications using DTMF is unlike SMS or data transfer fully free and any distance.

Ideal for RC models!!


Thak you

Jardik
Posts: 60
Joined: 06 Jan 2010 18:28

Re: The introduction of a command to generate DTMF tones ?

#6 Post by Jardik » 28 Nov 2013 11:01

Hello Filip,

Any progress with this one ?


Thank you

tpetar
Posts: 593
Joined: 27 Apr 2012 18:44
Location: Pancevo, Serbia

Re: The introduction of a command to generate DTMF tones ?

#7 Post by tpetar » 28 Nov 2013 15:07

Hello,

Its good to add DTMF library in compilers as support of dedicated enc/dec DTMF IC such as HT9200A, HT9170, MT8870 or similar, and even enc DTMF codes direct with uC using PWM. Even PIC16 can generate DTMF codes over PWM, no need for ARM in this. To be 100% sure in DTMF code encoding/decoding use dedicated IC.

DTMF usage in real time remote control is not good, you will have big latency. Some people try this earlier and project failed.

Use standard method of transmission, such as ASK/FSK or some other type of modulation.



Best regards,
Peter

Toley
Posts: 922
Joined: 03 Sep 2008 16:17

Re: The introduction of a command to generate DTMF tones ?

#8 Post by Toley » 28 Nov 2013 15:52

Hello guys, this library from Roman Black doesn't fits your needs ?

http://www.libstock.com/projects/view/6 ... -smartglcd

He also provide the decoding library : http://www.libstock.com/projects/view/6 ... -a-pic-16f
Serge T.
Learning is an endeless process but it must start somewhere!

tpetar
Posts: 593
Joined: 27 Apr 2012 18:44
Location: Pancevo, Serbia

Re: The introduction of a command to generate DTMF tones ?

#9 Post by tpetar » 28 Nov 2013 17:10

Hi,

Open "DTMF Decoding Software with a PIC" link in post 4, thread link is http://www.mikroe.com/forum/viewtopic.php?f=88&t=52852

Simple DTMF decoding with PIC12F629, PIC12F675 and PIC16F628.


Best regards,
Peter

tpetar
Posts: 593
Joined: 27 Apr 2012 18:44
Location: Pancevo, Serbia

Re: The introduction of a command to generate DTMF tones ?

#10 Post by tpetar » 02 Jan 2014 09:34

Jardik wrote:Hello,

Planning to introduce command to generate DTMF tones.
Other compilers as ProtonIDE, Bascom, PICBASIC this command include, but mikroBasic it does not.

In the example for Mikroc PRO for DSPIC is sample contained recognizing DTMF tones, it would be hard for you to convert this sample to a simple command??

Thank You

Hi,

DTMF with HT9200A (Serial Mode) for MikroC Pro
http://www.libstock.com/projects/view/8 ... erial-mode


MikroC Pro Library code example:

Code: Select all

#include "DTMF_HT9200A.h"

void main()
{
   DTMF("1234567890");       // <<-- Generate DTMF for 1234567890
}
Soon I will make versions and for other compilers.

Happy New Year!!! :)

Best regards,
Peter

Post Reply

Return to “mikroBasic PRO for ARM Wish List”