Punch force meter

TBH i don’t have much knowledge on coding or programing, what i did was changing numbers on the OSD module on my Mini Quads.

But someday an IDEA came across my mind, I want to build a machine for testing my punch force.

then my idea is building a rig, then show the highest weight i can punch to the dummy with the load cell inside it.

load cell and 4 digit lcd is connected to the arduino, it works well as a scale

however, I can’t make it display the highest value on the LCD only

I kept searching for similar projects and tutorials and I still can’t find how do I make the LCD display what i want.

Did i missed something, like this requires data logging or some sort in order to get the highest valve?

Thanks for the help anyways


#include "HX711.h" 
#include <TM1637Display.h>

const int CLK = 9; //Set the CLK pin connection to the display
const int DIO = 8; //Set the DIO pin connection to the display




TM1637Display display(CLK, DIO);  //set up the 4-Digit Display.
HX711 HX711_CH0(2, 3, 443); //SCK,DT,GapValue


long Weight = 0; 

int NumStep = Weight;  //Variable to interate

void setup()
{

 Serial.begin(9600); 

 HX711_CH0.begin(); 
 delay(3000); 
 HX711_CH0.begin(); 
display.setBrightness(0x0a);  
}


void loop()
{
 Weight = HX711_CH0.Get_Weight(); 
 Serial.print(Weight); 
 Serial.println(" g"); 
 display.showNumberDec(Weight); //Display the Variable value;
   delay(100);  //A half second delay between steps.
}

A 2 Hz sample rate is way too slow to be able to catch the peak force of the impulse from a punch. You will need to sample much faster, gather many samples and find the peak. Even the high sample rate (80Hz) of the HX711 is way too slow to, reliably, catch the peak. An analog solution is to amplify the output of the load cell and send that to a peak hold circuit, then digitize the peak for display.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom.. :slight_smile:

TomGeorge:
Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks… Tom… :slight_smile:

Oh right sorry for that.
posting code on forum is a pretty fresh thing to me haha

Hi,
You need to store the value as you read them, compare it with the previous reading, if the next reading is higher then store it as your highest value and display it.
If the next reading is lower you leave the old value displayed.

Tom.. :slight_smile: