sparkfun Qwiic Flex Glove Controller SEN-14666 Hook-Up Manual page 15

Table of Contents

Advertisement

The sensor is initialized in the same manner as the first example, then our
begins calibrating the sensors.
loop()
To calibrate the sensors, simply flex them to their maximum and minimum bend radii, then send an
over the
e
Serial Monitor when you're finished. This will save the current calibration and show you the values that have been
saved. Uploading this sketch and opening the Serial Monitor to 115200 bps will yield an output somewhat like the
below image once you've sent
and saved the calibration.
e
Calibration Output - click the image for a closer look
Example 4 - Calibrated Hand
You don't necessarily want to calibrate your hand every single time you put on a glove with the flex controllers built
in, so let's figure out how to manually set our calibration if we know it already. To get started, open up File >
Examples > SparkFun ADS1015 Arduino Library > Example4_ManualCalibration. We can see in the
preamble to our code that we have an array of all of our calibration values, which were obtained using the previous
example sketch. We then use a loop in the setup function along with our
function to set the
setCalibration()
individual calibration values. The code for this is shown below.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Qwiic Flex Glove Controller SEN-14666 and is the answer not in the manual?

Questions and answers

Table of Contents