-1

Is it possible to hook up a GSM/GSRM module AND an SD card at the same time to an Arduino Uno, or any Arduino?

I want to build a cellphone to read off the buttons that are being dialed into it for a poor guy who has no hope of using a regular cellphone, and I figure I need to include wav files for the buttons (and any other functions) on an external source.

I'm a good programmer, so if I can hobble the parts together I can make them talk to each other. But, I'm not so sure the different schemes for this all use the same pins, so I was wondering if someone would be so kind as to enlighten me..

  • SD uses SPI and the GSM uses the Serial connection with AT commands – RSM Apr 7 '15 at 5:21
  • So this shouldn't be an issue? Those pins aren't shared? – user1833028 Apr 7 '15 at 5:22
  • No the pins aren't, Serial is 0, 1, but the software serial is used because those are the programming pins on an arduino and SPI are 11, 12, 13 – RSM Apr 7 '15 at 5:26
0

Yes.


But let me try to talk you through it.

Step 1 - Analysis/Requirements: Get your requirements right, what should your system do, what functionality. So, GSM functionalities and SD card savings (in short). One of the requirements would be that's it on an Arduino (atmega 328P). Any other hardware requirements?

Step 2 - Design: Check the possibilities with the Arduino, 1 hardware serial and multiple software serial connections. One hardware SPI/I2C I believe. SD cards often use SPI connection and GSM units most likely use serial. So this works great. Check some tutorials on SPI and (arduino) serial.

Step 3 - Wiring up Wire everything up, as defined in the datasheet of the devices. Cross the Rx and Tx lines. Put MISO to MISO and MOSI to MOSI accordingly. Be sure everything has enough power (GSM modules typically draw a lot of current when sending/connecting). Usually, if you find out that two devices are attached to the same pin, there might be something wrong (unless you can declare how they're seperated or why this is the case).

Step 4 - Implement Well, you stated you're good at programming, so I'll leave this open for you. But mind that it's only one of the three steps, so you should look at some tutorials, it'll learn a lot faster than asking everything. Try to get a bit comfortable with your thoughts, base them on things you have learned.

So this shouldn't be an issue? Those pins aren't shared? - user1833028

Things like this can be found in the device's datasheet and if you follow some tutorials you'll see that they're different and why.

Also, what helps for me often, is to try to seperate this 'big' project into two smaller projects. Try to get the GSM working and after that you go for the SD card reader.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.