I have a DC-DC booster that is controlled with a 25 turn trimpot trimmer 100K potentiometer. I was wondering if I could use the MCP41100 as a potentiometer for the DC booster instead of the trimpot potentiometer.
I tried using the digital potentiometer for the DC-DC booster and it worked, but the booster does not go as high as with the trimpot potentiometer. Would you know why is this so? Would you have a solution and a component I could buy? I am controlling the digital potentiometer with an Arduino with the following code:
#include <SPI.h>
byte address = 0x11;
int CS= 10;
int i=0;
void setup()
{
pinMode (CS, OUTPUT);
Serial.begin(9600);
SPI.begin();
}
void loop()
{
if (Serial.available()>0)
{
int x = Serial.parseInt();
digitalPotWrite(x);
Serial.println(x);}
}
int digitalPotWrite(int value)
{
digitalWrite(CS, LOW);
SPI.transfer(address);
SPI.transfer(value);
digitalWrite(CS, HIGH);
}
I tried using the digital potentiometer for the DC-DC booster and it worked, but the booster does not go as high as with the trimpot potentiometer. Would you know why is this so? Would you have a solution and a component I could buy? I am controlling the digital potentiometer with an Arduino with the following code:
#include <SPI.h>
byte address = 0x11;
int CS= 10;
int i=0;
void setup()
{
pinMode (CS, OUTPUT);
Serial.begin(9600);
SPI.begin();
}
void loop()
{
if (Serial.available()>0)
{
int x = Serial.parseInt();
digitalPotWrite(x);
Serial.println(x);}
}
int digitalPotWrite(int value)
{
digitalWrite(CS, LOW);
SPI.transfer(address);
SPI.transfer(value);
digitalWrite(CS, HIGH);
}