I need a sample Arduino sketch code to control a digital potentiometer (MCP41010 in this case) using SPI library with Huzzah Feather.
Although I managed to design hardware connections, I lack the basic sketch commands to set the resistor value to test it.
Any help would be appreciated.
Huzzah digital potentiometer control MCP41010
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- weaVaer
- Posts: 36
- Joined: Mon May 01, 2017 1:40 pm
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
- weaVaer
- Posts: 36
- Joined: Mon May 01, 2017 1:40 pm
Re: Huzzah digital potentiometer control MCP41010
Thx
Actually I had found the same link about Arduino Uno and had made the connections and preliminary sketch for Huzzah inspired by the same information.
But I had to use a voltage level shifter between the MCP41010 and Huzzah and was suspecting the level shifter as a culprit for unsuccesfull first trials to control the digital pot.
Arranging the fixed hardware SPI pins on Huzzah did the job and now I have a working model.
Actually I had found the same link about Arduino Uno and had made the connections and preliminary sketch for Huzzah inspired by the same information.
But I had to use a voltage level shifter between the MCP41010 and Huzzah and was suspecting the level shifter as a culprit for unsuccesfull first trials to control the digital pot.
Arranging the fixed hardware SPI pins on Huzzah did the job and now I have a working model.
Please be positive and constructive with your questions and comments.