This is the official documentation page of the Activity Recognition IoT project.
We are Andrea Napoletani, Alessandro Giannetti and Riccardo Pattuglia three friends and students at "La Sapienza" University of Rome.
Activity Recognition is a project that aims to recognize your activities like standing, sitting, walking and running in order to keep track of your daily trends.
We use the Intel® Curie™ module of Genuino 101 board to train activity patterns and his Pattern Matching Engine to classify new patterns exploiting data from accelerometer and gyroscope. All the classified activities are sent to an Android application through Bluetooth Low Energy (BLE) and stored on Amazon Web Services (AWS IoT and AWS DynamoDB); finally, everything is plotted on Redash.
Be careful: for this project we have used free trial periods (30 days for Redash and 12 months for AWS IoT/DynamoDB), after that period you have to pay for them.
- Train Genuino 101 Board on some regular patterns (referred to each activity) in order to allow it to classify new patterns captured by accelerometer and gyroscope.
- Send data from Genuino 101 to the Android App through Bluetooth Low Energy (BLE) technology.
- Connect the Android App to AWS IoT service and send data exploiting MQTT protocol.
- Connect and store data from AWS IoT to AWS DynamoDB.
- Query the AWS DynamoDB from Redash to plot the activity overview.
For the details about each step see our Hackster.io post!
Follow these steps to try the project:
- Import and upload the sketch on Genuino 101.
- Import the Android app on Android Studio.
- Change
private static final String CUSTOMER_SPECIFIC_IOT_ENDPOINT = "YOUR_ENDPOINT";
in theAWSServiceClient.java
file with your AWS IoT Endpoint. - Change
final String topic = "YOUR_TOPIC";
in theAWSServiceClient.java
with the name of your topic. - Change
"PoolId": "YOUR_POOLID",
"Region": "YOUR_REGION"
in the res/raw/awsconfiguration.json
file with your PoolID and Region values.
- Build and Run the app.
- Project presentation (one technology is changed due to compatibility problems)
- Proof of Concept
- Hackster post
Feel free to contact us for further information!