SneaKSz
Member
Hi guys,
I'm trying to use the MCP41050 as variable resistor.
(https://www.electro-tech-online.com/custompdfs/2012/05/11195c.pdf)
this is the setup :
Here is the code to set the pot to 26K :
This code is working and when I measure the resistance between A and B, there is 26K. Now when I attach the wires to meet the setup and I apply an input voltage, the Gain is not correct.
I thought the gain would be : - (28.2)/(6.5) ~-4x. The gain effectively is round 2x.
Someone has any experience with using the digipot in a opamp circuitry?
kind regards
I'm trying to use the MCP41050 as variable resistor.
(https://www.electro-tech-online.com/custompdfs/2012/05/11195c.pdf)
this is the setup :
Here is the code to set the pot to 26K :
Code:
Chip_SelectPot = 0; // Select POT chip
SPI1_Write(0x11); // write & pot1
SPI1_Write(0x80);
Chip_SelectPot = 1;
Delay_ms(100);
This code is working and when I measure the resistance between A and B, there is 26K. Now when I attach the wires to meet the setup and I apply an input voltage, the Gain is not correct.
I thought the gain would be : - (28.2)/(6.5) ~-4x. The gain effectively is round 2x.
Someone has any experience with using the digipot in a opamp circuitry?
kind regards
Last edited: