Advertisement

Quick Links

Qwiic Flex Glove Controller Hookup Guide
Introduction
Flex sensors are great for telling how bent something is in a project, but we've been running into issues with
durability when using them in wearable applications like gloves. The Qwiic Flex Glove Controller isolates the weak
point to allow for more permanent flex sensor applications. The board has an onboard ADS1015 ADC to I C so we
can get a whole bunch of analog inputs without touching our microcontroller's ADC pins.
SparkFun Qwiic Flex Glove Controller
 SEN-14666
U
N
C
O
A
C
R
U
O
Y
T
L
N
I
G
O
T
S
I
G
E
R
E
R
2

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

Summary of Contents for sparkfun Qwiic Flex Glove Controller SEN-14666

  • Page 1 The board has an onboard ADS1015 ADC to I C so we can get a whole bunch of analog inputs without touching our microcontroller’s ADC pins. SparkFun Qwiic Flex Glove Controller  SEN-14666...
  • Page 2: Required Materials

    In this hookup guide, we’ll figure out how to pull values from our fingers as well as calibrate the sensor for our range of motion. We’ll also cover recommended placement and installation to implement these into gloves. Required Materials To get started, you’ll need a microcontroller to, well, control everything. SparkFun RedBoard - Programmed with SparkFun ESP32 Thing Arduino  DEV-13907 ...
  • Page 3 SparkFun Qwiic Shield for Arduino SparkFun Qwiic HAT for Raspberry Pi  DEV-14352  DEV-14459 SparkFun Qwiic Shield for Photon  DEV-14477 You will also need a Qwiic cable to connect the shield to your sensor, choose a length that suits your needs.
  • Page 4: Suggested Reading

    If you don’t have a sewing needle, we’d recommend grabbing one if you’re trying to add these flex sensors to some gloves. Needle Set  TOL-10405 Suggested Reading If you aren’t familiar with our new Qwiic system, we recommend checking out our overview: WHAT IS QWIIC? We would also recommend taking a look at the hookup guide for the Qwiic Shield if you haven’t already.
  • Page 5: Hardware Overview

    Qwiic Shield for Arduino & Photon Hookup Guide Get started with our Qwiic ecosystem with the Qwiic shield for Arduino or Photon. You’ll also most likely want to sew these boards into a wearable project, so if you’ve never picked up a needle and thread before, we’d recommend checking out a how-to on hand sewing.
  • Page 6 The Qwiic Flex Glove controller has onboard I C pull up resistors, which can be removed by removing the solder from the jumper highlighted below. Only remove this solder if you are using your own pullups on the I C lines. The I C address of the board can be changed using the jumpers on the back of the board.
  • Page 7: Hardware Assembly

    QWIIC SHIELD FOR ARDUINO PHOTON HOOKUP GUIDE With the shield assembled, SparkFun’s new Qwiic environment means that connecting the sensor could not be easier. Just plug one end of the Qwiic cable into the Flex Glove Controller breakout, the other into the Qwiic Shield of your choice and you’ll be ready to upload a sketch and figure out how bent your fingers are.
  • Page 8 Once you have the sensor laid out on the glove, take a marker and mark the point where the sewing hole touches the glove. Now simply sew the points to the available mounting holes on the sensor, The finished product should look like the below glove.
  • Page 9: Library Overview

    You can snag this library through the Arduino Library Manager. Search for SparkFun ADS1015 Arduino Library and you should be able to install the latest version. If you prefer manually downloading the libraries from the GitHub repository, you can grab them here: DOWNLOAD THE SPARKFUN ADS1015 ARDUINO LIBRARY (ZIP) https://github.com/sparkfun/SparkFun_ADS1015_Arduino_Library/archive/master.zip...
  • Page 10: Example Code

    Now that we know how our library works, let’s go ahead and get started pulling values from our flex sensors. Example 1 - Basic Readings To get started with the first example, open up File > Examples > SparkFun ADS1015 Arduino Library > Example1_BasicReadings. In this example, we begin by creating an...
  • Page 11 In this example, we’ll see how to setup an entire hand of flex sensors. To get started with this example, open up File > Examples > SparkFun ADS1015 Arduino Library > Example2_SetupHand. In this example, we create objects, naming them...
  • Page 12 #include <SparkFun_ADS1015_Arduino_Library.h> ADS1015 pinkySensor; ADS1015 indexSensor; uint16_t hand[4] = {0, 0, 0, 0}; void setup() { Wire.begin(); Serial.begin(115200); if (pinkySensor.begin(Wire, 100000, ADS1015_ADDRESS_SDA) == false) { Serial.println("Pinky not found. Check wiring."); while (1); if (indexSensor.begin(Wire, 100000, ADS1015_ADDRESS_GND) == false) { Serial.println("Index not found. Check wiring."); while (1);...
  • Page 13 The second example will show us how to calibrate our flex sensor so we get 0 when our finger is closed and 1 when it is open. To get started, open up File > Examples > SparkFun ADS1015 Arduino Library >...
  • Page 14 #include <SparkFun_ADS1015_Arduino_Library.h> #include <Wire.h> ADS1015 fingerSensor; void setup() { Wire.begin(); Serial.begin(115200); if (fingerSensor.begin(Wire, 100000, ADS1015_ADDRESS_GND) == false) { Serial.println("Device not found. Check wiring."); while (1); Serial.println("Calibrating, send 'e' when finished"); void loop() { uint8_t incoming; fingerSensor.calibrate(); if(Serial.available()) incoming = Serial.read(); } while (incoming != 'e');...
  • Page 15 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.
  • Page 16 #include <SparkFun_ADS1015_Arduino_Library.h> #include <Wire.h> ADS1015 pinkySensor; ADS1015 indexSensor; float hand[4] = {0, 0, 0, 0}; uint16_t handCalibration[4][2] = { //{hi , low} {722, 1080},//index {600, 980},//middle {680, 900},//ring {736, 907} //pinky void setup() { Wire.begin(); Serial.begin(115200); //Begin our finger sensors, change addresses as needed. if (pinkySensor.begin(Wire, 100000, ADS1015_ADDRESS_SDA) == false) Serial.println("Pinky not found.
  • Page 17 Qwiic Landing Page GitHub Repos Product Arduino Library SparkFun Product Showcase: Qwiic Flex Glove Controller Need even more inspiration for your next project? Check out some of these related tutorials: AS726X NIR/VIS Spectral Sensor Hookup Qwiic HAT for Raspberry Pi Hookup Guide...
  • Page 18 IoT Power Relay Qwiic MUX Hookup Guide Using the ESP32 to make a web-configured timed Have a bunch of sensors with the same I2C address? relay. Put them on the Qwiic MUX (TCA9548A) to get them all talking on the same bus!

Table of Contents