03/04 Self-made Flex Sensor

Self-make Flex Sensor


  • Second exercise on making motion sensors
  • Materials: Conductive fabric/thread, Fabric, Resistance Plastic
  • Concept: The resistance plastic will change resistance value through the bending motion.


  • Button Making:


Key point: the two pieces of conductive fabric should not be touching whenever position and motion the sensor is in. Otherwise the circuit will cause a short.


  • Button Testing:


Using the build in Example of AnalogReadSerial to get the mapping value of the sensor. The result is 750 low and 1050 high.

  • Serial Reading Code:
  • LED track test:
  • Connect the LED and the flex sensor:


  • Led Color change code:
  • Lightening test: