I want to connect an arduino uno both to a TGAM module: http://www.seeedstudio.com/document/pdf/TGAM%20Datasheet.pdf and a bluetooth shield. The arduino is to receive data from the TGAM module and sent it to an android device. The problem is I should connect the bluetooth and the TGAM to the same pins on the arduino. Is that a problem (I am still a novice, doing my research)? If it is a problem what is the work around?

Arduino <> TGAM

Arduino RX (0) <> TGAM T (TX)

Arduino TX (1) <> TGAM R (RX)

Arduino 3.3V <> TGAM + (VCC)

Arduino GND <> TGAM - (GND)

Arduino <> HC-06

3.3v <> VCC




  • if the tgam only uses RX and the BT only TX, that can work;
    – dandavis
    Commented Apr 8, 2017 at 21:39

1 Answer 1


No, you cannot use one pin (or set of pins) for two functions like that.

To communicate with two serial devices you will need two serial ports. It's possible to (just about) emulate one in software using the SoftwareSerial library. It's not wonderful though - personally I would use a chip that has multiple UARTs in it.

  • Thank you for the answer. But what about the GND and 3.3v pins. Can I emulate those too?
    – B.Parvi
    Commented Apr 9, 2017 at 17:15
  • 1
    No. They aren't IO pins, they are just voltage levels. Wire as many things to those as you like. The fact you are having to ask these questions shows you lack the fundamental knowledge to be working with electronics. You are trying to run before you have even been born.
    – Majenko
    Commented Apr 9, 2017 at 17:35
  • Would agree and would appreciate if you share with me a nice source for learning the fundamentals. And remember everyone has to go through the stage of being born.
    – B.Parvi
    Commented Apr 9, 2017 at 18:02
  • For those who might need it in the future: arduino.cc/en/Tutorial/TwoPortReceive
    – B.Parvi
    Commented Apr 9, 2017 at 18:04
  • explainthatstuff.com/electricity.html
    – Majenko
    Commented Apr 9, 2017 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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