Hi, and thanks for helping me
I purchased Tusotek Auto DC-DC Constant Current Boost Buck Converter Voltage Regulator 6-35V to 1-35. I am trying to find digitally control the boost buck converter by replacing its 100K potentiometer with a 100K MCP41100 digital potentiometer. I tried using the digital potentiometer with the DC-DC booster and it worked, but the booster does not go as high as with the original mechanical potentiometer. Would you know why I the digital potentiometer is no working as intended? What are the factors I must consider if I want to control boost buck converters with a digital potentiometer?
Specs of the mechanical potentiometer can be found in the following website (scroll down):
http://www.aliexpress.com/item/Trimpot-Trimmer-Potentiometer-3296-W-104-100K-VR-3296W-100K-ohm-Variable-Resistors-100pcs/1596795967.html
Arduino 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);
}