- FairWind: when marine electronics, open source and the University meetPosted 11 hours ago
- The Discovery of the Future: Stretchable integrated circuitPosted 14 hours ago
- Robots are going to replace developers quicklyPosted 1 day ago
- 3D Prints with Computational HydrographicsPosted 2 days ago
- Open Source into Microsoft’s reality finallyPosted 2 days ago
- Guide to Mobile Apps for 3D DesigningPosted 3 days ago
- A FPGA controlled RGB LED MATRIX for Incredible Effects – the SoftwarePosted 4 days ago
- Ultrasound to aging winePosted 1 week ago
- The Walt Disney’s jewel: MagicBandPosted 1 week ago
- 2017 forecast: Up 31 Percent From 2016 of Internet of Things usedPosted 2 weeks ago
GSM Remote Control – GSM Module
This GSM Mobile is used for our Remote Control (for example Gate Control, Temperature Control….). We use the word ‘module’ because, unlike what we did in our remote control projects, this time around the mobile phone is not mounted on a printed board, but rather on a small auxiliary board which is then inserted in a connector specifically created on the main printed board; though this alternative may seem rather complex at first blush, it does have two advantages: the first is that if the GSM module should stop working, and you should not be able to find the same model, you can simply replace it with a different module without having to replace the entire circuit board. All you need to do is create a small board compatible with your unit, with the pin strips arranged as required by the circuit board. The second advantage is that the module’s printed board is double-faced and can thus host a GSM module on one face and a different one on the other. This provides the option of choosing between two different mobile phones according to one’s needs.
The GSM module
Let us begin by describing the module hosting the mobile phone: it is a printed circuit board measuring about 1.75×1.95 inches, with two pin strips (a 3-pin one and a 16-pin one) used to connect with the circuit board of the remote control device; the first pin strip carries digital power (both positive and negative), in addition to the ignition control line (PWR), while the second strip contains all the communication signals and lines to and from the GSM module, as well as the analogical section of the phones (AGND, contact 11). This pinout remains unchanged regardless of which of the two modules (SIM900 from SIMCom or M10 from Quectel) is in use.
Let’s now take a look at the electrical scheme, which displays the connections for both modules; recall that either GSM1 or GSM2 will be used. The two components have more or less the same command lines, so the relative pins can be connected together with the pin-strip contacts. The main differences between the two modules are found in their reset properties. SIM900 is equipped with a specific reset line, while in the case of M10 it is necessary to turn the power off and short-circuit the VDD_EXT line. In reality, in order to simplify things, the microcontroller’s firmware handles both GSM modules in the same way: in order to reset them, it turns off the main power supply and short-circuits the abovementioned line for just a second.
How is power handled? The PWR line is needed by the microcontroller to turn the GSM module on and off. The modules that are used are constantly under tension, provided by the Vcc line to pins 55, 56, 57 for SIM900 and to pins 50, 51, 52 in the case of M10; these modules are turned on or off according to the logical level applied to their PWR line (pin 1 of GSM1 or pin 18 of GSM2) . The PWR line is equipped with an internal pull-up resistance and is active at logical zero; therefore, in order to switch the cellular module on, the microcontroller sets PWR at a high logical level (contact 1 of the pin-strip) and causes transistor T2 to saturate; this transistor will then sets the PWR line for both GSM1 and GSM2 at a low level.
Reset monitoring is handled similarly, except that in the case of SIM900 there must be a reset input (NRESET, active at logical zero and equipped with a pull-up internal resistor), whereas in order to reset the M10 module one must resort to a little artifice. In the first case, the module can be reset by simply causing the microcontroller to send a logical 1 via the VDD_EXT line, at which time the T3 transistor saturates and sets the NRESET line of GSM1 at a low level; when this happens, the module’s VDD_EXT is taken to logical 1. As for M10, since it has no reset input, it can only be rest by dragging pin 7 (VDD_EXT) to logical zero, after having done the same with the PWR contact of the pin-strip (1) so that transistor 2 can be inhibited; at this point, contact 6 (VDD_EXT) can be taken back to a high level and contact 1 of the connector can be taken to logical 1 so that T2 can saturate and PWR of GSM2 can be set at logical zero.
For the time being, in order to standardize the functioning of the microcontroller governing this device and make sure that it works independently of the mobile phone mounted on the module, the reset is performed by simply setting the PWR contact (1) at logical zero and turning off GSM; after that, VDD_EXT (contact 6) is set at logical zero so that the condensers inside the cellular module can be forcibly discharged, thus avoiding that (had they been left charged) they might cause initialization problems and malfunctioning when the device is restarted (that is, when PWR goes back to logical 1). Nothing prevents those who are good at programming from modifying the firmware in order to customize the cellular module they are using.
Let’s now proceed with UART’s control lines (i.e., TXD, RXD, DTR, RTS, CTS, DCD), which are connected to the external area through the pin-strip’s contacts, respectively, 15, 16, 14, 14 e 18; the same applies to VRTC (contact 7) e ADC0 (10).
The audio device, with two contacts for the microphone (with differential input) and two more for the loudspeaker, uses contacts 4, 5, 8, 9, which correspond, respectively, to MIC1P and MIC1 N (positive e negative of the microphone) and SPK1N and SPK1P (respectively, negative e positive of the loudspeaker). The RI signal (indicating incoming calls) goes out through contact 12 of the pin-strip.
In this case, the GSM modules’ antenna is directly connected on the printed board of the cell phone: this allows us to avoid all those problems that might arise if the antenna’s connections were moved from the printed board of the cell phone to the main remote control motherboard. The antenna’s grip is positioned at pin 60 for both modules, but on the printed board it is on different faces, depending on which module is being used; when the contacts are connected, a module’s grip is connected to the other module’s tracks, thus altering the overall impedance and modifying the functioning of the radio section.
Let’s now talk about transistor T1, used here to locally control the cell phone’s reception LED: its base is polarized from the current logical level on pin 52 (NETLIGHT) for GSM1 or 6 (NET) for GSM2. The transistor’s collector is where the line to contact 19 of the pin-strip starts; this line is connected with the LED line, which the microcontroller uses to get information regarding the presence of GSM network as well as regarding the connection status of the module (e.g., whether the network is available or not).
Layout GSM Module
C1: 220 nF multilayer(0805)
C2, C5: 100 nF multilayer (0805)
C3, C4: 470 µF 6,3 VL tantalium (CASE-D)
LD1: led green (0805)
R1, R2, R3: 22 ohm (0805)
R4, R6, R8: 10 kohm (0805)
R5, R9: 4,7 kohm (0805)
R7: 330 ohm (0805)
R10, R12, R13: unused
R11: 15 ohm (0805)
T1, T2: BC817
GSM1: GSM SIM900
GSM2: GSM M10 (alternative for GSM1)
SIM: Slot SIM-CARD
– SMA Connector 90°
– Strip male 3 pin
– Strip male 16 pin
Download PCB details (Layout and Gerber): PCB