I'm working on a project to build a flex sensor glove which is supposed to interprete the sign language. To do that I need to attach 5 flex sensors. 2 flex sensors respond according to how much i bend them, so they are working fine but the 3rd sensor(4th and 5th also does the same thing) behaves as if I am constantly bending it. The values I am getting are normal for the 1st and 2nd sensors but the value for 3rd sensor keeps changing.
I wanted to use the simplest code to see if my sensors are working properly.
int flexPin1 = A0;
int flexPin2 = A1;
int flexPin3 = A2;
int value1;
int value2;
int value3;
My recommendation is to triple check your wiring on the 3rd sensor. Sometimes jumper wires have breaks inside. Sometimes breadboard connections are not reliable. You can use a multimeter to check the continuity of the wiring from the sensor to the Arduino.
I would also recommend swapping one of the sensors that's giving good values with the one that's giving bad values to see if the problem follows the sensor.
Thank you for your reply. I just tried using different cables and tested each sensor individually but there is no difference. Sensors are working fine and the problem always starts with hooking up more than 2 sensors.
HJSmith:
Thank you for your reply. I just tried using different cables and tested each sensor individually but there is no difference. Sensors are working fine and the problem always starts with hooking up more than 2 sensors.
Change the order of reading the pins to 3,2,1 and see if you get good reading for pin 3 and not for pin 1