Friday, May 22, 2015

Chapter 2 Glove Implementation 11 Flexible Sensor

2.3 Flexible Sensor
2.3.3 Connection to Arduino.
As with any other kind of variable resistors, they must be used with
a voltage divider to get changing voltages into the analog input pins
(see Fig 2.9).


Fig 2.9 voltage divider for connecting Flex with Arduino

The flex sensor changes its resistance when flexed so we can measure thatchange using one of the Arduino’s analog pins. And to do that we need a fixedresistor that we can use for that comparison (We are using a 22K resistor). This iscalled a voltage divider and divides the 5v between the flex sensor and theresistor.
The analog read on the Arduino is basically a voltage meter. at 5V (its max) it would read 1023, and at 0v it read 0. So we can measure how much voltage is on the flex sensor using the analogRead.

No comments:

Post a Comment