0
\$\begingroup\$

I have designed a device using an STM32 Nucleo board, a GPS module, a GSM module, some discrete components, and a bread board. It is a sort of a car tracker.

I have decided to design my own custom board which includes all the modules that I have bought separately. I have designed some boards before but I haven't gotten anything fabricated yet. There isn't much info on the topic and what little is written on the internet does nothing but confuse me more.

I came across an article on this website, which says that I need to either buy a GPS simulator which costs around 10 to 15 thousand dollars or add an entire pre-built module to my PCB. What confuses me is:

  1. How can I add an entire module to my PCB? Should I add round pin holes to my PCB and connect them to my MCU using traces and then solder the entire module to those pin holes? That sounds a bit silly to me but that's what I understand when they say "use a module instead of a chipset" because I can sort of "reverse engineer" the module that I have and discover which components are present but then I still don't know the stack up.
  2. Given that I am going to buy a GPS antenna as well as a GPS receiver chip, I thought all I needed to design were the transmission lines. Why would I need a simulator? (Isn't that used to test your GPS antenna? I'm buying a pre designed one.) I am planning to use a SIM808 chip and there is a hardware design guide for it on the internet but it doesn't say anything about a simulator there, only that some traces must have their impedance limited to 50 ohms.
  3. When they say a GPS module which one of these do they mean?

enter image description here

enter image description here

I guess I could just wing it and design something and get it manufactured to see if it works or not but making sure that I understand everything correctly before I do so could save some time and money.

\$\endgroup\$

2 Answers 2

3
\$\begingroup\$

RF design is not trivial. "It looks exactly the same" doesn't mean it will work exactly the same.

The very material of the PCB makes a difference to how the signals behave at the frequencies used for GPS signals. The traces form inductors, and the traces together with the PCB material form capacitors. You can normally ignore that kind of thing when working with microcontrollers or audio signals. When you get to gigahertz signals, that kind of stuff matters. The thickness and composition of the PCB (fiberglass layers and epoxy) can change the capacitances enough to cause problems - and you have no control over those variations. People who do that kind of thing work together with the PCB manufacturer to be sure that variations don't cause problems. A hobbyist doesn't have the equipment to measure the effects - or much ability to get the PCB manufacturer to do anything to fix problems.

Your mention that for the SIM808 "some traces must have their impedance limited to 50 ohms" says you don't understand impedance enough to design a PCB that will work at the required frequencies.

GPS signals are extremely weak. Receiving them requires getting a lot of things right.

If I were doing your project, I'd use complete modules with the PCB taking the place of the bread board. Yes, pads on the PCB to solder the modules to, or pin headers or sockets to connect the modules.


The SIM808 isn't just a GPS receiver. It is a GSM cellphone module with a GPS receiver. Besides the difficulties in getting the GPS part to work correctly, you'd also have to deal with the GSM parts.

The GSM parts are subject to FCC regulations (or whatever your country's equivalent is.) That means that if you get it wrong and cause problems for other people, the FCC can come and take your toys away.

For that reason alone you should stick to the modules.

\$\endgroup\$
3
  • \$\begingroup\$ Thank you for editing my post and answering to it as well. I am completely self taught and i guess i may have underestimated the task i have set for myself, i was hoping to be able to sell the said device it seems out of the picture at least for the near feature :D i still have one more question these modules come on PCBs with different colors, one is blue the other is red and i want my pcb to be green, my end product won't look good is there a way around it? also could you please tell me which topics i need to learn to be competent enough to design such a PCB in the feature? \$\endgroup\$
    – illidan
    Commented Jun 9, 2022 at 15:34
  • \$\begingroup\$ 1. Nobody is looking inside your device to see if it is color coordinated. 2. You can usually pay extra to have a PCB made in a different color than green. 3. You'll have to study a whole lot of stuff that I haven't studied, either. I'm a hobbyist like you. 4. If you want to sell it, you'll need to get it tested and approved by the FCC (or whatever it is called in your country.) You won't manage that on a hobby budget. You can sell kits of parts that purchasers can assemble. Doing it that way makes FCC compliance the buyer's problem instead of yours. \$\endgroup\$
    – JRE
    Commented Jun 9, 2022 at 15:56
  • \$\begingroup\$ thank you very much for your help :) \$\endgroup\$
    – illidan
    Commented Jun 9, 2022 at 16:34
0
\$\begingroup\$

There are plenty of traps in designing RF circuitry, and (in the case of GPS) it is quite easy to end up with something that doesn't work at all, and (in the case of GSM) doesn't conform to the necessary standards.

So before rushing to design a PCB, I'd prototype up the proposed circuitry, connecting the Nucleo board to GPS and GSM modules. I'd recommend keeping these two functions as separate modules; in the case of GPS, you can get a module with a built-in patch antenna from various vendors, e.g. Quectel L80-M39, Antenova M20048-1, and many others. Having an integrated antenna means no RF design problems; the GPS signal is really weak, and it doesn't take much of a problem to blank it out entirely.

With regard to the GSM module, that will normally have an SMA or U.FL connector for an external antenna, and to meet emission standards you have to strictly follow the manufacturers guidance.

\$\endgroup\$
3
  • \$\begingroup\$ thanks for your answer, I don't have enough reputation to vote it up! that GPS module with internal patch antenna thing is a very good idea! thanks! i can do something like this i will buy a GPS module with an internal antenna and an entire sim800l module and solder it on my final product. how about Wi-Fi? i know it wont work in a car tracker but do Wi-Fi modules also require advanced design and special PCB material like GPS modules? i guess not since they only need to communicate with a Wi-Fi hotspot which is located near the module unlike GPS satellites and GSM cell towers \$\endgroup\$
    – illidan
    Commented Jun 10, 2022 at 5:40
  • \$\begingroup\$ after doing a bit of research I discovered a Wi-Fi module named ESP-12F, much like the GPS module you mentioned, it has an internal antenna and it can be connected to any MCU using conventional protocols like I2C and USART. \$\endgroup\$
    – illidan
    Commented Jun 10, 2022 at 6:59
  • \$\begingroup\$ WiFi modules are available from various vendors, the main issue is software support; do they have some code that is usable on your chosen CPU, or alternatively a simple serial interface that is easy to drive from your code? If not, I'd steer clear, as you can waste a lot of time struggling with an interace that has little code and poor documentation. \$\endgroup\$
    – jayben
    Commented Jun 10, 2022 at 7:51

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.