formula for converting linear taper digital pot to audio taper


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default Re: formula for converting linear taper digital pot to audio taper

    Hi,
    For "only" 127 values I'd probably go with a lookup table. Perhaps something like:
    Code:
    Lookup LinValue, [0,0,0,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,8,9,9,9,10,_
    10,10,11,11,11,11,12,12,12,13,13,13,14,14,15,15,15,16,16,16,17,17,18,18,18,19,19,20,20,21,21,21,22,_
    22,23,23,24,24,25,26,26,27,27,28,28,29,30,30,31,32,32,33,34,35,35,36,37,38,39,40,41,42,43,44,45,46,_
    47,48,50,51,53,54,56,58,60,62,64,67,69,72,76,80,85,91,98,109,127], LogValue
    Name:  Log lookup.PNG
Views: 1032
Size:  12.7 KB

    /Henrik.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: formula for converting linear taper digital pot to audio taper

    Quote Originally Posted by HenrikOlsson View Post
    Hi,
    For "only" 127 values I'd probably go with a lookup table. Perhaps something like:
    Code:
    Lookup LinValue, [0,0,0,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,4,5,5,5,5,6,6,6,7,7,7,7,8,8,8,8,9,9,9,10,_
    10,10,11,11,11,11,12,12,12,13,13,13,14,14,15,15,15,16,16,16,17,17,18,18,18,19,19,20,20,21,21,21,22,_
    22,23,23,24,24,25,26,26,27,27,28,28,29,30,30,31,32,32,33,34,35,35,36,37,38,39,40,41,42,43,44,45,46,_
    47,48,50,51,53,54,56,58,60,62,64,67,69,72,76,80,85,91,98,109,127], LogValue
    Attachment 7825

    /Henrik.
    Ah, yes! That makes perfect sense. Thank you, Henrik.

Similar Threads

  1. Audio to Digital - any sample around?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st December 2012, 01:38
  2. Digital Pot
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd January 2012, 07:54
  3. Digital audio delay
    By RussMartin in forum Schematics
    Replies: 1
    Last Post: - 7th July 2008, 20:55
  4. Pic driven digital audio delay
    By skimask in forum Off Topic
    Replies: 12
    Last Post: - 19th April 2007, 20:42
  5. Rx433 linear and digital output
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th October 2006, 21:26

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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