Page 1 of 1

Load cell

Posted: Fri Feb 16, 2018 6:04 am
by KrisIL
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?

Re: Load cell

Posted: Fri Feb 16, 2018 1:58 pm
by DanV
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>