ATtiny85 Wearable Vibrating Activity Tracking Watch & Programming ATtiny85 With Arduino Uno




Introduction: ATtiny85 Wearable Vibrating Activity Tracking Watch & Programming ATtiny85 With Arduino Uno

About: Maker 101; Beginner and intermediate level Maker projects! You can find projects such as "How to" and "DIY" on programmable boards such as Arduino, ESP8266, ESP32 and Raspberry Pi on this channel. The projects…

How to make the wearable activity tracking watch? This is a wearable gadget designed to vibrate when it detects stagnation. Do you spend most of your time on the computer like me? Are you sitting for hours without realizing it? Then this device is for you :)

Step 1: Project Video - Step by Step

I made a fun introduction to this project, I think you should watch it :) This is what inspired the Vibrating Watch, a simple activity tracker that will notify you when you are inactive for a pre-set period of time. In this project, we'll build a wearable gadget designed to vibrate when it detects stagnation. This device is low-cost and can help keep you on the move.

Step 2: About the Schematic

The heart of this project is the ATtiny85. This microcontoller can be programmed with the Arduino IDE and is easy to fit into projects to keep cost and size down. With three analog inputs and two PWM outputs, the ATtiny85 has just enough I/O for this project. For our activity sensing needs, I am using the MMA7341LC 3-axis accelerometer which outputs each axis on a different analog line. This accelerometer also has a sleep mode that can be activated by the microcontroller to improve battery life. Our activity reminder will come through a vibration motor which, despite its small size is powerful enough.

Download Gerber Files or Order PCB from PCBWay (10 pcs PCB order US $5.00):

Required Components:

ATtiny85 IC -

Vibration Motor -

3-Axis Accelerometer -

Battery Holder -

8 Pin Socket -

Slide Switch -

Resistor -

Strap -

Soldering Tools -

CR2032 Battery

Step 3: Programming an ATtiny85 With an Arduino UNO:

Required Components:

Arduino Uno R3 -

10uF Capacitors -

Jumper Wires -

Breadboard -

Configuring Arduino Uno as a ISP (In-System Programming):

To program the ATtiny85 we need to first set Arduino Uno in ISP mode. Connect your Arduino Uno to the PC. Open Arduino IDE and open the ArduinoISP example file (File - Examples - ArduinoISP) and upload it.

Adding ATtiny85 Support to Arduino IDE:

By default Arduino IDE doesn't support ATtiny85 so we should add ATtiny boards to Arduino IDE. Open File - Preferences and in the Additional Boards Manager URLs give this URL:

Open Tools - Board - Board Manager. Scroll down the list where it says "ATtiny by Davis A. Mellis". Click on that and install it. Now you would be able to see a new entry in the Board menu

Connecting ATtiny85 with Arduino Uno:

Now with all the above things ready we will start programming the ATtiny85. Connect the ATtiny85 to Arduino Uno using breadboard.

Add a 10uF capacitor between RESET and GND in the Arduino Uno. This is to avoid the Arduino Uno from being auto reset when we upload the program to the ATtiny85.

Burn Bootloader and Uploading Source Code to the ATtiny85:

  • Now back to the Arduino IDE. Select ATtiny under Tools - Board. Then select ATtiny85 under Tools - Processor. Select 8 MHz (internal) under Tools - Clock.
  • Then make sure Arduino as ISP is selected under Tools - Programmer
  • By default the ATtiny85 runs at 1MHz. To make it to run at 8MHz select Tools - Burn Bootloader.
  • You will get the above message if burning bootloader was successful.Now open the source code and upload it.

Step 4: About the Program

Get the Source Code from GitHub:

The source code is to notify the wearer if a predefined timer has run out. The source code reads the accelerometer output signals, compares them to a threshold, and resets the timer if the threshold is exceeded.

The program is asleep for the majority of the time but wakes up once every minute to monitor the accelerometer. While monitoring the accelerometer the program checks the acceleration values once a second for 5 seconds.

The acceleration values are compared to a pre-set activity threshold. If they exceed this threshold the activity timer is reset. When the activity timer expires, the vibration motor is activated to prompt the user to be more active.

About the MMA7341LC 3-Axis Accelerometer:

Be the First to Share


    • Make it Glow Contest

      Make it Glow Contest
    • Block Code Contest

      Block Code Contest
    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge



    3 months ago

    Late to the party - but what a cool project!!