The Life-Saving Box: A Guide to Creating a Miniature GPS and GSM Project
This box can save your life, I said during a previous project video because as soon as you press its big red button, it either calls your phone to get you out of awkward conversations or if you select SMS mode, it will send its GPS coordinates as an SMS to a contact of your liking in case you are in an emergency situation. In my opinion, it is a pretty useful box and that is also what lots of people said underneath the original project video which you should definitely check out.
The only problem I have with it is that it is a bit too big to carry around comfortably, and not noticeable. The reason for this is of course that the electronic system is made up of separate breakout boards that need to get connected to one another, and that obviously takes up space. So what I did to solve this problem was creating this almost credit card-sized PCB onto which all components should snugly fit and hopefully still work well together.
In this video, we will explore how to create a miniature GPS and GSM project using a small PCB. We will go through the steps of designing the PCB, populating it with components, and testing it for functionality.
Designing the PCB
To start with, we need to design the PCB. I quickly realized that I didn't have time on my hand to route all the copper traces by myself, so I did the unthinkable and used the autorouter. While it made some questionable choices regarding the power wiring, I was OK with the rest. The autorouter saved me a lot of time and effort.
After designing the PCB, we need to populate it with components. This includes the GPS module, GSM module, microcontroller, and other essential components. We also need to solder the components onto the PCB using hot air.
Populating the PCB
Once we have designed the PCB, we can start populating it with components. The first component we need to add is the GPS module. After soldering it onto the PCB, we use hot air to melt the solder and secure all the components in place.
The next component we need to add is the GSM module. This requires a bit more work than the GPS module, as we need to carefully route the copper traces and make sure that there are no shorts between the SMD pins and all solder connections look good.
After populating both modules, we can move on to the through-hole components which were a walk in the part in comparison to the SMD stuff. These include resistors, capacitors, and other essential components.
Testing the PCB
Once we have populated the PCB with all the necessary components, it's time to test it for functionality. We start by adding test wires and powering the PCB with my lab bench power supply which to my delight didn't let anything explode.
However, the current consumption seemed a bit low, and thus I was a bit scared to check whether the GPS and GSM module were working properly. After checking the voltages on the original breakout board and comparing that to my PCB version while also reverse engineering the original breakout board circuit, guess what; these two resistors were the problem that tie the power key pin and interrupt pin to the supply voltage which I thought is required according to the datasheet.
But apparently, connecting the power pin to GND through a 10kohm resistor is the way to go. Just like that, the GSM status indicator LED came to life, and it seems like all problems were solved.
Programming the Microcontroller
After solving the issues with the GSM module, we can move on to programming the microcontroller. This involves loading the necessary firmware and configuration files onto the microcontroller.
Once the firmware is loaded, we need to program the system outside using a mobile phone or a computer. After positioning the system outside, we can see the GPS indicator LED blinking, and thus sending the GPS location was also no problem.
A New Enclosure
Finally, as a final touch, I also designed a new enclosure for the project which I then 3D printed and through the help of the M3 holes in the corners of the PCB it was all very easy to put together.
And there you have it; a really useful project that is now a lot smaller and thus easier to carry around. With that being said, I hope you enjoyed this video and maybe learned a thing or two along the way. If so, consider supporting me through Patreon. As always, don't forget to like, share, subscribe, and hit the notification bell. Stay creative, and I will see you next time.