Hello,
I'm planning on using one SPI device (SD Card Module Slot) and two i2c devices (Ultrasonic ranger and RTC) on an Arduino Nano. Is this possible? What are the real limitations?
All the help is extremely appreciated,
Daniel
Hello,
I'm planning on using one SPI device (SD Card Module Slot) and two i2c devices (Ultrasonic ranger and RTC) on an Arduino Nano. Is this possible? What are the real limitations?
All the help is extremely appreciated,
Daniel
Yes it is possible.
What are the real limitations?
No idea what you mean. There should be no limitations at all.
As long as the I2C devices have different addresses (and they should) I see no limitations.
Rob
Can only talk to one device at a time in the code, in the background it may look a little bit simultaneous as the internal hardware behind SPI and I2C works at different speeds.
Thank you very much for the response. This is good to know.
Problem Solved!
My current project has 2 I2C devices (LCD display and port expander) and 2 SPI devices (DAC and DDS chip) and will eventually have a 3rd SPI or I2C device when I decide on what digipot to get. It works flawlessly right now, and I don't expect any problems when I add the digipot either.
The only thing is that every I2C device needs a unique address, and every SPI device needs it's own slave select. If you can fulfill those requirements, there will be no problem.