Hi all, I have a little question today I bought four Arduino Leonardo.
My question arise from the communication between the master and three slaves, I read that Leonardo communication between all is not done using analog pins 4 and 5, and by means of pins SCL and SDA, and here comes my problem in the arduino uno on these pins SCL and SDA can be connected I2C expanders, but here if you used these pins to communicate it will not be able to use them to the expander, I read that I can use for this purpose digital pins 2 and 3, this is true?
You may be able to use pins 2 and 3 (or any other digital I/O pins) for 'software I2C' but it will be slower than the hardware I2C.
You might be able to use the SPI hardware to have one Arduino control the other three. This would allow the three slave units to use their I2C hardware for the I/O Expansion devices.
miminuno:
Overall, I would need an additional 32 output pins and 32 input pins
Have you thought of using shift registers? You can use Serial In/Parallel Out registers for outputs and Parallel In/Serial Out registers for inputs. You can hook them to your SPI ports and transfer data at 8 million bits per second.