Placeholder for our stuff related to Telecom, IT, Internet of things (IOT), ESP8266, Raspberry Pi

Home IOT Telecom IT stuff About Us Contact Us Site Map

DIY: Push ups counter

June 12, 2021

Now you just concentrate on push ups and let this machine count for you.

What do you need to build it:

  • Wemos d1 microcontroller (esp8266)
  • DF Player mini
  • VL53L0X Time of Flight Micro-LIDAR Distance Sensor
  • Speaker 3 Watt, 8 ohm
  • 3.5mm Audio Jack
  • General purpose PCB
  • Resistance 470 ohm



push ups counter


Code Push ups counter

Download Arduino Sketch from my github repo.

Download Eagle Schematic from here.


Function and Features:

The DFPlayer Mini MP3 Player is a small MP3 module with an simplified output directly to the speaker. Audio files are stored in on-board sdcard.

VL53L0X Time-of-Flight (ToF) sensor measure distances using the time that it takes for photons to travel between two points, from the sensor's emitter to a target and then back to the sensor's receiver.

VL53L0X sesor connects to esp8266 on I2C interface for device control and data transfer.

esp8266 compares measured distance with configured thresholds and based on comparison increments counter. esp8266 monitor DFPlayer busy pin to know when it is free to play audio file. esp8266 connects to DFPlayer on serial interface and asks DFPlayer to play counter numbers when free.

This counter can be placed on floor or on a table.


Config Menu:

A configuration webpage is available on http://<IP Configure>
For example

Over the Air (OAT) update can be done from http://<IP Configure>/update
For example

Select "Couter" and fine tune using minRange and maxRange parameters.
Whenever moving body crosses minRange or maxRange, counter is incremented by one.


Going Further :

  1. Add one button to access menu
  2. Update counter along with time stamp in google spread sheet.
  3. Program a configurable timer to challenge user for max push ups in certain time limit.



Suresh Hariramani

I am an IOT enthusiast with more than 20 years of experience in the IT sector. Specializing in telecom service's; follow me for some very innovative and best in class IOT products as I unfold my knowledge and passion for the subject.


Vatsal Hariramani

Just me, myself and I, exploring the universe of uknownment. I have a heart of love and interests in technology, IOT and travel . And I want to share my world with you .