In this tutorial we will learn how to detect the force applied to the Force Sensing Resistor (FSR) and display it on the OLED Display + we will set the limits with a green and a red LED.
Watch a demonstration video.
To start programming the Arduino, you will need to have the Arduino IDE installed from here: https://www.arduino.cc/.
Please be aware that there are some critical bugs in Arduino IDE 1.6.6. Make sure that you install 1.6.7 or higher, otherwise this Instructable will not work! If you have not done follow the steps in this Instructable to setup the Arduino IDE to program Arduino UNO! The Visuino: https://www.visuino.eu also needs to be installed. Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2
and value: 0.1
"CompareValue2" is used to trigger the Red LED, it means whenever the input value is bigger than 0.1 trigger the red LED
If you power the Arduino UNO module, and press the force sensor sensor you should see a changing number on the OLED display and a green LED should light but when you hit the limit the red LED should shine.
Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable, you can download it here and open it in Visuino: https://www.visuino.eu