Professional Documents
Culture Documents
Bicycle Journey Tracker With Arduino and GPS Modul
Bicycle Journey Tracker With Arduino and GPS Modul
by jandb86
This is a bicycle journey recording device utilizing Arduino and a GPS module.
I’m riding an electrical bicycle from time to time during weekends.
Several good bicycle riding routes which pass by the lakes and parks are located near to my house.
Therefore, bicycle riding become a favorite personal pastime recently.
For planning the next journey, checking previous riding history becomes very useful and important.
When GPS-based detail route information is available, a more customized and well-organized next bicycle riding journey
plan can be made.
Usually, I had just passed by must to visit places such as good places to take a picture or nice restaurants where I can
enjoy some special eateries.
When you store such sites information together with GPS route data, your next trip will be more satisfying by looking at
the more good things to see and tasting other yummy new foods.
That’s why I made this useful gadget.
GPS data recording device requires several sub-components as it should support signal receiving from satellites,
processing/displaying, and storing data to SD card of functions.
All necessary break-out modules and electronic components are assembled as three parts such as:
- GPS antenna and receiver circuit module
- Main data processor circuit module which includes Arduino and LCD display
- Power supply module
The analog ampere meter shown in the picture above is connected just for power consumption measuring purposes.
When riding a bicycle, it’s not necessary and simply can be removed.
About 200mA is required to power up the GPS journey tracker circuits.
Let’s look into more details at how this circuit is made.
Firstly, I tried to assemble every break-out board and electric component into a single enclosure.
But as you can see, several small break-out boards that need to be interconnected to the journey tracker circuit.
Therefore, three small acrylic chassis are utilized instead for housing-related small break-out boards together to each
module.
The following parts were used for this project.
- Arduino pro-mini 5V
- SD card module 5V and SPI interface
- 2GB micro SD and SD socket
- 16x2 I2C LCD module with PCF8574 controller
- Neo-6M GPS module and antenna
- 18650 lithium-ion battery (3.7V)
- 5V xed Boost up voltage regulator
- Universal PCB board, pin-head, and cable wires
Bicycle Journey Tracker With Arduino and GPS Module: Page 3
- Acrylic boards, 3.5mm bolts, and nuts
No exotic parts are used for this project.
You can easily purchase all break boards and electronic components at internet shops.
Step 3: Schematics
As four break-out boards are interconnected with Arduino pro-mini, wiring is relatively a little bit complex.
But only SCL (A5) and SDA (A4) with PCF8574 I2C LCD module is dedicated wiring.
Other connections can be changed according to the con guration setting in the sketch program.
For the wiring of Arduino pro-mini, the following connection is used.
- 5V output from power supply to RAW pin of Arduino pro-mini board
- GND of power to one on GND pin (There are 2 GND pins are available with pro-mini)
- 5V power input of all other break-out boards (GPS, SD card, and 16x2 LCD) will be connected from Vcc pin of pro-mini
SD card break-out requires relatively many connections like below to support SPI communication with pro-mini.
- CLK of SD card module to PIN 13 of pro-mini
- MISO to PIN 12
Bicycle Journey Tracker With Arduino and GPS Module: Page 4
- MOSI to pin 11
- CS to PIN 4
The above connections are typical wiring conventions as de ned in “SD.h” header le.
When you are using other wiring methods, port connection de nition should be re-declared in sketch program.
Neo-6M GPS module needs TX and RX connection with pro-mini.
I’m using the following connection between Arduino and GPS module.
- Tx of GPS module connected to digital pin 5 of Arduino pro-mini
- Rx to Pin 6 of pro-mini
Instead of a power switch, I’m using a simple jumper wire and 3 pin-head terminal for supplying 5V power to the overall
journey tracker circuit.
You can see the jumper wire turn to the power switch later when looking at more detail of the power supply module.
Let’s look at each module one by one for more detail about how it was assembled is seen.
The GPS module consists of controller break-out and Antenna.
Bicycle Journey Tracker With Arduino and GPS Module: Page 5
Because a tiny wire is connected from antenna to controller, both components should be tightly mounted on something
sturdy chassis.
I used acrylic boards for rmly mounting and xing both components of the GPS module.
Also, the Velcro band is attached to the backside of the GPS module to be rmly xed on the back bag mounted on the
rear of a bicycle.
For correct operation of the GPS module, the antenna should face upward toward the sky to receive signals from at least
3 satellites.
Therefore, you need to go out to an open space where any building’s height does not obstruct satellite signals as the line
of sight.
When signal reception is possible from satellites, tiny blue light LED on the controller break-out board start to blink.
This is the main processing module as it includes Arduino pro-mini board, SD card reader/writer as storage, and 16x2 LCD
as output peripheral.
As the journey tracker circuit should be carried by bicycle, a relatively small microprocessor board such as Arduino pro-
mini is chosen.
This is a power supply module that supplies 5V power to the whole journey tracker circuit.
The power source is a 3000mAh capacity of 18650 lithium-ion battery.
As shown in the head of this story, the total power consumption is about 200mA.
Therefore, approximately 15 hours of journey tracker circuit operation can be supported with the battery.
The program of the journey tracker is simple and easily understandable of the overall operational logic.
As depicted in the owchart above, all relevant libraries should be included as follows.
- SoftwareSerial and TinyGPS is necessary for receiving GPS data from satellites
- LiquidCrystal_I2C is required for activating PCF8574 I2C LCD module
- SPI and SD is standard libraries for interfacing SD card module
Subsequently, three device drivers are initialized including Neo-6M GPS (including software serial driver), PCF8574 I2C
controller, and SD card module.
Download
https://www.instructables.com/ORIG/FNS/DMTE/KVL84PYR/FNSDMTEKVL84PYR.ino
What is shown above is actual data captured by the journey tracker while I had gone for lunch to Burger King.
Captured data is converted to KML format and loaded on Google Maps.
I’ll explain converting captured raw GPS data to KML le.