/pi-ad2

A replacement monitor for the Schwinn Airdyne AD2, built for a Raspberry Pi

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Pi AD2

Note: I sold my Airdyne, so will not be making any further improvements to this project. If someone wants to run with it, I fully support forking it and I'll be happy to link to your project!

A replacement monitor for the Schwinn Airdyne AD2, built for a Raspberry Pi. It actually can run completely fine on a Mac as well, where I'm doing all of my development.

I wrote a series of posts about the journey of creating this app. Start with Part 1 if you're interested.

For recent info, check out the Pi AD2 tag on my blog.

Note

When using the app, take the cable out of the Airdyne monitor and use a USB sound adapter to connect it to your Raspberry Pi or Mac. This one made by Sabrant works great for me on both platforms.

Installation

  1. Install Node.js

  2. Install sox, a sound processing program, which is used to "listen" for each rotation of the flywheel.

    Linux
    sudo apt-get update
    sudo apt-get install sox
    Mac OS X

    Install Homebrew first and then sox.

    brew install sox
  3. Change to a directory where you want to install the program (home directory works fine)

    cd ~
    git clone https://github.com/nickmomrik/pi-ad2.git
  4. Here are some different ways to start the app:

    1. Linux only (will give you Desktop & boot options):

      cd pi-ad2
      ./misc/install.sh
    2. Mac or Linux (from inside the pi-ad2 install directory)

      npm run prod
  5. The first time you use the app, make sure to go to Settings and test it is recognizing flywheel rotations. You may need to adjust the sliders until you find a sweet spot.

Other useful install/config items

  1. Clutter hides your X mouse cursor when you do not need it.
  2. Disable screen blanking so you can keep seeing the display during longer workouts.

License

Pi AD2 is licensed under GNU General Public License v3.