user70988: I am currently doing a robotic arm project. I used load cell with HX711 amplifier to detect and monitor of the objects. If the objects is less than 3kg, then the servomotor in gripper can rotate and the gripper can hold the objects. But there is an error in my coding.


user31105: You forgot 'at least' to declare the global variable:
HX711 scale;

See documentation: https://github.com/bogde/HX711/blob/master/src/HX711.h
See GitHub example: https://github.com/bogde/HX711/blob/master/examples/HX711_basic_example/HX711_basic_example.ino

70988: <p>I am currently doing a robotic arm project. I used load cell with HX711 amplifier to detect and monitor of the objects. If the objects is less than 3kg, then the servomotor in gripper can rotate and the gripper can hold the objects. But there is an error in my coding.</p>
<p><a href="https://i.stack.imgur.com/4uBuw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4uBuw.png" alt="enter image description here" /></a></p>
 31105: <p>You forgot 'at least' to declare the global variable:</p>
<pre><code>HX711 scale;
</code></pre>
<p>See documentation: <a href="https://github.com/bogde/HX711/blob/master/src/HX711.h" rel="nofollow noreferrer">https://github.com/bogde/HX711/blob/master/src/HX711.h</a></p>
<p>See GitHub example: <a href="https://github.com/bogde/HX711/blob/master/examples/HX711_basic_example/HX711_basic_example.ino" rel="nofollow noreferrer">https://github.com/bogde/HX711/blob/master/examples/HX711_basic_example/HX711_basic_example.ino</a></p>
