Go Down

Topic: ad5206 (Read 669 times) previous topic - next topic

redteardrop

I am using the ad5206 sample from arduino 22.
I have the board wired and powered, connected to all the right pins and can't get it to work.
All my A are at 4.8v, all my B are on ground.
VDD is 4.8v
VSS is ground.

ground to ground
cs, sdi, clk to respective pins noted in the sample.
All wipers have a resistor to LED to ground.

All the wipers seem to have a constant 1.7v

Anyone have any idea why it won't actually work?
Is my VSS an issue? Do I need a seperate power supply for my A and B vs the actual chip power?
please help.
thanks

Grumpy_Mike

The code says:-
Controls AD5171 digital potentiometer via I2C/TWI

Your message says you are using a AD5206.
Have you checked the data sheets of these devices to see what differences there are? Have you changed the code to accommodate these differences?

redteardrop

I am using Arduino 22 examples->SPI->DigitalPotControl

"This example controls an Analog Devices AD5206 digital potentiometer."
" created 10 Aug 2010
by Tom Igoe"


just to clarify. So it should be the exact same setup as the sample.

Grumpy_Mike

OK sorry,
have you connected the chip's power and ground, that is pin 6 to +5V and pin 11 & 3 to ground. They don't mention that but it is vital.

Quote
Do I need a seperate power supply for my A and B vs the actual chip power?

No.

redteardrop

I would hope I'm not that much of a noob, lol.
I have all the pins connected to something.
6 is connected to +5V
AD5206 has pin 9 & 4 as ground. I think you might have been looking at the AD5204.
I double checked the printing on the chip to make sure I have the right one, and the 5206 should have 9 & 4 to GND (as they are currently hooked up to)

I am using the bare bones board rev 02 with ATMEGA328. the software seems to see it as duemilanove with 328 since it doesn't give me any errors uploading as well as getting it to work with blink and other code I have already verified, so I don't think that's the problem.

Grumpy_Mike

Quote
I would hope I'm not that much of a noob,

Well we do get all sorts here, so you have to cover all bases.
Yes I was looking at the wrong pinout, that data sheet has very small print on an iPad.

Well there is not much else to go wrong, only a faulty chip or miss wiring. As it is from the examples I think we can rule out software errors.
I would probe on the pins of the chip to see if you can see signs of activity with a scope if you can get hold of one. Is it on solder less bread board? Have you misidentified breaks in the tracks. Check the voltages on the actual pins.
Sorry I don't have anything more positive to try.


redteardrop

I hadn't thought about a faulty chip. I do have a few more 328s laying around I could try.
I don't have a scope, but I can at least do a test using my voltmeter to see if the pin on the board is getting a good connection to the arduino and power.
I am using a solderless breadboard for testing with awg28 jumpers.
Yeah, I do some troubleshooting on the tech side of things and I still have to ask my friends who are tech savvy if they have whatever it is plugged in properly, lol. Hey, I still do actually make that mistake every so often myself anyway, but I thought I checked all the obvious stuff.

thanks

Go Up