Product Description
This is a brick component specially design for the Arduino board used to sense the flexing level on moving parts. It’s quite simple to create a Nintendo Glove like project, placing one sensor on each finger.
As the sensor is flexed, the resistance across the sensor increases.
Using it with Arduino
It connects with just three wires to Arduino ( GND and VCC for power, and OUT for the output signal).
The GND pin on the brick should be connected to the GND pin on the Arduino board, the VCC pin on the brick should be connected to the 5v pin on the Arduino board, and the OUT pin on the brick should be connected to a analog pin on the Arduino board.
The source code is below:
void setup() { Serial.begin(9600); } void loop() { int val = analogRead(0); if (val > 0) { Serial.print("Nivel Indoire : "); Serial.println(val); delay(10); } }

Using it with Raspberry PI
To connect the sensor to Raspberry PI, you need a SensorShield . Make sure you follow the instructions in the SensorShield page for connecting it to Raspberry PI and installing the correct drivers.
The sensor brick OUT pin should be connected to one of the 8 SensorShield inputs.. The GND brick pin should be connected to the GND Raspberry PI port (marked with black). The VCC sensor pin should be connected to a 3.3 V Raspberry PI ports (marked orange).
Source code (Phython) available below.
import spidev import time spi = spidev.SpiDev() spi.open(0,0) def readadc(adcnum): if ((adcnum > 7) or (adcnum < 0)): return -1 r = spi.xfer2([1,(8+adcnum)<<4,0]) adcout = ((r[1]&3) << 8) + r[2] return adcout while True: for adcInput in range(0,8): value = readadc(adcInput) print "---------------------------" print "ADC(", adcInput,")= ", value print "---------------------------" time.sleep(1)
Leave a reply
Returns and Exchanges
There are a few important things to keep in mind when returning a product you purchased.You can return unwanted items by post within 7 working days of receipt of your goods.
- You have 14 calendar days to return an item from the date you received it.
- Only items that have been purchased directly from Us.
- Please ensure that the item you are returning is repackaged with all elements.
Ship your item back to Us
Firstly Print and return this Returns Form to:
30 South Park Avenue, San Francisco, CA 94108, USA
Please remember to ensure that the item you are returning is repackaged with all elements.
For more information, view our full Returns and Exchanges information.
Reviews
There are no reviews yet.