Getting Started with Arduino MKR 1000
Voltage Divider Circuit to measure the Bending and a LED indication
In this below Demo, on detecting the bending of the flex sensor, a LED will glow for the indication.
The program just follows the simple if else statements after reading the analog Voltage form the Voltage divider circuit.
In the Below demo, as the flex sensor bends, the LED brightness changes. This is done using the PWM feature of the ARDUINO MKR1000