Push-Ups Counter
It is hard to focus on two things at the same time, Imagine your doing some push-ups and focusing on how many times you do push-ups that will affect your performance, So I decided to help you by making a smart device that will count the push-ups instead of you.
This will help me personally because I play a lot of push-ups at home
Tinker cad to simulate the circuit before connecting the hardware
arduino ide for uploading the code on the board.
Arduino Uno board based on the ATmega328P
Breadboard to connect all components on it.
measure distance by using ultrasonic
2*16 LCD Display "I2C" to display the state of the circuit
2 pin push button
Jumbers to wire all components
schematic
I used tinkercad to draw the project schematic and implement the circuit to check its functionality.
So, I started to connect components like the ultrasonic sensor, LCD, and push button.
ultrasonic: connected its VCC, and GND to the breadboard and trigger, echo Pin to the Arduino, and make a simple code that checks the functionality of the sensor as I need or not.
I used blocks at first to understand how the LCD and ultrasonic are working.
So, I started to simulate the circuit and check code functionality before connecting it in real.
I used the push button to reset the counter to zero to be more realistic.
So if you want to start the counter from zero again just click on the push button.
I started to connect the components as the schematic. I connected the ultrasonic, push button, and LCD to the breadboard and Arduino.
And here it's my final project working as I planned.
When the ultrasonic detects an object at a certain distance it will add one to the counter.
The problem I faced was that the counter was inaccurate and it gives 1 or more at the same time.
The Solution: I saw this tutorial to tell me that I must put a small delay (250) to give ultrasonic a little time to calculate distance correctly.
I got familiar with coding and Arduino, and I think that will help me a lot in my final project because the two skill is essential in my final project.
Making the Hand Waving cardboard project in the offline session.