2

I have a SIM800L module and a keypad module that I want to connect to the raspberry pi 3B+ but then when I had all my modules and stuff I found out that the raspberry pi had only 1 UART (1RX & 1TX) pin I have 2 devices that I want to connect to that...

so my question is: Is it possible to connect SIM800L to another GPIO pins and use them as RX TX? to use serial communication? or is there any other platform like I2C & SPI that I can use with SIM800L?

SIM800L

1 Answers1

2

It is difficult what you are trying to achieve since raspi is running Linux at it's core, so timing is an issue. You have 2 ways to go about this:

  1. Software Method - Refer1, Refer2
  2. Hardware Method - There are multiple I2C to UART converter chips, which would allow you to run up to 127 different chips on single 2 wire i2c bus. You can also look into the RS485 protocol. This will allow you to run multiple devices off the same serial bus. There are several converters available that allow you to convert your single UART signal to RS485, but i think you will have to handle addressing in your own software Reference.