[go: up one dir, main page]

Skip to content
/ AirBiker Public
forked from gumbypp/AirBiker

Measure your wind resistance while cycling, so that you can see how hard you're really working!

License

Notifications You must be signed in to change notification settings

JLJu/AirBiker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

AirBiker is an iOS app and a simple Ardunio sketch. The Arduino reads the real-time airspeed as measured by a compact Pitot tube + airspeed sensor connected to analog input 0, and reports it back to the iOS app using Bluetooth LE. When the pitot tube is carefully mounted on a bicycle (on or near the headtube) such that it's pointed directly forward and will receive an unimpeded air flow as the cyclist moves forward, the measured airspeed, when compared to the groundspeed as measured by the GPS of the iPhone, can be used as a proxy for wind resistance.

Hardware required

  • Arduino Uno (it will probably work with other variants, but I've only tested it with the Uno)
  • RedBearLab's BLE shield
  • Airspeed Pitot tube kit
  • Bluetooth LE-capable iOS device (iPhone 4S or later)

On the bench:

Bench hardware

Mounted on my bike:

Schematic

Communications

Communications from the iOS app to the Arduino is facilitated by the simple Tx/Rx transport mechanism exposed by RedBearLab's BLE library. At this point, there is only a single request/response pair that is supported - the iOS app sends a single command byte (0x01), and the Arduino responds with 4 bytes - the estimated airspeed.

Dependencies

Arduino libraries:

  • TimerOne_r11
  • RBL_BLEShield (modified version to allow configuration of the primary service and characteristic UUIDs)
  • Nordic_BLE

Usage

Here's two screenshots from the iOS app. The one on the left is the data (I'm going for a bike ride!) capture mode. The total gain, effort speed and effort distance values are not currently populated.

The one on the right is the view of a captured ride. On this screen, three colors are used to estimate the wind resistance: high (red), medium (yellow) and low (green). The current simplistic calculation simply compares the measured airspeed to several constants (i.e. does not take the ground speed into account) - based on my observations of what seemed like "high", "medium" and "low" in-your-face headwinds while cycling on flat surfaces in San Francisco. This particular route was captured while riding (mostly) east-to-west from downtown SF, over the Golden Gate bridge and up Hawk Hill. The red part through the Marina district, which is relatively flat, accurately reflects a higher LOE due to the typical westerly winds that are present on that stretch.

iOS app

The captured raw CSV data (in .biker files) can be extracted from the phone's filesystem using a tool such as iExplorer for further analysis. The fields are:

  • time (in seconds since the start of the ride)
  • latitude
  • longitude
  • horizontal accuracy (m)
  • altitude (m)
  • vertical accuracy
  • GPS instantaneous speed (km/h)
  • airspeed (km/h)
  • GPS distance from the last reading (m)

Building

If you build this thing, you might want to consider changing the primary service and characteristic UUIDs of the BLE shield using Nordic's nRFgo Studio.

Alternatively, with a few simple tweaks to the Arduino sketch, you could use a BLE Mini instead.

About

Measure your wind resistance while cycling, so that you can see how hard you're really working!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 39.8%
  • C++ 31.3%
  • Objective-C 26.1%
  • Other 1.5%
  • Shell 1.2%
  • Ruby 0.1%