Stretch click
Stretch click
Share
Stretch click is a mikroBUS™ add-on board with circuitry for measuring stretch forces with conductive rubber cords. The click has screw terminals for connecting 2mm-diameter conductive rubber cord. The resistance of the cord increases when stretched, impacting the voltage available on the AN pin. Stretch click is designed to use either a 3.3V or 5V power supply.
In a 'relaxed' state, the resistance is about 130 ohms per centimeter. As you pull on it, the resistance increases (the particles get further apart). As you stretch it out, the resistance increases. So lets say you have a 15cm piece - thats about 2.1 Kohms.
Stretch it to 25cm long and now it is 26/15*2.1K = 3.5 Kohms. You can stretch the rubber about 50-70% longer than the resting length, so a 15cm piece shouldn't be stretched more than 25cm. Once the force is released, the rubber will shrink back, although its not very "fast" and it takes a minute or two to revert to its original length. It's not a true linear sensor, and the resistance may vary from batch to batch, so we consider it a way to measure stretching motion but isn't really precise.
One meter of conductive rubber cord and two alligator clips are included in the package.
Specification
Type | Force |
Applications | Stretch force measurement |
On-board modules | Circuitry for measuring stretch forces with conductive rubber cords |
Key Features | Rubber cord with 140-160 ohms per centimeter resistance included (2mm diameter, 1m long) |
Key Benefits | Stretch force measurement with rubber cord |
Interface | PWM,Analog |
Input Voltage | 3.3V or 5V |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Programming
The following code snippet demonstrates the use of Stretch click.
1 static uint16_t read_sensor() 2 { 3 uint16_t adc_rd; 4 adc_rd = ADC1_Get_Sample(8); // Get ADC value from channel 5 Delay_ms(10); // Pause 10ms 6 return adc_rd; 7 } 8 9 static void init_adc() 10 { 11 AD1PCFGL = 0xFFEF; // Set RA8 as input 12 AD1PCFGH = 0xFFFF; // All other pins are digital 13 ADC1_Init(); // Initialize ADC 14 Delay_ms(100); 15 } 16 17 void main() 18 { 19 char txt[30]; 20 uint16_t adc_reading; 21 init_adc(); 22 23 while(1) 24 { 25 adc_reading = read_sensor(); 26 TFT_Set_Font( &TFT_defaultFont, CL_WHITE, FO_HORIZONTAL ); 27 WordToStr( adc_reading, &txt ); 28 TFT_Write_Text( txt, 140, 100 ); 29 Delay_ms( 500 ); 30 } 31 }
Code examples that demonstrate the usage of Stretch click with MikroElektronika hardware, written for mikroC, mikroBasic and mikroPascal for AVR, dsPIC, FT90x, PIC and PIC32 are available on Libstock.
Featured collection
-
Sold out
Crazyflie V2.1
Vendor:Regular price Rs. 24,949.00Regular priceUnit price / perSold out -
Getting Started Bundle
Vendor:Regular price Rs. 26,399.00Regular priceUnit price / per -
Happy hacker bundle
Vendor:Regular price Rs. 33,599.00Regular priceUnit price / per -
STEM ranging bundle
Vendor:Regular price Rs. 43,999.00Regular priceUnit price / per -
Lighthouse explorer bundle
Vendor:Regular price Rs. 89,999.00Regular priceUnit price / per -
Lighthouse positioning deck
Vendor:Regular price Rs. 9,899.00Regular priceUnit price / per -
Lighthouse V2 base station
Vendor:Regular price Rs. 30,349.00Regular priceUnit price / per -
Lighthouse swarm bundle
Vendor:Regular price Rs. 425,899.00Regular priceUnit price / per -
Loco explorer bundle
Vendor:Regular price Rs. 187,999.00Regular priceUnit price / per -
Loco positioning deck
Vendor:Regular price Rs. 9,899.00Regular priceUnit price / per -
Loco positioning node
Vendor:Regular price Rs. 18,699.00Regular priceUnit price / per -
Loco Swarm Bundle
Vendor:Regular price Rs. 529,609.00Regular priceUnit price / per -
Active marker deck
Vendor:Regular price Rs. 16,499.00Regular priceUnit price / per -
Motion capture marker deck
Vendor:Regular price Rs. 659.00Regular priceUnit price / per -
AI-Deck 1.1
Vendor:Regular price Rs. 27,999.00Regular priceUnit price / per -
AI-Deck Color Camera Module
Vendor:Regular price Rs. 2,199.00Regular priceUnit price / per -
AI-deck monocrome camera module
Vendor:Regular price Rs. 2,199.00Regular priceUnit price / per -
Flow deck v2
Vendor:Regular price Rs. 5,499.00Regular priceUnit price / per -
Crazyflie Bolt
Vendor:Regular price Rs. 21,999.00Regular priceUnit price / per -
Thrust upgrade bundle for Crazyflie 2.X
Vendor:Regular price Rs. 1,949.00Regular priceUnit price / perSold out -
Qi 1.2 wireless charging deck
Vendor:Regular price Rs. 3,849.00Regular priceUnit price / per -
7 mm DC-motor
Vendor:Regular price Rs. 439.00Regular priceUnit price / per -
Male long deck connector
Vendor:Regular price Rs. 219.00Regular priceUnit price / per -
250mAh LiPo battery
Vendor:Regular price Rs. 659.00Regular priceUnit price / per -
6 mm DC-motor
Vendor:Regular price Rs. 329.00Regular priceUnit price / per