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.
}