Skip to content

jacquelynoelle/padfoot_tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Padfoot Tracker

Padfoot is a activity tracking application for four-legged friends, developed for my Ada Developers Academy capstone project.

You can find a copy of my presentation, including a demo, here.

This repository contains the source code and instructions for building the Padfoot pedometer. Its sister repository contains the code and instructions for building the accompanying Android app.

Building the Hardware

Supplies

Connecting Components

First, you need to establish a reliable connection between the accelerometer and the board's analog pins as follows:

Accelerometer Board
GND A5
3.3V A4
X A3
Y A2
Z A1
ST A0

You'll need to first solder one end of each of the six wires to the accelerometer, then solder the other ends as diagrammed to the board. Please refer to Adafruit's guide to soldering for further instruction. Remember, its dangerous - you're melting metal!

Last but not least, you can plug in the battery to the black socket on the board.

Programming the Board

To install the Padfoot tracker program, you'll need to:

  1. Download the Arduino IDE
  2. Clone this repository using 'git clone https://github.com/jacquelynoelle/padfoot_tracker.git'
  3. Open the Arduino IDE and connect your board to your computer (follow these instructions from Adafruit)
  4. In the Tools menu, click Manage libraries, and install the Time library by Michael Margolis (version 1.5.0) and the Adafruit BluefruitLE nRF51 library by Adafruit.
  5. Select "Open" from the menu, then choose the padfoot_tracker.ino file from the folder where you cloned the repo
  6. Click the check mark button to verify the code, then click upload to add the sketch to your hardware
  7. Click the magnifying glass to open the Serial Monitor
  8. Get the current time in seconds from here
  9. Type in T plus the current time into the serial monitor -- the second you hit enter, you're starting the board's clock at that time
  10. Note that the pedometer won't start counting steps until the time is set
  11. Unplug the device -- it should now be ready to send step data over Bluetooth LE!

Testing the Tracker

Besides downloading and running the Padfoot Android app, you can also use an existing application like LightBlue to simply test out the Bluetooth LE data stream.

About

Pedometer code for Padfoot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages