# Custom pins for i2c wiznet w5500 raspberry pico

**URL:** <https://forum.arduino.cc/t/custom-pins-for-i2c-wiznet-w5500-raspberry-pico/1271777>\
**Category:** Programming\
**Created:** [June 14, 2024, 12:23pm UTC](https://forum.arduino.cc/t/custom-pins-for-i2c-wiznet-w5500-raspberry-pico/1271777 "2024-06-14T12:23:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adjedjou](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@adjedjou](https://forum.arduino.cc/u/adjedjou)\
**Post date:** [June 14, 2024, 12:23pm UTC](https://forum.arduino.cc/t/custom-pins-for-i2c-wiznet-w5500-raspberry-pico/1271777/1 "2024-06-14T12:23:28Z")

</div>

hello, hope you doing all well, i m working on a project to retrieve sensors data and had to use i2c communication with rasberry pico, i managed to make it work, the problem now is i need to add it to an existing project which used almost all pins of rasberry pico, i only have 5 pins left : GP0 , GP1 , GP2 ,GP6 , GP8 all of them are SDA pins for i2c communication except for GP0 who s SDL but i prefer to not use GP0 and GP1 since it s UART for debugging, this leave me with only 3 pins, my question is can i override the function of one of the pins left ? and change it from SDA to SDL ?

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [June 14, 2024, 12:54pm UTC](https://forum.arduino.cc/t/custom-pins-for-i2c-wiznet-w5500-raspberry-pico/1271777/2 "2024-06-14T12:54:05Z")

</div>

I'm not familiar with your board.

The W5500 uses the SPI bus to my knowledge, not the I2C bus. As the SPI bus is a bus you can have multiple SPI devices connected to it; you only need a dedicated chip select pin for each device.

If you're currently using the SPI pins for another purpose, move them to free pins and use the SPI bus.

---

<div class="post-metadata">

**Author:** ![adjedjou](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@adjedjou](https://forum.arduino.cc/u/adjedjou)\
**Post date:** [June 14, 2024, 1:14pm UTC](https://forum.arduino.cc/t/custom-pins-for-i2c-wiznet-w5500-raspberry-pico/1271777/3 "2024-06-14T13:14:10Z")

</div>

thank you for the response, but i cannot use SPI ( since the slave is a nano rp 2040 connect which deactivated any SPI communication per default when you power the bluetooth module on ) , so you cannot retrieve BLE data and send it via SPI. i must use i2c , as for the board , here s the pinout : [W5500-EVB-Pico | WIZnet Document System](https://docs.wiznet.io/Product/iEthernet/W5500/w5500-evb-pico)

---

<div class="post-metadata">

**Author:** ![horace](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/horace/32/1014299_2.png) [@horace](https://forum.arduino.cc/u/horace)\
**Post date:** [June 14, 2024, 5:04pm UTC](https://forum.arduino.cc/t/custom-pins-for-i2c-wiznet-w5500-raspberry-pico/1271777/4 "2024-06-14T17:04:24Z")

</div>

think you need to describe the whole project, e.g. as a series of block diagrams, e.g. where does Bluetooth and Ethernet fit in?  
if you just need to add Ethernet to an existing project have a look at the [XPORT ethernet module](https://www.lantronix.com/products/xport/) which can connect via serial (I have interfaced one at 921600baud)

---

<div class="post-metadata">

**Author:** ![Koepel](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/koepel/32/637546_2.png) [@Koepel](https://forum.arduino.cc/u/Koepel)\
**Post date:** [June 14, 2024, 7:58pm UTC](https://forum.arduino.cc/t/custom-pins-for-i2c-wiznet-w5500-raspberry-pico/1271777/5 "2024-06-14T19:58:23Z")

</div>

Can you once more explain what you want to do ?

There are sensors via I2C. But why do you need 5 pins for SDA ?

Which mystery device is it that you want to communicate with the board ?  
A Nano RP2040 Connect ?

Do you run Arduino code on the W5500-EVB-Pico ?  
Do you run the Nano RP2040 Connect in normal Arduino mode ?

The most common board with a RP2040 is the Raspberry Pi Pico. Arduino can run on it on top of Mbed. It is still developing and problems are fixed.  
I don't know if you get the same for the W5500-EVB-Pico board. Can you buy another board ?

If I remember it correctly, then most pins can be a pair of SDA and SCL when Arduino runs on top of Mbed on a RP2040, but one is always on even pins and the other is always on odd pins.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 11, 2024, 7:58pm UTC](https://forum.arduino.cc/t/custom-pins-for-i2c-wiznet-w5500-raspberry-pico/1271777/6 "2024-12-11T19:58:50Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
