Can you tell me what this means and

Well, I am back to my original post. I want to connect a PCA9685 to a Feather ESP32, SDA and SCL and here is what is said about those 2 devices. ESP32: Note that the I2C pins do not have pullup resistors already! You must add them if you want to communicate

PCA9685 SCL - I2C clock pin, connect to your microcontrollers I2C clock line. Can use 3V or 5V logic, and has a weak pullup to VCC SDA - I2C data pin, connect to your microcontrollers I2C data line. Can use 3V or 5V logic, and has a weak pullup to VCC

It sounds like the pullup resistors is there. Being weak is probably important but I sure don't know why or if it is important. This is getting me nowhere as I can't seem to get a straight answer. Let me see if I can re-phrase it. Given the above 2 devices that I want to connect via SDA and SCL, do I need a resistor in series with the connection? If yes, what value?

The resistors don’t go in series with anything, they go between Vcc and SDA and similarly to SCL. If it has weak pull up resistors it might work ok. If not try maybe 2k2 to 4k, exact value unimportant.

PerryBebbington: The resistors don't go in series with anything, they go between Vcc and SDA and similarly to SCL. If it has weak pull up resistors it might work ok. If not try maybe 2k2 to 4k, exact value unimportant.

Thank you Perry, your answers are clear and to the point. Though they lead me to ask this. I have 1 SDA connector on the Feather and I need to connect it to both VCC and the SDA on the slave device. Doesn't that describe a parallel circuit ?

You don’t ever connect SDA directly to Vcc; how would you pull it down if you did?

From the Adafruit PCA9685 page,

R3 and later Arduino wiring (Uno, Mega & Leonardo):
(These boards have dedicated SDA & SCL pins on the header nearest the USB connector)

+5v → VCC (this is power for the BREAKOUT only, NOT the servo power!)
GND → GND
SDA → SDA
SCL → SCL

Try it and come back if you have any problem.

hextejas: Thank you Perry, your answers are clear and to the point. Though they lead me to ask this. I have 1 SDA connector on the Feather and I need to connect it to both VCC and the SDA on the slave device. Doesn't that describe a parallel circuit ?

I can't help wondering if something is being lost in the descriptions here. Please can you post a schematic, hand drawn is fine, showing your interpretation of what we are saying?

I don't understand why you thought I was saying connect SDA to Vcc, it would help if you explained what I said that made you think that.

Thanks,

aarg: From the Adafruit PCA9685 page,

Try it and come back if you have any problem.

Thank you aarg and that leads me to this : I now have 2 (or more ) slave devices that need to connect to SDA. Do i do this via a breadboard? And the ESP32 seems also seems toto need a pull up resistor to SDA. From the page ESP32: Note that the I2C pins do not have pullup resistors already! You must add them if you want to communicate In my ignorance I would also wire the resistor from VCC to the breadboard. I am probably doing something wrong.

TheMemberFormerlyKnownAsAWOL: You don't ever connect SDA directly to Vcc; how would you pull it down if you did?

Part of my confusion i suppose is that I use VCC, VDD, and V+, 5V+, interchangeably. Referring to the sketch at post 17( I think), VDD (5V+), is connected to SDA. For my projects, and on some of the boards, there is no VDD. There is VCC and V+ and VIN and 3.3V

hextejas:
Referring to the sketch at post 17( I think), VDD (5V+), is connected to SDA.

Where on here is SDA connected to Vdd?

PerryBebbington:
Where on here is SDA connected to Vcc?

Its not and I had gotten your explanation all wrong. My apologies.
My confusion stems from:
i suppose, is that I use VCC, VDD, and V+, 5V+, interchangeably.
Referring to the sketch ( I think), VDD (5V+), is connected to SDA.
Which led to my series/parallel statement.
For my projects, and on some of the boards, there is no VDD. There is VCC and V+ and VIN and 3.3V. So I connect things wrongly.
Where the heck is VDD anyways?

Its not and I had gotten your explanation all wrong

Now you are contradicting yourself because right after you say it's not you go on to say

Referring to the sketch ( I think), VDD (5V+), is connected to SDA.

So again, where in that sketch is Vdd connected to SDA?

Without wishing to cause offence, you've been told multiple times how to do this but you keep asking the same question, I am beginning to think you are behaving like a troll.

I now know that VDD is drain voltage. Well maybe not. It might mean voltage at the drain. Ditto with VCC. Mass confusion and this is really getting into TMI. I think. Why do I need to know this in order to be able to connect multiple I2C devices and write a sketch for them ?

PerryBebbington: Now you are contradicting yourself because right after you say it's not you go on to saySo again, where in that sketch is Vdd connected to SDA?

Without wishing to cause offence, you've been told multiple times how to do this but you keep asking the same question, I am beginning to think you are behaving like a troll.

No perry, not a troll. The sketch shows VDD--->resistor------>SDA buss. So not directly connected, there is a resistor in between.

PerryBebbington:
Now you are contradicting yourself because right after you say it’s not you go on to saySo again, where in that sketch is Vdd connected to SDA?

Without wishing to cause offence, you’ve been told multiple times how to do this but you keep asking the same question, I am beginning to think you are behaving like a troll.

I resent being called a troll. You folks seem to come from an EE background and explain things in those terms, EG Collector and Drain.
Those are meaningless to me and I wish yours and others answered my questions in MY terms
For example:

As mentioned before, your boards are MOS so Vcc does not apply,
Also, “Vdd” and “Vcc” are generic terms that represent whatever power supply you are using.

Hence my confusion re VCC, VDD, 5V+, and V+
And an Example of clarity in MY terms: Thank you Perry.

Quote

So, how do i tell the circuit (?), that the Arduino is the master?

On the Arduino you use
Code: [Select]

Wire.begin();

And here is another diagram that seems to contradict what y’all are saying. That VDD is not V+ ((((SOMETIMES)))

hextejas:
And here is another diagram that seems to contradict what y’all are saying. That VDD is not V+ ((((SOMETIMES)))

And what would this look like if I were to add a 2nd I2C device. <----Hooray, I figured out how to use a superscript.

I resent being called a troll.

I didn't call you a troll, I said 'I am beginning to think you are behaving like a troll', which is a statement of fact about my state of mind having read many of the replies to this discussion.

The reason has nothing to do with my background or yours, it has to do with seeing the same question being answered multiple different ways and answered multiple different ways and you still keep asking. The final trigger was you not answering when I asked in reply #48 where SDA is connected to Vdd. I hoped you would finally see that it wasn't, but instead you went on to say both that it was and it wasn't, which in my experience is classical troll type dodging the question to keep the answers flowing.

I get that you think VCC, VDD, and V+, 5V+ are the same, I have not commented on it because for the purposes of this discussion it does not matter. You can learn the difference later, when you know more generally.

PerryBebbington: Where on here is SDA connected to Vdd? |500x200

Perry, are you serious ? Unless you differentiate between: SDA--->Rp--->VDD and SDA------>VDD Or is VDD different from Vdd ? I hope not. Sure, they will do different things but they are connected. Another thing that bothers me is that in the sketch at post 49, the VDD has been changed to VCC. How the heck did that happen ? I think that I will need to get answers and clarifications somewhere else as I seem to be acting "troll like". No surprise in that I disagree with you. I will continue to drill down until I get answers that don't contradict each other from posters that seem to have a lot of experience. The recent examples are: From you

I get that you think VCC, VDD, and V+, 5V+ are the same, I have not commented on it because for the purposes of this discussion it does not matter.

and from AWOL apparently it does matter

You don't ever connect SDA directly to Vcc; how would you pull it down if you did?

and referring to my post #55, it never did get answered nor did my other posts that asked how to connect to SDA, V(something) and 2 different slave boards. I am assuming a breadboard but the choice and source of the V(something) is still a mystery. thanks anyway and happy turkey day

Ok, it seems you need very specific advice.
You don’t ever connect SDA directly to VDD, VDD, VCC, Vcc, +5V, + 3V, +3.3V, +1.8V +ve supply or Gnd,

How would you pull it down if you did?

To connect more than one device to SDA (and SCL of course) you make sure the devices don’t have the same address, then you connect all the SDA (and SCL) lines together, and make sure that SDA is pulled up, and that SCL is also pulled up
And no, you can’t use a single resistor to pull up both.

TheMemberFormerlyKnownAsAWOL:
Ok, it seems you need very specific advice.
You don’t ever connect SDA directly to VDD, VDD, VCC, Vcc, +5V, + 3V, +3.3V, +1.8V +ve supply or Gnd,

How would you pull it down if you did?

To connect more than one device to SDA (and SCL of course) you make sure the devices don’t have the same address, then you connect all the SDA (and SCL) lines together, and make sure that SDA is pulled up, and that SCL is also pulled up
And no, you can’t use a single resistor to pull up both.

I understand the addressing bit, it is hardwired at each board by a jumper or a default(I think).

and make sure that SDA is pulled up, and that SCL is also pulled up

I also understand to treat SDA and SCA pull ups differently though how do I wire this pull up ?