Hi, im working on controlling an R.C. Quadcoptor (helicopter with four blades) via an arduino. I have four Mcp4261 digital potentiometers, which is one for each potentiometer that was on the original remote. I have taken apart the remote for the quadcoptor and I'm currently working on programing and wiring the circuit. I have been searching for a few days now and have been unable to find something that actually works. I keep coming across code that says to use "The Spi Library by Cam Thompson (not the official one)!" but this takes me to here: Arduino Playground - Spi which says it's now included. Can someone please help me?
If you follow that link you posted a couple of pages in, you'll find code for the AD5206 digital pot. I recently adapted it for the MCP42xxx product: don't know how that differs from the MCP4261, but my code is over on this thread here. Perhaps it will help?
wfs123:
I'm sorry, i had a typo i mean to say the MCP4131... Should this all apply tho that?
I have no idea... have you read its datasheet?. I had a quick look at that: section 7 explains its command approach- it looks similar to what I used but not identical. You'll have to get your mind round what the chip expects before you can progress.