Author Topic: digital pot instead of analog pot  (Read 3028 times)

0 Members and 1 Guest are viewing this topic.

Offline browntTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: au
digital pot instead of analog pot
« on: June 14, 2018, 07:23:28 am »
Hi,

I would like to use a digital pot in place of the analog pot in this circuit. However, it does not work properly. There are some very tiny sound fluctuations but that is all. I wonder what needs to be done, or why its not working as expected, how I can work out what the problem is.

thanks
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3327
  • Country: gb
Re: digital pot instead of analog pot
« Reply #1 on: June 14, 2018, 07:47:16 am »
It would help if you told us which digital pot you used, and ideally a schematic showing how you wired it up.
 

Offline browntTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: au
Re: digital pot instead of analog pot
« Reply #2 on: June 14, 2018, 09:02:02 am »
Hi, its a microchip digital pot. like mcp4361

Wired just like the analog pot is wired. two ends and a wiper. Perhaps I am missing something there, as the questions seems pointless.
 
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3327
  • Country: gb
Re: digital pot instead of analog pot
« Reply #3 on: June 14, 2018, 10:19:48 am »
Perhaps I am missing something there, as the questions seems pointless.

Did you bother looking at the datasheet?  Hint: What is the min and max voltage permitted on the wiper pins?
 

Offline browntTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: au
Re: digital pot instead of analog pot
« Reply #4 on: June 14, 2018, 11:04:08 am »
The voltage on the pins must stay within the power supply range of the digital pot, so in this instance 0 - 5 volts.

There is no DC on the pot as there are caps on either side. So, do I need to measure the amplitude of the AC, and have a positive & negative supply for the dig pot within that amplitude?
 

Offline Wolfram

  • Frequent Contributor
  • **
  • Posts: 408
  • Country: no
Re: digital pot instead of analog pot
« Reply #5 on: June 14, 2018, 11:28:56 am »
An easier method would be to bias the grounded end of the pot to + 2.5 V. As both the other terminals of the pot are AC-coupled, this DC bias will not affect the rest of the circuit.
 
The following users thanked this post: NiHaoMike

Offline alanb

  • Frequent Contributor
  • **
  • Posts: 344
  • Country: gb
Re: digital pot instead of analog pot
« Reply #6 on: June 14, 2018, 12:54:02 pm »
Is the digital pot linear whereas the analogue pot was logarithmic?
 

Offline Gibson486

  • Frequent Contributor
  • **
  • Posts: 324
  • Country: us
Re: digital pot instead of analog pot
« Reply #7 on: June 14, 2018, 01:04:42 pm »
So, you move and change the digipot, the bias changes as well. This is fine with a regular pot, bit with a digipots, you need to mindful of where the 0 signal is referenced or you risk going beyond the rails.  For your application, there are better digipots available, but it will cost you, however, for the point of learning, this is a good first step.

NVM...it is biased at 0V.  So yeah, you may be clipping on the lower end.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19962
  • Country: gb
  • 0999
Re: digital pot instead of analog pot
« Reply #8 on: June 15, 2018, 08:23:39 am »
If the digital potentiometer is biased at 2.5V, then another capacitor is required on the output, to block the 2.5V DC.

Here's an example of how it can be done. The 0V node of the potentiometer is biased at 2.5V, via a potential divider and AC coupled to 0V. As shown the bias is taken from the 9V supply, but it might be better to change the 39k and 15k resistors to both the same value, say 10k, and take it from the 5V rail.
 
The following users thanked this post: NiHaoMike

Offline Alex_MGM

  • Newbie
  • Posts: 3
  • Country: ru
Re: digital pot instead of analog pot
« Reply #9 on: June 22, 2018, 09:38:53 am »
I used this very simple schematic. It works very well but it's operation depends on transistor used.
I tried several ones and it turned out that the best (for this application) are very cheap Russian (and Soviet, olad stock) KT315. Similar is for example BC847B.


 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19962
  • Country: gb
  • 0999
Re: digital pot instead of analog pot
« Reply #10 on: June 22, 2018, 10:38:50 am »
I used this very simple schematic. It works very well but it's operation depends on transistor used.
I tried several ones and it turned out that the best (for this application) are very cheap Russian (and Soviet, olad stock) KT315. Similar is for example BC847B.
That won't be very linear and will cause some distortion. It's also not a digital potentiometer, unless it's connected to the output of a DAC, but a crude voltage controlled resistor. J-FETs make better voltage controlled resistors, than BJTs, because they're more linear.
 

Offline ahbushnell

  • Frequent Contributor
  • **
  • Posts: 749
  • Country: us
Re: digital pot instead of analog pot
« Reply #11 on: June 22, 2018, 01:22:17 pm »
Hi,

I would like to use a digital pot in place of the analog pot in this circuit. However, it does not work properly. There are some very tiny sound fluctuations but that is all. I wonder what needs to be done, or why its not working as expected, how I can work out what the problem is.

thanks
The pot needs to be controlled by a serial data link.  I don't see that in the schematic?
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19962
  • Country: gb
  • 0999
Re: digital pot instead of analog pot
« Reply #12 on: June 22, 2018, 01:52:28 pm »
Hi,

I would like to use a digital pot in place of the analog pot in this circuit. However, it does not work properly. There are some very tiny sound fluctuations but that is all. I wonder what needs to be done, or why its not working as expected, how I can work out what the problem is.

thanks
The pot needs to be controlled by a serial data link.  I don't see that in the schematic?
That's probably because only the analogue part of the circuit is shown. There will be a microcontroller, but it isn't relevant to the question which was about using a digital potentiometer, in an analogue circuit.
 

Offline Alex_MGM

  • Newbie
  • Posts: 3
  • Country: ru
Re: digital pot instead of analog pot
« Reply #13 on: June 22, 2018, 02:09:25 pm »
In my post I only offered regulating element for electronir resistor, even method of regulations.
I tested it and it works rather good.
It is possible to use FET transistor instead og bipolar, there are different ways to apply  regulating voltage to base of the transistor. You may use mechanical potentiometer of DAC capability of microcontroller. But method of regulation seems very elegant to me.   \$\Omega\$
 

Offline ahbushnell

  • Frequent Contributor
  • **
  • Posts: 749
  • Country: us
Re: digital pot instead of analog pot
« Reply #14 on: June 22, 2018, 03:31:18 pm »
Depends on how he is doing ot if it is an issue.

Sent from my SM-G930V using Tapatalk

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf