CAN I USE LCD AND MEMORY CARD SHIELD AT A TIME

In my project i need to use lcd and memory card can i use both on same arduino because i use the library files and both the modules needed to be connected to same pins by using the library files can anyone help me

Use an I2C LCD. You only need two pins on the Arduino.

Which Arduino are you using?

Weedpharma

i am using arduino uno im using the I2C for RTC is der any other way

I2C and SPI can both have multiple devices on them.

With I2C, since it's got addressing, there are no special concerns, as long as you don't try to use two devices with the same address (consult documentation to see the address used) and don't try to use an unreasonable number of devices on the bus such that electrical effects become an issue.

With SPI, "addressing" a specific device is done with a "CS", "SS" or "NSS" line (different names for same thing - "chip select" or "slave select") which is brought low to inform the device that you're talking to it. As long as the shields use a different pin for the chip select, you can use multiple shields that use SPI at the same time. You'll need to consult the documentation for the shields to determine whether they use a different pin for CS. I've seen LCD shields that have an SD card slot on the board.

I have used I2C for RTC and LCD using default addresses. It must be easy then! Or am I just lucky? :slight_smile:

Weedpharma