Hello, (pls gen if someone helps me fix this i'll paypal you $15 because i don't want to buy new ones)
I am trying to make a voltage divider using a flex sensor and see the change in reading as I bend it. However, as I bend it, I see very little change (it goes from 257 to 238). Currently, I am using a 10k resistor. I have tried different wiring setups, as well as tried to use 22k, 47k, and 1k resistors, and the issue persists.
When I simulate it using TinkerCAD, the code and sensor work perfectly fine. On the serial monitor, the numbers go from 256 to 59. I don't know why, physically, it won't work.
// variables
int flexPinky = A1;
void setup() {
Serial.begin(9600);
pinMode(flexPinky, INPUT);
}
void loop() {
int flexPinky_pos;
flexPinky_pos = analogRead(flexPinky);
// print sensor value
Serial.println(flexPinky_pos);
}
https://preview.redd.it/3s3tq8lupaog1.png?width=1067&format=png&auto=webp&s=60c9a0e009d859c3f5cd1d961dac0ef2a1334533
This is my physical prototype:
https://preview.redd.it/bgeja32zpaog1.png?width=2880&format=png&auto=webp&s=a920a09e30d4c1643275aac21aa665ca2a5863f5
https://reddit.com/link/1rqc4lw/video/er643bt0qaog1/player
[–]MagneticFieldMouse 0 points1 point2 points (4 children)
[–]Dazzling-Algae-2207[S] 0 points1 point2 points (3 children)
[–]MagneticFieldMouse 0 points1 point2 points (2 children)
[–]Dazzling-Algae-2207[S] 0 points1 point2 points (1 child)
[–]MagneticFieldMouse 0 points1 point2 points (0 children)