SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!
By KrisIL
#198348
Hello guys and girls
I would like to make a load cell to be used with pulling force. I downloaded the code from project on sparkfun website. But I also need to add a button that if you press it will shows you a peak pull force. Is this possible?
User avatar
By DanV
#198351
Simple code for this:

if ( Force > PeakForce ) {
PeakForce = Force;
}
and, of course, you will need some code to examine the pushbutton and react to it

<Well, I was going to use code tags but the most recent change in the forum neither recognizes them nor does the full editor have any formatting code>
<edit: now the formatting stuff is there but the preview doesn't format for the [code] tag>