1 of 13

Smart Clamp

CruzHacks 2023

Adrien, Corey, Xander, Nate

2 of 13

Smart Clamp

  • Olympic Barbell Collar
  • Automatically logs reps and sets to website
  • Tracks time under tension
  • Rest time

3 of 13

High Level Design

AWS

Express

(AWS EC2)

MySQL

(AWS RDS)

ReactJS

(AWS S3 & GitHub Actions)

RPI Pico W

(Microcontroller)

MPU6050

(IMU)

1 Cell LiPo

(Battery)

Olympic Barbell

Buttons

OLED Screen

4 of 13

Implementation

Buttons

MPU6050

OLED Screen

5 of 13

Full Setup

6 of 13

Web

Frontend hosted on AWS S3

Backend hosted on AWS EC2

CICD using GitHub Actions

7 of 13

Frontend

8 of 13

Backend

/workouts

9 of 13

Demo

10 of 13

Hardware Pinouts

OLED

Power: pin 36

GND: pin 38

I2C0 GPIO SDA: 8

I2C0 GPIO SCL: 9

IMU

Power: pin 36

GND: pin 38

I2C0 GPIO SDA: 4

I2C0 GPIO SCL: 5

Battery

Power (VSYS): pin 39

GND: pin 38

Buttons

Power: pin 36

GND: pin 38

Digital: 4

11 of 13

12 of 13

Endpoints

GET POST /workouts

GET /workouts?username=x&exercise=x&created_at=x

13 of 13

Hardware List