Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: dtmf based control help its really urgent

  1. #1
    Senior Member Cyborg sudarshan's Avatar
    Join Date
    Jun 2008
    Location
    Virudhunagar - 626001, Tamilnadu, India
    Posts
    180

    Unhappy dtmf based control help its really urgent

    hi
    i have dtmf decoder circuit bought from kitsnspares
    http://www.kitsnspares.com/user1/pro...ion.asp?id=417

    it has four bit output
    i have connected it to atmega32 PORTA 0-3

    iam using switch case for every key

    switch(a)
    {
    case ---: //for key 1
    case ---: //for key 2
    .
    .
    .
    )
    what should be the hexadecimal case values for the each key from 0-9 and * #
    is it 0x01,0x02,......
    please help me it is really urgent

    i have attached the dtmf output table to
    Attached Images Attached Images
    BY
    Sudarshan Anbazhagan,
    SuperBotics MultiTech Pvt. Ltd.

    http://www.superbotics.com
    http://www.getahost.in

  2. #2
    Administrator T-1000 rao's Avatar
    Join Date
    Feb 2004
    Location
    New Delhi
    Posts
    833
    Blog Entries
    2

    Default

    Yes sudarshan, H is 1 L is 0 convert binary to hex, quite easy.

  3. #3
    Senior Member Cyborg sudarshan's Avatar
    Join Date
    Jun 2008
    Location
    Virudhunagar - 626001, Tamilnadu, India
    Posts
    180

    Default

    ok just tell me wheather the following are correct

    for key 1
    L L L H binary 0001 hex 0x01 so
    switch(PINA)
    {
    case 0x01:
    lcd("key 1 is pressed");
    }

    for key 8
    H L L L binary 1000 hex 0x08 so
    switch(PINA)
    {
    case 0x08:
    lcd("key 8 is pressed");
    }
    BY
    Sudarshan Anbazhagan,
    SuperBotics MultiTech Pvt. Ltd.

    http://www.superbotics.com
    http://www.getahost.in

  4. #4
    Administrator T-1000 rao's Avatar
    Join Date
    Feb 2004
    Location
    New Delhi
    Posts
    833
    Blog Entries
    2

    Default

    Looks right.

  5. #5
    Senior Member Cyborg
    Join Date
    Apr 2007
    Location
    Mumbai
    Posts
    213

    Default

    Quote Originally Posted by sudarshan View Post
    ok just tell me wheather the following are correct

    for key 1
    L L L H binary 0001 hex 0x01 so
    switch(PINA)
    {
    case 0x01:
    lcd("key 1 is pressed");
    }

    for key 8
    H L L L binary 1000 hex 0x08 so
    switch(PINA)
    {
    case 0x08:
    lcd("key 8 is pressed");
    }
    True only if you don't have any other inputs or pull up connected to PORT A ie your upper Nibble must be at logic 0
    other wise AND it with nibble then only you can switch PINA data

  6. #6

    Default

    hey i have a doubt with this
    not regarding the code
    how do u manage to connect the mobile jack to the kit
    i too looking to purchace a kit like this
    how should i connect the tip and ring to the input of 8870
    plz give a detailed description plzz
    how to identify the tip and ring plzz
    Last edited by shyam.sunder91; 06-17-2010 at 04:46 PM.

  7. #7
    Senior Member T-1000
    Join Date
    Mar 2005
    Location
    Bangalore
    Posts
    728
    Blog Entries
    7

    Default

    @shyam.

    Please, for your own sake, USE punctuations. People wont even bother to read your post fully if it is not clear or confusing. I checked out your older posts, and even after asking you, you refuse to put even a fullstop in your posts. No wonder why you got little help.
    .... I didnt do it ! ....

  8. #8

    Default

    Quote Originally Posted by allbits View Post
    @shyam.

    Please, for your own sake, USE punctuations. People wont even bother to read your post fully if it is not clear or confusing. I checked out your older posts, and even after asking you, you refuse to put even a fullstop in your posts. No wonder why you got little help.

    is this fine now
    hey i have a doubt with this
    not regarding the code
    how do u manage to connect the mobile jack to the kit
    i too looking to purchace a kit like this
    how should i connect the tip and ring to the input of 8870
    plz give a detailed description plzz
    how to identify the tip and ring plzz

  9. #9
    Senior Member Cyborg sudarshan's Avatar
    Join Date
    Jun 2008
    Location
    Virudhunagar - 626001, Tamilnadu, India
    Posts
    180

    Default

    Hi ,
    the kit mentioned above can with the 3.5mm audio jack connected in it so i had no problem with it.
    BY
    Sudarshan Anbazhagan,
    SuperBotics MultiTech Pvt. Ltd.

    http://www.superbotics.com
    http://www.getahost.in

  10. #10

    Default

    Quote Originally Posted by sudarshan View Post
    Hi ,
    the kit mentioned above can with the 3.5mm audio jack connected in it so i had no problem with it.
    thanks sudarshan can u plz help me here
    http://www.roboticsindia.com/showthr...iring-the-jack

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •