Why this happens
Modern phones carry the same kinds of sensors used in vehicle test equipment: satellite positioning, accelerometers, gyroscopes and barometers. A sensor-logging app records them many times a second, giving you real data on how you ride. Comparing logs with your battery use helps you understand what affects range, without touching the vehicle's electrics.
What you need
Tools
- Smartphone with GPS and motion sensors
- A general sensor-logging app that exports CSV
- Secure handlebar or dashboard phone mount
Materials
- Power bank and a short cable if rides are long
- Spreadsheet software on a computer
Before you start
- Never operate the phone while riding or driving; set everything up before you move.
- Make sure the mount cannot slip into the steering, brakes or wheel.
- Location logs reveal your home and routines; do not share raw files publicly.
- Phones overheat in direct sun on a dashboard; stop recording if the phone warns of heat.
Step by step
- 1
Choose and set up a logging app
Install a sensor-logging app that can record GPS location and speed, accelerometer and, if your phone has one, barometer data, and export them as CSV. Set a sensible sample rate; a few samples a second is enough for ride analysis and keeps files small. Grant location permission only while the app is in use, and turn off sharing features you do not need.
- 2
Mount the phone securely
Fit a sturdy mount that holds the phone firmly without rattling, in a position that does not block your view, lights or controls. A fixed position matters: if the phone moves, accelerometer data becomes noisy. Note the orientation, for example screen facing you and top pointing forward, so you know which axis is forward, sideways and vertical.
Tip: Avoid mounting directly on the motor or hub where vibration is strongest.
- 3
Start logging before you ride
Start the recording while stationary, wait until the GPS shows a good fix, and write down the battery charge shown on your vehicle. Then put the phone in its mount and ride. Do not touch the phone while moving. If you need to stop or change anything, pull over safely and switch the vehicle off first.
- 4
Ride a repeatable route
Use the same route for comparison rides, ideally one with a mix of flat roads, a hill and some stops. Ride normally. At the end, stop, note the battery charge again and then stop the recording. Repeat on different days or with one change at a time, such as tyre pressure or riding mode, so you can compare like with like.
- 5
Export and clean the data
Export the log as CSV and open it in a spreadsheet. Delete rows from before you set off and after you stopped. Check the columns: time, latitude, longitude, speed, altitude and acceleration axes. Convert speed to km/h if it is in metres per second by multiplying by 3.6. Save a copy of the raw file before you edit anything.
- 6
Analyse speed and acceleration
Plot speed against time to see how much of the ride is spent accelerating, cruising and stopping. Plot forward acceleration to see how hard you pull away and brake. Calculate distance and average speed. Many hard accelerations and hard stops usually mean more energy used; smoother logs often match better range on the same route.
- 7
Compare with battery use
Add a row for each ride with distance, average speed, elevation gain, air temperature and battery charge used. Over several rides, look for patterns: which changes made the biggest difference on your route and vehicle. Keep the spreadsheet as a long-term log. Delete old location files you no longer need, because they reveal where you live and travel.
How to tell it worked
You have clean CSV logs of several rides, charts of speed and acceleration, and a table that links your riding and conditions to battery use on your own route.
Stop and call a technician if
- Logs show unexpected sudden speed drops or power cuts that you also felt on the ride; get the vehicle checked.
- The vehicle's range has fallen sharply on a route that has not changed.
- Vibration from the vehicle is strong enough to shake the phone mount loose, which may point to a mechanical fault.
Questions
How accurate is phone GPS speed?
It is usually good at steady speeds in open sky but less reliable under trees, between tall buildings and at very low speeds. Compare over a whole ride rather than single points.
Can I log the vehicle's battery data too?
Only through the vehicle's own app if it offers export. Note the charge shown on the display at the start and end of each ride.
