Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Pages: [1]   Go Down
Author Topic: how to wire MCP41x1 Digital Pot  (Read 784 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
I'm trying to make a digital Pot work like the one below.
But I have a different Digital Pot. http://ww1.microchip.com/downloads/en/DeviceDoc/22060b.pdf
I'm using the MCP41x1

I cant for the life of me work out how to wire it.
Can anyone give me a simple diagram on how its done?

Here's what im trying to do below.
http://arduino.cc/en/Tutorial/DigitalPotentiometer

Cheers
Nick
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 213
Posts: 9060
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You have chosen an SPI device and the example is for an I2C device.

For SPI you will need to use the SPI library instead of the Wire (TWI/I2C) library.

SPI uses 3 or 4 pins:
    MOSI (Master Out / Slave In)
    MISO (Master In / Slave Out)
    SCK (Serial Clock)
    SS (Slave Select)

Look at the SPI library examples.

Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks that's put me on the right track smiley

cheers
Logged

Pages: [1]   Go Up
Arduino Forum upgrade scheduled for Monday, October 20th, 11am-4pm (CEST). Sorry for the inconvenience!
Jump to: