i2c devices : USB C Sink 3 Click

Discussion on projects that are created by users and posted on mikroElektronika website.
Post Reply
Author
Message
mohankrish864@gmail.com
Posts: 3
Joined: 27 Mar 2024 11:05

i2c devices : USB C Sink 3 Click

#1 Post by mohankrish864@gmail.com » 27 Mar 2024 11:34

Hey Folks,

I'm using 2 USB Type C Sink 3 Click along with Raspberry pi 4 Board. Both the devices show the same I2C address (i.e., 0x41). How can I change the i2c address of one of the devices, so that I can use it in my project .

and also, how can I use these boards with Raspberry pi, need help on the python program to manually write the values to these 2 devices via I2C.

Regards,
Mohan Krishna N D
Thanks and Regards,
Mohan Krishna N D

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: i2c devices : USB C Sink 3 Click

#2 Post by IvanJeremic » 07 Apr 2024 09:28

Hi,

You can find our example code for the USB-C Sink 3 click in the link below with its source where you can find the I2C address:
https://libstock.mikroe.com/projects/vi ... nk-3-click

You can also use the example as a reference when writing your own code for Raspberry.

Regards,

Ivan.

mohankrish864@gmail.com
Posts: 3
Joined: 27 Mar 2024 11:05

Re: i2c devices : USB C Sink 3 Click

#3 Post by mohankrish864@gmail.com » 11 Apr 2024 13:34

Hey Ivan,

Thanks for the comment.

How can I change the I2C address of the click device. I ordered 2 mikroe clickboards ( USB PD Click 3 ) which were having a same I2C addresses.

I wanted to communicate with both the boards at the same time.

Can you please help me with this.
Thanks and Regards,
Mohan Krishna N D

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: i2c devices : USB C Sink 3 Click

#4 Post by IvanJeremic » 12 Apr 2024 09:24

Hi,

You change the I2C address while initializing the I2C.

The default I2C address is 0x41, you can look at the datasheet of the module in the link below:
https://download.mikroe.com/documents/d ... asheet.pdf

Regards,

Ivan.

AntiMember
Posts: 135
Joined: 02 Jan 2020 19:00

Re: i2c devices : USB C Sink 3 Click

#5 Post by AntiMember » 12 Apr 2024 20:15

mohankrish864@gmail.com wrote:
27 Mar 2024 11:34
Hey Folks,

How can I change the i2c address of one of the devices, so that I can use it in my project .

Regards,
Mohan Krishna N D
No way...

mohankrish864@gmail.com
Posts: 3
Joined: 27 Mar 2024 11:05

Re: i2c devices : USB C Sink 3 Click

#6 Post by mohankrish864@gmail.com » 23 Apr 2024 11:36

IvanJeremic wrote:
12 Apr 2024 09:24
Hi,

You change the I2C address while initializing the I2C.

The default I2C address is 0x41, you can look at the datasheet of the module in the link below:
https://download.mikroe.com/documents/d ... asheet.pdf

Regards,

Ivan.
This is incomplete information.

Can you elaborate, what are you trying to say. By referring the documentation from your site and the datasheet which you have attached, I could say, there is no way to change I2C address of the device.

If you have the solution, can you please elaborate on that.

Regards,
Mohan
Thanks and Regards,
Mohan Krishna N D

Post Reply

Return to “User Projects”