Hi. I’m, let’s say, a noob. Trying to get my PT2258 digital pot to work. But for some reason, when I connect it up to pins A4, A5 it is not working. The whole cycle stops at:
There is I2C scanner code on Nick Gammon's web site. You should find that, and make sure that your I2C device is connected correctly, and that it has the address you think it does. Before you know that, you're wasting your time trying to debug your code.
Check if the SDA and SCL are perhaps shortcut to each other, or if one of them is shortcut to ground. Can you measure the voltages. Does the PT2258 have power ?
Thanks for the photo, as far as I can see it is okay.
Perhaps you can do a little test.
Run the i2c_scanner : Either the Nick Gammon version or the Playground version : http://playground.arduino.cc/Main/I2cScanner
Remove the SDA and SCL and let the i2c_scanner run.
I can't find a thing, that is good.
Connect only the SDA and after that only the SCL, which one makes the sketch halt ? That one is shortcut to ground.
When they both make the sketch halt, add pullup resistors of 4k7 from SDA to 5V and from SCL to 5V.
If that doesn't help. Remove all the wires, get a new breadboard, and start all over again....
So....I tried to scan for devices without SDA/SCL but no luck.. Also tried the pull up resistors... I think the IC is shorted out... when I connected code1 to ground the led on arduino dimmed and the IC heated up... but it was okay before... probably gonna buy new ones.. and then I would appreciate some kind of a full tutor on how to set it up please that would realy help me thanks anyways for your help
I think you did not do something wrong, so I have not tips how to do it better.
Perhaps you made a mistake and the chip was damaged. It happens, forget it and move on
Perhaps you better remove all the wires, and build your project from scratch. Check also for solder drops or bad soldering on the Nano board.
Before you test with a new PT2258, can you test with an other I2C device ? An EEPROM or sensor, anything is good. To test that at least the I2C bus is okay and the Nano is still okay.
When the i2c_scanner detects something, the I2C bus is okay.
A Arduino Uno board is easier, would that be possible ?
commenting on old topic, I just faced the same situation. My IC is also not detected in i2c scanner by nick. I tried with 4.7k pullups , immediate no device found result. with 15k it stucks at scanning, I have double checked my breadboard from datasheet schematic.
also tried without pullups with no good situation. My uno is good as its detecting other devices on i2c (also double checked with pro micro , same results)
Perhaps the IC might be bad, I have ordered few more ICs to tinker. meanwhile if anyone knows of a good 6 channel volume controller with I2C, that would be awesome, google isnt returning relevant results.
well I got my hands on new one and its not appearing in i2c scanner either, I am planning trying sending it low and high volume code and check if it works.