// 8-bit: 256 Resistors MCP4261-502E/P Digital Potentiometer
// send value (0~255)
void digitalPotWrite(int address, int value){// addresses = 0 & 18 for the MCP4261-502E/P Digital Potentiometer ...they may need to change for other chips.
// take the SS pin low to select the chip:
digitalWrite(slaveSelectPin,LOW);
// send in the address and value via SPI:
SPI.transfer(address);
SPI.transfer(value);
// take the SS pin high to de-select the chip:
digitalWrite(slaveSelectPin,HIGH);
david kott wrote:Yes I’m in Minnesota US. I am interested in the Omni you have. If you’re not interested in building one are you open to sharing the sketch for the Arduino?
david kott wrote:Ok you can count me in do you want a deposit?

Return to Everything Powerchair
Users browsing this forum: Bing [Bot], Kande_ian, shirley_hkg, tettralytic and 914 guests