Wednesday, February 9, 2011
force sensitive resistor connected to LED's
This was a test using a force sensitive resistor to control the resistance of light into a series of LED's. this type of resistor causes the led's to light up depending on the amount of pressure applied. good application for touch, and floor mat sensors (although a larger FSR is advised for floor pressure)
i have posted the source code below. the flex sensor used 10k resistor grounded, an output to an I/O pin on the arduino, and a connection to positive. it will specify in the code below. enjoy!
i have posted the source code below. the flex sensor used 10k resistor grounded, an output to an I/O pin on the arduino, and a connection to positive. it will specify in the code below. enjoy!
Subscribe to:
Posts (Atom)