I have been working on a circuit on Tinkercad. I have managed to connect everything together but I can't get the FSR measurements to show on the LCD when I ''apply force''. The LCD
constantly shows 1023. I want the Display to change and show different measurements as I move the FSR 'button' up n down.
I have added pictures below of my circuit n code. Not sure if there is a problem with the wiring or code.
Components used:
Arduino Uno R3
LCD 16 x 2
220 Ω Resistor
250 kΩ Potentiometer
Force Sensor
1 kΩ Resistor
Images of code are worthless. I can't copy to my IDE to examine the code nor can I run the code. Read the how get the most out of this forum sticky to see how to properly post code. Remove useless white space and format the code with the IDE autoformat tool (crtl-t or Tools, Auto Format) before posting code in code tags.
If you are getting a steady reading of 1023 even when you press the FSR, I suspect a wiring mistake.
Edit: Are you only using a simulator, not a real Arduino? Then all bets are off, I have no idea the capabilities of the simulator. Maybe, to test, replace the FSR and its load resistor with a potentiometer?
If you want the FSR to read from (near) 0 to (near) 1023, wire as shown. I include the capacitor to low pass filter the FSR output. It makes for less jumpy measurements.