Load cell

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!

Moderator: phalanx

Post Reply
KrisIL
Posts: 1
Joined: Fri Feb 16, 2018 6:00 am

Load cell

Post by KrisIL » Fri Feb 16, 2018 6:04 am

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
DanV
Posts: 333
Joined: Sat Apr 25, 2015 9:29 am

Re: Load cell

Post by DanV » Fri Feb 16, 2018 1:58 pm

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>

Post Reply