Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

General • UART or I2c for communicating between 2 Picos?

$
0
0
Hello
I want to set up a very simple communication channel between 2 RP2040s. I know how to use UART and it's old fashioned and easy. I just thought I would ask if anybody has any opinions on whether I2c would be better. I was going to acheive 16 channels of PWM using a PCA6985 which is I2c but I can't fit them into the small space. (I need all the GPIO pins on the Pico, hence farming the PWM off to an external device) I have and realised that I can actually get 16 channels of PWM from a second RP2040 on a tiny board instead. So all I need to do is send two bytes - channel and value to the second Pico and it can do the PWM instead of a PCA6985. Of course mission creep means I will probably need to get values back at some point but this is where I am now. I don't know much about i2c and this would be using Micropython. Would i2c be much faster or only a bit? The speed might not matter, this is more of an academic question really.
Thoughts? Does anybody have any simple (and I mean simple) i2c examples that would demonstrate i2c in this context?
Thanks

Statistics: Posted by jimseng — Thu Jun 05, 2025 5:22 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles