Setting up our hardware

The first thing we should do is get all of our hardware set up so that we can start testing it and creating our program. We will begin by connecting our GPS module to our Pi Zero. Our GPS module is just too big to fit inside of our Pi Zero case lid, so we will be making use of the case lid which has the circular hole for the camera and attaching our GPS module to the lid of the case. With this in mind, cut a long enough length of red, black, yellow, and blue cable to wire your Pi Zero and GPS module together; about 10 cm should do the job.

Strip and tin each end of your four cables so that they are ready to connect to our boards. If you solder your cables to your GPS module first, you can feed them through from the back of the module, and then feed them through the front of the case lid.

The diagram here shows how to wire Pi Zero and the GPS module together:

Once your cables are soldered to your GPS board and feed through the case lid, you can now solder them to your Pi Zero from the top of the board. Once you are happy with your solder joints and have checked that everything is connected as per the diagram, you can snip any excess cable off with side snips, and insert your Pi Zero into the base of the case. You can then twist the GPS module round a few times to neatly twist your four cables together and fit them into the lid. We are now going to attach the GPS module to the case lid with some hot glue. Try to line your GPS module up so that the cables enter straight into the lid. I had to have mine aligned slightly off center for this to work.

Here is a photo of my GPS module attached to my Pi Zero case:

To finish our hardware setup off, I placed a sticky-backed badge pin across the back of the case at the end with the GPS sensor attached. so I can fasten it to my clothing and have the GPS sensor able to see the sky.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.217.134