Load cell display highest value

Hi,

i have a simple weighing scale project using a 200kg load cell with an arduino board and a hx711 amplifier. the value is measured and displayed on the LCD display. would it be possible to display only the maximum measured value instead of the current value going up and down when force is added/removed.

here is the code i am using.

Sure, it's possible and even easy! Add a separate variable to save the current value if the current is greater than the saved value. Display the save value instead of the current value.

thanks paul that sounds like it would work. although i have very little coding experience as me and my son have been trying to figure this out for a few months now. we arent very tech savvy. could you give me a rough idea on what the seperate variable would look like in code form? no worries if you cant but thanks for the help!

Look just like the others. A little study will not hurt either of you.

Hi @salway00

welcome to the arduino-forum.
I'm pretty sure that you agree and will follow the way how to solve your problem mimimum 200 minutes faster. This requires to invest 20 minutes of your precious time to read how to speedup solving your problems.

Directly after registering you got presented informations how to speed up solving your problem.
You should really read it.

If you do a rough estimation: how many hours did you work on this project?

"A few months" sounds like 2 or 3 months. With working on this project 5 hours per week this would sum up to 40 to 60 hours.

Well learning the basics of programming will take you 5 to 10 hours.
Investing this time has the big advantage that you will no longer be 100% dependend on the expertise of other users.

Take a look into this tutorial:

Arduino Programming Course

It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.

best regards Stefan

no ive probably spent 5 hours on this in the last few months in total. ive just used chatGPT and its given me the whole code and even improved my previous code so that wont be necessary. thanks

It is very unlikely that human users will modify chatGPT-code because chatGPT will re-modify it again and again.

go prompting chatGPT again until it serves the wanted functionality

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.