Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I2C adapter address changing
#1
Hi Rob,

Thought I'd start a new thread here so the 3rd Gen Hardware thread doesn't get off track..

I used the Address Scanner you mentioned here (for background):

"06-16-2018, 05:41 PM
...
In the meantime you can still use those but you'll need to change the address in the controller sketch which is easy to do but first we need to know the address they are set to as default.

Here's a link to a sketch you can download which will scan the I2C devices and give the addresses for each of them, if you load this on the controller and open the serial monitor in the Arduino IDE you'll get the info. If you post them I'll pick out the proper address and let you know where to change it in the controller sketch.

https://playground.arduino.cc/Main/I2cScanner  "


The serial monitor gave me an address of 0X38. Does that sound right? I tried to move the address jumpers around on the adapter to get the next address, but apparently while doing so I shorted the power wires for too long and toasted my UNO board. 

Which one and where do I need to modify the sketch?

Thanks!
Reply to top
#2
Sorry to hear about your UNO, hope you have another board for your testing.

That address does sound right, the other addresses that show up are for the PCA9685, RTC and eeprom. You need to change that in the controller sketch, if you find line 89 and 90 you'll see powerbar1 and 2 with an address in brackets, change it there and it should work.
Reply to top
#3
Just double checking, the enable pin on the buffer isn't connected, right? Finally got the new one, putting it on now and noticed that SJ1 isn't populated (not that I'll need it for my application).

Thanks!

(Also got my new UNO, I'll verify the second address tonight and update the sketch; I did find lines 89 and 90, so should be all set with that)
Reply to top
#4
That's correct, the buffer has an internal pullup resistor so the enable pin doesn't need connection also SJ1 doesn't require anything.
Reply to top


Possibly Related Threads…
Thread Author Replies Views Last Post
  I2c / watchdog Addi 5 6,658 03-02-2018, 04:48 PM
Last Post: Rob F

Forum Jump:

Current time: 04-28-2024, 10:58 AM