Flex Sensor

How to use the Sparkfun Flex Sensors (https://www.sparkfun.com/products/10264 or similar), using the analog inputs of the mbed.



The flex sensor can be used, by creating a potential divider using the 10k resistor pictured in the circuit diagram above. This can then be connected to any of the mbed's analog input pins (LPC1768: pins 15->20 inclusive), and read using the AnalogIn interface.

In this configuration, the voltage between the analog input and ground will increase with the resistance of the flex sensor does. Therefore, based on the Sparkfun Flex Sensor, as the amount of flex increases, so does the resistance, therefore increasing the voltage and therefore giving a higher analog reading on the mbed, when there is more flex.

You need to log in to post a discussion

Discussion topics

TopicRepliesLast post
Code for taking input from flex sensor and display it on lcd 0 06 May 2017 by Khananard Khamphan